joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add dword [eax], eax
or edi, 0x863c
pop edi
push edx
jmp 0x40b2bf
call 0x40b2cb
add byte [ebx + edi], bh
inc esp
cmp al, 0x46
inc esp
add esp, 4
add edx, 0x15fa1
jmp 0x40b2dc
pop edx
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x18c], eax
jmp 0x40b353
push edx
push eax
add esp, 4
xor edx, 0xe639
or edx, 0x56d8
and edx, 0x4ed6
call 0x40b379
add byte [eax + 0x44], al
dec ecx
inc ebx
xor al, 0x40
dec eax
xor eax, 0x4c48341
pop edx
push esi
xor esi, 0xf4e4
pop esi
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x1c0], eax
push ecx
call 0x40b3a3
add byte [edi], dh
inc esp
xor cl, byte [edx + 0x41]
dec esp
inc ebx
inc edx
add esp, 4
call 0x40b3b6
add byte [ebx], dh
inc esp
inc ebp
dec edx
inc edi
cmp bh, byte [esi]
inc esi
dec ebx
cmp dword [ebx + 0x515904c4], eax
push eax
add esp, 4
add ecx, 0x794e
pop ecx
mov dword [ebp - 0x410], 0
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0xc00], ecx
cmp dword [ebp - 0xc00], 0
jne 0x40b3f6
mov edx, dword [ebp - 0x410]
mov dword [ebp - 0x2ec], edx
jmp 0x40b6e7
mov eax, dword [ebp - 0xc00]
mov ecx, dword [ebp - 0x1c0]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc04], ecx
jne 0x40b41e
mov edx, dword [ebp - 0x410]
mov dword [ebp - 0x2ec], edx
jmp 0x40b6e7
invalid
invalid

Function at 0x40b950
Capabilities:
Encode data using xor

Disassembly:
xor eax, dword [ecx]
add dword [ecx], eax
mov cl, byte [bp - 0x379]
add byte [eax], al
mov ebx, 0x101012f
mov dl, byte [bp - 0x377]
add byte [eax], al
mov ecx, 0x1010165
mov al, byte [bp - 0x375]
add byte [eax], al
mov edx, 0x101016d
mov cl, byte [bp - 0x373]
add byte [eax], al
mov ebx, 0x101016d
mov dl, byte [bp - 0x371]
add byte [eax], al
xor al, 0xc1
mov al, byte [bp - 0x36f]
add byte [eax], al
push ecx
push edi
test ch, al
add eax, 0xe5bc182
add dword [ecx], eax
add cl, 0xe9
cmp byte [ecx], al
add dword [edx + 0x1d1e2f1], eax
Function at 0x401c40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401c8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c84
test esi, esi
je 0x401c84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c60
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401efe
cmp eax, 4
jne 0x401f20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f0e
cmp edx, 4
je 0x401f0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e70
Function at 0x40122d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor eax, eax
lea edi, [ebp - 0x27]
and dword [ebp - 4], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 0x28], 0x52
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x67
mov byte [ebp - 0x25], 0x51
mov byte [ebp - 0x24], 0x75
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x79
mov byte [ebp - 0x20], 0x56
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0x1e], 0x6c
mov byte [ebp - 0x1d], 0x75
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x45
mov byte [ebp - 0x1a], 0x78
mov byte [ebp - 0x18], 0x41
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x76
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x70
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x33
mov byte [ebp - 0x11], 0x32
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x6c
jmp 0x4012ca
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 8], eax
jmp 0x4012f5
test eax, eax
je 0x401337
jmp 0x40130c
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401337
jmp 0x40134a
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x40172c
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x40174b
movzx eax, word [ebp + 0x10]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
jmp 0x401777
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp + 0x14], eax
jmp 0x4017a7
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401830
jmp 0x4017d2
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x401830
jmp 0x401803
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40182d
push 1
pop ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x407c6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ec40]
jne 0x407c79
repz ret
jmp fcn.0040c3ad

