joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce443
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ce470
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4ce485
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ce485
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0042652f
jmp 0x4ce556
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042652f
cmp eax, edi
jne 0x4ce560
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4ce4f2
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4ce536
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4ce560
cmp eax, 0x205
je 0x4ce560
cmp eax, 0x201
je 0x4ce560
cmp eax, 0x204
je 0x4ce560
cmp eax, 0x100
jne 0x4ce51e
cmp dword [ebp - 0x18], 0x1b
je 0x4ce560
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4ce556
ja 0x4ce54f
cmp eax, dword [0x5d8898]
jbe 0x4ce556
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4ce4a7
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4cf559
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4cf58f
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00402e20
test eax, eax
je 0x4cf577
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4d6a51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5ce82c], 0
push esi
push edi
je 0x4d6ad9
cmp dword [0x5ce904], 0xfffffffe
jne 0x4d6ac5
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4d6ad9
mov edi, 0x5d88c8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5d88e0], 0
jne 0x4d6add
push 0
push 0
push 0x4d6ae3
call fcn.0055618a
add esp, 0xc
mov dword [0x5d88e0], eax
test eax, eax
je 0x4d6ab5
cmp eax, 0xffffffff
je 0x4d6ab5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5ce904], esi
jmp 0x4d6abc
and dword [0x5d88e0], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4d6ad9
mov eax, dword [ebp + 8]
mov dword [0x5ce904], eax
cmp eax, 0xffffffff
jne 0x4d6ad9
and dword [0x5d88e0], 0
pop edi
pop esi
pop ebp
ret
call fcn.004218e0
int3
Function at 0x4e1be8
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 0x4e1d6f
je 0x4e1d96
sub eax, 0xa1
je 0x4e1d96
sub eax, 1
je 0x4e1d96
dec eax
sub eax, 1
je 0x4e1d96
sub eax, 1
je 0x4e1d96
dec eax
sub eax, 1
je 0x4e1d96
sub eax, 1
je 0x4e1d96
sub eax, 0x58
jne 0x4e1dd4
cmp dword [edi + 0xc0], 0xffffffff
je 0x4e1d96
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4e1d96
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4e1cc4
sub eax, 1
jne 0x4e1d96
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4e1cb3
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 [0x57c9a0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e1d10
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4e1c89
jmp 0x4e1dee
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4e1dee
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 [0x57c9a0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e1d10
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4e1cdb
jmp 0x4e1dee
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x57c9a0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x57c9a0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0042b65b
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x57c9a0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4e1dee
sub eax, 0x200
je 0x4e1d96
sub eax, 1
je 0x4e1d96
sub eax, 1
je 0x4e1d96
dec eax
sub eax, 1
je 0x4e1d96
sub eax, 1
je 0x4e1d96
dec eax
sub eax, 1
je 0x4e1d96
sub eax, 1
jne 0x4e1dd4
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4e1db5
cmp dword [eax + 0x20], ebx
je 0x4e1db5
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 0x4e1dd4
cmp dword [eax + 0x20], ebx
je 0x4e1dd4
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4e1df3
lea eax, [edi + 0x2250]
test eax, eax
je 0x4e1dea
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4e1df3
xor eax, eax
inc eax
jmp 0x4e1dfb
push esi
mov ecx, edi
call fcn.00472ce1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50e241
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x56f547
call fcn.0054dbb3
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x50e32d
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x50e32d
cmp esi, 0x43
je 0x50e283
cmp esi, 0x2d
jne 0x50e32d
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50e32d
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00409e70
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x59c6d8
push eax
call fcn.0040a910
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x50e31b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x50e31b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00402e00
push ebx
mov ecx, edi
call fcn.00424319
call fcn.0054db81
ret 4
Function at 0x514d03
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x577cc3
call fcn.0054dbe6
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x514e94
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x514e66
sub eax, 1
je 0x514d82
sub eax, 1
je 0x514d5a
sub eax, 1
je 0x514d82
push 0x5afbec
mov ecx, edi
call fcn.00409dc0
mov eax, edi
call fcn.0054db95
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 0x514d44
lea eax, [ebp - 0x4e8]
push eax
jmp 0x514d49
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x514d44
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.004c3bb5
test eax, eax
je 0x514d44
lea ecx, [ebp - 0x700]
call fcn.00409e70
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x514e1c
test byte [ebp - 0x428], 0x18
jne 0x514e3e
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 [0x57c9a0]
mov ecx, ebx
call esi
jmp 0x514e3e
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 [0x57c9a0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0040a460
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402e00
jmp 0x514d50
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 0x514d44
lea eax, [ebp - 0x6f0]
jmp 0x514d7f
call fcn.004218e0
int3

Function at 0x51500c
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00548d9a
call fcn.0042f1e2
cmp dword [eax + 0x14], 0
jne 0x515027
mov ecx, esi
pop esi
jmp fcn.00514310
pop esi
ret
Function at 0x515122
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.0042b34d
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 0x51515e
call fcn.0051533f
mov dword [esi + 0xc], 1
jmp 0x515163
call fcn.0051533f
cmp dword [esi], 0
je 0x5151ae
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x515189
push edi
call fcn.00410400
lea ecx, [edi + 1]
push ecx
jmp 0x515198
push 0xff
call fcn.0040a280
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00409ee0
pop edi
jmp 0x5151d2
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 0x5151d2
push dword [esi]
push dword [ebp - 4]
call fcn.0049d22f
pop esi
leave
ret 0xc

Function at 0x515296
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.0051533f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5152de
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00410400
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409ee0
jmp 0x5152e9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0049d22f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x515860
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.0055e434
pop ecx
test eax, eax
jne 0x5158a2
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.0041f2b5
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x515868
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 0x523bab
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x523cf1
mov ecx, 0x5cec48
call fcn.004308c2
mov esi, eax
test esi, esi
je 0x523ce6
xor eax, eax
cmp word [esi + 8], ax
jne 0x523cb0
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x523c6c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x523c32
push 0x5a04d0
call fcn.00523d2f
pop ecx
test eax, eax
je 0x523c32
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x523c4d
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x523c6c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x523c72
push ebx
push edi
push eax
call fcn.004a1077
add esp, 0xc
jmp 0x523c72
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0042cee8
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x523ceb
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0042fee2
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x523cb3
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x523cc1
push edi
call fcn.00552a0e
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040a5a0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.004218e0
call fcn.004218fa
int3

Function at 0x54630e
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5cf000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x546378
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x54635d
lea eax, [ebp - 0x2ac]
push eax
jmp 0x546362
push 0x5a7e40
call fcn.00409dc0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054d63f
leave
ret 8
call fcn.004218e0
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00402b10
call fcn.0042f1e2
cmp dword [eax + 0x14], 0
jne 0x546878
mov ecx, esi
pop esi
jmp fcn.005460b8
pop esi
ret
Function at 0x54e482
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x54e4c1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54e4c1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54e4c1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x54e4c1
cmp dword [ecx + 0x74], 0xe
jbe 0x54e4c1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x561aff
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ac7c8
push 0x5ac7c0
push str.FlsAlloc
push 0x1e
call fcn.00561980
mov esi, eax
add esp, 0x10
test esi, esi
je 0x561b33
push dword [ebp + 8]
mov ecx, esi
call dword [0x57c9a0]
call esi
jmp 0x561b39
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x561b7d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ac7d8
push 0x5ac7d0
push str.FlsGetValue
push 0x20
call fcn.00561980
mov esi, eax
add esp, 0x10
test esi, esi
je 0x561bb4
push dword [ebp + 8]
mov ecx, esi
call dword [0x57c9a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5653db
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5cf000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x565426
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0056557a
test al, al
jne 0x565420
sub edx, 2
cmp edx, edi
jne 0x565406
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x565448
lea eax, [edi + 2]
cmp edx, eax
je 0x565448
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00565327
add esp, 0x10
jmp 0x565542
push esi
lea ecx, [ebp - 0x255]
call fcn.0056557a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x56548b
push dword [ebp - 0x25c]
jmp 0x565438
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5654c8
cmp word [ebp - 0x226], 0
je 0x5654e9
cmp word [ebp - 0x226], ax
jne 0x5654c8
cmp word [ebp - 0x224], 0
je 0x5654e9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00565327
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x565535
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5654a2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x56551d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x565542
push 0x565157
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0056a410
add esp, 0x10
jmp 0x565512
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054d63f
leave
ret

Function at 0x565e4d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x565e5e
pop esi
ret
push ebx
push edi
push esi
call fcn.00565e16
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00560057
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x565e86
push ebx
push esi
push edi
call fcn.0054f810
add esp, 0xc
push 0
call fcn.0055ff08
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x56624a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00565e9b
Function at 0x56b5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56b5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56b5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4db50f
Capabilities:
Encode data using xor

Disassembly:
jge 0x4db590
inc edx
sbb al, 0xdd
pop ebx
and edi, dword [edx + 0x26]
or dword [esi - 9], ebx
test al, 0x20
jecxz 0x4db52e
sbb al, 0x97
in al, 3
push es
sub dh, byte [ebp + 0x46]
pop edi
scasd eax, dword es:[edi]
or eax, 0x373b7a24
sbb eax, 0x22a2dcf
xlatb
invalid

Function at 0x60066f
Capabilities:
Encode data using xor

Disassembly:
push 0x96a1d524
sbb byte [ebx - 0x32], ch
or byte [edx - 0x4ad03897], bh
mul dword [edi - 0x21b6b8f6]
imul esi, dword [ebp + 0x3a], 0xfffffffb
cmp dl, 0x71
test ebx, esp
or eax, 0x280ea3bf
cmp al, 0x2d
movsb byte es:[edi], byte [esi]
xchg esi, eax
pop ss
mov ebx, 0x906297aa
sub byte [ecx + esi*4 - 0x6c], dl
in eax, dx
xchg esp, eax
in al, 0x9f
jnp 0x600700
mov esp, 0x61959474
imul ecx, dword [eax + 0x774c7175], 0x43
add ch, byte [edi]
aaa
adc eax, 0x91ea466b
inc esi
fild dword [eax - 0x5c]
and dword [ecx + 0x15], eax
or eax, 0xaca156c3
mov ebp, dword [esi - 0x1a]
adc byte [edx], dl
sbb dh, al
or cl, al
push ebp
test al, 0xc4
lea edx, [edi + 0x6d72b601]
adc esp, dword [ebp + 0x60]
rcl dword [0x8e14c45], 0x85
xor dh, byte [edx + 0x67d14ba7]
sahf
mov eax, dword [esi + 0x3a48140b]
push ss
call 0x2c12f51
loope 0x6006b7
ljmp 0x21a4:0x40db4691
xchg esi, eax
sub dword [edx], 0x270a6f32
pop es
xor ebx, dword [ebp + 0x10]
or dword [edi + 0x11], 0xa4c66206
pop ds
mov cl, byte [edx - 0x59062580]
jmp 0x325a1f25
adc byte [ecx + 0x6206114f], al
invalid
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x4015b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40161f
cmp dword [ebp + 0x10], 1
je 0x4015f7
cmp dword [ebp + 0x10], 2
je 0x4015f7
push 0xd
pop eax
jmp 0x40161f
mov eax, dword [ebp - 4]
test edi, edi
je 0x401619
test eax, eax
je 0x401614
test al, 1
jne 0x4015f2
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401619
jmp 0x4015f2
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x401625
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x401648
xor al, al
jmp 0x4016a8
push edi
push esi
call fcn.0041050f
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40165a
xor al, al
jmp 0x4016a7
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40169e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4263c8
push edi
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40169e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp + 0xc]
xor esi, esi
or edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov bl, 1
push edi
call fcn.004110e7
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret