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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x78]
test al, 2
je 0x40da2d
lea eax, [esi + 0x18]
push 0x10
push eax
push 0
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3457
push 4
mov edi, eax
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40dacc
mov ax, word [esi + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.00413c4a
push eax
push edi
push dword [esi + 0x10]
push esi
push str._p__d__d__d__s:_hu
call fcn.00408faa
add esp, 0x1c
jmp 0x40dacc
test al, 0x10
je 0x40da8f
test al, 0x20
je 0x40da87
push dword [esi + 0x3c]
push dword [esi + 0x38]
push esi
call fcn.0040e8d6
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3466
push 4
mov edi, eax
call fcn.00408f0f
add esp, 0x18
test eax, eax
je 0x40da6d
push dword [esi + 0x10]
push edi
push esi
push 0x41b0c8
call fcn.00408faa
add esp, 0x10
test edi, edi
jge 0x40da81
cmp edi, 0xffffffff
je 0x40dad5
cmp edi, 0xfffffffe
je 0x40dad5
or byte [esi + 0x79], 8
jmp 0x40dad5
and byte [esi + 0x78], 0x3f
jmp 0x40dacc
push esi
call fcn.0040dd74
jmp 0x40dad4
push 0
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_send]
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3484
push 4
mov edi, eax
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40dacc
push dword [esi + 0x10]
push edi
push esi
push str._p__d_bytes_____d
call fcn.00408faa
add esp, 0x10
push edi
push esi
call fcn.0040c6c7
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x40dad8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov ebx, 0x400
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x40db1b
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3502
push 4
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40dc2c
push 0x41ace0
call fcn.00408faa
pop ecx
jmp 0x40dc2c
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x78]
test al, 0x10
je 0x40dbb7
test al, 0x20
je 0x40dba4
push ebx
push edi
push esi
call fcn.0040e877
mov ebp, eax
add esp, 0xc
test ebp, ebp
jle 0x40db8c
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3513
push 4
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40db69
push dword [esi + 0x10]
push ebp
push esi
push str._p__d_bytes_____d__SSL_
call fcn.00408faa
add esp, 0x10
push 1
push ebp
push edi
push esi
call fcn.0040c751
add esp, 0x10
xor edi, edi
test byte [esi + 0x79], 8
jne 0x40db8c
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x40db2e
push edi
call dword [sym.imp.MSVCRT.dll_free]
test ebp, ebp
pop ecx
jge 0x40dc2c
cmp ebp, 0xffffffff
jmp 0x40dc26
push edi
call dword [sym.imp.MSVCRT.dll_free]
push esi
call fcn.0040dd74
pop ecx
jmp 0x40db15
push 0
push ebx
push esi
call fcn.0040dc31
pop ecx
pop ecx
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3533
push 4
mov ebp, eax
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40dbf9
push dword [esi + 0x10]
push ebp
push esi
push str._p__d_bytes__PLAIN______d
call fcn.00408faa
add esp, 0x10
test ebp, ebp
jle 0x40dc0c
push 1
push ebp
push edi
push esi
call fcn.0040c751
add esp, 0x10
jmp 0x40dc14
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
test ebp, ebp
jne 0x40dc1d
or dword [esi + 0x78], ebx
jmp 0x40dc2c
jge 0x40dc2c
call fcn.0040d579
test eax, eax
je 0x40dc2c
or byte [esi + 0x79], 8
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x5dc
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, dword [esp + 0x1c]
pop ecx
test eax, eax
mov dword [ebx], eax
jne 0x40dd12
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3553
push 4
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40dd0d
push str.Out_of_memory
call fcn.00408faa
pop ecx
push 0xfffffffffffffff4
pop eax
jmp 0x40dd71
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push esi
mov esi, dword [esp + 0x20]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jg 0x40dd6e
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3558
push 4
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40dd65
call fcn.00413c4a
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
push eax
push esi
push str._p_recvfrom:__s
call fcn.00408faa
add esp, 0x10
push dword [ebx]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40e157
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004177b0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x2004]
push 0x2004
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
push ebx
lea eax, [ebp - 0x2000]
push 1
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:3685
push 4
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x40e1bc
push edi
push str.read__d_from_ctl_socket
call fcn.00408faa
pop ecx
pop ecx
cmp edi, 4
jl 0x40e1f3
cmp dword [ebp - 0x2004], ebx
je 0x40e1f3
push ebx
push esi
call fcn.0040d1cd
pop ecx
pop ecx
mov edi, eax
cmp edi, ebx
je 0x40e1f3
lea eax, [ebp - 0x2000]
push eax
push ebx
push edi
call dword [ebp - 0x2004]
push edi
push esi
call fcn.0040d1cd
add esp, 0x14
jmp 0x40e1d2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e1f8
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10
or dword [ebp + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
or dword [esi], 0xffffffff
pop eax
xor edi, edi
mov dword [ebp - 4], eax
push eax
lea ebx, [esi + 4]
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x18], 2
push edi
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push 2
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40e342
push dword [ebp - 4]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40e342
cmp dword [ebp + 0xc], 1
jne 0x40e293
push 1
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x40e342
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40e342
push eax
push dword [ebp + 0xc]
push 2
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40e342
push dword [ebp - 4]
mov edi, dword [sym.imp.WS2_32.dll_connect]
lea ecx, [ebp - 0x18]
push ecx
push eax
call edi
test eax, eax
jne 0x40e342
cmp dword [ebp + 0xc], 2
jne 0x40e302
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40e342
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x40e342
mov eax, dword [ebp + 8]
jmp 0x40e314
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040e394
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x40e342
push dword [esi]
call fcn.00413883
push dword [ebx]
call fcn.00413883
pop ecx
pop ecx
push 1
pop esi
cmp dword [ebp + 0xc], esi
jne 0x40e33d
lea eax, [ebp + 8]
push eax
call fcn.0040e372
pop ecx
mov dword [ebp - 8], esi
jmp 0x40e36a
cmp dword [esi], 0xffffffff
je 0x40e34e
push esi
call fcn.0040e372
pop ecx
cmp dword [ebx], 0xffffffff
je 0x40e35a
push ebx
call fcn.0040e372
pop ecx
cmp dword [ebp + 8], 0xffffffff
je 0x40e36a
lea eax, [ebp + 8]
push eax
call fcn.0040e372
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e3ee
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10
pop eax
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
je 0x40e41e
call dword [sym.imp.WS2_32.dll_getpeername]
leave
ret
call dword [sym.imp.WS2_32.dll_getsockname]
leave
ret
Function at 0x412873
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 8]
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x412898
push eax
push dword [esp + 0xc]
push 0x41c5b0
push dword [esp + 0x10]
call fcn.00412811
add esp, 0x10
ret

