joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd8f
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 0x41fdd4
call fcn.00421fbe
push 0xf0
push dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41fdd1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41fe19
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 0x41fdf8
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push edi
call dword [0x5819e0]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov edi, dword [edi + 0x70]
test edi, edi
je 0x41fe16
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5819e0]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x423d1b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x573705
call fcn.00550efa
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x423e25
cmp ebx, dword [esi + 0xc]
jge 0x423e25
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x423d72
cmp ebx, dword [edi + 8]
jl 0x423e13
cmp dword [ebp + 0xc], 0
je 0x423e13
xor ebx, ebx
jmp 0x423dac
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.004237da
mov edi, eax
test edi, edi
je 0x423d8c
mov dword [edi], vtable.CThreadData.0
jmp 0x423d8e
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00423c47
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x423dc7
push 4
push dword [esi + 0xc]
call fcn.0040e0bf
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x423ddf
push 2
push 4
push dword [esi + 0xc]
call fcn.0040e0bf
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x423e4c
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00552e70
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x423e25
cmp ebx, dword [edi + 8]
jge 0x423e25
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00550e58
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040e5ad
int3
Function at 0x428682
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4286d8
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4286b1
call fcn.0041b5c8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4286c6
call fcn.0041b5c8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4286d8
call fcn.0041b5c8
call fcn.00421fbe
cmp dword [eax + 0x3c], 0
je 0x4286ed
push edi
mov ecx, ebx
call fcn.00427db2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004288bf
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x428716
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x428722
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44918c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041673a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4491c8
call fcn.004493a7
mov dword [esi + 0xc], 1
jmp 0x4491cd
call fcn.004493a7
cmp dword [esi], 0
je 0x449216
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4491f0
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040e485
jmp 0x449201
push 0xff
mov ecx, esi
call fcn.00402840
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b140
jmp 0x44923a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x44923a
push dword [esi]
push dword [ebp - 4]
call fcn.00426844
pop esi
leave
ret 0xc

Function at 0x4492fe
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004493a7
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x449346
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040e485
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b140
jmp 0x449351
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00426844
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44eac5
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5dafd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00552e70
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0055ae33
push eax
call fcn.00401be0
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x589d00]
je 0x44ec2f
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x44ec43
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44ec43
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x44eb5e
mov eax, edi
jmp 0x44eb8d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x44eb7b
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0044e86a
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x44eb84
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0044ed86
test eax, eax
je 0x44ebb2
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044e6f6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x44ebb6
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044ed86
test eax, eax
je 0x44ebdd
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044e6f6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x44ebe1
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044ed86
test eax, eax
je 0x44ec09
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044e6f6
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x44ec0b
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x44ec1d
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x44ec2f
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055065c
leave
ret 4
xor eax, eax
jmp 0x44ec32
Function at 0x45ba4b
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5dafd0]
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 0x45ba7a
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x45baa7
cmp dword [0x5e1e0c], 0
jne 0x45baa7
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x45baa3
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x45baa3
push esi
call fcn.00562555
pop ecx
jmp 0x45bb1a
mov eax, esi
jmp 0x45bb1a
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00552e70
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x45bb2a
call fcn.0041c75e
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.0055065c
leave
ret 4
call fcn.0040e593
int3
Function at 0x484743
Capabilities:
Get file system object information

Disassembly:
push 0x6f4
mov eax, 0x578229
call fcn.00550ec3
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x4848da
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x4848ac
sub eax, 1
je 0x4847c2
sub eax, 1
je 0x48479a
sub eax, 1
je 0x4847c2
push 0x5b68a8
mov ecx, edi
call fcn.00402530
mov eax, edi
call fcn.00550e6d
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x484784
lea eax, [ebp - 0x4e8]
push eax
jmp 0x484789
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x484784
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.0044ec47
test eax, eax
je 0x484784
call fcn.0040e23c
push eax
lea ecx, [ebp - 0x700]
call fcn.00402880
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x484862
test byte [ebp - 0x428], 0x18
jne 0x484884
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5819e0]
mov ecx, ebx
call esi
jmp 0x484884
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5819e0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0040b320
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00401d80
jmp 0x484790
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x484784
lea eax, [ebp - 0x6f0]
jmp 0x4847bf
call fcn.0040e593
int3

Function at 0x484a6d
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00528fed
call fcn.00422012
cmp dword [eax + 0x14], 0
jne 0x484a88
mov ecx, esi
pop esi
jmp fcn.00483d92
pop esi
ret

