joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f62
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea eax, [ebp - 0x78]
push esi
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.0040149f
add esp, 0x18
push 0
push dword [ebp + 0xc]
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x401fe5
push esi
call fcn.004016b9
cmp dword [ebp + 0xc], 2
pop ecx
je 0x401fc9
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x401fc9
push eax
call fcn.00401df9
test eax, eax
pop ecx
jne 0x401fdf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.0040200e
add esp, 0x10
test eax, eax
jne 0x401fe9
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x40200b
push edi
lea edi, [eax + 0x14]
lea esi, [ebp - 0x14]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0xc], 2
pop edi
setne cl
dec ecx
and ecx, 0xf8
add ecx, 8
mov dword [eax + 0x54], ecx
pop esi
leave
ret

Function at 0x402096
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
mov esi, dword [ebp + 8]
push edi
push 0x14
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0xc]
or dword [esi + 0xc], 0xffffffff
or dword [esi + 8], 0xffffffff
add esp, 0xc
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x190]
lea edi, [esi + 8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 2
push edi
call fcn.00401269
cmp dword [edi], 0xffffffff
pop ecx
pop ecx
je 0x4020d3
pop edi
pop esi
leave
ret

Function at 0x402e4f
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x403cc8
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [esi - 4]
push edi
push fcn.00409595
push dword [esp + 0x1c]
push dword [edi + 0x18c]
call fcn.00401f62
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x403cf8
mov edi, dword [edi]
or dword [edi + 0x54], 0x10
jmp 0x403d6e
or byte [ebx + 0x56], 0x80
push str.CONNECT
mov dword [edi + 0x194], 6
mov dword [edi + 0x190], ebx
push dword [esi]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x403d32
push eax
mov eax, dword [edi]
push 0x13
push str.HTTP_1.1_200_OK_r_n_r_n
push dword [eax + 0x10]
call sub.WS2_32.dll_send
jmp 0x403d6b
push 7
push str.http:__
push dword [esi + 4]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x403d4c
add dword [esi + 4], 7
mov eax, dword [esi + 4]
cmp byte [eax], 0
je 0x403d62
mov eax, dword [esi + 4]
cmp byte [eax], 0x2f
je 0x403d62
inc eax
mov dword [esi + 4], eax
jmp 0x403d4f
push esi
push ebx
call fcn.00403d72
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x404109
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call fcn.00402628
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x6d
push esi
mov eax, dword [esi + 0x18c]
mov edi, dword [eax + 0x68]
mov dword [esi + 0x178], ebx
call fcn.004042d9
add esp, 0xc
cmp eax, 1
jne 0x40414f
push esi
call fcn.00405e80
pop ecx
jmp 0x404253
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00404258
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4041b7
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
pop ecx
jle 0x40414f
cmp eax, ebx
jne 0x40414f
mov edx, dword [esi + 0x10]
lea eax, [esi + 4]
mov ecx, 0x12e
test edx, edx
mov dword [eax + 0x174], ecx
jne 0x404192
mov edx, 0x420968
push edx
push dword [eax + 4]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
push ecx
push str.HTTP_1.1__d_Moved_r_nLocation:__.s_code_dorig_uri_squery_string_s_r_n_r_n
push eax
call fcn.00402145
push esi
call fcn.00405e80
add esp, 0x24
jmp 0x404253
push dword [ebp - 4]
mov edi, 0xc8
lea eax, [ebp - 0xdc]
push ebx
push str._d__s_n
push edi
push eax
call fcn.00402a01
add esp, 0x14
cmp dword [ebp + 0x10], 0
mov ebx, eax
je 0x4041fb
lea eax, [ebp + 0x14]
push eax
mov eax, edi
push dword [ebp + 0x10]
sub eax, ebx
push eax
lea eax, [ebp + ebx - 0xdc]
push eax
call fcn.00402a1b
add esp, 0x10
add ebx, eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x12c
jl 0x40420c
cmp eax, 0x18f
jle 0x404213
cmp eax, 0xcc
jne 0x404215
xor ebx, ebx
push ebx
push dword [ebp - 4]
push eax
push str.HTTP_1.1__d__s_r_nContent_Length:__d_r_nContent_Type:_text_plain_r_n_r_n
lea eax, [ebp - 0x1a4]
push edi
push eax
call fcn.00402a01
push eax
lea eax, [ebp - 0x1a4]
push eax
push dword [esi]
call fcn.004018a6
lea eax, [ebp - 0xdc]
push ebx
push eax
push dword [esi]
call fcn.004018a6
push esi
call fcn.00405e80
add esp, 0x34
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cab
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 8]
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x404cd0
push eax
push dword [esp + 0xc]
push 0x41f130
push dword [esp + 0x10]
call fcn.00404c4e
add esp, 0x10
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.0040c360
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x405606
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x405686
push 0x2254
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x40561c
push 8
jmp 0x4055fb
lea eax, [ebp - 0x4000]
push 0x2000
push eax
push dword [ebp + 8]
call fcn.0040403b
add esp, 0xc
lea eax, [ebp - 0x4000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40567c
and eax, 0x10
cmp al, 0x10
jne 0x40567c
lea eax, [ebp - 0x4000]
push 0x41f42c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
lea eax, [esi + 4]
pop ecx
push eax
lea eax, [ebp - 0x4000]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and byte [esi + 0x254], 0
mov dword [esi], eax
jmp 0x405686
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor esi, esi
mov eax, esi
pop esi
leave
ret

Function at 0x405d93
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040c360
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x2000
push dword [ebp + 0xc]
lea eax, [ebp - 0x2000]
push edi
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jle 0x405de7
push eax
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.004025d4
push dword [ebp + 0xc]
lea eax, [ebp - 0x2000]
push edi
push 1
push eax
call esi
add esp, 0x1c
jmp 0x405dbf
pop edi
pop esi
leave
ret

Function at 0x406267
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x407e1a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov edi, dword [eax + 0x28]
mov esi, dword [eax + 0x24]
cmp edi, 2
jl 0x407e9a
movzx eax, byte [esi + 1]
mov edx, eax
shr eax, 5
and edx, 0x7f
and eax, 4
cmp edx, 0x7e
mov dword [ebp - 8], eax
jge 0x407e63
cmp edi, eax
jl 0x407e60
add eax, 2
mov ecx, edx
mov dword [ebp - 4], eax
jmp 0x407e9a
cmp edx, 0x7e
jne 0x407e7e
lea edx, [eax + 4]
cmp edi, edx
jl 0x407e7e
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
mov dword [ebp - 4], edx
add ecx, eax
jmp 0x407e9a
add eax, 0xa
cmp edi, eax
jl 0x407e9a
push dword [esi + 2]
mov dword [ebp - 4], eax
call sub.WS2_32.dll_htonl
push dword [esi + 6]
call sub.WS2_32.dll_htonl
mov ecx, eax
mov edx, dword [ebp - 4]
lea eax, [ecx + edx]
test eax, eax
mov dword [ebp - 0x14], eax
jle 0x407f24
cmp eax, edi
jg 0x407f24
lea edi, [edx + esi]
mov dword [ebx + 0x170], ecx
mov dword [ebx + 0x16c], edi
mov dword [ebp - 0x10], 1
movzx eax, byte [esi]
mov dword [ebx + 0x17c], eax
xor eax, eax
cmp dword [ebp - 8], eax
jle 0x407ef8
cmp ecx, eax
mov dword [ebp - 0xc], eax
jle 0x407ef8
push 4
cdq
pop ebx
idiv ebx
mov eax, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dl, byte [edx + esi]
xor byte [edi + eax], dl
inc eax
cmp eax, ecx
mov dword [ebp - 0xc], eax
jl 0x407ed8
mov ebx, dword [ebp + 8]
push 0x67
push ebx
call fcn.004042d9
pop ecx
test eax, eax
pop ecx
jne 0x407f0c
mov eax, dword [ebx]
or dword [eax + 0x54], 1
mov eax, dword [ebx]
push dword [ebp - 0x14]
add eax, 0x24
push eax
call fcn.004010d3
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
and dword [ebp - 0x10], 0
jmp 0x407f1c

Function at 0x4085c8
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
cmp dword [ebx + 0x170], 0
mov edi, 0x1f4
jbe 0x4085e2
add edi, 0xffffffab
jmp 0x408626
push dword [esp + 0x14]
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
jne 0x4085f8
mov edi, 0xc9
jmp 0x408626
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
cmp dword [eax], 0x11
jne 0x40860c
mov edi, 0x195
jmp 0x408626
call esi
cmp dword [eax], 0xd
jne 0x40861a
mov edi, 0x193
jmp 0x408626
call esi
cmp dword [eax], 2
jne 0x408626
mov edi, 0x199
push 0
push edi
push ebx
call fcn.00404109
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x408636
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call fcn.00404fea
pop ecx
test eax, eax
pop ecx
je 0x408657
push 0
push 0x194
jmp 0x408692
test byte [ebp - 0x29], 0x40
push dword [ebp + 0xc]
je 0x408679
call fcn.0040869f
push 0
push 0xcc
push dword [ebp + 8]
call fcn.00404109
add esp, 0x10
leave
ret
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
test eax, eax
push 0
jne 0x40868d
push 0xcc
jmp 0x408692
push 0x1a7
push dword [ebp + 8]
call fcn.00404109
add esp, 0xc
leave
ret
Function at 0x40869f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2030
call fcn.0040c360
push edi
push dword [ebp + 8]
call fcn.004055e1
mov edi, eax
pop ecx
test edi, edi
je 0x408751
push esi
push edi
call fcn.004056cb
mov esi, eax
pop ecx
test esi, esi
je 0x40873c
push 0x41eeb4
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4086c1
push 0x41f428
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4086c1
push esi
push 0x2f
push dword [ebp + 8]
lea eax, [ebp - 0x2030]
push str._s_c_s
push 0x2000
push eax
call fcn.00402a01
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2030]
push eax
call fcn.00404fea
add esp, 0x20
lea eax, [ebp - 0x2030]
test byte [ebp - 0x29], 0x40
push eax
je 0x408733
call fcn.0040869f
jmp 0x408739
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
jmp 0x4086c1
push edi
call fcn.0040568b
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop ecx
push 1
pop eax
pop esi
pop edi
leave
ret

Function at 0x40891b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2030
call fcn.0040c360
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
push edi
inc eax
push 0x2f
push eax
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4089a7
mov ebx, edi
sub ebx, dword [ebp + 8]
cmp ebx, 0x2000
jge 0x40899e
push ebx
lea eax, [ebp - 0x2030]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + ebx - 0x2030], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2030]
push eax
call fcn.00404fea
add esp, 0x14
test eax, eax
je 0x408990
lea eax, [ebp - 0x2030]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
jne 0x40899e
cmp byte [edi + 1], 0
lea eax, [edi + 1]
je 0x4089a3
push 0x2f
push eax
jmp 0x408938
or eax, 0xffffffff
jmp 0x4089aa
xor eax, eax
jmp 0x4089aa
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4099ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040c360
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax + 0x34], 0x4000
ja 0x409a7f
cmp dword [esi + 0x1ac], 0
mov eax, 0x2000
jg 0x409a28
jl 0x409a22
cmp dword [esi + 0x1a8], eax
jae 0x409a28
mov eax, dword [esi + 0x1a8]
push eax
lea eax, [ebp - 0x2000]
push eax
push dword [esi + 0x190]
call dword [sym.imp.MSVCRT.dll__read]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x409a78
cdq
sub dword [esi + 0x1a8], eax
lea eax, [ebp - 0x2000]
push ecx
push eax
push dword [esi]
sbb dword [esi + 0x1ac], edx
call fcn.004018a6
add esp, 0xc
cmp dword [esi + 0x1ac], 0
jg 0x409a7f
jl 0x409a78
cmp dword [esi + 0x1a8], 0
ja 0x409a7f
push esi
call fcn.00405e80
pop ecx
pop esi
leave
ret
Function at 0x40a097
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
test eax, eax
je 0x40a0b4
cmp byte [eax], 0
jne 0x40a0b4
and dword [ebp + 0x14], 0
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push str._s.tmp
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x41fa60
push dword [ebp + 8]
call esi
add esp, 0x18
test eax, eax
je 0x40a0ef
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 0x41eec8
push dword [ebp + 8]
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp - 0xc], edi
je 0x40a123
lea eax, [ebp - 0x134]
push 0x420074
push eax
call esi
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x40a12a
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
jmp 0x40a275
push ebx
push edi
lea eax, [ebp - 0x334]
push 0x200
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
test eax, eax
mov esi, 0x41e7e8
mov ebx, str._s:_s:_s_n
je 0x40a216
lea eax, [ebp - 0x734]
push eax
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x334]
push str.__:_:__:_:_s
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x40a1f1
push dword [ebp + 0x10]
lea eax, [ebp - 0x534]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40a1dd
push dword [ebp + 0xc]
lea eax, [ebp - 0x734]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40a1dd
inc dword [ebp - 8]
cmp dword [ebp + 0x14], eax
je 0x40a1f1
push eax
lea eax, [ebp - 0x30]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
push eax
call fcn.00402df0
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 4]
call edi
add esp, 0x30
jmp 0x40a1f1
lea eax, [ebp - 0x334]
push eax
push 0x41e778
push dword [ebp - 4]
call edi
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x334]
push 0x200
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x40a159
cmp dword [ebp - 8], eax
jne 0x40a245
cmp dword [ebp + 0x14], 0
je 0x40a245
push 0
lea eax, [ebp - 0x30]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
push eax
call fcn.00402df0
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 4]
call edi
add esp, 0x30
push dword [ebp - 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_remove]
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x14
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40a73d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040c360
push esi
push edi
push 0x420bf0
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 0x40a7c1
mov eax, dword [0x420bf0]
push 4
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
cmp dword [0x420bf0], esi
pop ecx
pop ecx
mov dword [0x420bf4], eax
jle 0x40a7ba
lea eax, [ebp - 0x2000]
push 0x2000
push eax
push dword [edi + esi*4]
call fcn.0040a7c5
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
mov ecx, dword [0x420bf4]
add esp, 0x10
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x420bf0]
jl 0x40a784
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
leave
ret

Function at 0x40ae8b
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
cmp byte [0x420a50], 0
push esi
push edi
mov esi, 0x420a50
jne 0x40af02
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 0x40aeec
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40aeec
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x41e778
push 0x32
push esi
call edi
add esp, 0x10
cmp byte [0x420a50], 0
jne 0x40af02
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 0x40af38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push dword [ebp + 8]
call fcn.0040adf3
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
lea ecx, [ebp - 0xc8]
push 5
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret

Function at 0x40afbc
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x40b1a5
push 0
mov dword [0x420d88], esi
call fcn.00409d33
pop ecx
mov dword [0x420d84], eax
test eax, eax
pop ecx
mov edi, 0x41e778
jne 0x40aff1
push str.Failed_to_start_Mongoose.
push edi
call fcn.0040b080
pop ecx
pop ecx
push str.created_server
push edi
call fcn.0040a644
cmp dword [esp + 0x14], 1
pop ecx
pop ecx
jle 0x40b044
push 0x420490
push dword [esi + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40b044
cmp dword [esp + 0xc], 6
je 0x40b024
call fcn.0040b0de
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040a097
add esp, 0x10
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [esp + 0xc], 2
jne 0x40b076
push 0x42048c
push dword [esi + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40b071
push str.__help
push dword [esi + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40b076
call fcn.0040b0de
push esi
call fcn.0040b7ea
pop ecx
pop edi
pop esi
ret
Function at 0x40b094
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push dword [ebp + 0xc]
lea eax, [ebp - 0xc8]
push dword [ebp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0xc8]
push 0
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp + 0x10], 0
je 0x40b0dc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
leave
ret
Function at 0x40b47c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2710
call fcn.0040c360
push ebx
push esi
push edi
call fcn.00409475
mov esi, dword [ebp + 8]
mov edi, eax
mov dword [ebp + 8], 0x420968
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40b4a7
mov dword [ebp + 8], eax
mov ebx, str.reset
push ebx
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40b514
push str.save
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40b514
push str.text_html
push str.Content_Type
push esi
call fcn.00402946
push dword [0x41fc94]
push str.Cache_Control
push esi
call fcn.00402946
add esp, 0x18
push 0x41fcb0
push 0
push str.admin.html
call fcn.0040c268
pop ecx
pop ecx
push eax
push esi
call fcn.004024b4
add esp, 0xc
jmp 0x40b60b
push 0x12e
push esi
call fcn.004025f4
push dword [esi + 4]
push str.Location
push esi
call fcn.00402946
push 0
push 0x420968
push esi
call fcn.00402991
push ebx
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
add esp, 0x28
test eax, eax
jne 0x40b599
push 0x420aec
call dword [sym.imp.MSVCRT.dll_remove]
push dword [0x420d88]
call fcn.0040b7ea
mov eax, dword [edi]
pop ecx
test eax, eax
pop ecx
je 0x40b601
mov esi, edi
push eax
push dword [0x420d84]
call fcn.00409d0f
push eax
push dword [edi]
push dword [0x420d84]
call fcn.0040947b
mov eax, dword [esi + 8]
add esi, 8
add esp, 0x14
mov edi, esi
test eax, eax
jne 0x40b56e
jmp 0x40b601
push str.save
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40b601
mov eax, dword [edi]
test eax, eax
je 0x40b5f6
mov ebx, edi
lea ecx, [ebp - 0x2710]
push 0x270f
push ecx
push eax
push esi
call fcn.00409333
mov al, byte [ebp - 0x2710]
lea ecx, [ebp - 0x2710]
neg al
sbb eax, eax
and eax, ecx
push eax
push dword [ebx]
push dword [0x420d84]
call fcn.0040947b
mov eax, dword [edi + 8]
add edi, 8
add esp, 0x1c
mov ebx, edi
test eax, eax
jne 0x40b5b4
push 0x420aec
call fcn.0040b610
pop ecx
mov dword [0x420d94], 1
pop edi
pop esi
pop ebx
leave
ret