Function at 0x413042
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi]
test eax, eax
je 0x413079
mov ecx, dword [esp + 0xc]
xor edi, edi
mov edx, dword [ecx + 4]
sub edx, eax
je 0x413079
mov edx, dword [ecx]
add edx, eax
lea eax, [edx + edi]
mov edx, edi
and edx, 3
mov dl, byte [edx + esi + 4]
xor byte [eax], dl
mov eax, dword [esi]
mov edx, dword [ecx + 4]
inc edi
sub edx, eax
cmp edi, edx
jb 0x41305b
pop edi
pop esi
ret
Function at 0x413826
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
ret

Function at 0x413840
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
ret

Function at 0x41386f
Capabilities:
Create thread

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
ret

Function at 0x414379
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
test ebx, ebx
jne 0x41438f
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x1c]
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:11220
push 4
call fcn.00408f0f
mov edi, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x4143be
push dword [ebp + 0x30]
push edi
push dword [ebp + 0xc]
push str._s__d__p
call fcn.00408faa
add esp, 0x10
push 0x420
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x414471
push 0x400
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [esi + 0x404], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x408], eax
mov eax, dword [ebp + 0x20]
test eax, eax
mov dword [esi + 0x400], edi
jne 0x41440b
push 2
pop eax
mov dword [esi + 0x410], eax
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x41441b
push 5
pop eax
test ebx, ebx
mov dword [esi + 0x40c], eax
jne 0x41443f
lea eax, [ebp - 0x14]
push 0x11
push eax
call fcn.00414489
pop ecx
cmp eax, 0xffffffff
pop ecx
lea ebx, [ebp - 0x14]
jne 0x41443f
mov ebx, str.8.8.8.8
push ebx
push str.udp:___s:53
lea eax, [ebp - 0x30]
push 0x1a
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x30]
push 0x4145d8
push eax
push dword [ebp + 8]
call fcn.0040ca31
add esp, 0x1c
test eax, eax
jne 0x414476
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x414484
mov ecx, dword [ebp + 0x30]
mov dword [eax + 0x64], esi
test ecx, ecx
je 0x414482
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414489
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
lea eax, [ebp - 8]
push edi
push eax
xor edi, edi
push 0x20019
mov esi, str.SYSTEMControlSet001ServicesTcpipParametersInterfaces
push edi
push esi
push reloc.WS2_32.dll_bind
call ebx
cmp eax, edi
je 0x4144da
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str.cannot_open_reg_key__S:__ld_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
or dword [ebp - 0x10], 0xffffffff
jmp 0x4145d0
or dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], edi
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x1c], 0x400
push eax
mov dword [ebp - 0x14], 0x100
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4145c7
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x51c]
push edi
push eax
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x414580
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.NameServer
push dword [ebp - 4]
call esi
test eax, eax
jne 0x414559
cmp word [ebp - 0x11c], di
jne 0x414588
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.DhcpNameServer
push dword [ebp - 4]
call esi
test eax, eax
jne 0x414580
cmp word [ebp - 0x11c], di
jne 0x414588
inc dword [ebp - 0xc]
jmp 0x4144e7
lea eax, [ebp - 0x11c]
push 0x2c
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
cmp eax, edi
pop ecx
je 0x4145a0
mov word [eax], di
lea eax, [ebp - 0x11c]
push eax
push 0x41c9ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov dword [ebp - 0x10], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414d8c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x730
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
test eax, eax
je 0x414da9
cmp byte [eax], 0
jne 0x414da9
and dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x130]
push dword [ebp + 8]
push str._s.tmp
push 0x100
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x41d62c
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x18
test eax, eax
je 0x414de7
push eax
call ebx
pop ecx
push 0x41a028
push dword [ebp + 8]
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp - 0xc], edi
je 0x414e17
lea eax, [ebp - 0x130]
push 0x41d628
push eax
call esi
pop ecx
mov dword [ebp - 4], eax
pop ecx
test eax, eax
push edi
jne 0x414e1e
call ebx
pop ecx
xor eax, eax
jmp 0x414f2e
mov esi, dword [sym.imp.MSVCRT.dll_fgets]
mov edi, 0x200
lea eax, [ebp - 0x330]
push edi
push eax
call esi
add esp, 0xc
test eax, eax
je 0x414ee7
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x330]
push str.__:_:__:_:_s
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x414eca
push dword [ebp + 0x10]
lea eax, [ebp - 0x530]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x414eb2
push dword [ebp + 0xc]
lea eax, [ebp - 0x730]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x414eb2
inc dword [ebp - 8]
cmp dword [ebp + 0x14], eax
je 0x414eca
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp - 4]
call fcn.00414f33
add esp, 0x14
jmp 0x414eca
lea eax, [ebp - 0x330]
push eax
push 0x41b7d8
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x330]
push edi
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x414e3e
cmp dword [ebp - 8], eax
jne 0x414f05
cmp dword [ebp + 0x14], 0
je 0x414f05
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp - 4]
call fcn.00414f33
add esp, 0x14
push dword [ebp - 0xc]
call ebx
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_remove]
push dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x14
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415257
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004177b0
push esi
push edi
push 0x41e3b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x4152db
mov eax, dword [0x41e3b0]
push 4
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
cmp dword [0x41e3b0], esi
pop ecx
pop ecx
mov dword [0x41e3b4], eax
jle 0x4152d4
lea eax, [ebp - 0x2000]
push 0x2000
push eax
push dword [edi + esi*4]
call fcn.004152df
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
mov ecx, dword [0x41e3b4]
add esp, 0x10
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x41e3b0]
jl 0x41529e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
leave
ret

