joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52d690
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00521bef
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4cbaf3
xor al, al
jmp 0x4cbc1f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4cbb15
xor al, al
jmp 0x4cbc1f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4cbb28
xor al, al
jmp 0x4cbc1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4cbb3c
xor al, al
jmp 0x4cbc1f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00514cf5
test eax, eax
jne 0x4cbb70
xor al, al
jmp 0x4cbc1f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x702d14
mov dword [esp + 0x20], ebp
call fcn.00521bef
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0051df08
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0051df5f
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4cbc04
mov ax, word [ebx]
test ax, ax
je 0x4cbbf6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004cbc40
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4cbbda
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0051df5f
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4cc180
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0051f768
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4cc1c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00504498
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x7f4ba4
push ecx
call fcn.00505e7e
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4cc540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4cc5b3
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cc5a8
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00506a4d
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret

Function at 0x4ddf80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52e4c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0051dc60
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004ddec0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0051db8e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4de047
cmp dword [esp + 0x40], 1
jne 0x4de045
cmp ecx, eax
jge 0x4de047
mov eax, ecx
cmp eax, 0x12c
jge 0x4de053
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004de0a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0051dcd2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4e22e0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x52e9b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x82e220]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00519292
mov edx, dword [0x82e220]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4e233a
mov dword [esp + 0x1c], ebx
jmp 0x4e2341
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.0051b4e4
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.00516efb
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4e2392
mov dword [esp + 0x14], ebx
jmp 0x4e2399
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4e23b4
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4e23ae
cmp eax, 2
jne 0x4e23b4
mov dword [esp + 0x18], edi
jmp 0x4e23b8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4e23c6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005188c8
mov edi, eax
cmp edi, ebx
jne 0x4e23d6
xor eax, eax
jmp 0x4e23d9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4e2401
mov ecx, esi
call fcn.0051b4e4
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4e241d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e243c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4e243c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.00516e0e
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.00516e0e
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4e30c0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x52eac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x82e220]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.00519292
cmp dword [0x89de54], ebx
je 0x4e3130
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00516e0e
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x82e220]
push ebp
push edi
mov edi, 1
mov dword [0x89de54], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4e3159
mov dword [esp + 0x20], ebx
jmp 0x4e3160
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.0051b4e4
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.00516efb
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4e31be
mov dword [esp + 0x14], ebx
jmp 0x4e31c5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4e31df
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4e31d9
cmp eax, 2
jne 0x4e31df
mov dword [esp + 0x18], edi
jmp 0x4e31e3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4e31f1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005188c8
mov edi, eax
cmp edi, ebx
jne 0x4e3201
xor eax, eax
jmp 0x4e3204
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4e322c
mov ecx, esi
call fcn.0051b4e4
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4e3244
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x89de54], 0
test eax, eax
je 0x4e326d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4e326d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.00516e0e
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00516e0e
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4e5920
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4e5969
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4e5de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52efe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004e5990
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004e5a10
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004e5a10
lea ecx, [esi + 0xc]
call fcn.00516d99
lea ecx, [esi + 0x10]
call fcn.00516d99
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004e6e10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004e6e10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004e6e10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00516e0e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00516e0e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e7000
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4e7066
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4e7066
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4e7047
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x519292
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5192ca
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00517269
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00517241
jmp 0x5192d6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51ac13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51ac55
call fcn.00521bef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51ac55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51ac4c
xor eax, eax
jmp 0x51ac5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051ac63
pop edi
pop esi
pop ebx
ret 4

Function at 0x522103
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x522131
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x52214f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00522069
jmp 0x52214f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52214f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00522069
test edi, edi
mov eax, edi
jne 0x522139
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x524b63
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x524b8b
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x524b9c
push 2
call edi
test ax, ax
jge 0x524b9c
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005188c8
cmp dword [esi + 0x30], ebx
jne 0x524c76
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005188c8
cmp eax, dword [esp + 0x34]
jne 0x524c76
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x524c12
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x524c57
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x524c76
cmp eax, 0x205
je 0x524c76
cmp eax, 0x201
je 0x524c76
cmp eax, 0x204
je 0x524c76
cmp eax, ebx
jne 0x524c3d
cmp dword [esp + 0x1c], 0x1b
je 0x524c76
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x8ba31c]
jbe 0x524c6c
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x524bcf
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401195
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4011b1
xor al, al
leave
ret
mov eax, dword [section..data]
push ebx
push esi
push edi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x104
push edi
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.00401793
mov ebx, dword [ebp - 8]
cmp dword [ebx - 8], edi
jge 0x4011e7
push 0x80070057
call fcn.00401000
push edi
push eax
push dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebx - 0xc], edi
mov word [ebx + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401303
mov edi, ebx
lea esi, [ebp - 4]
call fcn.0040164c
mov eax, dword [ebp - 4]
push dword [eax - 0xc]
call fcn.00401793
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
call fcn.004017c7
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
mov dword [ebp - 0x10], eax
call fcn.00401986
add eax, 0x10
lea edi, [eax - 0x10]
lea esi, [ebx - 0x10]
cmp edi, esi
je 0x401278
cmp dword [esi + 0xc], 0
jl 0x401269
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x401269
mov eax, edi
call fcn.00401986
mov ebx, eax
mov eax, esi
call fcn.004010b5
add ebx, 0x10
mov dword [ebp - 8], ebx
jmp 0x401278
mov ebx, dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.004018f9
mov ebx, dword [ebp - 8]
mov eax, edi
call fcn.004010b5
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor esi, esi
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004044a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4012fb
lea edi, [ebp - 0x218]
lea esi, [ebp - 4]
call fcn.0040164c
push 0x104
call fcn.00401793
push 0x40d220
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
neg eax
sbb al, al
inc al
mov byte [ebp - 9], al
or eax, 0xffffffff
call fcn.004017c7
cmp byte [ebp - 9], 0
je 0x40130f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004010b5
mov eax, dword [ebp - 0x10]
call fcn.004010b5
lea eax, [ebx - 0x10]
call fcn.004010b5
xor al, al
jmp 0x401352
lea eax, [ebp - 4]
call fcn.0040174c
lea eax, [ebp - 8]
call fcn.0040174c
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
mov ebx, esi
call fcn.004016a9
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [esi - 0x10]
inc bl
call fcn.004010b5
mov eax, dword [ebp - 0x10]
call fcn.004010b5
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004010b5
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401357
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 8], bl
push 0x20019
setne al
push ebx
push 0x40d248
mov dword [ebp - 4], ebx
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x40139a
jle 0x4013f0
and eax, 0xffff
or eax, 0x80070000
jmp 0x4013f0
push edi
push 0x32
pop eax
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], eax
call fcn.00401793
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x40d194
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov edi, eax
or eax, 0xffffffff
call fcn.004017c7
cmp edi, ebx
je 0x4013e2
jle 0x4013de
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
jmp 0x4013ef
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401557
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
call fcn.00401195
mov byte [esp + 0xc], al
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004013f4
add esp, 0xc
test eax, eax
jns 0x4015ae
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.004010b5
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0xc], 0
jne 0x4015e9
call fcn.00401123
test al, al
je 0x4015e9
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4015e9
push dword [esp + 8]
call fcn.00401f91
pop ecx
cmp eax, 0x800b0109
jne 0x4015db
xor eax, eax
test eax, eax
js 0x4015e9
push dword [esp + 8]
call fcn.00401ee3
pop ecx
push 0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x401604
call fcn.004010cd
jmp 0x401596
push 0x40d188
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401626
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov esi, eax
jmp 0x40162b
mov esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401598

Function at 0x404cf9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4091d0]
jne 0x404d03
repz ret
jmp fcn.00406889
Function at 0x40710c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4091d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405fa4
and dword [ebp - 0x14], 0
cmp dword [0x40abcc], 0
mov dword [ebp - 0x18], eax
jne 0x4071bf
push 0x40be4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407267
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40be40
push ebx
call edi
test eax, eax
je 0x407267
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40be30
push ebx
mov dword [0x40abcc], eax
call edi
push eax
call esi
push 0x40be1c
push ebx
mov dword [0x40abd0], eax
call edi
push eax
call esi
push 0x40be00
push ebx
mov dword [0x40abd4], eax
call edi
push eax
call esi
mov dword [0x40abdc], eax
test eax, eax
je 0x4071bf
push 0x40bde8
push ebx
call edi
push eax
call esi
mov dword [0x40abd8], eax
mov eax, dword [0x40abd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407218
cmp dword [0x40abdc], ecx
je 0x407218
push eax
call esi
push dword [0x40abdc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407218
test ebx, ebx
je 0x407218
call edi
test eax, eax
je 0x40720f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40720f
test byte [ebp - 8], 1
jne 0x407218
or dword [ebp + 0x10], 0x200000
jmp 0x40724b
mov eax, dword [0x40abd0]
cmp eax, dword [ebp - 0x18]
je 0x40724b
push eax
call esi
test eax, eax
je 0x40724b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40724b
mov eax, dword [0x40abd4]
cmp eax, dword [ebp - 0x18]
je 0x40724b
push eax
call esi
test eax, eax
je 0x40724b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40abcc]
call esi
test eax, eax
je 0x407267
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407269
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404cf9
leave
ret