joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [edi], ecx
movzx eax, byte [ecx]
test byte [eax + 0x5fee81], 8
je 0x43c951
movzx eax, byte [ecx + 1]
inc ecx
test byte [eax + 0x5fee81], 8
jne 0x43c943
mov al, byte [ecx]
cmp al, 0x2d
jne 0x43c961
inc ecx
mov dword [ebp - 0x14], 1
jmp 0x43c969
cmp al, 0x2b
jne 0x43c966
inc ecx
mov dword [ebp - 0x14], esi
cmp byte [ecx], 0x30
jne 0x43ca5d
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x43c981
cmp al, 0x58
jne 0x43ca5d
add ecx, 2
lea edx, [ebp - 0x10]
mov dword [ebp - 8], ecx
xorps xmm1, xmm1
lea ecx, [ebp - 8]
call fcn.0043c8b0
mov edx, dword [ebp - 8]
cmp byte [edx], 0x2e
jne 0x43c9b2
inc edx
movaps xmm1, xmm0
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
call fcn.0043c8b0
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
jne 0x43c9c0
test esi, esi
je 0x43ca5d
neg esi
mov dword [edi], edx
mov al, byte [edx]
shl esi, 2
cmp al, 0x70
je 0x43c9d1
cmp al, 0x50
jne 0x43ca2c
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x43c9e5
inc edx
mov dword [ebp - 0x10], 1
jmp 0x43c9ed
cmp al, 0x2b
jne 0x43c9ea
inc edx
mov dword [ebp - 0x10], ecx
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x5fee81], 2
je 0x43ca2e
nop
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x5fee81], 2
jne 0x43ca00
mov eax, ecx
neg eax
cmp dword [ebp - 0x10], 0
cmove eax, ecx
add esi, eax
mov dword [edi], edx
cmp dword [ebp - 0x14], 0
je 0x43ca3b
xorps xmm0, xmmword [0x605a90]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.005a2382
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
xorps xmm0, xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x43d380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, esi
mov eax, esi
xor eax, dword [ebp + 8]
shr edi, 5
inc edi
cmp esi, edi
jb 0x43d3bb
nop dword [eax]
movzx edx, byte [ebx + esi - 1]
mov ecx, eax
shl ecx, 5
sub esi, edi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, edi
jae 0x43d3a0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45ed10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5a30
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x624500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
lea edi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, edi
cmp dword [ecx + 4], esi
jne 0x45eda7
cmp dword [ecx], esi
jne 0x45ed9f
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [edi + ecx + 4], eax
jmp 0x45edaf
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x45edaf
cmp dword [ecx], esi
jne 0x45edaf
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
lea ebx, [esi + 0x10]
mov edi, dword [esi]
mov dword [eax], edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edx + 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x45ede7
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
push 0x38
push esi
call fcn.0053a186
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45ee60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x45ef03
cmp byte [esi + 0x3d], 0
je 0x45ef03
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x45eeb9
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x45eecb
sub eax, 1
je 0x45eecf
sub eax, 2
je 0x45ef03
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45eeec
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005963e1
add esp, 0x10
cmp edi, eax
jne 0x45eeb9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0053a175
mov esp, ebp
pop ebp
ret
Function at 0x45f020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x4c], 0
jne 0x45f041
xor edi, edi
jmp 0x45f0cb
cmp dword [esi + 0x38], 0
je 0x45f0b0
cmp byte [esi + 0x3d], 0
je 0x45f0b0
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x45f082
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x45f086
sub eax, 1
je 0x45f08a
sub eax, 2
je 0x45f0b0
xor al, al
jmp 0x45f0b2
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45f0a7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005963e1
add esp, 0x10
cmp edi, eax
jne 0x45f082
cmp byte [esi + 0x3d], 0
sete al
jmp 0x45f0b2
mov al, 1
push dword [esi + 0x4c]
xor edi, edi
test al, al
cmovne edi, esi
call fcn.00596d84
xor ecx, ecx
add esp, 4
test eax, eax
cmovne edi, ecx
lea eax, [esi + 4]
mov byte [esi + 0x48], 0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [esi + 0x1c]
pop edi
mov dword [ecx], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov dword [esi + 0x4c], 0
mov ecx, dword [0x62e71c]
mov dword [esi + 0x40], ecx
mov ecx, dword [0x62e720]
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], 0
xor ecx, ebp
pop esi
call fcn.0053a175
mov esp, ebp
pop ebp
ret
Function at 0x462430
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, edx
mov dword [esp + 0x10], ecx
mov esi, dword [edi]
test esi, esi
je 0x46249b
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi], 0
push 0
mov edx, 0x400000
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
cmp esi, edx
push eax
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call ebp
mov ecx, dword [esp + 0x18]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x46248e
test ecx, ecx
je 0x46249b
test esi, esi
je 0x46249b
mov ecx, dword [esp + 0x10]
jmp 0x462451
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4624b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, edx
mov dword [esp + 0x10], ecx
mov esi, dword [edi]
test esi, esi
je 0x46251b
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
push 0
mov edx, 0x400000
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
cmp esi, edx
push eax
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call ebp
mov ecx, dword [esp + 0x18]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x46250e
test ecx, ecx
je 0x46251b
test esi, esi
je 0x46251b
mov ecx, dword [esp + 0x10]
jmp 0x4624d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x462800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov eax, dword [0x624500]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x62bf00], ecx
inc eax
cmp eax, 0x100
jb 0x462814
cmp eax, 0x800
jae 0x4628e3
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x62bb00]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x62bf00]
mov dword [eax*4 + 0x62bf00], edx
inc eax
cmp eax, 0x800
jb 0x4628c0
lea ecx, [esp + 0x14]
mov dword [0x62dfec], 0x4635b0
call fcn.004636c0
test eax, eax
je 0x46298f
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov ebp, dword [esp + 0x1c]
mov esi, edi
shr esi, 8
mov eax, 0x6251f8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x18]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x20]
jne 0x462939
cmp dword [eax - 4], ebp
jne 0x462939
cmp dword [eax], ebx
je 0x462948
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x462923
or ecx, 0xffffffff
sub ecx, 0
je 0x462976
sub ecx, 1
je 0x462965
sub ecx, 1
jne 0x46298f
cmp esi, 6
jb 0x46298f
jne 0x462985
cmp edi, 0xf
jb 0x46298f
jmp 0x462985
cmp esi, 5
jb 0x46298f
jne 0x462985
cmp edi, 6
jb 0x46298f
cmp edi, 0xa
jmp 0x462983
cmp esi, 6
jb 0x46298f
jne 0x462985
cmp edi, 0x100c
je 0x46298f
mov dword [0x62dfec], 0x463650
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053a175
add esp, 0x2c
ret
Function at 0x4651b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
mov dword [esp + 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4651d1
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push ebx
push ebp
lea ebx, [edx - 4]
or ebp, 0xffffffff
add ebx, ecx
mov dword [esp + 0x14], ebx
nop
lea edx, [edi + ecx]
cmp edx, ebx
jae 0x4651f4
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4651f4
inc edx
cmp edx, ebx
jb 0x4651e7
mov edi, edx
sub edi, ecx
mov ecx, edi
sub ecx, ebp
cmp edx, ebx
jae 0x465300
cmp ecx, 3
jbe 0x465231
xor esi, esi
mov al, byte [edx + 4]
mov ebp, edi
mov dword [esp + 0x18], ebp
test al, al
je 0x46526c
cmp al, 0xff
je 0x46526c
mov ecx, dword [esp + 0x10]
and esi, 3
add esi, esi
mov eax, 1
or esi, 1
add edi, eax
jmp 0x4651e0
dec ecx
shl esi, cl
and esi, 7
je 0x46520b
cmp byte [esi + 0x5fed78], 0
je 0x465258
movzx eax, byte [esi + 0x5fedb8]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x465258
cmp al, 0xff
jne 0x46520b
mov ecx, dword [esp + 0x10]
and esi, 3
add esi, esi
mov ebp, edi
or esi, 1
inc edi
jmp 0x4651e0
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
nop word [eax + eax]
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x4652c9
movzx ebp, byte [esi + 0x5fedb8]
mov ecx, 0x18
shl ebp, 3
mov eax, ebx
sub ecx, ebp
shr eax, cl
test al, al
je 0x4652b6
cmp al, 0xff
jne 0x4652c9
mov ecx, 0x20
mov eax, 1
sub ecx, ebp
shl eax, cl
dec eax
xor eax, ebx
jmp 0x465290
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [esp + 0x14]
shr eax, 8
mov byte [edx + 2], al
mov eax, 5
add edi, eax
jmp 0x4651e0
pop ebp
pop ebx
cmp ecx, 3
jbe 0x465317
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x474b20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x474c2d
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0
push eax
push 0x4736e0
mov dword [ebp - 0x54], esi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x50], 0
je 0x474c2d
xorps xmm0, xmm0
lea eax, [ebp - 0x4c]
push eax
movups xmmword [ebp - 0x4c], xmm0
push esi
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x4c], 0x28
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.00480ae0
lea ecx, [ebp - 0x24]
call fcn.00480b30
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
jne 0x474bea
cmp ebx, edi
jne 0x474bea
cmp esi, eax
jg 0x474bca
cmp ecx, eax
jge 0x474c2d
cmp esi, edx
jg 0x474bea
cmp ecx, edx
jl 0x474bea
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x24]
cmp edi, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
jg 0x474c17
cmp ebx, dword [ebp - 0x14]
jl 0x474c17
cmp esi, edx
jne 0x474c17
cmp ecx, eax
jne 0x474c17
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x24], edi
jg 0x474c2d
cmp ebx, edi
jl 0x474c2d
cmp esi, edx
jne 0x474c2d
cmp ecx, eax
mov eax, 2
je 0x474c32
mov eax, 3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053a175
mov esp, ebp
pop ebp
ret 4

Function at 0x475090
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x4750b5
or esi, 1
push 2
call edi
test ax, ax
jns 0x4750c1
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4750cd
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4750d9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4808e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x480925
cmp byte [ebp + 8], 0
je 0x480919
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x493ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x364], 0
je 0x493b74
cmp dword [ebp + 8], 0x100
mov edi, dword [ebp + 0xc]
jne 0x493b56
cmp di, 0xd
jne 0x493b32
cmp byte [esi + 0x36a], 0
je 0x493b05
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x493b56
cmp byte [esi + 0x36b], 0
jne 0x493b56
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x493b2a
push 0
push 0
push 0
sub esp, 8
mov eax, esp
push esi
mov dword [eax], 0x5d3360
mov dword [eax + 4], 6
call fcn.0047c9e0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x493b56
push 0
push 0
push edi
sub esp, 8
mov eax, esp
push esi
mov dword [eax], str.keydown
mov dword [eax + 4], 7
call fcn.0047c9e0
mov eax, dword [esi + 0x364]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push edi
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
ret 0x10
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x498290
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4982c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4982c4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4983bc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4982e3
cmp dx, 0x5c
jne 0x4982e5
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4982d7
cmp edi, ebx
je 0x498333
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0058cfa0
add esp, 0xc
cmp edi, 0x208
jae 0x4983cc
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00498290
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x498360
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x498350
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x498362
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x498380
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4983bc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053a175
mov esp, ebp
pop ebp
ret
call fcn.0053ae29
int3
Function at 0x498d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x498edc
cmp dword [ebx + 4], 0xffffffff
jne 0x498edc
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498d67
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x498da3
cmp eax, 0x2f
je 0x498da3
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x498d90
mov eax, dword [0x5ff994]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x498dce
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x498de9
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x498de6
cmp edi, 3
je 0x498de6
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x498e2f
cmp edi, 2
jne 0x498e4b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x498e29
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x498e35
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.0053a194
add esp, 4
mov esi, eax
cmp edi, 1
je 0x498e86
cmp edi, 2
je 0x498e86
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x498eb7
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x498eb7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0049be70
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x499550
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x5d5300]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5300]
mov dword [edx + 8], ecx
pop ebp
ret