Function at 0x415a9a
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
cmp byte [0x41e1cc], 0
push esi
push edi
mov esi, 0x41e1cc
jne 0x415b11
lea eax, [ebp - 0xc8]
push 0xc8
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
test eax, eax
jne 0x415afb
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x415afb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x41b7d8
push 0x32
push esi
call edi
add esp, 0x10
cmp byte [0x41e1cc], 0
jne 0x415b11
push str.127.0.0.1
push 0x32
push esi
call edi
add esp, 0xc
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x415b47
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strlen
xor ecx, ecx
push 4
cmp ecx, eax
push str.http
sbb esi, esi
push edi
neg esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x10
test eax, eax
jne 0x415ba7
lea eax, [ebp - 0xc8]
push eax
push 0x41da94
call dword [sym.imp.MSVCRT.dll_printf]
push edi
push 0x41b7d8
lea eax, [ebp - 0xc8]
push 0xc8
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
jmp 0x415bca
push edi
push esi
call fcn.004159f7
pop ecx
push eax
push str._s_s
lea eax, [ebp - 0xc8]
push 0xc8
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
xor eax, eax
push 5
push eax
lea ecx, [ebp - 0xc8]
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret
Function at 0x415ecb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
test eax, eax
jle 0x415f42
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x415f2c
push 0x10
push str.Error
jmp 0x415f33
push 0x30
push str.Warning
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp + 0x10], 0
je 0x415f50
push 1
call dword [sym.imp.MSVCRT.dll_exit]
leave
ret

Function at 0x415f52
Capabilities:
Terminate process

Disassembly:
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
push str.Sep__4_2017
push 0x41c56c
add eax, 0x40
push str.Mongoose_version__s__c__Cesanta__built_on__s_n
push eax
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Usage:_n
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.__mongoose__A__htpasswd_file___realm___user___passwd__n
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.__mongoose__config_file__n
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.__mongoose___option_value_...__n
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str._nOPTIONS:_n
add eax, 0x40
push eax
call esi
add esp, 0x38
cmp dword [str.ip_acl], 0
je 0x41604e
push ebx
push edi
mov edi, 0x41cef0
mov ebx, edi
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x415ffc
mov eax, dword [edi + 8]
push eax
push ecx
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push dword [edi]
add eax, 0x40
push str.____s__s____s__s
push eax
call esi
add esp, 0x18
jmp 0x416014
push dword [edi + 8]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push dword [edi]
push str.____s__s
push eax
call esi
add esp, 0x10
mov edi, dword [edi + 0xc]
test edi, edi
je 0x41602f
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edi
add eax, 0x40
push str.__default:__s_
push eax
call esi
add esp, 0xc
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
add ebx, 0x14
pop ecx
pop ecx
mov edi, ebx
cmp dword [ebx], 0
jne 0x415fd8
pop edi
pop ebx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop esi