Function at 0x40b100
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ea0
and dword [ebp - 4], 0
cmp dword [0x438600], 0
mov ebx, eax
jne 0x40b1b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b262
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b262
push eax
call fcn.00405e2e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438600], eax
call esi
push eax
call fcn.00405e2e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438604], eax
call esi
push eax
call fcn.00405e2e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438608], eax
call esi
push eax
call fcn.00405e2e
pop ecx
mov dword [0x438610], eax
test eax, eax
je 0x40b1b1
push 0x42aec0
push edi
call esi
push eax
call fcn.00405e2e
pop ecx
mov dword [0x43860c], eax
mov eax, dword [0x43860c]
cmp eax, ebx
je 0x40b209
cmp dword [0x438610], ebx
je 0x40b209
push eax
call fcn.00405ea9
push dword [0x438610]
mov esi, eax
call fcn.00405ea9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b209
test edi, edi
je 0x40b209
call esi
test eax, eax
je 0x40b200
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b200
test byte [ebp - 0xc], 1
jne 0x40b209
or dword [ebp + 0x10], 0x200000
jmp 0x40b242
mov eax, dword [0x438604]
cmp eax, ebx
je 0x40b242
push eax
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b242
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b242
mov eax, dword [0x438608]
cmp eax, ebx
je 0x40b242
push eax
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b242
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438600]
call fcn.00405ea9
pop ecx
test eax, eax
je 0x40b262
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b264
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405113
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 1
mov dword [ebp - 8], ecx
pop esi
push esi
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405145
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push 0x50a4fc
jmp 0x40528d
lea eax, [ebp - 4]
push 4
push eax
mov edi, 0xffff
push 4
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ws2_32.dll_setsockopt]
push edi
push ebx
call esi
test eax, eax
je 0x40517d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
push esi
push 0x50a4d4
jmp 0x40528d
lea eax, [ebp - 4]
push 4
push eax
push 8
push edi
push ebx
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x4051ae
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
push esi
push 0x50a4ac
jmp 0x40528d
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push edi
push ebx
mov dword [ebp - 4], 0x8000
call esi
test eax, eax
je 0x4051e2
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
push esi
push 0x50a488
jmp 0x40528d
push 0x10
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.004bb4c0
mov eax, dword [ebp - 8]
and dword [ebp - 0x18], 0
add esp, 0xc
mov word [ebp - 0x1c], 2
mov ax, word [eax + 0x24]
push eax
call dword [sym.imp.ws2_32.dll_htons]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
call dword [sym.imp.ws2_32.dll_bind]
test eax, eax
je 0x405236
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
push esi
push 0x50a474
jmp 0x40528d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x405268
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
push esi
push 0x50a458
jmp 0x40528d
push 0x7fffffff
push ebx
call dword [sym.imp.ws2_32.dll_listen]
test eax, eax
je 0x405299
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
push esi
push 0x50a440
call fcn.00401466
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x40529b
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 1
mov dword [ebp - 8], ecx
pop esi
push esi
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4052d9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push 0x50a4fc
call fcn.00401466
pop ecx
pop ecx
jmp 0x405404
lea eax, [ebp - 4]
push 4
push eax
mov ebx, 0xffff
push 8
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ws2_32.dll_setsockopt]
push ebx
push edi
call esi
test eax, eax
je 0x405308
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push 0x50a4ac
jmp 0x4053f6
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push ebx
push edi
mov dword [ebp - 4], 0x8000
call esi
test eax, eax
je 0x405333
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push 0x50a488
jmp 0x4053f6
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x40535f
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push 0x50a458
jmp 0x4053f6
mov eax, dword [ebp - 8]
mov ebx, dword [sym.imp.ws2_32.dll_inet_addr]
add eax, 0x14
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4053a6
mov eax, dword [ebp - 8]
lea esi, [eax + 0x14]
push esi
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
jne 0x40539d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
push 0x50a52c
call fcn.00401466
add esp, 0xc
jmp 0x4053fd
mov eax, dword [eax + 0xc]
push dword [eax]
call ebx
mov esi, eax
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
call fcn.004bb4c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov word [ebp - 0x1c], 2
mov ax, word [eax + 0x24]
push eax
call dword [sym.imp.ws2_32.dll_htons]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x405409
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405409
push eax
push 0x50a514
call fcn.00401466
pop ecx
pop ecx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x40540b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405447
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x405470
push 0x116
push 0x50a5b4
push 0x50a5b0
push 0x50a2f0
jmp 0x4055b7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x40559a
cmp ecx, dword [esi + 0x10]
jge 0x40559a
mov edx, dword [esi + 4]
cmp ecx, edx
jne 0x4054a1
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
call fcn.00405f81
jmp 0x40552d
mov eax, dword [esi + 0x128]
mov edi, ecx
shl edi, 2
cmp dword [edi + eax], 0xffffffff
jne 0x4054cf
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push edx
push 0x50a588
call fcn.00401466
add esp, 0x18
jmp 0x4055c4
test edx, edx
jne 0x4054d7
mov cx, word [ebp + 8]
mov word [ebp - 8], cx
mov cx, word [ebp + 0x10]
mov word [ebp - 6], cx
mov cx, word [ebp + 0x14]
mov ebx, dword [sym.imp.ws2_32.dll_send]
mov word [ebp - 4], cx
push 0
lea ecx, [ebp - 8]
push 6
push ecx
push dword [edi + eax]
call ebx
cmp eax, 6
mov dword [ebp + 0x10], eax
jne 0x405534
push dword [ebp + 0x14]
call fcn.00405eea
pop ecx
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x128]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [edi + eax]
call ebx
cmp eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
jne 0x405534
mov al, 1
jmp 0x4055c6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp dword [ebp + 0x10], 0
jg 0x40555a
cmp eax, 0x2733
je 0x40555a
push eax
push dword [esi + 4]
push 0x50a574
call fcn.00401466
add esp, 0xc
jmp 0x405569
push dword [esi + 4]
push 0x50a560
call fcn.00401466
pop ecx
pop ecx
cmp dword [esi + 4], 0
jne 0x40558a
mov eax, dword [esi + 0x128]
push dword [eax + edi]
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, dword [esi + 0x128]
or dword [eax + edi], 0xffffffff
jmp 0x4055c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x4055c4
mov eax, 0x50a558
test eax, eax
je 0x4055c4
push 0x11a
push 0x50a5b4
push 0x50a54c
push 0x508548
push 0x508530
call fcn.00401466
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x405963
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x4000
push 0
mov eax, dword [esi + 0x4000]
sub edx, eax
lea ecx, [eax + esi]
push edx
push ecx
push dword [esp + 0x18]
call dword [sym.imp.ws2_32.dll_recv]
test eax, eax
jle 0x405992
add dword [esi + 0x4000], eax
jmp 0x4059b1
jne 0x4059a0
push 0x50a628
call fcn.00401466
jmp 0x4059c1
test eax, eax
jge 0x4059c2
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4059b5
mov al, 1
jmp 0x4059c4
push eax
push 0x50a5fc
call fcn.00401466
pop ecx
pop ecx
xor al, al
pop esi
ret 8

Function at 0x406282
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x40635e
cmp byte [edi], 0
je 0x40635e
push edi
call fcn.004baf70
cmp eax, 0x10
pop ecx
jae 0x40635e
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
cmp eax, ecx
jg 0x4062c0
lea eax, [ecx + 1]
cmp eax, 1
jl 0x406334
cmp eax, 0x7fe
jg 0x406334
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
push edi
push eax
call fcn.004bb110
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [esi + 0x24], eax
pop ecx
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
je 0x406303
push eax
push 0x50a8ec
call fcn.00401466
pop ecx
pop ecx
jmp 0x40635e
cmp word [ebp - 0x190], 2
mov byte [esi + 0x144], 1
je 0x406329
call dword [sym.imp.ws2_32.dll_WSACleanup]
movzx eax, word [ebp - 0x190]
push eax
push 0x50a8c8
jmp 0x4062fa
mov ecx, esi
call fcn.004061ea
mov al, 1
jmp 0x406360
mov eax, 0x50a894
test eax, eax
je 0x40635e
push 0x33d
push 0x50a5b4
push 0x50a85c
push 0x508548
push 0x508530
call fcn.00401466
add esp, 0x14
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x407960
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4de3b5
call fcn.004baf44
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4ea988
and dword [ebp - 4], 0
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 0x18], edi
push 1
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004b9f6c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
lea edi, [esi + 0x10]
push 0
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004ba8f2
lea eax, [edi + 8]
mov dword [edi], 0x4ea9ac
push eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x38]
lea eax, [ebp - 0xd]
push 0
push eax
mov byte [ebp - 4], 6
call fcn.00407a0e
push 1
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
mov dword [esi], 0x4ea9c4
call fcn.004ba894
mov eax, dword [ebp + 8]
and dword [esi + 0x30], 0
lea ecx, [ebp - 0x24]
mov dword [esi + 4], eax
mov dword [esi + 8], 1
call fcn.004ba8d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40a907
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4de6ed
call fcn.004baf44
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [edi + 0xc]
mov dword [esi], 0x4eab34
mov dword [esi + 4], 0x4eab04
push eax
lea ecx, [esi + 0xc]
mov dword [esi + 8], 0x4eaaf0
call fcn.0040ab30
mov eax, dword [edi + 0x10]
and dword [ebp - 4], 0
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x7c], eax
mov eax, dword [edi + 0x80]
mov dword [esi + 0x80], eax
lea eax, [edi + 0x84]
push eax
lea ecx, [esi + 0x84]
call fcn.0040acd8
mov eax, dword [edi + 0x90]
mov byte [ebp - 4], 1
mov dword [esi + 0x90], eax
add edi, 0x94
push edi
lea ecx, [esi + 0x94]
call fcn.0040ad3d
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4eaa84
mov dword [esi + 4], 0x4eaa54
mov dword [esi + 8], 0x4eaa40
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d647
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4de951
call fcn.004baf44
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4eab34
mov dword [esi + 4], 0x4eab04
mov dword [esi + 8], 0x4eaaf0
lea eax, [ebp - 0xd]
xor edi, edi
lea ecx, [esi + 0xc]
push eax
mov dword [ebp - 4], edi
call fcn.0041001c
lea eax, [esi + 0x84]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 3
call fcn.0040fc4c
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi], 0x4eaa84
mov dword [esi + 4], 0x4eaa54
mov dword [esi + 8], 0x4eaa40
mov dword [esi + 0x90], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4109fc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4debdd
call fcn.004baf44
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4eae28
mov dword [esi + 4], edi
lea ecx, [esi + 0xc]
lea eax, [ebp - 0xd]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.00410bbe
mov dword [esi + 8], 0x4eae24
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x3c]
mov dword [esi + 0x38], eax
lea eax, [ebp + 0xb]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.00410b6e
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4eadb0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4