joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x421540]
push edi
jae 0x415ce8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x421560]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x415ce8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x415bbe
test dl, 2
jne 0x415bbe
jmp loc.004e0530
xor eax, eax
jmp fcn.00415cfc
and dword [0x421088], 0

Function at 0x415ffd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41f608]
jmp loc.004dbfa8

Function at 0x416209
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040ee00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4162a4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x421090]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4162a4
cmp eax, 1
je 0x4162c5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4162a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416271
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4162a0
xor eax, eax
inc eax
jmp 0x4162e4
cmp edi, eax
jae 0x4162a8
xor eax, eax
jmp 0x4162e4
cmp eax, esi
jae 0x4162af
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x421090]
jmp 0x4162c8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459490
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x49c
mov eax, dword [0x46c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x40a
push str.txi
call fcn.00419250
add esp, 8
push 0x406
push str.ax6
call fcn.00419250
add esp, 8
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x436], 0
mov eax, 1
test eax, eax
je 0x4177b5
movzx ecx, byte [ebp - 0x436]
test ecx, ecx
je 0x417794
mov edx, dword [ebp - 0x430]
add edx, 0xb
mov dword [ebp - 0x430], edx
lea eax, [ebp - 0x498]
push eax
push 0x40
mov ecx, dword [ebp - 0x430]
mov edx, dword [ecx - 0x14]
push edx
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x458], 0
jmp 0x41771d
mov ecx, dword [ebp - 0x458]
add ecx, 1
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x458]
cmp eax, dword [edx - 0x14]
jae 0x417792
mov ecx, dword [ebp - 0x430]
movzx edx, byte [ecx - 0x15]
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x458]
movzx ecx, byte [eax - 4]
xor edx, ecx
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x458]
movzx ecx, byte [eax - 2]
xor edx, ecx
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x458]
sti
invalid
movzx ecx, byte [eax - 3]
xor edx, ecx
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x458]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0x430]
add edx, dword [ebp - 0x458]
mov byte [edx], cl
jmp 0x41770e
jmp 0x4177b5
mov byte [ebp - 0x436], 1
jmp 0x4177a5
call 0x4177aa
pop dword [ebp - 0x430]
jmp 0x4176b7
inc eax
xlatb
sub bh, ch
pop esi
inc ecx
je 0x41775f
or byte [edx], bh
arpl word [ebx], bp
xor ch, ah
or al, 0x9d
pushal
jo 0x417840
cmp esp, dword [ebp - 0xc1c355]
bound ebp, qword [edi + 0x6f2f0eb5]
and eax, 0x7fc527c8
jnp 0x417803
jnp 0x417768
test eax, edx
sti
invalid
invalid
invalid
Function at 0x419250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
mov eax, 1
test eax, eax
je 0x419310
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4192f5
mov edx, dword [ebp - 8]
add edx, 0xb
mov dword [ebp - 8], edx
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0xc], 0
jmp 0x4192a8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx - 0x14]
jae 0x4192f3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx - 0x15]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax - 4]
xor edx, ecx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax - 2]
xor edx, ecx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax - 3]
xor edx, ecx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov byte [edx], cl
jmp 0x41929f
jmp 0x419310
mov byte [ebp - 1], 1
jmp 0x419303
call 0x419308
pop dword [ebp - 8]
jmp 0x419261
mov dword [ebp - 0x14], 0x6e2bedff
imul ecx, dword [edx - 0x38f9db1d], 0x84a5a861
daa
invalid
Function at 0x4f3dd5
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
mov eax, dword [0x570074]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push ebx
push ebp
movsx ebp, ax
mov ebx, ecx
shr eax, 0x10
and dword [edx], 0
push esi
cwde
push edi
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x14], eax
jmp 0x4f3e4a
mov esi, dword [edi]
lea ecx, [esp + 0x34]
xorps xmm0, xmm0
movups xmmword [esp + 0x34], xmm0
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
push dword [esp + 0x14]
lea eax, [esp + 0x38]
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f3e47
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
test al, al
je 0x4f3e47
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
test al, al
jne 0x4f3e74
mov edi, dword [edi + 8]
test edi, edi
jne 0x4f3e04
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x4f3e5d
mov eax, dword [ecx]
call dword [eax + 0x54]
and dword [ebx + 0x34], edi
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d0217
add esp, 0x3c
ret 0x10
mov ecx, dword [ebx + 0x34]
cmp esi, ecx
je 0x4f3e87
test ecx, ecx
je 0x4f3e84
mov eax, dword [ecx]
call dword [eax + 0x54]
mov dword [ebx + 0x34], esi
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
mov dword [esp + 0x18], ebp
and ax, cx
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
xor cx, cx
cmp cx, ax
mov ecx, dword [ebx + 0x34]
push edx
sbb eax, eax
neg eax
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 0x50]
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x2c], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x4f3e5d

