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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x5ed004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x5f69c0], 0x5cade0
mov dword [0x5f69c8], 0x5cafe4
push 0
mov dword [ebp - 0x10], 0x5f69c0
mov dword [0x5f69dc], 1
mov dword [0x5f69d8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x41100e
lea eax, [ecx + 0x400000]
mov dword [0x5f69d4], ecx
mov dword [0x5f69d0], eax
mov edx, 0x1555
mov eax, dword [0x5f69d8]
mov dword [0x5f69cc], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5f69d8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5f69d8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5f69d8]
add ecx, eax
sub edx, 1
jne 0x410df4
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0x5f69e0
mov dword [ebp - 0x18], 0x5f69e0
mov dword [ebp - 0x1c], 0x5f69e0
mov dword [0x5f69e0], 0x5c9a8c
mov dword [0x5f69e4], edx
mov dword [0x5f69e8], edx
mov byte [ebp - 4], 1
mov dword [0x5f69e0], 0x5c9a28
mov dword [0x5f69ec], edx
mov dword [0x5f69f4], edx
mov dword [0x5f69f0], edx
mov dword [0x5f69f8], 0x40
mov byte [ebp - 4], 2
mov dword [0x5f69f8], 0x80
mov byte [ebp - 4], 5
mov dword [0x5f69fc], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5f6a10
mov dword [ebp - 0x1c], 0x5f6a10
call esi
mov byte [ebp - 4], 7
mov dword [0x5f6a28], 0
mov byte [ebp - 4], 8
push 0x5f6a34
mov dword [ebp - 0x1c], 0x5f6a34
call esi
mov byte [ebp - 4], 9
mov dword [0x5f6a4c], 0x3e8
mov dword [ebp - 0x18], 0x5f6a60
mov dword [ebp - 0x14], 0x5f6a60
mov dword [0x5f6a60], 0x5c9a8c
mov dword [0x5f6a64], 0
mov dword [0x5f6a68], 0
mov byte [ebp - 4], 0xa
mov dword [0x5f6a60], 0x5c9a28
mov dword [0x5f6a6c], 0
mov dword [0x5f6a74], 0
mov dword [0x5f6a70], 0
mov dword [0x5f6a78], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x5f6a78], 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 [0x5f6a54], 0x3e80
mov dword [0x5f6a58], 1
mov dword [0x5f6a5c], 0
lea eax, [eax*2 + 2]
mov dword [0x5f6a50], eax
mov byte [ebp - 4], 0xe
push 0x5f6a7c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x5f6a94
call fcn.0040fdc0
mov byte [ebp - 4], 0x10
mov dword [0x5f6a00], 0
mov dword [0x5f6abc], 0
movsd xmm0, qword [0x5cb710]
movsd qword [0x5f6a08], xmm0
xorps xmm0, xmm0
mov dword [0x5f6ac0], 0
mov dword [0x5f6ac4], 0
mov dword [0x5f6ac8], 0
mov dword [0x5f6a04], 0
movq qword [0x5f6a2c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x5f69c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0056b5c8
int3
Function at 0x411ab0
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 0x411acf
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 0x411ba5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x411ba5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x411b9c
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 0x411b80
cmp edi, 1
jne 0x411b45
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x411b97
cmp edi, 2
jne 0x411b58
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x411b97
cmp edi, 4
jne 0x411b69
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x411b97
cmp edi, 8
jne 0x411b80
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 0x411b97
test edi, edi
jle 0x411b97
push edi
mov ecx, esi
call fcn.004139c0
push edi
push ebx
push eax
call fcn.00567e30
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 0x411ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5f69d8]
jg 0x411f1b
push 0x5f69dc
call fcn.00414380
mov ecx, dword [0x5f69d4]
add esp, 4
test ecx, ecx
je 0x411f0d
mov eax, dword [ecx]
mov dword [0x5f69d4], eax
mov dword [0x5f69dc], 1
test ecx, ecx
jne 0x411f31
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 0x411f38
mov eax, ecx
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.0056b5c8
int3

