joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508791
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x52e8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004b4670
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b78f6
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.004baa20
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.004baac0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004b4670
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004baac0
push eax
mov ecx, dword [ebp + 8]
call fcn.00470dd0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004baa60
mov eax, dword [ebp + 8]
jmp 0x4b7915
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00470e20
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4b7d10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508881
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x52e8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b7db8
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.004baa20
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.004baac0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004baac0
push eax
mov ecx, dword [ebp + 8]
call fcn.00470dd0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004baa60
mov eax, dword [ebp + 8]
jmp 0x4b7dd3
mov ecx, dword [ebp + 8]
call fcn.00483db0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b8790
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508af1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x52e8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.004baa20
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.004baac0
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004baac0
push eax
mov ecx, dword [ebp + 8]
call fcn.00470dd0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004baa60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d28f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d28ff
mov eax, dword [eax + 4]
jmp 0x4d2902
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d298b
push esi
mov esi, dword [0x5456b0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4d2970
cmp eax, 3
je 0x4d2970
cmp eax, 0x7b
je 0x4d2970
cmp eax, 0x57
je 0x4d2970
cmp eax, 0xa1
je 0x4d2970
cmp eax, 0x35
je 0x4d2970
cmp eax, 0x20
jne 0x4d2965
mov eax, dword [0x5456b4]
mov dword [ecx], eax
mov edx, dword [0x5456b8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x5456b4]
mov dword [ecx], eax
mov edx, dword [0x5456b8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x5456b4]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x5456b8]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4d29b8
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x4d29d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d29df
mov eax, dword [eax + 4]
jmp 0x4d29e2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d2a6b
push esi
mov esi, dword [0x5456b0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4d2a50
cmp eax, 3
je 0x4d2a50
cmp eax, 0x7b
je 0x4d2a50
cmp eax, 0x57
je 0x4d2a50
cmp eax, 0xa1
je 0x4d2a50
cmp eax, 0x35
je 0x4d2a50
cmp eax, 0x20
jne 0x4d2a45
mov eax, dword [0x5456b4]
mov dword [ecx], eax
mov edx, dword [0x5456b8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x5456b4]
mov dword [ecx], eax
mov edx, dword [0x5456b8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x5456b4]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x5456b8]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4d2a98
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x4d94a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52e8a0]
jne 0x4d94ac
repz ret
jmp fcn.004e46dc
Function at 0x4e4d3f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x52f220]
je 0x4e4d5a
inc edi
cmp edi, 0x17
jb 0x4e4d4b
cmp edi, 0x17
jae 0x4e4eda
push ebp
push 3
call fcn.004f21fe
cmp eax, 1
pop ecx
je 0x4e4ea6
push 3
call fcn.004f21fe
test eax, eax
pop ecx
jne 0x4e4d8e
cmp dword [0x52e960], 1
je 0x4e4ea6
cmp ebx, 0xfc
je 0x4e4ed9
push 0x53309c
mov ebx, 0x314
push ebx
mov ebp, 0x545b38
push ebp
call fcn.004d864a
add esp, 0xc
test eax, eax
je 0x4e4dc4
push esi
push esi
push esi
push esi
push esi
call fcn.004d9d7c
add esp, 0x14
push 0x104
mov esi, 0x545b51
push esi
push 0
mov byte [0x545c55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e4e08
push 0x533084
push 0x2fb
push esi
call fcn.004d864a
add esp, 0xc
test eax, eax
je 0x4e4e08
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004d9d7c
add esp, 0x14
push esi
call fcn.004d8e70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4e4e4d
push esi
call fcn.004d8e70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x545e4c
push 0x533080
sub ecx, eax
push ecx
push eax
call fcn.004d94b1
add esp, 0x14
test eax, eax
je 0x4e4e4d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004d9d7c
add esp, 0x14
jmp 0x4e4e4f
xor esi, esi
push 0x5318f8
push ebx
push ebp
call fcn.004d85d9
add esp, 0xc
test eax, eax
je 0x4e4e6f
push esi
push esi
push esi
push esi
push esi
call fcn.004d9d7c
add esp, 0x14
push dword [edi*8 + 0x52f224]
push ebx
push ebp
call fcn.004d85d9
add esp, 0xc
test eax, eax
je 0x4e4e91
push esi
push esi
push esi
push esi
push esi
call fcn.004d9d7c
add esp, 0x14
push 0x12010
push 0x533058
push ebp
call fcn.004f2041
add esp, 0xc
jmp 0x4e4ed9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4e4ed9
cmp ebp, 0xffffffff
je 0x4e4ed9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x52f224]
push dword [esi]
call fcn.004d8e70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4f2041
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004e3f1a
xor ebx, ebx
cmp dword [0x5461e0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4f2117
push 0x534888
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4f21f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53487c
push edi
call esi
cmp eax, ebx
je 0x4f21f7
push eax
call fcn.004e3eac
mov dword [esp], 0x53486c
push edi
mov dword [0x5461e0], eax
call esi
push eax
call fcn.004e3eac
mov dword [esp], 0x534858
push edi
mov dword [0x5461e4], eax
call esi
push eax
call fcn.004e3eac
mov dword [0x5461e8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004ddbbf
test eax, eax
pop ecx
pop ecx
je 0x4f20e5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004d9d7c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4f2117
push 0x53483c
push edi
call esi
push eax
call fcn.004e3eac
cmp eax, ebx
pop ecx
mov dword [0x5461f0], eax
je 0x4f2117
push 0x534824
push edi
call esi
push eax
call fcn.004e3eac
pop ecx
mov dword [0x5461ec], eax
mov eax, dword [0x5461ec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4f219c
cmp dword [0x5461f0], ecx
je 0x4f219c
push eax
call fcn.004e3f23
push dword [0x5461f0]
mov esi, eax
call fcn.004e3f23
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4f219c
cmp edi, ebx
je 0x4f219c
call esi
cmp eax, ebx
je 0x4f2169
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f2169
test byte [ebp - 0x18], 1
jne 0x4f219c
lea eax, [ebp - 0x10]
push eax
call fcn.004ddc6e
test eax, eax
pop ecx
je 0x4f2184
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004d9d7c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4f2193
or dword [ebp + 0x10], 0x200000
jmp 0x4f21d7
or dword [ebp + 0x10], 0x40000
jmp 0x4f21d7
mov eax, dword [0x5461e4]
cmp eax, dword [ebp - 8]
je 0x4f21d7
push eax
call fcn.004e3f23
cmp eax, ebx
pop ecx
je 0x4f21d7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4f21d7
mov eax, dword [0x5461e8]
cmp eax, dword [ebp - 8]
je 0x4f21d7
push eax
call fcn.004e3f23
cmp eax, ebx
pop ecx
je 0x4f21d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5461e0]
call fcn.004e3f23
cmp eax, ebx
pop ecx
je 0x4f21f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f21f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ff2ea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4ff36f
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004da430
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4ff332
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4ff354
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4ff3ca
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004ff03a
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4ff3b6
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4ff3ca
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4ff2f3
pop esi
pop ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401c66
pop dword [ebp - 0x14]
mov eax, 0x401c66
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xd4f92122
sub dword [ebp - 0x24], 0x86a6dbd7
mov dword [ebp - 0x20], 0x265fdf04
sub dword [ebp - 0x20], 0xf42c92bf
mov dword [ebp - 0x1c], 0x782953f9
add dword [ebp - 0x1c], 0xd422f035
mov dword [ebp - 0x18], 0xf62f3f9e
sub dword [ebp - 0x18], 0xf62f3f9e
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x443a0a5
sub dword [ebp - 0x24], 0x8fd1374f
mov dword [ebp - 0x20], 0xf24e2d5
sub dword [ebp - 0x20], 0xcdb88160
mov dword [ebp - 0x1c], 0x463e78d1
add dword [ebp - 0x1c], 0x1d30f39b
mov dword [ebp - 0x18], 0x8371078a
add dword [ebp - 0x18], 0x7c8ef876
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x350b2343
sub eax, 0x34caf317
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3aaa6
push 0
call eax
mov ecx, 0x4155a01d
sub ecx, 0x41554760
mov ebx, eax
mov edx, 0xb9bd8a58
sub edx, 0xb97d1a58
add edx, dword [ebp - 0x14]
mov edi, 0xca5a6bd7
sub edi, 0x69f2f686
add dword [ebp - 0x10], eax
mov esi, dword [edx]
xor dword [ebp - 0xc], edi
add esi, edi
add dword [ebp - 0x10], ecx
mov dword [ebx], esi
sub dword [ebp - 0xc], 0x41724c1
add ebx, 0xfa9b83bd
sub ebx, 0xfa9b83b9
add edx, 4
loop 0x401d7e
add eax, 0xe8c08b76
sub eax, 0xe8bf35af
mov ebx, eax
add eax, 0x45aeea1
add eax, 0xfba51164
mov ecx, 0xed52a354
sub ecx, 0xed12a354
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x402830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402847
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402878
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402874
cmp esi, eax
jae 0x402878
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402864
cmp esi, eax
jb 0x40287e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408320
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x49fab1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x4c], esi
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.004784f0
mov dword [esp + 0x4c], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push esi
mov dword [esp + 0x24], 1
call edi
mov esi, eax
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047c76b
add esp, 4
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x28], ebx
call edi
mov ebp, eax
xor esi, esi
test ebp, ebp
jbe 0x40846c
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov dword [esp + 0x4c], 1
cmp esi, ebp
jae 0x40846c
movzx eax, word [ebx + esi*2]
test ax, ax
je 0x4083fd
movzx eax, ax
push eax
mov eax, 1
lea edi, [esp + 0x28]
call fcn.00408a80
inc esi
cmp esi, ebp
jb 0x4083db
jmp 0x4083fe
inc esi
cmp dword [esp + 0x38], 0
je 0x408458
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x408418
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x408436
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
call fcn.0040e910
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x3c], edi
jb 0x40844e
mov edx, dword [esp + 0x28]
push edx
call fcn.0047ceda
add esp, 4
cmp esi, ebp
jb 0x4083b4
jmp 0x40846c
cmp dword [esp + 0x3c], 8
jb 0x40846c
mov eax, dword [esp + 0x28]
push eax
call fcn.0047ceda
add esp, 4
push ebx
call fcn.0047d358
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0047cee5
add esp, 0x3c
ret
Function at 0x408820
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 8]
add edi, 0xfffff6a0
jns 0x40885c
mov ecx, dword [esi + 0x470]
sub ecx, dword [esi + 0x46c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jae 0x4088c4
mov ecx, dword [esi + 0x470]
sub ecx, dword [esi + 0x46c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408884
call fcn.0047d0a2
mov edx, dword [esi + 0x46c]
lea ecx, [edi*8]
sub ecx, edi
cmp dword [edx + ecx*4 + 0x18], 8
lea eax, [edx + ecx*4]
jb 0x4088a2
mov eax, dword [eax + 4]
jmp 0x4088a5
add eax, 4
movzx edi, word [eax]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
movzx ecx, di
push ecx
push 0x464
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
ret 4

Function at 0x40c350
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x3dc], ebp
je 0x40c374
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x3dc], ebp
mov edi, dword [esi + 0x3d0]
cmp edi, ebp
je 0x40c483
call fcn.00402730
mov ebx, eax
mov edi, 1
cmp ebx, ebp
je 0x40c42f
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
push 2
push ebp
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
mov ecx, ebx
call edx
test eax, eax
je 0x40c3b6
mov eax, esi
call fcn.0040c270
mov eax, dword [esi + 0x3d0]
cmp eax, dword [esi + 0x3cc]
je 0x40c3cc
cmp dword [ebx + 0xac], ebp
je 0x40c42f
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov dword [ebx + 0xfc], ebp
movzx ecx, word [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x3c]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0x202
push ebp
mov ecx, ebx
mov dword [esp + 0x28], ebp
call edx
mov eax, dword [ebx + 0xa0]
cmp eax, ebp
je 0x40c420
cmp word [eax], bp
je 0x40c420
push edi
push ebp
push ebp
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c42f
mov eax, dword [ebx + 0x14]
cmp eax, ebp
je 0x40c42f
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esi + 0x3d0], ebp
cmp dword [esp + 0xc], ebp
je 0x40c483
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov ecx, dword [esi + 4]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x40c490
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
xor edi, edi
call esi
test al, al
js 0x40c4ad
push 0xa1
call esi
test al, al
jns 0x40c4b2
mov edi, 4
push 0x11
call esi
test al, al
js 0x40c4c2
push 0x11
call esi
test al, al
jns 0x40c4c5
or edi, 8
push 1
call esi
test al, al
js 0x40c4d5
push 1
call esi
test al, al
jns 0x40c4d8
or edi, 1
push 2
call esi
test al, al
js 0x40c4e8
push 2
call esi
test al, al
jns 0x40c4eb
or edi, 2
push 4
call esi
test al, al
js 0x40c4fb
push 0x10
call esi
test al, al
jns 0x40c4fe
or edi, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push edi
call fcn.0040c350
pop edi
mov eax, 1
pop esi
ret 0xc

Function at 0x40eaa0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40eaf4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40eaea
cmp ebx, 0x1b
jne 0x40ead6
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
jmp 0x40eae8
cmp ebx, 0xd
jne 0x40eaea
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call edi
mov dword [esi + 0x454], 0
cmp dword [esi + 4], 0
je 0x40eb16
movzx eax, word [esp + 0xc]
movzx ecx, word [esp + 8]
mov edx, dword [esi + 0x30]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push pe_nt_image_headers32
push edx
call edi
pop edi
ret 8