Function at 0x402240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404144], eax
mov ecx, ebp
add ecx, 8
mov dword [0x4040e2], ecx
mov dword [0x404148], 0x30
mov dword [0x40414c], 2
mov dword [0x404154], 0
mov dword [0x404158], 0
mov dword [0x404150], 0x4025d0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x40415c], eax
mov dword [0x404168], 0xf
mov dword [0x404170], 0x40386b
mov dword [0x4040da], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404160], eax
mov dword [0x404174], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404164], eax
push 0x404148
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040da]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.myform
push 0x40386b
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x40413c], eax
xor eax, eax
jmp 0x40232b
push eax
push dword [0x40413c]
call dword [sym.imp.user32.dll_ShowWindow]
jmp loc.0040858d
Function at 0x402cd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402d29
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402b6c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402b6c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402d13
inc ebx
jmp 0x402cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d30
lea eax, [ebp - 8]
call fcn.004040e8
ret

Function at 0x402d38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040e8
test esi, esi
jne 0x402d6f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004041d8
jmp 0x402d90
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402b6c
mov dword [esp], eax
test esi, esi
je 0x402d90
cmp dword [ebx], 0
je 0x402d90
dec esi
jmp 0x402d77
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x417020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403398
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403378
xor eax, eax
push ebp
push 0x403371
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4033b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403378
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x417020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x417020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x418044], 0
je 0x403fc5
cmp word [0x418218], 0xd7b2
jne 0x403f8d
cmp dword [0x418220], 0
jbe 0x403f8d
mov eax, 0x418214
call dword [0x418230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x403fe1
push 0
push 0x417064
push 0x41706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405bea
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404358
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ef4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bd4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bf1
lea eax, [ebp - 0x10]
call fcn.004040e8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404584
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407881
test al, 0x10
jne 0x407885
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a2a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a2dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041d8
jmp 0x40a2e6
mov eax, ebx
mov edx, esi
call fcn.0040413c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a2f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a311
mov al, byte [esp]
jmp 0x40a313
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b76c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b7d0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404358
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407560
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7d7
lea eax, [ebp - 0xc]
call fcn.004040e8
ret
Function at 0x40cc74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ce85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x417628]
cmp dword [eax], 2
jne 0x40cdc7
mov byte [ebp - 0x203], bl
mov byte [ebp - 0x202], 0x3a
mov byte [ebp - 0x201], 0
mov byte [ebp - 0x102], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x102]
push eax
lea eax, [ebp - 0x203]
push eax
call sub.kernel32.dll_QueryDosDeviceA
mov edx, esi
lea eax, [ebp - 0x102]
call fcn.00407bbc
lea eax, [ebp - 0x208]
push eax
mov eax, dword [esi]
mov ecx, 4
mov edx, 1
call fcn.004045e4
mov eax, dword [ebp - 0x208]
mov edx, 0x40ce9c
call fcn.004044d0
jne 0x40cdbb
push esi
mov eax, dword [esi]
call fcn.00404384
mov ecx, eax
mov eax, dword [esi]
mov edx, 5
call fcn.004045e4
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
mov ecx, 4
mov edx, 1
call fcn.004045e4
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004071b4
mov eax, dword [ebp - 0x20c]
mov edx, 0x40ceac
call fcn.004044d0
jne 0x40ce67
lea eax, [ebp - 0x214]
push eax
mov eax, dword [esi]
call fcn.00404384
mov ecx, eax
mov eax, dword [esi]
mov edx, 5
call fcn.004045e4
mov ecx, dword [ebp - 0x214]
mov eax, esi
mov edx, 0x40cebc
call fcn.004043d0
jmp 0x40ce67
mov eax, esi
call fcn.004040e8
jmp 0x40ce67
lea eax, [ebp - 0x21c]
mov edx, ebx
call fcn.004042d0
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.004071b4
mov eax, dword [ebp - 0x218]
mov al, byte [eax]
sub al, 0x40
mov byte [ebp - 1], al
mov byte [ebp - 0x102], 0
pushal
push es
xor ebx, ebx
mov bh, 2
mov bl, byte [ebp - 1]
lea edx, [ebp - 0x102]
push 0
push 0x71aa
push 0x2a0010
call sub.kernel32.dll_BaseThreadInitThunk
pop es
popal
mov edx, esi
lea eax, [ebp - 0x102]
call fcn.00407bbc
cmp dword [esi], 0
je 0x40ce67
pushal
push ds
push es
xor ebx, ebx
lea esi, [ebp - 0x102]
lea edi, [ebp - 0x203]
mov ecx, 0
mov cl, 2
mov ch, 0
push ecx
push 0x7160
push 0x2a0010
call sub.kernel32.dll_BaseThreadInitThunk
pop es
pop ds
popal
mov edx, esi
lea eax, [ebp - 0x203]
call fcn.00407bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce8c
lea eax, [ebp - 0x21c]
mov edx, 6
call fcn.0040410c
ret

Function at 0x414f2c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00414af4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404584
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x414f8a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x417534]
mov dl, 1
mov eax, dword [0x4149ac]
call fcn.0040ab68
call fcn.00403b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4160f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x188
push esi
call sub.user32.dll_SendMessageA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4160d6
lea eax, [ebp - 0x405]
xor ecx, ecx
mov edx, 0x400
call fcn.00402ed4
lea eax, [ebp - 0x405]
push eax
push ebx
push 0x189
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 4]
lea eax, [ebp - 0x405]
call fcn.00407bbc
push 1
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004045e4
lea eax, [ebp - 0x40c]
mov edx, 0x41610c
call fcn.0040438c
mov eax, dword [ebp - 0x40c]
call fcn.00404584
push eax
push 0x416110
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4160fe
lea eax, [ebp - 0x40c]
call fcn.004040e8
lea eax, [ebp - 4]
call fcn.004040e8
ret

Function at 0x4161f4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4162a6
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.comctl32.dll_InitCommonControls
push 0x12c
mov eax, dword [0x4189dc]
push eax
call sub.user32.dll_LoadIconA
push eax
push 1
push 0x80
push ebx
call sub.user32.dll_SendMessageA
xor edx, edx
mov ax, 0x10
call fcn.00406188
push eax
push 0
push 0x1a0
push 0x68
push ebx
call sub.user32.dll_SendDlgItemMessageA
mov eax, ebx
call fcn.00415af8
call fcn.00402cd0
test eax, eax
jle 0x416276
lea edx, [ebp - 4]
mov eax, 1
call fcn.00402d38
mov eax, dword [ebp - 4]
call fcn.00404584
push eax
push 0x66
push ebx
call sub.user32.dll_SetDlgItemTextA
call fcn.0041539c
test al, al
je 0x416290
push 0
push 1
push 0xf1
push 0x6e
push ebx
call sub.user32.dll_SendDlgItemMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4162ad
lea eax, [ebp - 4]
call fcn.004040e8
ret
Function at 0x401dc9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
mov ebx, eax
movzx eax, word [0x4197b0]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401e0d
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401e33
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401e1e
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401e33
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x401ead
cmp dword [0x4197c0], 0
jne 0x401eab
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x4197c0], 1
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x4197b0]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401ea0
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401eab
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 2], ch
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x404b58
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x404b5d
jmp fcn.004044b0
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x404ba4
lea eax, [ebp - 0x714]
push eax
call fcn.00402b1e
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00402ad3
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x404baf
jmp 0x404bb4
jmp fcn.004044b0
cmp dword [ebp - 0x37c], 0
jne 0x404c5e
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402cea
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x404c4a
lea eax, [ebp - 0x714]
push eax
call fcn.00402b1e
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.00402bb3
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret