joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c7e0
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 + 0x5fed41], 8
je 0x43c821
movzx eax, byte [ecx + 1]
inc ecx
test byte [eax + 0x5fed41], 8
jne 0x43c813
mov al, byte [ecx]
cmp al, 0x2d
jne 0x43c831
inc ecx
mov dword [ebp - 0x14], 1
jmp 0x43c839
cmp al, 0x2b
jne 0x43c836
inc ecx
mov dword [ebp - 0x14], esi
cmp byte [ecx], 0x30
jne 0x43c92d
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x43c851
cmp al, 0x58
jne 0x43c92d
add ecx, 2
lea edx, [ebp - 0x10]
mov dword [ebp - 8], ecx
xorps xmm1, xmm1
lea ecx, [ebp - 8]
call fcn.0043c780
mov edx, dword [ebp - 8]
cmp byte [edx], 0x2e
jne 0x43c882
inc edx
movaps xmm1, xmm0
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
call fcn.0043c780
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
jne 0x43c890
test esi, esi
je 0x43c92d
neg esi
mov dword [edi], edx
mov al, byte [edx]
shl esi, 2
cmp al, 0x70
je 0x43c8a1
cmp al, 0x50
jne 0x43c8fc
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x43c8b5
inc edx
mov dword [ebp - 0x10], 1
jmp 0x43c8bd
cmp al, 0x2b
jne 0x43c8ba
inc edx
mov dword [ebp - 0x10], ecx
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x5fed41], 2
je 0x43c8fe
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 + 0x5fed41], 2
jne 0x43c8d0
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 0x43c90b
xorps xmm0, xmmword [0x605930]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.005a20c2
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 0x43d250
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 0x43d28b
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 0x43d270
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45ec10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5770
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 0x45eca7
cmp dword [ecx], esi
jne 0x45ec9f
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 0x45ecaf
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x45ecaf
cmp dword [ecx], esi
jne 0x45ecaf
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 0x45ece7
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.00539e76
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 0x45ed60
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 0x45ee03
cmp byte [esi + 0x3d], 0
je 0x45ee03
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x45edb9
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 0x45edcb
sub eax, 1
je 0x45edcf
sub eax, 2
je 0x45ee03
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45edec
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00596121
add esp, 0x10
cmp edi, eax
jne 0x45edb9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00539e65
mov esp, ebp
pop ebp
ret
Function at 0x45ef20
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 0x45ef41
xor edi, edi
jmp 0x45efcb
cmp dword [esi + 0x38], 0
je 0x45efb0
cmp byte [esi + 0x3d], 0
je 0x45efb0
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x45ef82
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 0x45ef86
sub eax, 1
je 0x45ef8a
sub eax, 2
je 0x45efb0
xor al, al
jmp 0x45efb2
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45efa7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00596121
add esp, 0x10
cmp edi, eax
jne 0x45ef82
cmp byte [esi + 0x3d], 0
sete al
jmp 0x45efb2
mov al, 1
push dword [esi + 0x4c]
xor edi, edi
test al, al
cmovne edi, esi
call fcn.00596ac4
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 [0x62e73c]
mov dword [esi + 0x40], ecx
mov ecx, dword [0x62e740]
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], 0
xor ecx, ebp
pop esi
call fcn.00539e65
mov esp, ebp
pop ebp
ret
Function at 0x462330
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 0x46239b
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 0x46238e
test ecx, ecx
je 0x46239b
test esi, esi
je 0x46239b
mov ecx, dword [esp + 0x10]
jmp 0x462351
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 0x4623b0
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 0x46241b
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 0x46240e
test ecx, ecx
je 0x46241b
test esi, esi
je 0x46241b
mov ecx, dword [esp + 0x10]
jmp 0x4623d1
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 0x462700
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 + 0x62bf20], ecx
inc eax
cmp eax, 0x100
jb 0x462714
cmp eax, 0x800
jae 0x4627e3
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x62bb20]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x62bf20]
mov dword [eax*4 + 0x62bf20], edx
inc eax
cmp eax, 0x800
jb 0x4627c0
lea ecx, [esp + 0x14]
mov dword [0x62e00c], 0x4634b0
call fcn.004635c0
test eax, eax
je 0x46288f
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 0x462839
cmp dword [eax - 4], ebp
jne 0x462839
cmp dword [eax], ebx
je 0x462848
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x462823
or ecx, 0xffffffff
sub ecx, 0
je 0x462876
sub ecx, 1
je 0x462865
sub ecx, 1
jne 0x46288f
cmp esi, 6
jb 0x46288f
jne 0x462885
cmp edi, 0xf
jb 0x46288f
jmp 0x462885
cmp esi, 5
jb 0x46288f
jne 0x462885
cmp edi, 6
jb 0x46288f
cmp edi, 0xa
jmp 0x462883
cmp esi, 6
jb 0x46288f
jne 0x462885
cmp edi, 0x100c
je 0x46288f
mov dword [0x62e00c], 0x463550
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00539e65
add esp, 0x2c
ret
Function at 0x4650b0
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 0x4650d1
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 0x4650f4
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4650f4
inc edx
cmp edx, ebx
jb 0x4650e7
mov edi, edx
sub edi, ecx
mov ecx, edi
sub ecx, ebp
cmp edx, ebx
jae 0x465200
cmp ecx, 3
jbe 0x465131
xor esi, esi
mov al, byte [edx + 4]
mov ebp, edi
mov dword [esp + 0x18], ebp
test al, al
je 0x46516c
cmp al, 0xff
je 0x46516c
mov ecx, dword [esp + 0x10]
and esi, 3
add esi, esi
mov eax, 1
or esi, 1
add edi, eax
jmp 0x4650e0
dec ecx
shl esi, cl
and esi, 7
je 0x46510b
cmp byte [esi + 0x5fec38], 0
je 0x465158
movzx eax, byte [esi + 0x5fec78]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x465158
cmp al, 0xff
jne 0x46510b
mov ecx, dword [esp + 0x10]
and esi, 3
add esi, esi
mov ebp, edi
or esi, 1
inc edi
jmp 0x4650e0
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 0x4651c9
movzx ebp, byte [esi + 0x5fec78]
mov ecx, 0x18
shl ebp, 3
mov eax, ebx
sub ecx, ebp
shr eax, cl
test al, al
je 0x4651b6
cmp al, 0xff
jne 0x4651c9
mov ecx, 0x20
mov eax, 1
sub ecx, ebp
shl eax, cl
dec eax
xor eax, ebx
jmp 0x465190
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 0x4650e0
pop ebp
pop ebx
cmp ecx, 3
jbe 0x465217
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 0x474a10
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 0x474b1d
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0
push eax
push 0x4735d0
mov dword [ebp - 0x54], esi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x50], 0
je 0x474b1d
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.004809d0
lea ecx, [ebp - 0x24]
call fcn.00480a20
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 0x474ada
cmp ebx, edi
jne 0x474ada
cmp esi, eax
jg 0x474aba
cmp ecx, eax
jge 0x474b1d
cmp esi, edx
jg 0x474ada
cmp ecx, edx
jl 0x474ada
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x24]
cmp edi, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
jg 0x474b07
cmp ebx, dword [ebp - 0x14]
jl 0x474b07
cmp esi, edx
jne 0x474b07
cmp ecx, eax
jne 0x474b07
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x24], edi
jg 0x474b1d
cmp ebx, edi
jl 0x474b1d
cmp esi, edx
jne 0x474b1d
cmp ecx, eax
mov eax, 2
je 0x474b22
mov eax, 3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00539e65
mov esp, ebp
pop ebp
ret 4