Function at 0x48b5ff
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 0x48b618
call fcn.00421fbe
mov esi, dword [eax + 0xc]
push 0x591c3c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x48b65a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48b65a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x48b65a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048b663
jmp 0x48b65c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4b48f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4b4a83
je 0x4b4aa9
cmp eax, 0xa1
jb 0x4b4ae7
cmp eax, 0xa2
jbe 0x4b4aa9
cmp eax, 0xa3
jbe 0x4b4ae7
cmp eax, 0xa5
jbe 0x4b4aa9
cmp eax, 0xa6
jbe 0x4b4ae7
cmp eax, 0xa8
jbe 0x4b4aa9
cmp eax, 0x100
jne 0x4b4ae7
cmp dword [edi + 0xc0], 0xffffffff
je 0x4b4aa9
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4b4aa9
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4b49d8
sub eax, 1
jne 0x4b4aa9
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4b49c7
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5819e0]
mov ecx, edi
call esi
test eax, eax
jne 0x4b4a24
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4b499d
jmp 0x4b4b01
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4b4b01
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5819e0]
mov ecx, edi
call esi
test eax, eax
jne 0x4b4a24
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4b49ef
jmp 0x4b4b01
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5819e0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5819e0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00417038
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5819e0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4b4b01
cmp eax, 0x200
jb 0x4b4ae7
cmp eax, 0x202
jbe 0x4b4aa9
cmp eax, 0x203
jbe 0x4b4ae7
cmp eax, 0x205
jbe 0x4b4aa9
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4b4ae7
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4b4ac8
cmp dword [eax + 0x20], ebx
je 0x4b4ac8
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4b4ae7
cmp dword [eax + 0x20], ebx
je 0x4b4ae7
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4b4b06
lea eax, [edi + 0x2250]
test eax, eax
je 0x4b4afd
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4b4b06
xor eax, eax
inc eax
jmp 0x4b4b0e
push esi
mov ecx, edi
call fcn.004aef11
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d100e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402320
call fcn.00422012
cmp dword [eax + 0x14], 0
jne 0x4d1029
mov ecx, esi
pop esi
jmp fcn.004d0884
pop esi
ret
Function at 0x4efa21
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00562d8c
pop ecx
test eax, eax
jne 0x4efa63
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041e9c3
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4efa29
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x4fc5b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5dafd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x4fc699
cmp dword [ebp + 0xc], 0
je 0x4fc699
xor edi, edi
call fcn.00421fbe
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4fc699
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4fc699
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4fc6af
push ebx
call fcn.0055acd0
pop ecx
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [ebp - 8], edx
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x4fc670
cmp eax, 0x400
ja 0x4fc655
call fcn.00551060
mov esi, esp
test esi, esi
je 0x4fc66b
mov dword [esi], 0xcccc
jmp 0x4fc668
push eax
call fcn.0055acb7
mov esi, eax
pop ecx
test esi, esi
je 0x4fc66b
mov dword [esi], 0xdddd
add esi, 8
mov edx, dword [ebp - 8]
jmp 0x4fc672
mov esi, edi
test esi, esi
je 0x4fc6af
push edx
push ebx
push esi
call fcn.0040e225
test eax, eax
je 0x4fc68e
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004fdf31
xor edi, edi
inc edi
push esi
call fcn.004fdf4d
pop ecx
mov eax, edi
jmp 0x4fc69b
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055065c
leave
ret 8
call fcn.0040e593
int3
Function at 0x513224
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x5132d8
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x5132d4
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5132d4
cmp dword [ebx], eax
jne 0x5132d4
mov eax, dword [ebx + 4]
sub eax, 1
je 0x5132a3
sub eax, 1
je 0x513271
sub eax, 1
jne 0x5132d4
mov edi, 0x428e
jmp 0x5132a8
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x5132a8
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5819e0]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x5132a8
add edi, 3
jmp 0x5132a8
mov edi, 0x3ea0
push edi
call fcn.0040e413
test eax, eax
je 0x5132d8
push edi
push eax
mov ecx, 0x5e342c
call fcn.004026a0
test eax, eax
je 0x5132d8
mov eax, dword [0x5e342c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x5132cd
call fcn.0040e593
int3

Function at 0x53f897
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x572908
call fcn.00550e8f
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x53f97d
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x53f97d
cmp edi, 0x43
je 0x53f8dc
cmp edi, 0x2d
jne 0x53f97d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53f97d
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0040e23c
push eax
lea ecx, [ebp - 0x10]
call fcn.00402880
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5ab208
push eax
call fcn.004030d0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401d80
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.004194fe
call fcn.00550e58
ret 4

Function at 0x568880
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005686fd

Function at 0x56bd4e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056b9f0
Function at 0x40f160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f18d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f18d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401d16
Capabilities:
Encode data using xor

Disassembly:
mov byte [edi], al
fidiv word [edx]
sal bh, cl
invalid
test byte [esi - 0xa], bl
pop eax
loop 0x401d5c
pop ebx
test dword [edx - 0x4ae24697], ebp
or eax, 0xc354824f
aad 0xd3
or byte [edx], bh
xchg ebx, eax
xchg edx, eax
ror dword [esi - 0x70a52b27], 0xc4
push eax
adc dword [edi - 5], ebp
scasd eax, dword es:[edi]
test byte [edx + 0x70], al
mov cl, 0x80
mov ch, 0xd7
mov dh, 0x92
lds ebp, [edx]
shr dword [edi - 0x3911654], 1
js 0x401ced
int3
mov edi, 0xe4216d56
invalid

Function at 0x4180b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x4180d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4180d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4180c8
mov eax, 1
add ebx, ebx
jne 0x4180eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4180e0
jne 0x4180fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4180e0
xor ecx, ecx
sub eax, 3
jb 0x418110
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418182
mov ebp, eax
add ebx, ebx
jne 0x41811b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418128
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41814c
inc ecx
add ebx, ebx
jne 0x418138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41812d
jne 0x418149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41812d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41816c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41815d
jmp 0x4180ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41816c
add edi, ecx
jmp 0x4180ce
pop esi
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4181d4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1806c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418189
mov ecx, edi
jns 0x4181b8
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18074]
or eax, eax
je 0x4181ce
mov dword [ebx], eax
add ebx, 4
jmp 0x4181a6
call dword [esi + 0x18070]
mov ebp, dword [esi + 0x18078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418208
sub esp, 0xffffff80
jmp section.OsHNLtvw