joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418790
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cffb
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x7bf004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x7c89b0], 0x5d315c
mov dword [0x7c89b8], 0x5d3374
push 0
mov dword [ebp - 0x10], 0x7c89b0
mov dword [0x7c89cc], 1
mov dword [0x7c89c8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x418a3e
lea eax, [ecx + 0x400000]
mov dword [0x7c89c4], ecx
mov dword [0x7c89c0], eax
mov edx, 0x1555
mov eax, dword [0x7c89c8]
mov dword [0x7c89bc], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x7c89c8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x7c89c8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x7c89c8]
add ecx, eax
sub edx, 1
jne 0x418824
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0x7c89d0
mov dword [ebp - 0x18], 0x7c89d0
mov dword [ebp - 0x1c], 0x7c89d0
mov dword [0x7c89d0], 0x5d2030
mov dword [0x7c89d4], edx
mov dword [0x7c89d8], edx
mov byte [ebp - 4], 1
mov dword [0x7c89d0], 0x5d1f74
mov dword [0x7c89dc], edx
mov dword [0x7c89e4], edx
mov dword [0x7c89e0], edx
mov dword [0x7c89e8], 0x40
mov byte [ebp - 4], 2
mov dword [0x7c89e8], 0x80
mov byte [ebp - 4], 5
mov dword [0x7c89ec], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x7c8a00
mov dword [ebp - 0x1c], 0x7c8a00
call esi
mov byte [ebp - 4], 7
mov dword [0x7c8a18], 0
mov byte [ebp - 4], 8
push 0x7c8a24
mov dword [ebp - 0x1c], 0x7c8a24
call esi
mov byte [ebp - 4], 9
mov dword [0x7c8a3c], 0x3e8
mov dword [ebp - 0x18], 0x7c8a50
mov dword [ebp - 0x14], 0x7c8a50
mov dword [0x7c8a50], 0x5d2030
mov dword [0x7c8a54], 0
mov dword [0x7c8a58], 0
mov byte [ebp - 4], 0xa
mov dword [0x7c8a50], 0x5d1f74
mov dword [0x7c8a5c], 0
mov dword [0x7c8a64], 0
mov dword [0x7c8a60], 0
mov dword [0x7c8a68], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x7c8a68], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
mov dword [0x7c8a44], 0x3e80
mov dword [0x7c8a48], 1
mov dword [0x7c8a4c], 0
lea eax, [eax*2 + 2]
mov dword [0x7c8a40], eax
mov byte [ebp - 4], 0xe
push 0x7c8a6c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x7c8a84
call fcn.00418040
mov byte [ebp - 4], 0x10
mov dword [0x7c89f0], 0
mov dword [0x7c8aac], 0
movsd xmm0, qword [0x79ce38]
movsd qword [0x7c89f8], xmm0
xorps xmm0, xmm0
mov dword [0x7c8ab0], 0
mov dword [0x7c8ab4], 0
mov dword [0x7c8ab8], 0
mov dword [0x7c89f4], 0
movq qword [0x7c8a1c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x7c89b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00571c98
int3
Function at 0x4194e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x4194ff
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4195d5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4195d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4195cc
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x4195b0
cmp edi, 1
jne 0x419575
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x4195c7
cmp edi, 2
jne 0x419588
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x4195c7
cmp edi, 4
jne 0x419599
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x4195c7
cmp edi, 8
jne 0x4195b0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x4195c7
test edi, edi
jle 0x4195c7
push edi
mov ecx, esi
call fcn.0041c3d0
push edi
push ebx
push eax
call fcn.0056e3e0
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x419910
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x7c89c8]
jg 0x41994b
push 0x7c89cc
call fcn.0041cb70
mov ecx, dword [0x7c89c4]
add esp, 4
test ecx, ecx
je 0x41993d
mov eax, dword [ecx]
mov dword [0x7c89c4], eax
mov dword [0x7c89cc], 1
test ecx, ecx
jne 0x419961
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x419968
mov eax, ecx
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.00571c98
int3

Function at 0x4199d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x7c89bc]
jb 0x419a44
cmp esi, dword [0x7c89c0]
jae 0x419a44
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x7c89c8]
jle 0x419a59
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x419a5d
push dword [0x7c89c8]
push esi
push edi
call fcn.0056e3e0
push 0x7c89cc
call fcn.0041cb70
mov eax, dword [0x7c89c4]
add esp, 0x10
mov dword [esi], eax
mov dword [0x7c89c4], esi
mov esi, edi
mov dword [0x7c89cc], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x419a3d
push 0xffffffffffffffff
call fcn.00571c98
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a0ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x7bf004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
test edx, edx
je 0x41a011
cmp word [edx], 0
je 0x41a011
lea ecx, [ebp - 0x38]
call fcn.004097a0
mov dword [ebp - 4], 0
cmp word [edx], 0
je 0x419fe0
cmp word [edx + 2], 0
je 0x419fe0
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419fa0
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x419fe0
cmp word [edx + ecx*2 - 4], 0x3a
je 0x419fe0
lea eax, [ecx - 1]
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.0041dc30
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x419fe0
cmp dword [ebp - 0x14], 0
mov edx, 0x5d007c
cmovne edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00408e20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d2dd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x7bf004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x41a1c2
cmp word [ecx], 0
je 0x41a1c2
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x7c], 0x44
test eax, eax
js 0x41a0a9
or dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041c480
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41a12f
xor esi, esi
jmp 0x41a152
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41a18d
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolMem.virtual_12
jne 0x41a188
mov ecx, 0x7c89b8
call fcn.0041cd40
jmp 0x41a18d
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x425309
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, ecx
push edi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x42534e
call fcn.0042dfe1
push 0xf0
push dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42534b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x425393
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 8]
push ebx
xor ebx, ebx
inc ebx
test esi, esi
je 0x425372
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push edi
call dword [0x59da0c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov edi, dword [edi + 0x70]
test edi, edi
je 0x425390
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x428f66
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x428fb9
push esi
push dword [ebp + 8]
call fcn.00429155
mov edi, eax
test edi, edi
je 0x428fb4
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x428fb4
mov eax, dword [ebp - 8]
jmp 0x428fcb
mov eax, dword [ebp + 0x10]
jmp 0x428fcb
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x428fd1
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dd5f
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.0056cd40
mov eax, dword [0x7bf004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
je 0x429108
push 0
push edx
call fcn.00429155
mov ebx, eax
test ebx, ebx
jne 0x429039
push esi
jmp 0x429130
call fcn.0042dad5
push eax
lea ecx, [ebp - 0x2014]
call fcn.00422e12
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x4290c7
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00423ecf
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.00429291
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x4290f5
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.004233f9
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0041ea50
jmp 0x429137
push esi
mov ecx, edi
call fcn.00422e4b
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x4290ee
test esi, esi
jne 0x429111
mov esi, 0x5d007c
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00422e4b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056c4d0
leave
ret 0x10
Function at 0x430234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x430273
call fcn.0042dfe1
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430273
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43027b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0048921f
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x430c71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x430cfd
cmp dword [esi + 0x20], 0
je 0x430cfd
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x430cfd
cmp dword [ebp + 8], 0
je 0x430cfd
xor edi, edi
mov ebx, edi
call fcn.0042dfe1
push 0x59fef8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x430ce1
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x430cfd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00489ce6
mov edi, eax
add esp, 0xc
test edi, edi
je 0x430cf9
mov ecx, esi
call fcn.00430a13
mov eax, edi
jmp 0x430cff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4401b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4401ce
call fcn.0042dfe1
mov esi, dword [eax + 0xc]
push 0x5a0b8c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x440210
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x440210
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x440210
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00440219
jmp 0x440212
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x454ac9
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x7bf004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x454af8
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x454b25
cmp dword [0x7c5f24], 0
jne 0x454b25
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x454b21
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x454b21
push esi
call fcn.0057979b
pop ecx
jmp 0x454b98
mov eax, esi
jmp 0x454b98
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0056eee0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x454ba8
call fcn.00427d97
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056c4d0
leave
ret 4
call fcn.0042cb59
int3
Function at 0x46455d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x590802
call fcn.0056cc09
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x46465f
cmp edi, dword [ebx + 0xc]
jge 0x46465f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4645b4
cmp edi, dword [esi + 8]
jl 0x46464d
cmp dword [ebp + 0xc], 0
je 0x46464d
xor edi, edi
jmp 0x4645e6
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0046403c
mov esi, eax
test esi, esi
je 0x4645ce
mov dword [esi], vtable.CThreadData.0
jmp 0x4645d0
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [esi + ecx], eax
mov dword [ebx + 0x14], esi
cmp dword [esi + 0xc], edi
jne 0x464601
push 4
push dword [ebx + 0xc]
call fcn.0042d969
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x464619
push 2
push 4
push dword [ebx + 0xc]
call fcn.0042d969
pop ecx
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x464686
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0056eee0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x46465f
cmp edi, dword [esi + 8]
jge 0x46465f
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0056cb67
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042cb73
int3

Function at 0x465083
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x58dbe4
call fcn.0056cb9e
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4650a9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x465109
call fcn.0042dad5
push eax
lea ecx, [ebp - 0x10]
call fcn.00422e12
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x59da0c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00578bae
push eax
call fcn.00423214
add esp, 0x14
test esi, esi
je 0x4650fc
push esi
call fcn.00578344
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041ea50
mov eax, ebx
call fcn.0056cb67
ret 8
Function at 0x474ec8
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x5913a5
call fcn.0056cbd2
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x47508f
test ebx, ebx
je 0x47508f
lea ecx, [ebp - 0x268]
mov esi, 0x104
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x474f38
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp - 0x264]
call fcn.00578bae
push eax
call fcn.00423214
add esp, 0x14
push ebx
push edi
call fcn.00474e85
xor eax, eax
call fcn.0056cb7c
ret 0xc
cmp eax, esi
jb 0x474f5a
test edi, edi
je 0x474f2e
push ebx
mov dword [edi + 8], 3
call fcn.00578344
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.00424414
jmp 0x474f2e
call fcn.0042dad5
push eax
lea ecx, [ebp - 0x26c]
call fcn.00422e12
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call fcn.004747f1
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x47505a
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x474fca
push ebx
push edi
call fcn.00474e85
lea ecx, [esi - 0x10]
call fcn.0041ea50
jmp 0x474f2e
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x474fe6
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x47505a
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x47505a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x474fb6
cmp eax, dword [ebp - 0x264]
jbe 0x474fb6
lea eax, [ebp - 0x234]
push eax
call fcn.00578344
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x47506a
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.00578bb9
push eax
call fcn.00423214
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.0041ea50
xor eax, eax
inc eax
jmp 0x474f30
test edi, edi
je 0x474fbd
push ebx
mov dword [edi + 8], 3
call fcn.00578344
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.00424414
jmp 0x474fbd
call fcn.0042cb59
int3

Function at 0x48a314
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x48a33f
cmp dword [edi + 0x80], 0
jne 0x48a33f
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0042dfe1
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0048a5b8
pop edi
pop esi
pop ebx
pop ebp
ret 8