Function at 0x474f80
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 0x474fa5
or esi, 1
push 2
call edi
test ax, ax
jns 0x474fb1
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x474fbd
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x474fc9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4807d0
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 0x480815
cmp byte [ebp + 8], 0
je 0x480809
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 0x493dd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x364], 0
je 0x493e84
cmp dword [ebp + 8], 0x100
mov edi, dword [ebp + 0xc]
jne 0x493e66
cmp di, 0xd
jne 0x493e42
cmp byte [esi + 0x36a], 0
je 0x493e15
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x493e66
cmp byte [esi + 0x36b], 0
jne 0x493e66
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x493e3a
push 0
push 0
push 0
sub esp, 8
mov eax, esp
push esi
mov dword [eax], 0x5d33a0
mov dword [eax + 4], 6
call fcn.0047c9b0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x493e66
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.0047c9b0
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 0x498580
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 0x4985b4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4985b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4986ac
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4985d3
cmp dx, 0x5c
jne 0x4985d5
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4985c7
cmp edi, ebx
je 0x498623
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0058cce0
add esp, 0xc
cmp edi, 0x208
jae 0x4986bc
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00498580
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x498650
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 0x498640
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x498652
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 0x498670
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 0x4986ac
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.00539e65
mov esp, ebp
pop ebp
ret
call fcn.0053ab19
int3
Function at 0x499020
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 0x4991cc
cmp dword [ebx + 4], 0xffffffff
jne 0x4991cc
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 0x499057
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x499093
cmp eax, 0x2f
je 0x499093
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x499080
mov eax, dword [0x5ff854]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x4990be
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4990d9
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x4990d6
cmp edi, 3
je 0x4990d6
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 0x49911f
cmp edi, 2
jne 0x49913b
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 0x499119
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x499125
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.00539e84
add esp, 4
mov esi, eax
cmp edi, 1
je 0x499176
cmp edi, 2
je 0x499176
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 0x4991a7
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 0x4991a7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0049c160
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 0x499840
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 + 0x5d5340]
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 + 0x5d5340]
mov dword [edx + 8], ecx
pop ebp
ret