Function at 0x411fa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5f69cc]
jb 0x412014
cmp esi, dword [0x5f69d0]
jae 0x412014
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x5f69d8]
jle 0x412029
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 0x41202d
push dword [0x5f69d8]
push esi
push edi
call fcn.00567e30
push 0x5f69dc
call fcn.00414380
mov eax, dword [0x5f69d4]
add esp, 0x10
mov dword [esi], eax
mov dword [0x5f69d4], esi
mov esi, edi
mov dword [0x5f69dc], 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 0x41200d
push 0xffffffffffffffff
call fcn.0056b5c8
int3
Function at 0x412b30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586145
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x5ed004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x412cfa
cmp word [esi], 0
je 0x412cfa
lea ecx, [ebp - 0x38]
call fcn.00404e80
mov dword [ebp - 4], 0
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x412cd3
cmp word [esi + 2], 0
je 0x412be2
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b94
sub ecx, edi
mov eax, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x412be2
cmp word [esi + ecx*2 - 4], 0x3a
je 0x412be2
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00415580
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x412bdf
cmp dword [ebp - 0x14], esi
jne 0x412bdc
movzx eax, word [0x5c799c]
mov esi, 0x5c799c
jmp 0x412be2
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi]
movzx eax, ax
test ax, ax
je 0x412cd3
cmp eax, 0x5c
jne 0x412bfe
cmp word [esi + 2], 0
je 0x412cd3
cmp word [esi + 2], 0x3a
jne 0x412c22
movzx eax, word [esi + 4]
test ax, ax
je 0x412cd3
cmp eax, 0x5c
jne 0x412c22
cmp word [esi + 6], 0
je 0x412cd3
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x412cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x412cd3
cmp eax, 3
jne 0x412ccf
push 0x5c
push esi
call fcn.0056761a
mov edx, eax
add esp, 8
test edx, edx
je 0x412ccf
cmp word [edx + 2], 0
jne 0x412c81
sub edx, 2
cmp edx, esi
jb 0x412ccf
nop
cmp word [edx], 0x5c
je 0x412c81
sub edx, 2
cmp edx, esi
jae 0x412c70
xor esi, esi
jmp 0x412cd8
lea ecx, [ebp - 0x64]
call fcn.00404e80
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.00415580
lea ecx, [ebp - 0x64]
call fcn.00415260
mov ecx, eax
call fcn.00412b30
test eax, eax
je 0x412cc3
push 0
push esi
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004042f0
jmp 0x412cd8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004042f0
xor esi, esi
jmp 0x412cd8
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004042f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58618d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x5ed004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x412e6c
cmp word [esi], 0
je 0x412e6c
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00568930
or dword [ebp - 0x50], 1
xor eax, eax
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
push esi
call fcn.00413ab0
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 0x412dd9
xor esi, esi
jmp 0x412dfc
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 0x412e37
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWConstString.virtual_12
jne 0x412e32
mov ecx, 0x5f69c8
call fcn.00414550
jmp 0x412e37
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 0x412e80
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5861c0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5ed004]
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
test esi, esi
je 0x412fef
cmp word [esi], 0
je 0x412fef
lea ecx, [ebp - 0x244]
call fcn.00404e80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x412ef7
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x412f30
test ax, ax
je 0x412f62
cmp word [esi + 2], 0x3a
jne 0x412f62
cmp word [esi + 4], 0x5c
jne 0x412f62
push 0x5c
push esi
call fcn.0056761a
add esp, 8
test eax, eax
je 0x412f62
cmp eax, esi
jbe 0x412f4e
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.00415580
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x412f85
cmp dword [ebp - 0x220], edi
jne 0x412f7b
mov edi, 0x5c799c
jmp 0x412f85
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x412fd0
cmp word [edi], 0
je 0x412fd0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x412fd0
cmp word [edi], 0
je 0x412fae
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x412fd9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x412fd9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.004042f0
mov eax, esi
jmp 0x412ff1
xor eax, eax
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.00565da9
mov esp, ebp
pop ebp
ret
Function at 0x413c90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58628d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5ed004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x30], vtable.CVolObject.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x14]
mov esi, dword [ebp - 0x18]
lea edi, [eax*4 + 6]
mov eax, edi
cdq
idiv esi
mov eax, dword [ebp - 0x30]
sub esi, edx
add esi, edi
push esi
mov eax, dword [eax]
cmp eax, method.CWConstString.virtual_0
jne 0x413d44
mov ecx, 0x5f69c8
call fcn.00414460
mov dword [ebp - 0x10], eax
test eax, eax
je 0x413e62
jmp 0x413d4c
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov esi, eax
mov dword [ebp - 0x24], eax
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebx + 0xc]
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
jle 0x413d94
nop dword [eax]
movzx eax, byte [edi]
push eax
push 0x5cafb4
push esi
call fcn.004124f0
mov eax, dword [ebp - 0x14]
lea edi, [edi + 1]
inc ebx
add esp, 0xc
add esi, 4
cmp ebx, dword [eax + 0x14]
jl 0x413d70
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x413dab
cmp dword [edi + 0x24], ecx
mov ecx, 0x5c799c
je 0x413dab
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
je 0x413dee
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x413dca
mov eax, dword [edi + 0x10]
push ecx
lea ecx, [edi + 0x10]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
cmp word [eax], 0
je 0x413dee
push eax
lea ecx, [edi + 0x10]
call fcn.00413ab0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x413e29
mov eax, dword [ebp - 0x30]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWConstString.virtual_12
jne 0x413e24
mov ecx, 0x5f69c8
call fcn.00414550
jmp 0x413e29
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [ebp - 0x30], vtable.CVolObject.0
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
push 0xffffffffffffffff
call fcn.0056b5c8
int3
Function at 0x41f037
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 0x41f07c
call fcn.00427ceb
push 0xf0
push dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f079
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f0c1
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 0x41f0a0
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push edi
call dword [0x5959e4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov edi, dword [edi + 0x70]
test edi, edi
je 0x41f0be
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5959e4]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x422c88
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 0x422cdb
push esi
push dword [ebp + 8]
call fcn.00422e77
mov edi, eax
test edi, edi
je 0x422cd6
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 0x422cd6
mov eax, dword [ebp - 8]
jmp 0x422ced
mov eax, dword [ebp + 0x10]
jmp 0x422ced
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 0x422cf3
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ede
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.00566620
mov eax, dword [0x5ed004]
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 0x422e2a
push 0
push edx
call fcn.00422e77
mov ebx, eax
test ebx, ebx
jne 0x422d5b
push esi
jmp 0x422e52
call fcn.004277e9
push eax
lea ecx, [ebp - 0x2014]
call fcn.0041cb4f
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 0x422de9
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0041dc0c
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.00422fb3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x422e17
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.0041d136
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00416850
jmp 0x422e59
push esi
mov ecx, edi
call fcn.0041cb88
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x422e10
test esi, esi
jne 0x422e33
mov esi, 0x5c799c
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.0041cb88
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.00565da9
leave
ret 0x10
Function at 0x429f20
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 0x429f5f
call fcn.00427ceb
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429f5f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429f67
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00482d65
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42a958
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 0x42a9e4
cmp dword [esi + 0x20], 0
je 0x42a9e4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42a9e4
cmp dword [ebp + 8], 0
je 0x42a9e4
xor edi, edi
mov ebx, edi
call fcn.00427ceb
push 0x597ec0
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 0x42a9c8
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 0x42a9e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00483818
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42a9e0
mov ecx, esi
call fcn.0042a6fa
mov eax, edi
jmp 0x42a9e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x439e4c
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 0x439e65
call fcn.00427ceb
mov esi, dword [eax + 0xc]
push 0x598b58
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x439ea7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x439ea7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x439ea7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00439eb0
jmp 0x439ea9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44e724
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ed004]
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 0x44e753
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x44e780
cmp dword [0x5f3f7c], 0
jne 0x44e780
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x44e77c
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x44e77c
push esi
call fcn.005735db
pop ecx
jmp 0x44e7f3
mov eax, esi
jmp 0x44e7f3
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00568930
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44e803
call fcn.00421ac0
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.00565da9
leave
ret 4
call fcn.00426872
int3