joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406580
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460b30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 0xc]
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
mov dword [ebp - 0x24], ebx
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [esi + ecx*8]
lea edx, [ecx*8]
mov dword [ebp - 0x20], edx
cmp eax, dword [ebx + 4]
jne 0x406614
mov esi, dword [ebx + 4]
jmp 0x40661a
mov esi, dword [esi + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x40662c
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x406673
cmp esi, eax
jne 0x406620
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40665c
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4066b8
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x4066d8
mov edi, dword [ebp + 0x10]
push edi
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
dec dword [ebx + 8]
call fcn.00438200
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4066c0
mov dword [ecx], edi
jmp 0x4066d8
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4066d8
add edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.00406320
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov byte [eax + 4], 1
jmp 0x40669a
Function at 0x40dfd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460c96
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x47c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004381cd
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00425679
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4131e0
Capabilities:
Create service
Persist via windows service
Start service
Terminate process

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x413252
push 0xf01ff
push str.winning_sso_starter
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
push 0
push 0
test esi, esi
jne 0x41323c
push eax
push eax
push eax
push str.C:winning_sso_starterwinning_sso_starter.exe_start_http_server
push 1
push 2
push 0x20
push 0xf01ff
push str.winning_sso_starter
push str.winning_sso_starter
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
ret
push 0
push 0x47244c
push 0x472454
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00443edf
int3
Function at 0x4133f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461d28
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x134], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x138], esi
mov dword [esi + 0x10], 0
jb 0x413461
mov eax, dword [esi]
jmp 0x413463
mov eax, esi
push 0
push 0x471428
mov byte [eax], 0
call fcn.004030c0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x104
mov dword [ebp - 0x118], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jne 0x4134bd
xor ecx, ecx
jmp 0x4134cf
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4134c6
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.004030c0
lea eax, [ebp - 0x130]
cmp esi, eax
je 0x41352a
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x4134ff
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004036e0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x413517
mov eax, dword [esi]
jmp 0x413519
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x130]
push eax
call fcn.004035d0
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jb 0x413548
inc ecx
push ecx
push dword [ebp - 0x130]
lea ecx, [ebp - 0x130]
call fcn.004036e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x413600
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461d60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x5c]
call fcn.00413570
push eax
mov edx, str.C:winning_sso_starterloglog
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405cc0
push str..txt
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040f550
mov eax, dword [ebp - 0x30]
add esp, 8
cmp eax, 0x10
jb 0x413673
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004036e0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x41369a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004036e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x4724ac
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00444527
mov eax, dword [ebp - 0x2c]
add esp, 0xc
test eax, eax
jne 0x4136cf
push eax
push str.C:winning_sso_starterlog
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or esi, 0xffffffff
jmp 0x4136e8
push esi
push 0x4724cc
push eax
call fcn.004130d0
push dword [ebp - 0x2c]
call fcn.00443f6b
add esp, 0x10
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4136fd
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004036e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x4159e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
xor eax, eax
mov dword [ebp - 0xc], ebx
mov edx, ecx
mov dword [ebp - 8], edx
test ebx, ebx
jle 0x415aa4
push esi
push edi
mov esi, 1
movzx ecx, byte [edx + esi - 1]
mov dword [ebp - 4], ecx
cmp esi, ebx
jl 0x415a12
xor edx, edx
jmp 0x415a16
movzx edx, byte [esi + edx]
lea edi, [esi + 1]
cmp edi, ebx
jl 0x415a21
xor edi, edi
jmp 0x415a29
mov edi, dword [ebp - 8]
movzx edi, byte [esi + edi + 1]
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 3
shl dword [ebp - 4], 4
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx], cl
mov ecx, edx
shr ecx, 4
or ecx, dword [ebp - 4]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx + 1], cl
add eax, 2
mov ebx, dword [ebp - 0xc]
cmp esi, ebx
jge 0x415a7a
and edx, 0xf
mov ecx, edi
shl edx, 2
shr ecx, 6
or edx, ecx
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp + 8]
mov byte [eax + edx], cl
inc eax
jmp 0x415a7d
mov edx, dword [ebp + 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jge 0x415a91
and edi, 0x3f
mov cl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edx], cl
inc eax
mov edx, dword [ebp - 8]
add esi, 3
lea ecx, [esi - 1]
cmp ecx, ebx
jl 0x415a02
pop edi
pop esi
mov ecx, eax
pop ebx
and ecx, reloc.WS2_32.dll_closesocket
jns 0x415ab4
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x415ade
mov edx, dword [ebp + 8]
nop dword [eax]
mov byte [eax + edx], 0x3d
inc eax
mov ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x415ad4
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x415ac0
mov byte [eax + edx], 0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x415af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
jne 0x415b26
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
push esi
push 0x360
call fcn.0043da46
mov esi, eax
add esp, 4
test esi, esi
jne 0x415b54
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
push 0x104
lea edx, [ebp - 0x20c]
mov ecx, edi
call fcn.00417b90
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415bda
test al, 0x10
je 0x415bda
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x415b90
mov eax, dword [0x472ab8]
mov dword [ecx], eax
mov ax, word [0x472abc]
mov word [ecx + 4], ax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 4], eax
mov eax, esi
mov byte [esi + 0x25c], 0
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
push esi
call fcn.0043d817
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
pop edi
call fcn.004381bc
mov esp, ebp
pop ebp
ret

Function at 0x4165d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x47c070]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x67452301
mov dword [esp + 8], 0xefcdab89
mov dword [esp + 0xc], 0x98badcfe
mov dword [esp + 0x10], 0x10325476
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push esi
test eax, eax
je 0x41663b
lea esi, [ebp + 0xc]
nop
push dword [esi + 4]
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.004163a0
mov eax, dword [esi + 8]
lea esi, [esi + 8]
add esp, 4
test eax, eax
jne 0x416620
lea edx, [esp + 8]
lea ecx, [esp + 0x64]
call fcn.004164c0
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x68]
call fcn.00417cc0
mov ecx, dword [esp + 0x78]
add esp, 4
mov eax, dword [ebp + 8]
pop esi
xor ecx, esp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x4182d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 8], eax
movq xmm0, qword [ebp + 8]
lea eax, [ebp - 0x1b4]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x1b8], esi
push eax
push 0x202
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41834b
mov esi, 0x47c9e0
mov eax, 2
mov dword [ebp - 0x1b8], esi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x418354
mov dword [esi], ecx
xor ecx, ecx
mov dword [edi + 0x14], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043da46
add esp, 4
mov dword [edi + 0x18], eax
xor ebx, ebx
mov esi, dword [ebx + esi]
push 0xc
push 1
call fcn.00443614
mov dword [eax], edi
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov ecx, dword [edi + 0x18]
mov dword [ebx + ecx], eax
mov eax, dword [edi + 0x18]
mov eax, dword [ebx + eax]
push eax
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call eax
mov esi, dword [ebp - 0x1b8]
add ebx, 4
add esp, 0xc
cmp ebx, 8
jl 0x418375
cmp dword [0x47ebf0], 4
jl 0x418465
push 0x14
lea eax, [ebp - 0x24]
push str.mongoose.c:2194
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 0x10], 0
test eax, eax
jne 0x4183ee
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x24]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push 0x472ba4
call fcn.004157b0
add esp, 4
cmp dword [0x47ebf0], 4
jl 0x418465
push 0x14
lea eax, [ebp - 0x24]
push str.mongoose.c:2195
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 0x10], 0
test eax, eax
jne 0x418445
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x24]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push edi
push str.init_mgr_p
call fcn.004157b0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x419d50
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0x10
push 0
mov ebx, edx
mov dword [ebp - 0xc], 1
push ebx
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x419e05
push 4
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x419dfb
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x419dfb
cmp ebx, 2
je 0x419dc5
push closesocket
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x419dfb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x419e20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test byte [edi + 0x7c], 2
je 0x419f02
push 0x10
lea eax, [edi + 0x18]
push eax
push 0
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [0x47ebf0], 4
mov ebx, eax
jl 0x419ed5
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3333
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x419e90
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
call fcn.004437a1
mov esi, dword [eax]
movzx eax, word [edi + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
push ebx
push dword [edi + 0x10]
push edi
push str._p__d__d__d__s:_hu
call fcn.004157b0
add esp, 0x1c
test ebx, ebx
jle 0x419fd2
mov eax, dword [edi + 0x3c]
cmp ebx, eax
ja 0x419efa
mov ecx, dword [edi + 0x38]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00439500
add esp, 0xc
sub dword [edi + 0x3c], ebx
mov dword [ebp - 0x20], ebx
jmp 0x419fc0
push 0
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x47ebf0], 4
mov esi, eax
jl 0x419f71
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3366
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x419f4d
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push dword [edi + 0x10]
push esi
push edi
push str._p__d_bytes_____d
call fcn.004157b0
add esp, 0x10
test esi, esi
jns 0x419f9a
mov ecx, esi
call fcn.00419860
test eax, eax
je 0x419f98
or dword [edi + 0x7c], 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x419fd2
test esi, esi
je 0x419fbd
mov eax, dword [edi + 0x3c]
cmp esi, eax
ja 0x419fbd
mov ecx, dword [edi + 0x38]
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00439500
add esp, 0xc
sub dword [edi + 0x3c], esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
xor edx, edx
push eax
push 4
mov ecx, edi
call fcn.00417f20
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x419ff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
mov esi, ecx
call fcn.0043da46
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41a083
cmp dword [0x47ebf0], 4
jl 0x41a154
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3392
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], bl
test eax, eax
jne 0x41a053
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push 0x472d20
call fcn.004157b0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jae 0x41a091
xor eax, eax
jmp 0x41a09d
sub eax, ecx
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
push 0
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [0x47ebf0], 4
mov edi, eax
jl 0x41a108
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3425
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x41a0e4
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push dword [esi + 0x10]
push edi
push esi
push str._p__d_bytes__PLAIN______d
call fcn.004157b0
add esp, 0x10
test edi, edi
jle 0x41a11d
push 1
push edi
mov edx, ebx
mov ecx, esi
call fcn.00418a70
add esp, 8
jmp 0x41a126
push ebx
call fcn.0043d817
add esp, 4
test edi, edi
jne 0x41a142
or dword [esi + 0x7c], 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00419860
test eax, eax
je 0x41a154
or dword [esi + 0x7c], 0x800
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x41a170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
push 0x5dc
mov ebx, ecx
mov dword [ebp - 0x20], eax
call fcn.0043da46
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x41a210
cmp dword [0x47ebf0], 4
jl 0x41a1fa
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3447
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x41a1db
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push str.Out_of_memory
call fcn.004157b0
add esp, 4
mov eax, 0xfffffff4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
push esi
push 0
push 0x5dc
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jg 0x41a29d
cmp dword [0x47ebf0], 4
jl 0x41a293
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3452
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x41a263
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
call fcn.004437a1
push dword [eax]
call fcn.00449ede
add esp, 4
push eax
push ebx
push str._p_recvfrom:__s
call fcn.004157b0
add esp, 0xc
push dword [edi]
call fcn.0043d817
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.00439450
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, ecx
lea eax, [ebp - 0x2028]
push 0x2004
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
push 0
mov esi, eax
lea eax, [ebp - 0x2024]
push 1
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x47ebf0], 4
jl 0x41a6a0
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:3586
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x41a680
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push esi
push str.read__d_from_ctl_socket
call fcn.004157b0
add esp, 8
cmp esi, 4
jl 0x41a6da
mov eax, dword [ebp - 0x2028]
test eax, eax
je 0x41a6da
mov esi, dword [edi]
test esi, esi
je 0x41a6da
lea ecx, [ebp - 0x2024]
push ecx
push 0
push esi
call eax
add esp, 0xc
test esi, esi
jne 0x41a6cc
mov esi, dword [edi]
jmp 0x41a6ce
mov esi, dword [esi]
test esi, esi
je 0x41a6da
mov eax, dword [ebp - 0x2028]
jmp 0x41a6b5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004381bc
mov esp, ebp
pop ebp
ret