joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5c6a38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x3ff
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x403]
push 0
push ecx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0x400
mov byte [ebp - 0x404], 0
call fcn.00546980
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
push 1
push 0
push str.SoftwareYUVPlayer_latelee.orgSetting
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
push str.AddedSize
push eax
call esi
mov eax, dword [ebp - 0x408]
lea ecx, [ebp - 0x40c]
push ecx
push ebx
lea edx, [ebp - 0x410]
push edx
push 0
push str.FrameWidth
push eax
call esi
mov edx, dword [ebp - 0x414]
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x408]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
push str.FrameHeight
push ecx
call esi
mov eax, dword [ebp - 0x420]
lea edx, [ebp - 0x40c]
push edx
mov edx, dword [ebp - 0x408]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0
push str.FrameRate
push edx
call esi
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 0x408]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
push str.CurrentPixelFormat
push eax
call esi
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x408]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
push str.Loop
push ecx
call esi
lea edx, [ebp - 0x404]
push edx
push 0x5a3fc4
push edi
call fcn.00403320
mov eax, dword [ebp - 0x408]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00543417
mov esp, ebp
pop ebp
ret 8

Function at 0x402ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402efb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402f32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402f2e
jmp 0x402f20
cmp esi, eax
jae 0x402f32
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402f20
cmp esi, eax
jb 0x402f39
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x405707
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4057dd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a5698]
add ecx, 8
sub edx, 8
dec esi
jne 0x405720
pop edi
test edx, edx
je 0x4057fa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5a5698]
inc ecx
dec edx
jne 0x4057e1
not eax
pop esi
ret

Function at 0x405800
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5a5698]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5a5698]
mov dword [edx + 8], ecx
ret

Function at 0x405850
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x5a5698]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5a5698]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x405fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x405ff6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405fec
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x406007
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00546b50
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x406030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406063
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40605e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40608e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406075
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00546b50
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4060a3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40609d
cmp byte [esi + 8], 0
je 0x40609d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x406140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x406187
cmp byte [esi + 1], 0
je 0x40618f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4061a2
cmp byte [esi + 1], 0
je 0x406196
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x4061aa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x406161
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x4061aa
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x4061bc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.005444bf
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4061d9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x4062ed
jmp 0x4061f9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x406208
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40621f
mov ebx, 0x404
cmp byte [esi], 0
je 0x406244
cmp byte [esi + 1], 0
je 0x4062ed
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406247
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x406270
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40626b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x406299
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x406281
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00546b50
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4062ed
lea eax, [ebx - 3]
test eax, eax
js 0x4062db
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x4062cf
cmp byte [eax + ecx + 1], 0x4b
jne 0x4062cf
cmp byte [eax + ecx + 2], 5
jne 0x4062cf
cmp byte [eax + ecx + 3], 6
je 0x4062d5
test eax, eax
jns 0x4062b0
jmp 0x4062db
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4062ed
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x4061f0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00544485
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4071b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x407233
cmp dword [esi + 4], 0xffffffff
jne 0x407233
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4071d7
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x407201
cmp al, 0x2f
je 0x407201
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4071f0
mov ax, word [0x5a5c90]
mov word [edi], ax
lea ecx, [ebp - 4]
push ecx
call fcn.00405f20
add esp, 4
test eax, eax
jne 0x407219
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
call fcn.00406310
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x407870
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c6a38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4078a4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4078a4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x40795e
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x4078bb
cmp al, 0x5c
jne 0x4078bd
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4078b3
cmp esi, ebx
je 0x4078f1
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00546b50
lea ecx, [ebp - 0x20c]
push ecx
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.00407870
add esp, 0x14
mov byte [ebp - 0x108], 0
test edi, edi
je 0x407910
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407906
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407914
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407924
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x40795e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00543417
mov esp, ebp
pop ebp
ret
Function at 0x409390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
test esi, esi
je 0x4093b5
push str.C:UsersPublic657.zip
call fcn.00561ed7
add esp, 8
test eax, eax
je 0x4093ba
push ebx
call fcn.005450b0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4093c0
sub eax, edx
push 0x5a5d18
push str.C:UsersPublic657.zip
mov dword [ebp - 8], eax
call fcn.005448fa
push 0x5a5d1c
push str.C:UsersPublic371.zip
mov esi, eax
call fcn.005448fa
push esi
mov edi, eax
call fcn.00545118
add esp, 0x14
test eax, eax
jne 0x409449
jmp 0x409400
push esi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00544e0d
push esi
call fcn.00545118
add esp, 0x14
test eax, eax
jne 0x40943c
mov eax, ebx
cdq
idiv dword [ebp - 8]
mov ecx, dword [ebp + 8]
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
mov dl, byte [edx + ecx]
xor byte [ebp - 1], dl
call fcn.00544a68
add esp, 0x10
inc ebx
push esi
call fcn.00545118
add esp, 4
test eax, eax
je 0x409400
push esi
call fcn.00544b4f
push edi
call fcn.00544b4f
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b20
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x5a5dcc
push 0
call fcn.005460be
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
add esp, 8
push 0
push str.Shell_TrayWnd
call edi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
push 0
push eax
call esi
push 0
push str.ToolbarWindow32
push 0
push eax
call esi
push eax
call fcn.004095f0
add esp, 4
push 0
push str.NotifyIconOverflowWindow
call edi
push 0
push str.ToolbarWindow32
push 0
push eax
call esi
push eax
call fcn.004095f0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40da50
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5c6a38]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40daa5
mov eax, dword [esp]
cmp al, 2
jne 0x40da9f
shr eax, 8
cmp al, 2
jne 0x40da9f
call fcn.0040ddf0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00543417
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00543417
add esp, 0x194
ret
Function at 0x41a850
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x41a882
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x41a9e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x41a9fb
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x41aa2f
cmp eax, 2
jg 0x41aa2f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x571f00]
push 2
push edx
call fcn.00544a68
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00544a68
add esp, 0x20
xor eax, eax
ret

Function at 0x41afc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
shl edx, 4
push esi
lea esi, [edx + eax + 0x1b8]
mov edx, dword [eax + 0x440]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x41b06f
cmp dword [eax + ecx*4 + 0x1a8], 0x41ad50
jne 0x41b06f
cmp dword [esi], 0
je 0x41b002
test edi, edi
je 0x41b06f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0040e0b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x41b06f
test al, 1
je 0x41b06f
cmp dword [esi], 0
jne 0x41b04d
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41b068
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41b06f
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x41b080
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.0041afc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x41b104
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x41b0db
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004203d0
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.0041abc0
mov eax, dword [esi]
mov dword [eax + 0x473c], ebp
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41c970
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x538], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41c9ae
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0041ab30
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x53c]
push edx
mov dword [esp + 0xc], 1
call fcn.0041e0d0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x540]
push eax
call fcn.0041e0d0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41ca27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0041ab30
add esp, 0x10
add esp, 0x14
ret
Function at 0x41d060
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5c6a38]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x41d1e2
cmp dword [ebp + 0x3a0], 0
push ebx
push esi
jne 0x41d1d7
cmp dword [ebp + 0x410], 0
jne 0x41d1d7
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41d0f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004203d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0041abc0
add esp, 0x18
jmp 0x41d1e0
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.00546980
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41d146
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004203d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0041abc0
add esp, 0x18
jmp 0x41d1e0
lea edi, [ebp + 0x102]
lea ebx, [ebp + 0x130]
lea esi, [esp + 0x98]
call fcn.0041d020
test eax, eax
jne 0x41d187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004203d0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0041abc0
add esp, 0x18
jmp 0x41d1e0
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0x102]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x164]
lea edi, [ebp + 0x134]
lea esi, [esp + 0x18]
call fcn.0041d020
test eax, eax
jne 0x41d1d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004203d0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0041abc0
add esp, 0x18
jmp 0x41d1e0
push ebp
call fcn.0041cfa0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.00543417
add esp, 0x10c
ret

Function at 0x41d200
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41d249
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004203d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041ab30
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0041ab30
add esp, 8
pop edi
pop esi
ret
Function at 0x41d300
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1d8], 0
je 0x41d31d
push eax
call fcn.0040f7f0
add esp, 4
test eax, eax
jne 0x41d33d
xor eax, eax
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x41d31a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41d33d
ret
mov eax, 1
ret
Function at 0x41df60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x41df7a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x572570
push ebx
mov dword [esp + 0x18], edi
call fcn.005483e0
add esp, 8
test eax, eax
je 0x41dfc6
test edi, edi
je 0x41dfb7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x41dfec
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dfec
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x41e0a0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e005
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x41e096
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41e096
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e033
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e050
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x41e060
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41e08d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x5c2004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x5c2004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x41e0f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.0041e0c0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.0055511d