joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cfe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push 0x55cdc8
push eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call sub.MSVCR110.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x41d0aa
push 2
push 0
push esi
call sub.MSVCR110.dll_fseek
push esi
call sub.MSVCR110.dll_ftell
push esi
mov ebp, eax
call sub.MSVCR110.dll_rewind
push ebp
call fcn.005536a9
push esi
push ebp
mov ebx, eax
push 1
push ebx
call sub.MSVCR110.dll_fread
add esp, 0x28
cmp eax, ebp
je 0x41d069
push esi
call sub.MSVCR110.dll_fclose
push ebx
call sub.MSVCR110.dll_void___cdecl_operator_delete___void__
add esp, 8
jmp 0x41d0aa
push ebp
push ebx
lea ecx, [esp + 0x18]
call fcn.00408240
push ebx
call sub.MSVCR110.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esp + 0x10]
push edi
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004080f0
call fcn.0041e290
add esp, 0x1c
cmp dword [esp + 0x24], 0x10
jb 0x41d0bd
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x1c
ret
Function at 0x4253b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x30]
mov esi, ecx
push eax
mov dword [esp + 0x18], esi
call fcn.00412ec0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00412ec0
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp dword [esp + 0x3c], 0x10
jne 0x42548c
cmp dword [esp + 0x24], 0x10
jne 0x42548c
xor eax, eax
lea edi, [esi + 0x214]
nop
cmp byte [edi + eax], 0xff
jne 0x425423
inc eax
cmp eax, 0x10
jl 0x425410
mov esi, 0x132
jmp 0x425491
lea ecx, [esp + 0x14]
cmp ebp, 0x10
cmovae ecx, ebx
mov edx, edi
mov esi, 0xc
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x425485
add edx, 4
add ecx, 4
sub esi, 4
jae 0x425434
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push edi
push eax
add ecx, 0x1ac
call fcn.00427100
mov ecx, eax
call fcn.00427b60
mov ecx, eax
call fcn.004272c0
mov ecx, eax
call fcn.00425530
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x425491
mov esi, 0x131
jmp 0x425491
mov esi, 0x135
cmp ebp, 0x10
jb 0x42549f
push ebx
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x4254c7
push dword [esp + 0x2c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x4254ef
push dword [esp + 0x4c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jb 0x425517
push dword [esp + 0x64]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x44]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x38
ret 0x30

Function at 0x4270b0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x114], 0x10
lea eax, [esi + 0x100]
jb 0x4270c4
mov eax, dword [eax]
push eax
call sub.MSVCR110.dll_remove
add esp, 4
test eax, eax
jne 0x4270f3
cmp dword [esi + 0xfc], 0x10
lea eax, [esi + 0xe8]
mov dword [eax + 0x10], 0
jb 0x4270e9
mov eax, dword [eax]
mov byte [eax], 0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x428250
Capabilities:
Initialize winhttp library

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push esi
push 0x10000000
push 0
push 0
push 1
push 0
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x4282bd
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x38]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x4282c4
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
pop esi
add esp, 0x24
ret
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4282e1
mov edx, dword [esp + 0x34]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4282d2
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
pop esi
add esp, 0x24
ret

Function at 0x428300
Capabilities:
Initialize winhttp library

