joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537eb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
call fcn.0047db23
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x44f1aa
push 0x80004005
call fcn.00422c50
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x44f1e2
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00423ab0
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.004a1aba
add esp, 8
test eax, eax
js 0x44f260
cmp eax, dword [esi - 8]
jg 0x44f260
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov edi, esp
add esi, 0xfffffff0
push esi
call fcn.00422cb0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp + 8]
push edi
call fcn.0042ad70
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44f24d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422c50
int3

Function at 0x44f270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537eb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
call fcn.0047db23
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x44f2ba
push 0x80004005
call fcn.00422c50
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x44f2f2
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00423ab0
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [esi - 8]
push esi
call fcn.004a1aba
add esp, 8
test eax, eax
js 0x44f36d
cmp eax, dword [esi - 8]
jg 0x44f36d
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov edi, esp
add esi, 0xfffffff0
push esi
call fcn.00422cb0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp + 8]
push edi
call fcn.0042ad70
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44f35a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422c50
int3
Function at 0x44f6b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x44f6db
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
sete al
test al, al
je 0x44f6db
xor al, al
pop esi
pop ebp
ret 0xc
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44f6e9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
xor cl, cl
lea eax, [esi + 0xc]
xchg byte [eax], cl
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
or eax, 4
push eax
push dword [ebp + 0xc]
push 0
push esi
push 0x44f750
call fcn.00480771
mov dword [esi + 8], eax
test eax, eax
je 0x44f73a
test byte [ebp + 8], 4
mov dword [eax + 0x28], 0
jne 0x44f73a
mov eax, dword [esi + 8]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
cmp dword [esi + 8], eax
pop esi
setne al
pop ebp
ret 0xc
Function at 0x458fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1003c
call fcn.004a3200
mov eax, dword [0x58ab78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1003c], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x45901e
push 0
push 0x5466b8
mov ecx, eax
call fcn.004240c0
test esi, esi
je 0x45902f
mov dword [esi], 0
mov dword [esi + 4], 0
test ebx, ebx
je 0x459039
mov dword [ebx], 0
push 0xffff
lea eax, [ebp - 0x1002b]
mov byte [ebp - 0x1002c], 0
push 0
push eax
call fcn.004a0810
add esp, 0xc
mov dword [ebp - 0x10034], 0xffff0000
lea eax, [ebp - 0x10030]
mov dword [ebp - 0x10030], 0xffffffff
push 2
push eax
push 0xffff0000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x459092
call fcn.0042ba40
test eax, eax
js 0x4591ef
push 1
lea eax, [ebp - 8]
mov dword [ebp - 0x10038], 0
push eax
push 0
push dword [edi]
mov dword [ebp - 0x10030], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4590d8
call fcn.0042ba40
test eax, eax
js 0x4590e7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10038], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10030], eax
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x10000
lea eax, [ebp - 0x1002c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45915c
call fcn.0042ba40
test eax, eax
js 0x4591ef
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004584b0
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1002c]
push 0x10000
push eax
call fcn.00458bb0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x45917b
pop edi
pop esi
mov eax, 0x80070103
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x10000
je 0x459119
pop edi
pop esi
mov eax, 0x80070026
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret
add edi, 0x10
lea eax, [ebp - 0x1002c]
mov edx, edi
sub edx, eax
test esi, esi
je 0x4591a1
mov eax, edx
xor ecx, ecx
add eax, dword [ebp - 0x10038]
mov dword [esi], eax
adc ecx, dword [ebp - 0x10030]
mov dword [esi + 4], ecx
push 0x16
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x10000
sub eax, edx
push eax
push edi
call fcn.00458bb0
add esp, 0x10
test eax, eax
jne 0x4591d2
pop edi
pop esi
mov eax, 0x8007000d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret
sub eax, edi
test ebx, ebx
je 0x4591da
mov dword [ebx], eax
mov ecx, dword [ebp - 0x1003c]
test ecx, ecx
je 0x4591ed
shr eax, 1
push eax
push edi
call fcn.004240c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret
Function at 0x459ce0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538c40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.0044d530
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
push 3
push 1
push SysReAllocString
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.0045a600
mov esi, eax
add esp, 0x14
test esi, esi
js 0x459e10
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x459d7d
call fcn.0042ba40
test eax, eax
js 0x459d98
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov esi, ecx
mov dword [ebp - 0x18], eax
test eax, eax
jb 0x459d98
ja 0x459d93
cmp ecx, 0x6400000
jbe 0x459d98
mov esi, 0x6400000
push 4
push 2
push 0
push 0
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
call fcn.0042ddf0
mov edi, dword [ebp - 0x3c]
mov esi, eax
test esi, esi
js 0x459e10
mov eax, 0x5a4d
cmp word [edi], ax
je 0x459dc6
mov esi, 0x80070714
jmp 0x459e10
push ebx
push 0x458990
lea eax, [edi + 1]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x459e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x459df1
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070715
jne 0x459e10
mov esi, 0x80070103
jmp 0x459e10
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x459e0e
mov esi, 0x103
jmp 0x459e10
xor esi, esi
xor ebx, ebx
test edi, edi
je 0x459e28
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x459e28
call fcn.0042ba40
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x459e45
push eax
call edi
test eax, eax
jne 0x459e45
test ebx, ebx
js 0x459e45
call fcn.0042ba40
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x459e4f
push eax
call edi
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
Function at 0x45cdd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539350
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x45ceec
cmp dword [ebp + 0x14], 1
jne 0x45ceec
cmp dword [ebp + 0x18], 1
jne 0x45ceec
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
sub eax, ecx
cdq
cmp edx, ebx
jg 0x45ceec
jl 0x45ce3b
cmp eax, edi
ja 0x45ceec
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
cdq
cmp ebx, edx
jg 0x45ceec
jl 0x45ce56
cmp edi, eax
ja 0x45ceec
mov ecx, dword [esi + 0x2c]
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 0x18]
sub eax, edi
push 1
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push edx
add dword [eax], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax]
add eax, ecx
lea ecx, [esi + 0x40]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
cdq
sub dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x20]
sbb eax, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x45cefb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp dword [ebp + 0x14], 1
jne 0x45cf14
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x45cf14
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
cdq
sub edi, eax
sbb ebx, edx
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x40]
push dword [ebp + 0x14]
push ebx
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
push edi
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov esi, dword [ebp + 8]
push esi
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
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 0x14
Function at 0x46ae70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x46ae9d
mov ecx, esi
call fcn.00422e20
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x46af02
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x46aeba
push edi
mov ecx, esi
call fcn.00423ab0
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x46aed0
xor ecx, ecx
jmp 0x46aee2
push dword [eax - 8]
push eax
call fcn.004a1aba
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x46af02
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x46af02
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00422c50
int3
Function at 0x470730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebx]
mov dword [eax], edx
mov ecx, dword [ebx]
call fcn.004707c0
mov ebx, dword [ebx]
xor eax, eax
lea esi, [eax + 0x10]
lea ebx, [ebx]
mov edx, dword [ebx]
lea eax, [eax + 1]
mov cl, byte [ebx + eax + 0xc3]
xor byte [edx + eax - 1], cl
dec esi
jne 0x470770
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
mov ecx, dword [ecx]
mov dword [ecx + 0xc4], eax
mov eax, dword [edi + 4]
mov dword [ecx + 0xc8], eax
mov eax, dword [edi + 8]
mov dword [ecx + 0xcc], eax
mov eax, dword [edi + 0xc]
pop edi
pop esi
mov dword [ecx + 0xd0], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470d20
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
movzx eax, byte [ecx + 0xb4]
mov byte [ecx + 4], al
movzx eax, byte [ecx + 0xb5]
mov byte [ecx + 5], al
movzx eax, byte [ecx + 0xb6]
mov byte [ecx + 6], al
movzx eax, byte [ecx + 0xb7]
mov byte [ecx + 7], al
movzx eax, byte [ecx + 0xb8]
mov byte [ecx + 8], al
movzx eax, byte [ecx + 0xb9]
mov byte [ecx + 9], al
movzx eax, byte [ecx + 0xba]
mov byte [ecx + 0xa], al
movzx eax, byte [ecx + 0xbb]
mov byte [ecx + 0xb], al
movzx eax, byte [ecx + 0xbc]
mov byte [ecx + 0xc], al
movzx eax, byte [ecx + 0xbd]
mov byte [ecx + 0xd], al
movzx eax, byte [ecx + 0xbe]
mov byte [ecx + 0xe], al
movzx eax, byte [ecx + 0xbf]
mov byte [ecx + 0xf], al
movzx eax, byte [ecx + 0xc0]
mov byte [ecx + 0x10], al
movzx eax, byte [ecx + 0xc1]
mov byte [ecx + 0x11], al
movzx eax, byte [ecx + 0xc2]
mov byte [ecx + 0x12], al
movzx eax, byte [ecx + 0xc3]
mov byte [ecx + 0x13], al
mov ebx, 4
lea eax, [ecx + 0x12]
lea ecx, [ecx]
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov ch, byte [eax + 1]
mov dh, byte [eax - 2]
mov byte [ebp - 3], cl
mov byte [ebp - 1], dl
mov byte [ebp - 2], ch
test bl, 3
jne 0x470e2b
movzx ecx, cl
mov dl, dh
mov dh, byte [ecx + 0x54dc20]
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + 0x54dc20]
mov byte [ebp - 3], cl
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + 0x54dc20]
mov byte [ebp - 1], cl
movzx ecx, dl
mov dl, byte [ebp - 1]
mov cl, byte [ecx + 0x54dc20]
mov byte [ebp - 2], cl
mov ecx, ebx
shr ecx, 2
xor dh, byte [ecx + 0x54de20]
mov ch, byte [ebp - 2]
mov cl, byte [eax - 0xe]
inc ebx
xor cl, dh
mov byte [eax + 2], cl
mov cl, byte [eax - 0xd]
xor cl, byte [ebp - 3]
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, dl
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, ch
mov byte [eax + 5], cl
add eax, 4
cmp ebx, 0x2c
jb 0x470dd0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp dword [eax + 0x14], 0
je 0x471c62
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x471c65
mov eax, dword [eax]
jmp 0x471c65
movzx eax, word [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0
je 0x471c7b
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x471c7e
mov ecx, dword [ecx]
jmp 0x471c7e
movzx ecx, word [ecx]
mov ebx, dword [ebp + 8]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x471cc6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x471cc6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x471cc6
push dword [ebp + 0x10]
mov dword [esi], edi
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x471cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp dword [eax + 0x14], 0
je 0x471d02
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x471d05
mov eax, dword [eax]
jmp 0x471d05
movzx eax, word [eax]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0
je 0x471d1b
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x471d1e
mov ecx, dword [ecx]
jmp 0x471d1e
movzx ecx, word [ecx]
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x471d69
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x471d69
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x471d69
push dword [ebp + 0xc]
mov dword [esi], edi
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10

Function at 0x4760d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 4], 0x100
jne 0x476198
mov eax, dword [edi + 8]
cmp eax, 0x63
je 0x4760fc
cmp eax, 0x43
jne 0x476198
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x476198
cmp byte [esi + 0x290], 0
jne 0x47612e
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00486cbf
lea ecx, [esi + 0x21c]
cmp eax, ecx
je 0x476198
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 0x434
push dword [esi + 0x23c]
call ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x476198
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x21c]
call fcn.0048d4d9
push 0
push 0
push 0x301
push dword [esi + 0x23c]
call ebx
lea eax, [ebp - 8]
push eax
push 0
push 0x437
push dword [esi + 0x23c]
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.0048037f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x476b70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bb68
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x58ab78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.0048401b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x476c21
cmp dword [edi], 0
jne 0x476c21
push esi
lea ecx, [ebp - 0x7c]
call fcn.0048d525
push 0x58
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x6c], 0
call fcn.004a0810
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00476aa0
add esp, 0x14
lea ecx, [ebp - 0x7c]
test al, al
je 0x476c15
push dword [ebp - 0x70]
lea eax, [ebp - 0x50]
push eax
call fcn.0048d70b
lea ecx, [ebp - 0x7c]
call fcn.0048d56e
mov esi, eax
lea ecx, [ebp - 0x7c]
mov dword [edi], esi
mov dword [ebp - 4], 0xffffffff
call fcn.0048d560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret 8

Function at 0x4782f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
je 0x4783c7
push esi
push str.uxtheme.dll
call fcn.004783d0
mov esi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x47835a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
mov dword [edi], esi
test esi, esi
je 0x4783bf
test byte [ebp + 8], 1
je 0x4783bf
push str.OpenThemeData
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.CloseThemeData
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.IsThemeActive
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.GetThemeInt
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.DrawThemeBackground
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.DrawThemeParentBackground
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [edi]
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
pop esi
mov eax, edi
pop edi
pop ebp
ret 4
mov eax, edi
pop edi
pop ebp
ret 4