joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41484a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x423174
call fcn.00408100
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00420a7b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x414889
call fcn.00420a7b
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414897
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4148a5
or eax, 0xffffffff
jmp 0x41498d
mov ecx, esi
call fcn.004147c0
mov dword [ebp - 0x14], eax
call fcn.004162f1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4148dc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4148dc
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004162a5
push dword [ebp - 0x14]
call fcn.00415df3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00414558
cmp eax, edi
je 0x41494f
test byte [esi + 0x24], 0x10
je 0x41491d
push 4
mov ecx, esi
pop ebx
call fcn.004186de
test ah, 1
je 0x414915
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00418100
cmp dword [esi + 0x1c], edi
je 0x41494f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041876a
jmp 0x41494f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x414963
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41497c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41497c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004147fa
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x417fae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x417ff0
call fcn.00420a7b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417ff0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417fe7
xor eax, eax
jmp 0x417ff8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417ffe
pop edi
pop esi
pop ebx
ret 4
Function at 0x42142c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42145a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x421478
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421392
jmp 0x421478
mov eax, dword [esi + 0x14]
test eax, eax
je 0x421478
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421392
test edi, edi
mov eax, edi
jne 0x421462
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4039e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4039e9
xor ecx, ecx
jne 0x4039e9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [0x448018]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403a30
mov eax, dword [ebp - 0xc]
jmp 0x403a8d
cmp dword [ebp - 4], 1
je 0x403a43
cmp dword [ebp - 4], 2
je 0x403a43
mov eax, 0xd
jmp 0x403a8d
cmp dword [ebp + 0xc], 0
je 0x403a81
cmp dword [ebp - 8], 0
je 0x403a79
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x403a70
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x403a77
mov eax, 0xd
jmp 0x403a8d
jmp 0x403a81
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405a10
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1978
call fcn.00431bf0
mov eax, dword [0x45a1c4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1974], ecx
push 8
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00426cc0
add esp, 0xc
mov dword [ebp - 0x1968], 0x1950
lea ecx, [ebp - 0x1968]
push ecx
lea edx, [ebp - 0x1960]
push edx
call fcn.00437fd6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405a68
jmp 0x405be0
mov dword [ebp - 4], 0
mov dword [ebp - 0x196c], 0
lea eax, [ebp - 0x1960]
mov dword [ebp - 0x1964], eax
jmp 0x405a95
mov ecx, dword [ebp - 0x1964]
mov edx, dword [ecx]
mov dword [ebp - 0x1964], edx
cmp dword [ebp - 0x1964], 0
je 0x405b9d
mov eax, dword [ebp - 0x1964]
cmp dword [eax + 0x190], 8
jae 0x405ac5
mov ecx, dword [ebp - 0x1964]
mov edx, dword [ecx + 0x190]
mov dword [ebp - 0x1978], edx
jmp 0x405acf
mov dword [ebp - 0x1978], 8
mov eax, dword [ebp - 0x1978]
mov dword [ebp - 0x1970], eax
mov ecx, dword [ebp - 0x1970]
push ecx
mov edx, dword [ebp - 0x1974]
add edx, 8
push edx
mov eax, dword [ebp - 0x1964]
add eax, 0x194
push eax
call fcn.00427967
add esp, 0xc
test eax, eax
jne 0x405b06
jmp 0x405a87
cmp dword [ebp + 0xc], 0
je 0x405b53
mov ecx, dword [ebp - 0x1964]
cmp dword [ecx + 0x190], 0
je 0x405b53
mov edx, dword [ebp - 0x1964]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 0x1964]
add ecx, 0x194
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00427967
add esp, 0xc
test eax, eax
jne 0x405b53
mov eax, dword [ebp - 0x1964]
mov dword [ebp - 0x196c], eax
jmp 0x405b9d
mov ecx, dword [ebp - 0x1964]
add ecx, 0x10c
push ecx
mov ecx, dword [ebp - 0x1974]
call fcn.00405bf0
test eax, eax
je 0x405b83
cmp dword [ebp - 4], 0
jne 0x405b7e
mov edx, dword [ebp - 0x1964]
mov dword [ebp - 4], edx
jmp 0x405a87
cmp dword [ebp - 0x196c], 0
jne 0x405b98
mov eax, dword [ebp - 0x1964]
mov dword [ebp - 0x196c], eax
jmp 0x405a87
cmp dword [ebp - 0x196c], 0
jne 0x405baf
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x196c], ecx
cmp dword [ebp - 0x196c], 0
jne 0x405bba
jmp 0x405be0
mov edx, dword [ebp - 0x196c]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 0x196c]
add ecx, 0x194
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004270c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00426197
mov esp, ebp
pop ebp
ret 8
Function at 0x405de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446390
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x45a1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x1c]
call fcn.00403720
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00405310
mov ecx, eax
call fcn.00405350
mov ecx, dword [ebp - 0x20]
add ecx, 0x20
call fcn.004062a0
lea ecx, [ebp - 0x18]
call fcn.00406250
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403970
mov eax, dword [ebp - 0x1c]
push eax
push str.mid_s
lea ecx, [ebp - 0x18]
push ecx
call fcn.00407fe0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 8
call fcn.00407720
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0
jne 0x405e9c
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0x405ee0
call fcn.0042961c
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x20
call fcn.004062c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040dc90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004052b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406000
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4457db
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.00431bf0
mov eax, dword [0x45a1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1078], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x814], 0
mov word [ebp - 0x101c], 0
push 0x3c
push 0
lea eax, [ebp - 0x1058]
push eax
call fcn.00426cc0
add esp, 0xc
mov dword [ebp - 0x1058], 0x3c
mov dword [ebp - 0x1044], 0x400
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x1048], ecx
mov dword [ebp - 0x1028], 0x400
lea edx, [ebp - 0x101c]
mov dword [ebp - 0x102c], edx
lea eax, [ebp - 0x1058]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426106
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call dword [0x448290]
cmp dword [ebp + 0xc], 0
jne 0x4060ce
mov dword [ebp + 0xc], 0x2710
push 0
push 0
push 0
push 0
push 0
call dword [0x44827c]
push eax
lea ecx, [ebp - 0x105c]
call fcn.00406360
lea ecx, [ebp - 0x105c]
call fcn.00403340
test eax, eax
je 0x4061f7
push 4
lea eax, [ebp + 0xc]
push eax
push 2
lea ecx, [ebp - 0x105c]
call fcn.00403340
push eax
call dword [0x448280]
push 0
push 0
push 3
push 0
push 0
push 0x50
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x105c]
call fcn.00403340
push eax
call dword [0x448284]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00406360
lea ecx, [ebp - 0x1060]
call fcn.00403340
test eax, eax
je 0x4061ec
mov dword [ebp - 0x1070], 0x84000000
mov dword [ebp - 0x106c], 0x44fc34
mov dword [ebp - 0x1068], 0
push 0
mov edx, dword [ebp - 0x1070]
push edx
lea eax, [ebp - 0x106c]
push eax
push 0
push str.HTTP_1.1
lea ecx, [ebp - 0x101c]
push ecx
push 0
lea ecx, [ebp - 0x1060]
call fcn.00403340
push eax
call dword [0x448288]
push eax
lea ecx, [ebp - 0x1064]
call fcn.00406360
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1064]
call fcn.00403340
push eax
call dword [0x44828c]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x81c], 1
lea ecx, [ebp - 0x1064]
call fcn.00406340
lea ecx, [ebp - 0x1060]
call fcn.00406340
cmp dword [ebp + 0x10], 0
je 0x406210
mov edx, dword [ebp - 0x81c]
push edx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x1074], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x105c]
call fcn.00406340
mov eax, dword [ebp - 0x1074]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426197
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x45a1c4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x494], ecx
mov ax, word [0x44ffe8]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00426cc0
add esp, 0xc
mov dx, word [0x44ffe8]
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.00426cc0
add esp, 0xc
mov dword [ebp - 8], 0x208
mov dword [ebp - 4], 1
push str.SoftwareKSafeCoop
lea ecx, [ebp - 0x43c]
push ecx
call fcn.004448d0
add esp, 8
mov dword [ebp - 0x498], eax
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 4]
push ecx
push str.PreOEM
mov ecx, dword [ebp - 0x498]
call fcn.00401110
push eax
push 0x80000002
call dword [0x448240]
lea ecx, [ebp - 0x43c]
call fcn.004010b0
mov dword [ebp - 8], 0x208
mov dword [ebp - 4], 1
push str.SoftwareKSafeCoop
lea edx, [ebp - 0x458]
push edx
call fcn.004448d0
add esp, 8
mov dword [ebp - 0x49c], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 4]
push edx
push 0x44fc88
mov ecx, dword [ebp - 0x49c]
call fcn.00401110
push eax
push 0x80000002
call dword [0x448240]
lea ecx, [ebp - 0x458]
call fcn.004010b0
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x406805
push str.h_lvse
push 0x44fca0
push 0x207
lea ecx, [ebp - 0x218]
push ecx
call fcn.00406410
add esp, 0x10
push str.SoftwareKSafeCoop
lea edx, [ebp - 0x474]
push edx
call fcn.004448d0
add esp, 8
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00426106
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x218]
push edx
push 1
push str.PreOEM
mov ecx, dword [ebp - 0x4a0]
call fcn.00401110
push eax
push 0x80000002
call dword [0x44824c]
lea ecx, [ebp - 0x474]
call fcn.004010b0
push str.SoftwareKSafeCoop
lea eax, [ebp - 0x490]
push eax
call fcn.004448d0
add esp, 8
mov dword [ebp - 0x4a4], eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00426106
add esp, 4
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x218]
push eax
push 1
push str.OEMName
mov ecx, dword [ebp - 0x4a4]
call fcn.00401110
push eax
push 0x80000002
call dword [0x44824c]
lea ecx, [ebp - 0x490]
call fcn.004010b0
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403970
lea edx, [ebp - 0x420]
push edx
call fcn.00426106
add esp, 4
test eax, eax
je 0x406841
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.0042948d
add esp, 8
test eax, eax
je 0x406848
mov eax, 1
jmp 0x40684a
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00426197
mov esp, ebp
pop ebp
ret 4
Function at 0x406860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
push str.SoftwareKSafeCoop
lea eax, [ebp - 0x1c]
push eax
call fcn.004448d0
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426106
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0x44fc88
mov ecx, dword [ebp - 0x24]
call fcn.00401110
push eax
push 0x80000002
call dword [0x44824c]
lea ecx, [ebp - 0x1c]
call fcn.004010b0
mov esp, ebp
pop ebp
ret 4

Function at 0x40e3d0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1978
call fcn.00431bf0
mov eax, dword [0x45a1c4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1974], ecx
push 8
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00426cc0
add esp, 0xc
mov dword [ebp - 0x1968], 0x1950
lea ecx, [ebp - 0x1968]
push ecx
lea edx, [ebp - 0x1960]
push edx
call fcn.00437fd6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e428
jmp 0x40e5a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x196c], 0
lea eax, [ebp - 0x1960]
mov dword [ebp - 0x1964], eax
jmp 0x40e455
mov ecx, dword [ebp - 0x1964]
mov edx, dword [ecx]
mov dword [ebp - 0x1964], edx
cmp dword [ebp - 0x1964], 0
je 0x40e55d
mov eax, dword [ebp - 0x1964]
cmp dword [eax + 0x190], 8
jae 0x40e485
mov ecx, dword [ebp - 0x1964]
mov edx, dword [ecx + 0x190]
mov dword [ebp - 0x1978], edx
jmp 0x40e48f
mov dword [ebp - 0x1978], 8
mov eax, dword [ebp - 0x1978]
mov dword [ebp - 0x1970], eax
mov ecx, dword [ebp - 0x1970]
push ecx
mov edx, dword [ebp - 0x1974]
add edx, 0x20
push edx
mov eax, dword [ebp - 0x1964]
add eax, 0x194
push eax
call fcn.00427967
add esp, 0xc
test eax, eax
jne 0x40e4c6
jmp 0x40e447
cmp dword [ebp + 0xc], 0
je 0x40e513
mov ecx, dword [ebp - 0x1964]
cmp dword [ecx + 0x190], 0
je 0x40e513
mov edx, dword [ebp - 0x1964]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 0x1964]
add ecx, 0x194
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00427967
add esp, 0xc
test eax, eax
jne 0x40e513
mov eax, dword [ebp - 0x1964]
mov dword [ebp - 0x196c], eax
jmp 0x40e55d
mov ecx, dword [ebp - 0x1964]
add ecx, 0x10c
push ecx
mov ecx, dword [ebp - 0x1974]
call fcn.0040e5b0
test eax, eax
je 0x40e543
cmp dword [ebp - 4], 0
jne 0x40e53e
mov edx, dword [ebp - 0x1964]
mov dword [ebp - 4], edx
jmp 0x40e447
cmp dword [ebp - 0x196c], 0
jne 0x40e558
mov eax, dword [ebp - 0x1964]
mov dword [ebp - 0x196c], eax
jmp 0x40e447
cmp dword [ebp - 0x196c], 0
jne 0x40e56f
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x196c], ecx
cmp dword [ebp - 0x196c], 0
jne 0x40e57a
jmp 0x40e5a0
mov edx, dword [ebp - 0x196c]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 0x196c]
add ecx, 0x194
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004270c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00426197
mov esp, ebp
pop ebp
ret 8
Function at 0x412240
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00412280
movzx eax, al
test eax, eax
jne 0x41226b
mov ecx, dword [ebp - 4]
push ecx
push 2
call dword [0x4482d0]
mov edx, dword [ebp - 4]
mov dword [edx + 0x190], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [eax + 0x190], 0
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret

Function at 0x4125c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x44]
test ecx, ecx
je 0x4125db
mov al, 1
jmp 0x412696
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x40], 0xffffffff
jne 0x4125ef
xor al, al
jmp 0x412696
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x40]
push eax
call dword [0x4482a8]
test eax, eax
je 0x41268a
call dword [0x4482dc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x412631
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x48], edx
mov byte [ebp - 1], 0
jmp 0x41268a
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
push eax
call dword [0x4480d0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x412686
push 0x2c
push 0
lea ecx, [ebp - 0x34]
push ecx
call fcn.00426cc0
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x40]
push ecx
call dword [0x4482a4]
cmp dword [ebp - 0x20], 0
je 0x412684
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x48], eax
mov byte [ebp - 1], 0
jmp 0x41268a
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x38]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x44], dl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x4126a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [0x4480d0]
test eax, eax
je 0x4126d2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], 0x2749
xor al, al
jmp 0x4127d8
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [0x4480d0]
cmp eax, 0x102
jne 0x4126f9
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], 0x2734
xor al, al
jmp 0x4127d8
mov byte [ebp - 1], 1
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
call fcn.0040d620
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x4482a0]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40]
push edx
call dword [0x44829c]
test eax, eax
je 0x412768
call dword [0x4482dc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e5
je 0x412768
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x48], ecx
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4127ca
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [0x4480d0]
test eax, eax
jne 0x4127c6
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40]
push edx
call dword [0x448298]
test eax, eax
je 0x4127b4
mov byte [ebp - 1], 1
jmp 0x4127c4
call dword [0x44811c]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], eax
mov byte [ebp - 1], 0
jmp 0x4127ca
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
call fcn.0040d640
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412810
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
call dword [0x4480d0]
test eax, eax
je 0x412842
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0x2749
xor al, al
jmp 0x41296a
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
call dword [0x4480d0]
cmp eax, 0x80
jne 0x412869
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0x2734
xor al, al
jmp 0x41296a
mov byte [ebp - 9], 1
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x10], 0
push 0x14
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00426cc0
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.0040d620
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4482a0]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x40]
push eax
call dword [0x4482c0]
test eax, eax
je 0x4128fd
call dword [0x4482dc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e5
je 0x4128fd
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x48], edx
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x41295c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4480d0]
test eax, eax
jne 0x412958
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40]
push edx
call dword [0x448298]
test eax, eax
je 0x412946
mov byte [ebp - 9], 1
jmp 0x412956
call dword [0x44811c]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], eax
mov byte [ebp - 9], 0
jmp 0x41295c
mov byte [ebp - 9], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.0040d640
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 8