Disassembly:
sub esp, 0x24
push esi
push 0x10000000
push 0
push 0
push 1
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x42836d
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x428374
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
pop esi
add esp, 0x24
ret
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x428391
mov edx, dword [esp + 0x30]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x428382
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
pop esi
add esp, 0x24
ret
Function at 0x4287b0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1910
call fcn.00554690
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x190c], eax
mov eax, dword [esp + 0x1914]
push ebx
push ebp
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x14], eax
call sub.MSVCR110.dll__getcwd
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
jne 0x428814
pop ebp
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x190c]
xor ecx, esp
call fcn.0055423a
add esp, 0x1910
ret
lea eax, [esp + 8]
push eax
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x42892a
push edi
xor edi, edi
test dword [esp + 0xc], 0xfffffffc
jbe 0x428929
push esi
cmp ebx, 1
je 0x428928
push 0x104
lea eax, [esp + 0x101c]
push eax
push dword [esp + edi*4 + 0x20]
push ebp
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x428918
lea eax, [esp + 0x1018]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428875
sub eax, edx
test eax, eax
jle 0x428895
cmp byte [esp + eax + 0x1018], 0x5c
je 0x42894a
dec eax
test eax, eax
jg 0x428882
xor esi, esi
push str.sgfplib.dll
push esi
call sub.MSVCR110.dll__stricmp
add esp, 8
test eax, eax
je 0x4288cd
push str.sgfpamx.dll
push esi
call sub.MSVCR110.dll__stricmp
add esp, 8
test eax, eax
je 0x4288cd
push str.sgwsqlib.dll
push esi
call sub.MSVCR110.dll__stricmp
add esp, 8
test eax, eax
jne 0x428918
push 0x400
lea eax, [esp + 0x101c]
push eax
lea eax, [esp + 0x1124]
push eax
call sub.MSVCR110.dll_mbstowcs
lea eax, [esp + 0x1128]
push eax
call fcn.00428610
mov ebx, eax
add esp, 0x10
cmp ebx, 1
jne 0x428918
lea eax, [esp + 0x1018]
push eax
push ebx
push str.Unsigned_or_Invalid_Signature_Module__d____s_
push dword [esp + 0x20]
call sub.MSVCR110.dll_sprintf
add esp, 0x10
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jb 0x428843
pop esi
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1914]
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x1910
ret
lea esi, [esp + 0x1019]
add esi, eax
jmp 0x428897
Function at 0x428960
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x230
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebp
mov ebp, dword [esp + 0x238]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
push 2
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0x500
mov dword [esp + 0x20], 0x101
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xff
call sub.Secur32.dll_GetUserNameExA
test al, al
jne 0x4289d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0055423a
add esp, 0x230
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x428aaf
call edi
cmp eax, 0x7a
jne 0x428a62
push dword [esp + 0x10]
call sub.MSVCR110.dll_malloc
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
push eax
push 0
call esi
test eax, eax
jne 0x428aaf
call edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0055423a
add esp, 0x230
ret
cmp eax, 0x534
jne 0x428b83
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x428aaf
call edi
call edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0055423a
add esp, 0x230
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x428a95
push ebx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea esi, [eax + 0x10]
push esi
call sub.MSVCR110.dll_malloc
add esp, 4
mov ebx, eax
push 2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x428b38
push dword [esp + 0x10]
push 0x1fffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x428b38
push 0x14
call sub.MSVCR110.dll_malloc
add esp, 4
mov esi, eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x428b38
push 0x1000
push 0x1000
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
test eax, eax
je 0x428b38
push 0
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x428b3c
call edi
jmp 0x428b82
push 0
push 2
push 2
lea eax, [esp + 0x30]
push eax
push 0
push 0xc0000000
push ebp
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428b79
call edi
cmp eax, 0xb7
jne 0x428b82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0055423a
add esp, 0x230
ret
Function at 0x428ba0
Capabilities:
Get disk information

Disassembly:
push ecx
push 0x40
push 0
push 0x5cacc0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0x55ef10
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x428be6
push dword [esp]
push 0x55d9b4
push 0x5cacc0
call sub.MSVCR110.dll_sprintf
add esp, 0xc
mov eax, 0x5cacc0
pop ecx
ret
Function at 0x42b620
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
push 0x400
call sub.MSVCR110.dll_malloc
mov edi, eax
add esp, 4
test edi, edi
jne 0x42b678
cmp dword [0x5cad00], 4
jl 0x42b80e
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42b657
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3074
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
add esp, 0xc
pop edi
mov dword [esp + 4], 0x55ff88
jmp fcn.00428f00
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x42b75f
test byte [esi + 0x80], 0x20
je 0x42b74c
push 0x400
push edi
push eax
call fcn.004de760
mov ebx, eax
add esp, 0xc
test ebx, ebx
jle 0x42b738
nop
cmp dword [0x5cad00], 4
jl 0x42b6f1
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42b6cf
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3085
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
push dword [esi + 0x10]
push ebx
push esi
push str._p__d_bytes_____d__SSL_
call fcn.00428f00
add esp, 0x1c
push ebx
push edi
push esi
call fcn.0042daf0
add esp, 0xc
xor edi, edi
test dword [esi + 0x80], 0x800
jne 0x42b738
push 0x400
call sub.MSVCR110.dll_malloc
mov edi, eax
add esp, 4
test edi, edi
je 0x42b738
push 0x400
push edi
push dword [esi + 0x44]
call fcn.004de760
mov ebx, eax
add esp, 0xc
test ebx, ebx
jg 0x42b6b0
push edi
call sub.MSVCR110.dll_free
push ebx
push esi
call fcn.0042e7b0
add esp, 0xc
pop esi
pop ebx
pop edi
ret
push edi
call sub.MSVCR110.dll_free
push esi
call fcn.0042e600
add esp, 8
pop esi
pop ebx
pop edi
ret
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jae 0x42b76d
xor eax, eax
jmp 0x42b779
sub eax, ecx
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
push 0
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [0x5cad00], 4
mov ebx, eax
jl 0x42b7c9
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42b7a7
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3105
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
push dword [esi + 0x10]
push ebx
push esi
push str._p__d_bytes__PLAIN______d
call fcn.00428f00
add esp, 0x1c
test ebx, ebx
jle 0x42b7da
push ebx
push edi
push esi
call fcn.0042daf0
add esp, 0xc
jmp 0x42b7e3
push edi
call sub.MSVCR110.dll_free
add esp, 4
test ebx, ebx
jne 0x42b7f5
or dword [esi + 0x80], 0x400
pop esi
pop ebx
pop edi
ret
push ebx
call fcn.0042ca60
add esp, 4
test eax, eax
je 0x42b80c
or dword [esi + 0x80], 0x800
pop esi
pop ebx
pop edi
ret
Function at 0x42cee0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x2008
call fcn.00554690
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x2004], eax
push esi
push edi
mov edi, dword [esp + 0x2014]
push 0
push 0x2004
lea eax, [esp + 0x10]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
push 0
mov esi, eax
push 1
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x5cad00], 4
jl 0x42cf67
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42cf49
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3269
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
push esi
push str.read__d_from_ctl_socket
call fcn.00428f00
add esp, 0x14
cmp esi, 4
jl 0x42cfa1
mov eax, dword [esp + 8]
test eax, eax
je 0x42cfa1
mov esi, dword [edi]
test esi, esi
je 0x42cfa1
lea ebx, [ebx]
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
call eax
add esp, 0xc
test esi, esi
jne 0x42cf95
mov esi, dword [edi]
jmp 0x42cf97
mov esi, dword [esi]
test esi, esi
je 0x42cfa1
mov eax, dword [esp + 8]
jmp 0x42cf80
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
xor ecx, esp
call fcn.0055423a
add esp, 0x2008
ret
Function at 0x42dc50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0x5dc
call sub.MSVCR110.dll_malloc
mov esi, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x42dcab
cmp dword [0x5cad00], 4
jl 0x42dca4
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42dc87
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3125
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
push str.Out_of_memory
call fcn.00428f00
add esp, 0x10
mov eax, 0xfffffff4
pop esi
ret
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0x5dc
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jg 0x42dd24
cmp dword [0x5cad00], 4
jl 0x42dd1a
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42dcef
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3130
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
call sub.MSVCR110.dll__errno
push dword [eax]
call sub.MSVCR110.dll_strerror
push eax
push ebx
push str._p_recvfrom:__s
call fcn.00428f00
add esp, 0x1c
push dword [esi]
call sub.MSVCR110.dll_free
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42dd30
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x42dd8e
cmp dword [0x5cad00], 4
jl 0x42dd8b
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42dd5d
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:1933
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
call sub.MSVCR110.dll__errno
push dword [eax]
call sub.MSVCR110.dll_strerror
push eax
push dword [esp + 0x18]
push str.gethostbyname__s__failed:__s
call fcn.00428f00
add esp, 0x1c
xor eax, eax
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov eax, 1
ret

Function at 0x42e3d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [esp + 0x10]
mov dword [edi + 0x10], esi
cmp dword [0x5cad00], 4
jl 0x42e440
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42e421
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3285
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
push esi
push edi
push str._p__d
call fcn.00428f00
add esp, 0x18
pop edi
pop esi
pop ecx
ret
Function at 0x42e450
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xorps xmm0, xmm0
mov eax, 2
movq qword [esp + 0x14], xmm0
push 0
mov dword [esp + 0x14], 0x10
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
movq qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebp, dword [esp + 0x30]
push 0
push ebp
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42e5bc
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x42e5bc
cmp ebp, 1
jne 0x42e4fd
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x42e5bc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x42e5bc
push eax
push ebp
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x42e5c6
push dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x42e5bc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
cmp ebp, 2
jne 0x42e572
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x42e5bc
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x42e5bc
mov eax, ebx
jmp 0x42e579
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x42e5bc
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [edi]
call esi
push 0
push 1
push dword [edi + 4]
call esi
cmp ebp, 1
jne 0x42e5a4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0055423a
add esp, 0x18
ret
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x42e5c6
push eax
call esi
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x42e5d1
push eax
call esi
cmp ebx, 0xffffffff
je 0x42e5d9
push ebx
call esi
mov ecx, dword [esp + 0x24]
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0055423a
add esp, 0x18
ret
Function at 0x42e9e0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x3c], 0
ja 0x42ea03
push 0xbc3
push str.mongoose.c
push str.io__len___0
call sub.MSVCR110.dll__wassert
add esp, 0xc
mov eax, dword [edi + 0x80]
test al, 2
je 0x42eacc
push ebx
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 [0x5cad00], 4
mov ebx, eax
jl 0x42ea91
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42ea4a
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3017
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
add esp, 0xc
call sub.MSVCR110.dll__errno
movzx ecx, word [edi + 0x1a]
push ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [esi]
push ebx
push dword [edi + 0x10]
push edi
push str._p__d__d__d__s:_hu
call fcn.00428f00
add esp, 0x1c
test ebx, ebx
jle 0x42eac8
mov eax, dword [edi + 0x3c]
cmp ebx, eax
ja 0x42eab2
mov ecx, dword [edi + 0x38]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call sub.MSVCR110.dll_memmove
add esp, 0xc
sub dword [edi + 0x3c], ebx
lea eax, [esp + 0x10]
push eax
push 4
push 0
push edi
mov dword [esp + 0x20], ebx
call fcn.0042ab70
add esp, 0x10
pop ebx
pop edi
pop esi
ret
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x42eb4a
test al, 0x20
je 0x42eb3e
push dword [edi + 0x3c]
push dword [edi + 0x38]
push ecx
call fcn.004deb30
add esp, 0xc
cmp dword [0x5cad00], 4
mov esi, eax
jl 0x42eb0d
push str.mongoose.c:3029
call fcn.00428ed0
push dword [edi + 0x10]
push esi
push edi
push 0x5600e4
call fcn.00428f00
add esp, 0x14
test esi, esi
jg 0x42eb32
push esi
push edi
call fcn.0042e7b0
add esp, 8
cmp eax, 2
je 0x42eac9
cmp eax, 3
je 0x42eac9
or dword [edi + 0x80], 0x800
pop edi
pop esi
ret
and dword [edi + 0x80], 0xffffff3f
jmp 0x42ebb3
push edi
call fcn.0042e600
add esp, 4
pop edi
pop esi
ret
push 0
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x5cad00], 4
mov esi, eax
jl 0x42eb9e
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42eb7c
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:3048
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
push dword [edi + 0x10]
push esi
push edi
push str._p__d_bytes_____d
call fcn.00428f00
add esp, 0x1c
test esi, esi
jns 0x42ebb5
push esi
call fcn.0042ca60
add esp, 4
test eax, eax
jne 0x42eb25
test esi, esi
jle 0x42eac9
test esi, esi
je 0x42ebdc
mov eax, dword [edi + 0x3c]
cmp esi, eax
ja 0x42ebdc
mov ecx, dword [edi + 0x38]
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ecx
call sub.MSVCR110.dll_memmove
add esp, 0xc
sub dword [edi + 0x3c], esi
lea eax, [esp + 0xc]
push eax
push 4
push 0
push edi
mov dword [esp + 0x1c], esi
call fcn.0042ab70
add esp, 0x10
pop edi
pop esi
ret
Function at 0x43e190
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret