joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b8d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441741
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x468034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x40b91c
xor eax, eax
jmp 0x40ba7a
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b945
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40b945
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40ba7a
cmp dword [edi + 0x50], 0
je 0x40ba78
mov ecx, edi
call fcn.0040c8fe
cmp dword [edi + 0x40], 0
jne 0x40b975
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x40ba78
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040c395
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40ba6f
cmp eax, 1
jg 0x40ba54
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x40ba1e
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x40ba6f
jmp 0x40ba22
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40ba50
test ecx, ecx
jne 0x40b989
cmp dword [esp + 0x30], 0x20
jae 0x40ba6f
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040c3da
jmp 0x40b989
mov esi, ebx
jmp 0x40ba6f
cmp eax, 3
jne 0x40ba6f
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.00402286
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret 4
Function at 0x40c788
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44136f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x468034]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40c8b1
cmp byte [esi + 0x45], bl
je 0x40c8b1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40c7e8
xor al, al
jmp 0x40c8b3
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040c395
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x40c838
dec eax
je 0x40c83b
dec eax
dec eax
jne 0x40c8a4
inc eax
jmp 0x40c8a2
mov byte [esi + 0x45], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x40c87f
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x40c8a0
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40c89e
test edx, edx
jne 0x40c7fb
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040c3da
jmp 0x40c7f7
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40c8b3
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret

Function at 0x40e51b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40e52d
push 0xd
pop eax
jmp 0x40e55f
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40e536
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40f606
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.0043774e
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x4109fc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x470d14
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x410a3e
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x470d18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret

Function at 0x410bf0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x470c8c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x410c3b
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x410c51
push fcn.00403297
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret
Function at 0x410c55
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 1
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x410caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043e4f0
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00410914
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x410cfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043e4f0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00410914
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x410d82
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x410d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x410d3b
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x410d4a
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043e4f0
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00410914
test edi, edi
je 0x410d79
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41167e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x411743
cmp byte [ebp + 8], 0
je 0x4116c9
test byte [eax], 8
je 0x4116c9
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0043e4f0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.00411afe
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
mov edi, eax
test edi, edi
je 0x411743
call fcn.0043e4f0
cmp dword [esi + 4], eax
jne 0x4116f9
cmp dword [esi], 0x2733
je 0x41170b
call fcn.0043e4f0
cmp dword [esi + 4], eax
jne 0x41173f
cmp dword [esi], 0x4d5
jne 0x41173f
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
mov edi, eax
test edi, edi
jne 0x41174e
call fcn.0043e4f0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411755
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x411776
call fcn.0043e4f0
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x4117a1
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
test eax, eax
jne 0x4117a4
call fcn.0043e4f0
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.0043e4f0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.004108d7
test al, al
je 0x4117de
call fcn.0043e4f0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.004108d7
test al, al
jne 0x41181d
mov edx, esi
mov ecx, edi
call fcn.00411d01
test eax, eax
js 0x41181d
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, edi
mov dword [ebp - 8], 4
call fcn.00411b62
add esp, 0x14
cmp eax, 0xffffffff
je 0x41181d
call fcn.0043e4f0
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret
Function at 0x411821
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x411849
call fcn.0043e4f0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x411946
cmp byte [ebp + 0x14], 0
je 0x411861
test bl, 0x10
je 0x411861
call fcn.0043e4f0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x411841
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
cmp dword [esi], 0x40
mov dword [ebp - 8], eax
jne 0x4118a9
call fcn.0043e4f0
mov dword [esi], 0x2746
jmp 0x4118bc
cmp dword [esi], 0x4d2
jne 0x4118c2
call fcn.0043e4f0
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4118cb
or eax, 0xffffffff
jmp 0x4118dd
call fcn.0043e4f0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x411948
test bl, 0x10
je 0x4118e6
test eax, eax
je 0x411938
test bl, 1
jne 0x411946
call fcn.0043e4f0
lea edx, [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], eax
call fcn.004108d7
test al, al
je 0x411925
call fcn.0043e4f0
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], 0x4d5
mov dword [ebp - 0x1c], eax
call fcn.004108d7
test al, al
jne 0x411946
push esi
mov ecx, edi
call fcn.00411bd3
pop ecx
test eax, eax
jns 0x411864
jmp 0x411946
call fcn.0041099a
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411bd3
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x468034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x411c05
call fcn.0043e4f0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x411c5b
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
mov edi, eax
test edi, edi
je 0x411c4f
jle 0x411c59
call fcn.0043e4f0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cb24
leave
ret
Function at 0x411c6a
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x468034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x411c9c
call fcn.0043e4f0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x411cf2
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
mov edi, eax
test edi, edi
je 0x411ce6
jle 0x411cf0
call fcn.0043e4f0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cb24
leave
ret

Function at 0x411d01
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x468034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x411d31
call fcn.0043e4f0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x411d8c
push ebx
xor eax, eax
inc eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416dc8
mov edi, eax
test edi, edi
js 0x411d89
call fcn.0043e4f0
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043cb24
leave
ret
Function at 0x4164d8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443e02
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x468034]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
xor esi, esi
lea eax, [esp + 0x70]
mov dword [esp + 0x14], esi
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
call fcn.0041684f
mov edi, eax
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
mov dword [esp + 0xb4], esi
call fcn.00416834
mov esi, eax
xor ebx, ebx
inc ebx
mov byte [esp + 0xb0], bl
cmp dword [edi + 0x14], 0x10
jb 0x41656c
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x416574
mov esi, dword [esi]
test esi, esi
je 0x41657d
cmp byte [esi], 0
jne 0x41657f
xor esi, esi
test edi, edi
je 0x416588
cmp byte [edi], 0
jne 0x41658a
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.00411d9a
mov edi, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x40]
mov dword [edi + 4], eax
call fcn.00402286
lea ecx, [esp + 0x70]
call fcn.00402286
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
xor eax, eax
mov dword [esp + 0xb0], 2
cmp dword [edi], eax
je 0x416603
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
mov byte [esp + 0xb0], 3
jmp 0x41665e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x88]
push eax
call fcn.0041684f
mov edi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
mov dword [esp + 0xb0], 4
push eax
mov dword [esp + 0x18], 2
call fcn.00416834
mov dword [esp + 0xb0], 5
mov edx, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 6
call fcn.0041686a
pop ecx
pop ecx
push 0xe
pop ebx
mov edi, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.00415f4f
or ebx, 0x10
test bl, 8
je 0x416686
mov ecx, dword [esp + 0x38]
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
test ecx, ecx
je 0x416686
call fcn.00410849
test bl, 4
je 0x416697
lea ecx, [esp + 0x58]
and ebx, 0xfffffffb
call fcn.00402286
test bl, 2
je 0x4166ab
lea ecx, [esp + 0x88]
and ebx, 0xfffffffd
call fcn.00402286
mov dword [esp + 0xb0], 2
test bl, 1
je 0x4166c8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4166c8
call fcn.00410849
test esi, esi
je 0x4166d3
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ea1c
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4431fa
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x468034]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
push dword [esp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push dword [ebp + 8]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0041ae26
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0xc4], ebx
call fcn.0041efe4
mov byte [esp + 0xc0], 1
mov edx, dword [edi]
push eax
add edx, 0x18
lea ecx, [esp + 0x80]
call fcn.0041e4db
pop ecx
mov esi, eax
push esi
lea ecx, [esp + 0x30]
call fcn.00404006
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xc4], 3
call fcn.0041e771
mov byte [esp + 0xc0], 4
mov ecx, dword [edi]
lea eax, [esp + 0x2c]
mov ecx, dword [ecx + 0x50]
push eax
mov ecx, dword [ecx - 4]
lea eax, [esp + 0x14]
push eax
call fcn.0041e54f
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 5
call fcn.0041709e
lea ecx, [esp + 0x2c]
call fcn.00402286
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 6
call fcn.0041709e
lea ecx, [esp + 0x7c]
call fcn.00402286
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], bl
call fcn.0041709e
lea ecx, [esp + 0x14]
call fcn.00402286
mov eax, dword [edi]
add eax, 0x18
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x41eb53
mov eax, dword [eax]
mov byte [eax], bl
mov eax, dword [edi]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x41eb62
mov eax, dword [eax]
mov byte [eax], bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret 8

Function at 0x41fe6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41fec8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41feb9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41feb5
cmp esi, ecx
jae 0x41feb9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x41fea5
cmp esi, ecx
jb 0x41febd
xor eax, eax
jmp 0x41fec7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret