joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test ebx, ebx
je 0x408cae
mov eax, dword [edi + 0xc]
test eax, eax
je 0x408c22
dec eax
je 0x408c17
dec eax
jne 0x408c22
push 0xfffffffffffffff4
jmp 0x408c19
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x408c74
xor esi, esi
test ebx, ebx
jle 0x408c91
mov edi, edi
mov eax, ebx
cmp ebx, 0x4000
jl 0x408c3f
mov eax, 0x4000
mov edx, dword [ebp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 4]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test al, al
je 0x408c99
add esi, 0x4000
sub ebx, 0x4000
cmp esi, dword [ebp + 0xc]
jl 0x408c30
jmp 0x408c95
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x10]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x408c95
mov al, byte [esp + 0xb]
test al, al
jne 0x408caa
cmp byte [edi + 0x14], 0
je 0x408caa
cmp dword [edi + 0xc], 0
jne 0x408caa
call fcn.00405fe0
mov byte [edi + 8], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [ebp + 0xc]
jne 0x408da9
cmp edi, 0x4e20
jle 0x408d9e
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408e1b
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408df7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x408ddb
cmp eax, 3
jne 0x408df7
cmp edi, 0x4e20
jle 0x408df7
push 0x4e20
push ebx
mov ecx, esi
call fcn.00408d80
pop edi
pop esi
pop ebx
pop ebp
ret 8
cmp dword [esi + 0xc], 1
jne 0x408e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x408e11
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4091c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c7898]
push esi
push edi
mov edi, ecx
mov esi, edx
cmp eax, 0xffffffff
jne 0x409211
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4c7898], eax
mov dword [0x4d06a0], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d06a0], edx
je 0x409237
test esi, esi
je 0x409237
cmp word [esi], 0
je 0x409237
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x409240
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40925b
call fcn.00409790
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409270
cmp eax, 3
mov eax, 1
jne 0x409275
mov eax, 2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00486a8b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c7898]
cmp eax, 0xffffffff
jne 0x4096ab
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4c7898], eax
mov dword [0x4d06a0], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d06a0], edx
je 0x4096e3
test esi, esi
je 0x4096e3
cmp word [esi], 0
je 0x4096e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 0xffffffff
setne al
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret

Function at 0x409700
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c7898]
cmp eax, 0xffffffff
jne 0x40974b
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4c7898], eax
mov dword [0x4d06a0], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d06a0], edx
je 0x40977b
test esi, esi
je 0x40977b
cmp word [esi], 0
je 0x40977b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
Function at 0x409790
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c7898]
cmp eax, 0xffffffff
jne 0x4097db
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [0x4c7898], eax
mov dword [0x4d06a0], ecx
xor edx, edx
cmp eax, 2
setne dl
dec edx
test dword [0x4d06a0], edx
je 0x409811
test esi, esi
je 0x409811
cmp word [esi], 0
je 0x409811
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
Function at 0x40db50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 0x24]
lea ecx, [eax + 0x28]
mov edi, 9
xor eax, eax
jmp 0x40db80
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x4cc9d8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4ccdd8]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x4cd1d8]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x4cd5d8]
movzx ebx, byte [ecx + 2]
mov byte [ebp + eax - 0x14], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x4cc9d8]
xor dl, byte [eax + ebx*4 + 0x4ccdd8]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x4cd1d8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4cd5d8]
movzx ebx, byte [ecx + 6]
mov byte [ebp + eax - 0x10], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x4cc9d8]
xor dl, byte [eax + ebx*4 + 0x4ccdd8]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x4cd1d8]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x4cd5d8]
movzx ebx, byte [ecx + 0xa]
mov byte [ebp + eax - 0xc], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x4cc9d8]
xor dl, byte [eax + ebx*4 + 0x4ccdd8]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x4cd1d8]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x4cd5d8]
inc eax
mov byte [ebp + eax - 9], dl
cmp eax, 4
jl 0x40db80
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], edx
mov edx, dword [ebp - 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add ecx, 0x10
add esi, 0x10
dec edi
jne 0x40db71
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 4
Function at 0x417c70
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 3
push 0x40000000
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x417cd9
call fcn.004182f0
test eax, eax
js 0x417cdd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417cc4
call fcn.004182f0
mov bl, 1
test esi, esi
je 0x417ce4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x417c9f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bd60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41bd78
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41bdaa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x41bda6
cmp esi, eax
jae 0x41bdaa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41bd98
cmp esi, eax
jb 0x41bdb0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x41c8c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx]
lea eax, [ebp - 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x41c8e7
call fcn.004182f0
test eax, eax
js 0x41c8f1
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41d3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 8]
push edx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push ecx
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d487
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x41d41f
cmp eax, 2
jne 0x41d487
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
jns 0x41d433
push 0x80070057
call fcn.004170a0
mov ecx, dword [ebx]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or edx, ecx
jge 0x41d44d
mov ecx, ebx
call fcn.00416f90
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
push edi
push edx
lea edi, [ebp - 4]
call fcn.0041d4a0
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41d475
push ecx
push eax
call fcn.004883c5
add esp, 8
test eax, eax
js 0x41d429
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x41d429
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d50e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41d4dd
cmp eax, 2
jne 0x41d4f8
mov eax, dword [ebp - 4]
test esi, esi
je 0x41d508
test eax, eax
je 0x41d503
test al, 1
jne 0x41d4f8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41d508
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41d5d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0460
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov byte [esi], 0
cmp dword [eax - 0xc], 0
je 0x41d69c
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x41d69c
test al, 0x10
je 0x41d69c
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
mov byte [esi], 1
cmp dword [eax - 0xc], 0
jne 0x41d69c
mov ecx, dword [esi + 8]
push ecx
push 0x4a9e90
call fcn.00417b50
xor eax, eax
add esp, 8
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push edx
mov edx, 0x2001f
mov eax, str.SoftwareYuna_SoftwareMessenger_Plus_
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00419630
test eax, eax
jne 0x41d672
mov esi, dword [edi]
lea eax, [ebp - 0x18]
push eax
call fcn.0041e000
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [edi]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x41d691
mov ecx, dword [edi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x41d69c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dd30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fac8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x4cfcc4]
cmp byte [ebx], 0
je 0x41de13
lea eax, [ebp - 0x10]
push eax
call fcn.0041bb70
mov dword [ebp - 4], 0
mov eax, dword [ebx + 8]
push str.VIconPlusLogo
push eax
push str._sIcons_s.ico
lea edi, [ebp - 0x10]
call fcn.00417b50
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dded
mov edx, dword [ebp - 0x10]
push 0x10
push esi
push esi
push 1
push edx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
test edi, edi
je 0x41dded
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ddda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41de13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x41de3b
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc0
add ecx, 0x40
push ecx
push esi
push esi
push 1
push str.VIconPlusLogo
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
jne 0x41de6f
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x41de6d
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xffffffc0
add edx, 0x40
push edx
push esi
push esi
push 1
push 0x6e
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41de80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x41de95
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41df30
mov eax, dword [ebx + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41df30
mov ecx, dword [ebx + 4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41df30
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41df29
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
test eax, eax
je 0x41df29
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41df20
mov edx, dword [ebp - 4]
push edi
push edx
push eax
call fcn.0048a570
mov eax, dword [ebx]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42f3d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
cmp byte [esi + 0xb5], al
push edi
sete al
cmp byte [esi + 0xbc], 0
lea edi, [eax + 0x230202]
je 0x42f407
or edi, 0x100
mov eax, dword [esi + 0xc0]
cmp eax, 1
je 0x42f487
cmp eax, 2
jne 0x42f42e
or edi, 0x20
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0xe9], 0
jne 0x42f480
push 0x114
lea ecx, [ebp - 0x118]
push 0
push ecx
call fcn.0048a470
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x42f48a
cmp dword [ebp - 0x114], 6
jb 0x42f48a
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x42f48a
mov byte [esi + 0xe8], 1
or edi, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 4
Function at 0x4326b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
lea ebx, [eax + 0x70]
push esi
mov dword [ebp - 0x11c], eax
call fcn.0041fcc0
mov al, byte [esi + 0x44]
mov byte [ebx + 0x44], al
mov cl, byte [esi + 0x45]
mov byte [ebx + 0x45], cl
mov dl, byte [esi + 0x46]
mov byte [ebx + 0x46], dl
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
lea eax, [esi + 0x4c]
lea edi, [ebx + 0x4c]
call fcn.00417130
mov ecx, dword [esi + 0x50]
mov esi, dword [ebp - 0x11c]
mov dword [ebx + 0x50], ecx
cmp dword [esi + 0xa0], 0xffffffff
jne 0x4327a6
cmp byte [esi + 0xad], 0
je 0x432730
mov edx, dword [esi + 0x98]
add edx, 0x15
mov dword [esi + 0xa0], edx
jmp 0x43273f
mov eax, dword [esi + 0x98]
add eax, 0xe
mov dword [esi + 0xa0], eax
push 0x114
lea ecx, [ebp - 0x118]
push 0
push ecx
call fcn.0048a470
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4327a6
cmp dword [ebp - 0x114], 6
jb 0x4327a6
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x4327a6
mov eax, 1
add dword [esi + 0xa0], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 4
Function at 0x4331f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [edi], 0
cmp eax, 0x20
je 0x43321b
cmp eax, 8
je 0x43321b
cmp eax, 0x7b
jne 0x433290
mov dword [edi], 1
xor eax, eax
pop ebp
ret 8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor ebx, ebx
call esi
mov ecx, 0x8000
test cx, ax
je 0x433238
mov ebx, 2
push 0x10
call esi
mov edx, 0x8000
test dx, ax
je 0x433249
or ebx, 1
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
je 0x43325a
or ebx, 4
test ebx, ebx
jne 0x433263
mov ebx, 4
movzx ecx, byte [ebp + 0xc]
movzx edx, bl
shl dx, 8
movzx eax, dx
mov edx, dword [ebp + 8]
push 0
or eax, ecx
push eax
mov eax, dword [edx + 4]
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
mov dword [edi], 1
xor eax, eax
pop ebp
ret 8
Function at 0x440c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ff86
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CInterfaceElement::CElementInfo.0
call fcn.0041bb70
lea ecx, [esi + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [esi + 8], 1
call fcn.0041bb70
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov eax, 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], bx
mov byte [esi + 0x2a], bl
push 0x38
mov dword [esi + 0x30], ebx
call fcn.00486d3e
add esp, 4
cmp eax, ebx
je 0x440d11
mov dword [esi + 0x2c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.00488262
push 0x4b9970
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.0048a3a0
int3

Function at 0x4422e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0eb3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 4], bx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
or eax, 0xffffffff
mov dword [esi], vtable.CInterfaceImageElmt.0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
lea edi, [esi + 0x40]
push edi
mov word [esi + 0x3c], bx
mov byte [esi + 0x3e], bl
call fcn.00440c70
mov dword [edi], vtable.CInterfaceImageElmt::CImageInfo.0
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], 0x101
mov byte [edi + 0x48], bl
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], 0xff
mov dword [edi + 0x54], ebx
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 4