joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, ecx
push 2
push 0x2000
push dword [esi + 0x198]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x40221e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jne 0x40223b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00409e10
push 0
push edi
push dword [esi + 0x198]
mov dword [esi + 0x1c8], eax
push dword [esi]
mov dword [esi + 0x1cc], edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x40229e
push 0
push edi
push dword [esi + 0x198]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, edi
jne 0x402216
cdq
push edx
push eax
call fcn.00401400
add esp, 8
push 0x51f778
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push 0x4a78a4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4022b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov esi, ecx
push 2
push 0x2000
push dword [esi + 0x198]
push dword [esi]
call edi
test eax, eax
jne 0x4022e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
jne 0x4022fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
push dword [esi + 0x198]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jle 0x402395
push 0
push ebx
push dword [esi + 0x198]
push dword [esi]
call edi
cmp eax, ebx
jne 0x4022d7
mov ecx, dword [esi + 0x198]
mov edx, ebx
push esi
push dword [esi + 0x1ac]
push dword [esi + 0x1a8]
call fcn.00401720
mov eax, ebx
add esp, 0xc
cdq
mov ebx, eax
mov edi, edx
add dword [esi + 0x1a8], ebx
push 0x4a78ac
adc dword [esi + 0x1ac], edi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call esi
push 0x51f770
call esi
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x4a78a4
call esi
push dword [esp + 0xc]
push 0x4a78a8
call esi
push edi
push ebx
call fcn.00401400
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402840
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x1a0]
mov eax, edx
mov ecx, dword [esi + 0x1a4]
or eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
je 0x40288b
mov edi, dword [esi + 0x1a8]
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x1a4], 0
cmp edi, edx
jne 0x402897
cmp eax, ecx
jne 0x402899
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ecx
ja 0x4028a1
jb 0x4028e1
cmp edi, edx
jb 0x4028e1
sub edi, edx
sbb eax, ecx
mov dword [ebp - 0xc], eax
jne 0x4028e1
cmp edi, 0x100000
ja 0x4028e1
push edi
call fcn.00453a23
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4028e1
push esi
push dword [ebp - 4]
mov edx, edi
mov ecx, ebx
push dword [ebp - 8]
call fcn.004016c0
add esp, 0xc
test eax, eax
jne 0x4028ea
push ebx
call fcn.00454bdd
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
push ebx
mov esi, eax
call fcn.00454bdd
add esp, 4
xor eax, eax
cmp esi, edi
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call fcn.00409e10
mov ebx, eax
mov edi, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call fcn.00409e10
sub eax, ebx
sbb edx, edi
test edx, edx
jg 0x403355
jl 0x403300
cmp eax, 0x1388
ja 0x403355
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea esp, [esp]
push 2
push 4
push dword [esi + 0x198]
push dword [esi]
call ebx
test eax, eax
je 0x403355
cmp eax, 0xffffffff
jne 0x403330
call edi
cmp eax, 0x2733
jne 0x403355
mov ecx, esi
call fcn.004031e0
cmp eax, 1
je 0x40335f
call fcn.00409e10
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
js 0x403310
jg 0x403355
cmp eax, 0x1388
jbe 0x403310
mov dword [esi + 0x1b8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403370
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4a3300]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, ecx
push 0
push eax
mov dword [esp + 0x18], esi
call fcn.00453200
add esp, 0xc
call fcn.00409e10
sub eax, dword [esi + 0x1c8]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
sbb edx, dword [esi + 0x1cc]
mov dword [esp + 0x14], edx
js 0x4034b6
jg 0x4033d1
cmp eax, 0x1f4
jb 0x4034b6
call fcn.00409e10
sub eax, dword [esi + 0x1c8]
sbb edx, dword [esi + 0x1cc]
mov dword [esp + 0x14], edx
js 0x4033fd
jg 0x4033f1
cmp eax, 0x4b0
jbe 0x4033fd
mov ecx, esi
call fcn.004032d0
jmp 0x4034b6
xor edi, edi
add esi, 0x34
mov eax, esi
cmp dword [eax], 0
je 0x403414
inc edi
add eax, 4
cmp edi, 0xa
jl 0x403404
jmp 0x40342d
mov eax, dword [esp + 0xc]
mov edx, 0xfff0
mov ecx, dword [eax + 0x6c]
call fcn.004017a0
mov ecx, dword [esp + 0xc]
mov dword [ecx + edi*4 + 0x34], eax
xor edi, edi
nop
mov eax, dword [esi]
test eax, eax
je 0x403486
push 0
push 0x40
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x403456
push dword [esi]
call ebx
mov dword [esi], 0
jmp 0x403486
cmp eax, 0xffffffff
jne 0x403481
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403486
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2749
je 0x403486
push dword [esi]
call ebx
mov dword [esi], 0
jmp 0x403486
cmp eax, 0x10
je 0x4034a1
inc edi
add esi, 4
cmp edi, 0xa
jl 0x403430
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
call fcn.00409e10
mov esi, dword [esp + 0xc]
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1cc], edx
add esi, 0x34
mov edi, 0xa
mov edi, edi
mov eax, dword [esi]
test eax, eax
je 0x4034cf
push eax
call ebx
mov dword [esi], 0
add esi, 4
dec edi
jne 0x4034c0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x404270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x485660
push 0x45aae0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4a3300]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x120], esi
push 0x2000
call fcn.00453a23
add esp, 4
mov dword [esi + 0x198], eax
test eax, eax
je 0x4043b9
push 0x100008
call fcn.00453a23
add esp, 4
mov dword [esi + 0x1d8], eax
test eax, eax
je 0x4043b9
mov byte [ebp - 0x11c], 0
push 0xff
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00453200
add esp, 0xc
movzx eax, word [esi + 0x62]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
movzx eax, byte [esi + 0x67]
push eax
movzx eax, byte [esi + 0x66]
push eax
movzx eax, byte [esi + 0x65]
push eax
movzx eax, byte [esi + 0x64]
push eax
push dword [esi]
push 0x481a60
lea eax, [ebp - 0x11c]
push eax
call fcn.004582cf
add esp, 0x20
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ebx, [ebx]
mov eax, dword [esi + 0x1b8]
test eax, eax
jne 0x40440f
push 0x100
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00453200
add esp, 0xc
movzx eax, word [esi + 0x62]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
movzx eax, byte [esi + 0x67]
push eax
movzx eax, byte [esi + 0x66]
push eax
movzx eax, byte [esi + 0x65]
push eax
movzx eax, byte [esi + 0x64]
push eax
push dword [esi]
push 0x481a88
lea eax, [ebp - 0x11c]
push eax
call fcn.004582cf
add esp, 0x20
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x198]
test eax, eax
je 0x4043d6
push eax
call fcn.00454bdd
add esp, 4
mov dword [esi + 0x198], 0
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x4043f3
push eax
call fcn.00454bdd
add esp, 4
mov dword [esi + 0x1d8], 0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push esi
call eax
mov dword [ebp - 4], 0xfffffffe
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404350
Function at 0x4044e0
Capabilities:
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], 0x10
push esi
push edi
mov word [ebp - 0x28], ax
mov edi, ecx
mov dword [ebp - 0x1e], eax
xorps xmm0, xmm0
mov word [ebp - 0x1a], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
movq qword [ebp - 0x26], xmm0
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x4045cf
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
movq qword [ebp - 0x16], xmm0
push eax
push edi
mov dword [ebp - 8], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4045cf
mov ecx, 0x3c0
lea esp, [esp]
cmp dword [ecx + 0x4aa0a0], 0
je 0x40456a
inc eax
cmp dword [ecx + 0x4aa280], 0
je 0x404574
inc eax
cmp dword [ecx + 0x4aa460], 0
je 0x40457e
inc eax
cmp dword [ecx + 0x4aa640], 0
je 0x404588
inc eax
cmp dword [ecx + 0x4aa820], 0
je 0x404592
inc eax
add ecx, 0x960
cmp ecx, 0x756c0
jb 0x404560
cmp eax, dword [0x5227d8]
jge 0x4045cf
xor ecx, ecx
xor eax, eax
lea esp, [esp]
cmp dword [eax + 0x4aa460], 0
jne 0x4045c2
cmp dword [eax + 0x4aa464], 0
je 0x4045e1
add eax, 0x1e0
inc ecx
cmp eax, 0x75300
jb 0x4045b0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
imul esi, ecx, 0x1e0
add esi, 0x4aa460
je 0x4045cf
push 0x1e0
push 0
push esi
call fcn.00453200
movzx eax, word [ebp - 0x26]
add esp, 0xc
mov word [esi + 0x60], ax
movzx eax, word [ebp - 0x16]
mov word [esi + 0x62], ax
mov eax, dword [ebp - 0x14]
mov dword [esi], edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x1b8], 0x404240
call fcn.00409e10
mov dword [esi + 0x1c0], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x404450
push 0
push 0
mov dword [esi + 0x1c4], edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40465a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x404682
push 0x1e0
push 0
push esi
call fcn.00453200
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push edx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx esi, ax
mov dword [ebp - 0x34], esi
test si, si
je 0x405107
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
test edi, edi
je 0x4050c4
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4050b0
sub ecx, edx
je 0x4050c4
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
mov eax, 0x51f784
xor ecx, ecx
jmp 0x4050d0
cmp dword [eax + 4], ebx
jne 0x4050de
cmp word [eax], si
je 0x405289
add ecx, 0xc
add eax, 0xc
cmp ecx, 0x2ee0
jb 0x4050d0
mov esi, 0x51f780
xor eax, eax
cmp word [esi + 4], 0
je 0x40511a
add eax, 0xc
add esi, 0xc
cmp eax, 0x2ee0
jb 0x4050f3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4051da
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
mov dword [ebp - 8], 1
push 4
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
push 0xffffff7f
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x80000
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x80000
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push ecx
mov ecx, edi
call fcn.0040a150
add esp, 4
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4051f3
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4051d3
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x4051d3
mov dword [ebp - 0x26], eax
xorps xmm0, xmm0
mov word [ebp - 0x22], ax
mov eax, 2
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x34]
movq qword [ebp - 0x2e], xmm0
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
push eax
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4051d3
push 0x1e
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x4051d3
mov dword [esi], edi
test edi, edi
je 0x405107
mov eax, dword [ebp - 0x34]
mov word [esi + 4], ax
mov dword [esi + 8], ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x4052a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00409e10
mov esi, edx
mov ebx, eax
mov dword [ebp - 0x74], esi
call fcn.00409e10
sub eax, ebx
sbb edx, esi
test edx, edx
jg 0x40530b
jl 0x4052da
cmp eax, 0x7530
ja 0x40530b
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x481ab0
call esi
mov ecx, edi
call fcn.0040ecb0
cmp eax, 1
je 0x40531e
call fcn.00409e10
sub eax, ebx
sbb edx, dword [ebp - 0x74]
mov dword [ebp - 0x7c], edx
js 0x4052e0
jg 0x40530b
cmp eax, 0x7530
jbe 0x4052e0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 0x63
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x70], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
call fcn.00409e10
sub eax, ebx
sbb edx, dword [ebp - 0x74]
push edx
push eax
lea eax, [ebp - 0x70]
push str._DEBUG___u__
push eax
call fcn.004582cf
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x405770
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4057b0
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
je 0x4057ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4057b0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x4057c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x40580d
push 0x481c48
push dword [edi + esi*4]
call fcn.00454621
add esp, 8
test eax, eax
je 0x40581f
inc esi
cmp esi, dword [ebp - 8]
jb 0x4057f3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x405840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x40588d
push str.__SDK
push dword [edi + esi*4]
call fcn.00454621
add esp, 8
test eax, eax
je 0x40589f
inc esi
cmp esi, dword [ebp - 8]
jb 0x405873
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x4058c0
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 0
mov ebx, eax
mov dword [ebp - 0xc], ebx
jbe 0x405925
mov esi, 1
mov edi, ebx
lea ecx, [ecx]
push str.__DEL
push dword [edi]
call fcn.00454621
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
jne 0x40591a
cmp esi, ecx
jb 0x40593d
inc esi
add edi, 4
lea eax, [esi - 1]
cmp eax, ecx
jb 0x405900
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + esi*4]
test esi, esi
je 0x405925
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea esp, [esp]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405983
push esi
call ebx
test eax, eax
jne 0x40597d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
test eax, eax
jne 0x40597d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jl 0x405950
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp - 0xc]
jmp 0x405926
Function at 0x4059a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x263]
push esi
push edi
push 0x257
push 0
push eax
mov dword [ebp - 0x2c0], ecx
mov byte [ebp - 0x264], 0
call fcn.00453200
lea edi, [ebp - 0x264]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4059e3
mov ax, word [0x481c6c]
mov esi, ebx
mov word [edi], ax
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x4059f8
lea edi, [ebp - 0x264]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405a08
mov ecx, ebx
lea edx, [ebp - 0x264]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x405a25
mov ecx, dword [str.____UP___DEL__]
mov dword [edx], ecx
mov ecx, dword [0x481c74]
mov dword [edx + 4], ecx
mov ecx, dword [0x481c78]
mov dword [edx + 8], ecx
mov cx, word [0x481c7c]
mov word [edx + 0xc], cx
mov cl, byte [0x481c7e]
mov byte [edx + 0xe], cl
mov edx, dword [ebp - 0x2c0]
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x405a65
lea edi, [ebp - 0x264]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405a75
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x264]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x405a92
push 0x40
mov word [edi], ax
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00453200
add esp, 0xc
mov dword [ebp - 0x2ac], 0x44
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x280], 0
xorps xmm0, xmm0
mov edi, 1
mov word [ebp - 0x27c], di
push eax
lea eax, [ebp - 0x2ac]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x264]
push eax
push 0
movdqu xmmword [ebp - 0x2bc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, edi
jne 0x405b20
push dword [ebp - 0x2b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2bc]
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x405b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
mov edi, ecx
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x25c]
push 0x5c
push eax
call fcn.00458540
add esp, 8
test eax, eax
je 0x405bb1
lea eax, [ebp - 0x25c]
push 0x5c
push eax
call fcn.00458540
add esp, 8
mov byte [eax], 0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x25c]
push 0x4a78b0
push eax
push str.Start
push str.PATH
call esi
push 0x257
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4b4], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x4b4]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.004581f3
add esp, 8
push 0x4a78b0
test eax, eax
jne 0x405c21
push edi
jmp 0x405c28
lea eax, [ebp - 0x25c]
push eax
push str.Start
push str.PATH
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret