joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b983
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x41a3f8]
add esp, 0xfffffcd8
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x324]
and dword [ebp - 0x328], 0
push ebx
push 0x4c
push 0
push eax
call fcn.0040d1e0
sub esp, 0xfffffff4
lea eax, [ebp - 0x328]
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
lea ecx, [ebp + 4]
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x2d0], 0x10001
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x20c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x328], 0xc0000417
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x31c], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov ebx, eax
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
or eax, eax
jne 0x40ba8c
test ebx, ebx
jne 0x40ba8c
push 2
call fcn.0040d1d8
pop ecx
push 0xc0000417
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
call fcn.0040bc1f
leave
ret

Function at 0x40baab
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x41b71c]
call fcn.0040b3bc
pop ebp
test eax, eax
je 0x40bac3
pop ecx
jmp eax
push 2
call fcn.0040d1d8
pop ecx
pop ebp
jmp fcn.0040b983
Function at 0x40bc1f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a3f8]
jne 0x40bc29
repz ret
jmp 0x40d378
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x41b8b0], eax
mov dword [0x41b8ac], ecx
mov dword [0x41b8a8], edx
mov dword [0x41b8a4], ebx
mov dword [0x41b8a0], esi
mov dword [0x41b89c], edi
mov word [0x41b8c8], ss
mov word [0x41b8bc], cs
mov word [0x41b898], ds
mov word [0x41b894], es
mov word [0x41b890], fs
mov word [0x41b88c], gs
pushfd
pop dword [0x41b8c0]
mov eax, dword [ebp]
mov dword [0x41b8b4], eax
mov eax, dword [ebp + 4]
mov dword [0x41b8b8], eax
lea eax, [ebp + 8]
mov dword [0x41b8c4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x41b800], 0x10001
mov eax, dword [0x41b8b8]
mov dword [0x41b7b4], eax
mov dword [0x41b7a8], 0xc0000409
mov dword [0x41b7ac], 1
mov eax, dword [0x41a3f8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x41a3fc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x41b7f8], eax
push 1
call fcn.0040d1d8
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x414b0c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x41b7f8], 0
jne 0x40d46a
push 1
call fcn.0040d1d8
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x40bd90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
mov eax, 0x5a4d
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], ax
je 0x40bda6
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bda2
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
pop ebp
sete dl
mov eax, edx
ret
Function at 0x40c301
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b3b3
mov ebx, eax
and dword [ebp - 4], 0
cmp dword [0x41b750], 0
jne 0x40c3b2
push 0x414a7c
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c463
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x414a70
push edi
call esi
or eax, eax
je 0x40c463
push eax
call fcn.0040b341
mov dword [esp], 0x414a60
push edi
mov dword [0x41b750], eax
call esi
push eax
call fcn.0040b341
mov dword [esp], 0x414a4c
push edi
mov dword [0x41b754], eax
call esi
push eax
call fcn.0040b341
mov dword [esp], 0x414a30
push edi
mov dword [0x41b758], eax
call esi
push eax
call fcn.0040b341
pop ecx
mov dword [0x41b760], eax
test eax, eax
je 0x40c3b2
push 0x414a18
push edi
call esi
push eax
call fcn.0040b341
pop ecx
mov dword [0x41b75c], eax
mov eax, dword [0x41b75c]
cmp eax, ebx
je 0x40c40a
cmp dword [0x41b760], ebx
je 0x40c40a
push eax
call fcn.0040b3bc
push dword [0x41b760]
mov esi, eax
call fcn.0040b3bc
mov edi, eax
pop ecx
pop ecx
or esi, esi
je 0x40c40a
test edi, edi
je 0x40c40a
call esi
test eax, eax
je 0x40c401
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c401
test byte [ebp - 0xc], 1
jne 0x40c40a
or dword [ebp + 0x10], 0x200000
jmp 0x40c443
mov eax, dword [0x41b754]
cmp eax, ebx
je 0x40c443
push eax
call fcn.0040b3bc
pop ecx
or eax, eax
je 0x40c443
call eax
mov dword [ebp - 4], eax
or eax, eax
je 0x40c443
mov eax, dword [0x41b758]
cmp eax, ebx
je 0x40c443
push eax
call fcn.0040b3bc
or eax, eax
pop ecx
je 0x40c443
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41b750]
call fcn.0040b3bc
or eax, eax
pop ecx
je 0x40c463
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c465
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d378
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a3f8]
jne 0x40bc29
repz ret
jmp 0x40d378
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x41b8b0], eax
mov dword [0x41b8ac], ecx
mov dword [0x41b8a8], edx
mov dword [0x41b8a4], ebx
mov dword [0x41b8a0], esi
mov dword [0x41b89c], edi
mov word [0x41b8c8], ss
mov word [0x41b8bc], cs
mov word [0x41b898], ds
mov word [0x41b894], es
mov word [0x41b890], fs
mov word [0x41b88c], gs
pushfd
pop dword [0x41b8c0]
mov eax, dword [ebp]
mov dword [0x41b8b4], eax
mov eax, dword [ebp + 4]
mov dword [0x41b8b8], eax
lea eax, [ebp + 8]
mov dword [0x41b8c4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x41b800], 0x10001
mov eax, dword [0x41b8b8]
mov dword [0x41b7b4], eax
mov dword [0x41b7a8], 0xc0000409
mov dword [0x41b7ac], 1
mov eax, dword [0x41a3f8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x41a3fc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x41b7f8], eax
push 1
call fcn.0040d1d8
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x414b0c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x41b7f8], 0
jne 0x40d46a
push 1
call fcn.0040d1d8
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x1000e100
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 1
mov eax, dword [ebp + 0x10]
shl eax, 1
push eax
call fcn.10005521
add esp, 8
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x62
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x66
mov dword [ebp - 0x18], 0
jmp 0x1000e16b
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jae 0x1000e1ab
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
sar ecx, 4
and ecx, 0xf
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov cl, byte [ebp + ecx - 0x14]
mov byte [eax + edx*2], cl
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
movzx eax, byte [edx]
and eax, 0xf
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, byte [ebp + eax - 0x14]
mov byte [edx + ecx*2 + 1], al
jmp 0x1000e162
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40366d
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_strchr]
adc eax, sym.imp.MSVCR80.dll_strchr
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x403684
pop esi
ret
push edi
mov edi, dword [sym.imp.MSVCR80.dll_isspace]
inc esi
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
jne 0x40368b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret
Function at 0x401ad0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4380c0], 0x24e1
mov eax, dword [0x4380c0]
sub eax, 0x24e1
mov dword [0x4380c0], eax
mov ecx, 1
test ecx, ecx
je 0x401b7b
mov edx, dword [0x4380c0]
cmp edx, dword [ebp + 0xc]
jb 0x401b07
jmp 0x401b7b
cmp dword [0x4380c0], 0
jne 0x401b25
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401b25
xor eax, eax
jmp 0x401b7b
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
mov ecx, dword [eax]
add ecx, dword [0x4380c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4380c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x64b60
mov eax, dword [0x4380c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
push eax
call fcn.00401200
add esp, 8
mov ecx, dword [0x4380c0]
add ecx, 4
mov dword [0x4380c0], ecx
jmp 0x401aed
mov esp, ebp
pop ebp
ret

Function at 0x805ac8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805ace
pop ebp
sub ebp, 6
sub ebp, 0x405ac8
jmp 0x805b2c
jmp 0x805b35
mov eax, 0x405ac8
add eax, ebp
add eax, 0x93
mov ecx, 0x610
mov edx, 0xaefceef
xor byte [eax], dl
inc eax
dec ecx
jne 0x805b4c
jmp 0x805b5f
test dword [edi - 0x10001079], ebp
out dx, eax
xchg edi, ebp
and eax, ebx
out dx, eax
fsubr qword [edi]
mov edi, 0x3eef7a10
invalid

Function at 0xae8a04
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae8a04
ret
Function at 0x4027b5
Capabilities:
Encode data using xor

Disassembly:
nop
jmp 0x4026c1
mov ebx, 0xa2a1de0
jmp 0x4026d8
push 0x9dbd95a6
mov eax, ebp
nop
call eax
nop
cmp al, 6
nop
jmp 0x4026f3
jl 0x402742
nop
jmp 0x402709
cmp bl, 0xe0
jmp 0x40271b
jne 0x402742
nop
jmp 0x40272f
mov ebx, 0x6f721347
nop
jmp 0x402742
jmp 0x402752
push 0
push ebx
nop
jmp 0x40276a
adc edi, edi
aad 0x31
rcl byte [eax + 0x9e9], 0
sar ch, 1
sub edx, edi
lea edx, [0x641127bf]
push dword [eax]
call ebp
xor eax, eax
nop
jmp 0x40277d
push dword fs:[eax]
nop
jmp 0x40278e
mov dword fs:[eax], esp
jmp 0x4027a0
call ebx
jmp 0x4026ad
call 0x402685
xor ecx, ecx
sub ecx, 0xffffff81
call 0x4027b5
rcr byte [esi - 0x7f], 0x76
push cs
mov edi, 0x83ba21ba
out dx, al
cld
invalid
xor dword [esi + 0xe], 0xba21babf
sub esi, 0xfffffffc
loop 0x4027b8
xchg esp, eax
jae 0x402769
push ebx
cmp byte [edx - 0x22], dl
inc ebp
inc eax
inc ebp
loope 0x4027b4
int3

Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
call 0x8002b1f
ret
Function at 0x402738
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
push ebx
mov edi, eax
mov esi, edx
mov eax, esi
add esp, 0xfffffef8
call fcn.00403d80
test edi, edi
jne 0x40276e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov edx, esp
mov ecx, eax
mov eax, esi
call fcn.00403e70
jmp 0x40278c
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
mov eax, ebx
mov edx, esi
call fcn.0040264c
mov ebx, eax
test edi, edi
je 0x40278c
cmp dword [esi], 0
je 0x40278c
dec edi
jmp 0x402775
add esp, 0x108
pop ebx
pop edi
pop esi
ret

Function at 0x402d14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40337c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40335c
xor eax, eax
push ebp
push 0x403355
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 0x403398
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 0x40335c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e010]
and ax, 0xffc0
mov esp, ebp
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e010], ax
pop ebp
ret

Function at 0x403b88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403be9
cmp word [0x40f208], 0xd7b2
jne 0x403bb1
cmp dword [0x40f210], 0
jbe 0x403bb1
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e074
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 0x403c10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01c], 0
jne 0x403c05
push 0
push 0x40e094
push 0x40e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, 8
call fcn.004024dc
mov dword [eax], esi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40f035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d04
push eax
push ebx
push edi
call sub.kernel32.dll_CreateThread
pop esi
pop ebx
pop edi
pop ebp
ret 0xc
Function at 0x404a54
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
add esp, 0xffffffd8
mov dword [esp], edx
mov byte [esp + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
test ebx, ebx
jle 0x404b72
push 0
lea edi, [esp + 0xc]
push edi
push 0x16
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.004024dc
mov edi, eax
mov eax, 0x22
call fcn.004024dc
mov esi, eax
push 0
mov ebp, edi
lea eax, [esp + 0xc]
push eax
push 0x26
push ebp
push ebx
call sub.kernel32.dll_ReadFile_1
mov ecx, 0x14
mov eax, ebp
mov edx, esi
call fcn.0040260c
mov eax, dword [edi + 6]
mov dword [esi + 6], eax
mov eax, dword [edi + 0xa]
mov dword [esi + 0xa], eax
mov eax, dword [edi + 0xe]
mov dword [esi + 0xe], eax
mov word [esi + 0x12], 1
mov ebp, dword [edi + 0xe]
mov eax, ebp
call fcn.004024dc
mov dword [esp + 0xc], eax
push 0
push 0
mov eax, dword [edi + 0x12]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
push ebp
mov eax, dword [esp + 0x18]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebx, eax
test ebx, ebx
jle 0x404b5b
push ebp
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
push 3
push ebx
call sub.kernel32.dll_UpdateResourceA
push 0
push ebx
call sub.kernel32.dll_EndUpdateResourceA
mov byte [esp + 4], 1
mov eax, dword [esp + 0xc]
call fcn.004024fc
mov eax, esi
call fcn.004024fc
mov eax, edi
call fcn.004024fc
mov al, byte [esp + 4]
add esp, 0x28
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404f48
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
xor ebx, ebx
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, ecx
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
push ebp
xor eax, eax
push 0x40502e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
mov edx, dword [ebp - 4]
call fcn.00402aa8
lea eax, [ebp - 0x1d4]
call fcn.00402838
call fcn.004025d0
lea eax, [ebp - 0x1d4]
mov edx, dword [ebp - 8]
call fcn.004042ec
call fcn.00403264
call fcn.004025d0
lea eax, [ebp - 0x1d8]
mov ecx, dword [ebp - 4]
mov edx, 0x405044
call fcn.00403f50
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
call fcn.004042ec
call fcn.00403264
call fcn.004025d0
lea eax, [ebp - 0x1d4]
call fcn.00402c18
call fcn.004025d0
test bl, bl
je 0x405008
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405035
lea eax, [ebp - 0x1d8]
call fcn.00403d80
mov edx, 2
lea eax, [ebp - 8]
call fcn.00403da4
ret
Function at 0x40538c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x405395
mov eax, dword [ebp - 4]
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 0x4014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
xor edx, edx
push ebp
push 0x405484
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x400f]
mov edx, 0x3fff
call fcn.00404a14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0x3fff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x400f]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004040fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea ecx, [ebp - 0x4014]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
cmp dword [ebp - 0x4014], 0
je 0x40545e
mov ecx, 0x3fff
mov edx, dword [ebp + 8]
lea edx, [ebp - 0x400f]
call fcn.00403eec
pop edx
pop ecx
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x40548b
lea eax, [ebp - 0x4014]
call fcn.00403d80
mov edx, 2
lea eax, [ebp - 8]
call fcn.00403da4
ret
Function at 0x40670c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 0x19c
push esi
push edi
push ebp
xor ecx, ecx
mov dword [ebx - 0x19c], ecx
mov dword [ebx - 0x198], ecx
mov ebp, edx
mov dword [ebx - 4], eax
mov eax, dword [ebx - 4]
call fcn.004040ec
xor eax, eax
push ebx
push 0x406853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebp
call fcn.00403d80
lea eax, [ebx - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebx
push 0x40681e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx - 4]
call fcn.004040fc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406814
mov edi, dword [eax + 0xc]
xor esi, esi
jmp 0x40680a
cmp dword [ebx - 4], 0
jne 0x4067f6
mov eax, dword [edi + esi*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebx - 0x198]
call fcn.00403eb0
mov edx, dword [ebx - 0x198]
mov eax, 0x40686c
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [edi + esi*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebx - 0x19c]
call fcn.00403eb0
mov edx, dword [ebx - 0x19c]
mov eax, 0x406878
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [edi + esi*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebp
call fcn.00403eb0
jmp 0x406814
mov eax, dword [edi + esi*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebp
call fcn.00403eb0
inc esi
cmp dword [edi + esi*4], 0
jne 0x406787
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406828
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40685a
lea eax, [ebx - 0x19c]
mov edx, 2
call fcn.00403da4
lea eax, [ebx - 4]
call fcn.00403d80
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004040fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406b75
test al, 0x10
jne 0x406b79
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x406b80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor edx, edx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
push ebp
push 0x406c59
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [0x40ea14]
cmp dword [eax], 0xa
jl 0x406bed
lea edx, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x406c70
call fcn.00403f50
jmp 0x406c15
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x406c84
call fcn.00403f50
mov eax, dword [ebx]
call fcn.00406b5c
or al, al
jne 0x406c2f
push 0
mov eax, dword [ebx]
call fcn.004040fc
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x406c9c
call fcn.00403f0c
xor edx, edx
pop eax
pop ecx
pop ecx
mov dword fs:[edx], eax
push 0x406c60
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00403da4
ret
Function at 0x40ad30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b36b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4760f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.00408040
mov dword [esi + 0x18], ebx
mov eax, 0xf
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
lea ecx, [esi + 0x3c]
mov dword [esi + 0x38], 0x4a
push 0xffffffffffffffff
mov dword [ecx + 0x18], eax
push ebx
lea eax, [esp + 0x28]
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x24], 2
mov byte [ecx + 4], bl
call fcn.00404610
cmp dword [esp + 0x38], 0x10
jb 0x40adae
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042172b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x1c