joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fd70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dd95
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
mov word [edi], 0x101
lea ecx, [edi + 0x78]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 5
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 5
mov dword [edi + 0x1c], 1
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0x10
mov dword [edi + 0x2c], 0x19
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 2
mov dword [edi + 0x38], 0x3c
mov dword [edi + 0x3c], 0x16
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
movsd qword [edi + 0x50], xmm0
mov dword [edi + 0x58], 2
mov dword [edi + 0x5c], 2
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xff000000
call fcn.0042fc90
push 0
lea ecx, [edi + 0x100]
mov dword [ebp - 4], 0
push 4
mov dword [edi + 0xfc], 0
mov dword [ebp - 0x14], ecx
call fcn.0042fde0
push 0
lea ecx, [edi + 0x110]
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0x14], ecx
call fcn.0042fde0
push 0
lea ecx, [edi + 0x120]
mov byte [ebp - 4], 2
push 0x84
mov dword [ebp - 0x14], ecx
call fcn.0042fde0
push 0x52dd9c
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 3
call fcn.0042fee0
mov ecx, edi
mov dword [edi + 0x68], 5
mov dword [edi + 0x6c], 5
mov dword [edi + 0x70], 5
mov dword [edi + 0x74], 5
call fcn.00467520
push eax
mov ecx, edi
call fcn.00470e40
push eax
mov ecx, edi
call fcn.00470e50
push eax
mov ecx, edi
call fcn.00470f10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x475410
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x475435
or esi, 1
push 1
call edi
test ax, ax
jns 0x475441
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x47544d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x475459
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x475800
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x38], 0
je 0x47586e
cmp dword [esi + 0x30], 0
je 0x47586e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004984e0
mov ebx, esp
test ebx, ebx
je 0x47586e
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x30]
push ebx
add ecx, 0x3f4
call fcn.0042fee0
mov ecx, dword [esi + 0x30]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00436fe0
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x477310
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x477519
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x477518
cmp eax, 0x29
jne 0x477348
cmp dword [esi + 0x10], 0
jne 0x477518
test dword [esi + 0x50], 0x10000000
je 0x47751d
cmp eax, 0x2e
jne 0x47739f
push 5
lea ecx, [esi + 0x24]
call fcn.00479b10
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x477393
cmp byte [eax], 0x5c
jne 0x477391
inc eax
cmp eax, ecx
je 0x477391
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x47737e
mov dl, byte [eax]
cmp dl, 0x28
je 0x47738f
cmp dl, 0x29
je 0x47738f
test cl, 0x10
jne 0x477391
mov cl, byte [eax]
cmp cl, 0x7b
je 0x47738f
cmp cl, 0x7d
jne 0x477391
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.00479f90
jmp 0x477505
cmp eax, 0x5c
jne 0x477444
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x4773e4
cmp byte [eax], 0x5c
jne 0x4773e2
inc eax
cmp eax, ecx
je 0x4773e2
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x4773cf
mov dl, byte [eax]
cmp dl, 0x28
je 0x4773e0
cmp dl, 0x29
je 0x4773e0
test cl, 0x10
jne 0x4773e2
mov cl, byte [eax]
cmp cl, 0x7b
je 0x4773e0
cmp cl, 0x7d
jne 0x4773e2
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.00479f90
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x477411
cmp byte [esi + 0x48], 0x62
jne 0x477411
push 4
lea ecx, [esi + 0x24]
call fcn.00479b10
mov ecx, esi
call fcn.00479b80
jmp 0x47750c
test eax, eax
je 0x477438
cmp byte [esi + 0x48], 0x42
jne 0x477438
push 4
lea ecx, [esi + 0x24]
call fcn.00479b10
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00479b80
jmp 0x47750c
mov ecx, esi
call fcn.00477540
jmp 0x477505
cmp eax, 0x5b
jne 0x477467
mov ecx, esi
call fcn.00479b80
mov ecx, esi
call fcn.00477b60
push 4
push 0x5d
mov ecx, esi
call fcn.004791d0
jmp 0x477505
cmp eax, 0x28
jne 0x477491
mov ecx, esi
call fcn.00479b80
mov ecx, esi
call fcn.0047a1d0
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.004791d0
test bl, bl
je 0x47750c
jmp 0x477505
cmp eax, 0x5e
jne 0x4774a9
push 2
lea ecx, [esi + 0x24]
call fcn.00479b10
mov ecx, esi
call fcn.00479b80
jmp 0x47750c
cmp eax, 0x24
jne 0x4774c1
push 3
lea ecx, [esi + 0x24]
call fcn.00479b10
mov ecx, esi
call fcn.00479b80
jmp 0x47750c
cmp eax, 0x2a
je 0x477532
cmp eax, 0x2b
je 0x477532
cmp eax, 0x3f
je 0x477532
cmp eax, 0x7b
je 0x477532
cmp eax, 0x7d
jne 0x4774e3
test dword [esi + 0x50], 0x10000000
je 0x477524
cmp eax, 0x5d
jne 0x4774f1
test dword [esi + 0x50], 0x10000000
je 0x47752b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004768a0
mov ecx, esi
call fcn.00479b80
mov ecx, esi
call fcn.00479bd0
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x477320
pop ebx
mov al, cl
pop esi
ret
push 5
call fcn.00495994
push 6
call fcn.00495994
push 4
call fcn.00495994
push 0xa
call fcn.00495994
int3
Function at 0x47a470
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x47a4a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x47a490
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x483ee0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp ebx, 0x4e
jne 0x483f28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp + 0x10]
mov ecx, edi
push esi
push ebx
call fcn.00431280
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jne 0x484016
push 0
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x483fad
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
push 0
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
cmp eax, 0x1010003
je 0x483f95
cmp eax, 0x2010003
jne 0x484001
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x483fdb
cmp eax, dword [ebp - 0xc]
jg 0x483fdb
cmp eax, dword [ebp - 0x10]
jl 0x483fdb
cmp eax, dword [ebp - 8]
jle 0x484001
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.00484230
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x101
jne 0x483f09
cmp esi, 0x2e
je 0x484074
cmp esi, 8
je 0x484074
cmp esi, 0x1b
jne 0x483f09
push dword [ebp + 0x10]
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x30]
mov esi, eax
push 0
push 0
push 0x10
mov dword [ecx + 0x7dc], 3
mov ecx, edi
call fcn.00431670
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push esi
push 0x101
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x30]
mov esi, eax
mov dword [ecx + 0x7dc], 2
mov ecx, dword [edi + 0x30]
call fcn.004842a0
push 0
push 0
push 0x10
mov ecx, edi
call fcn.00431670
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004974f6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4840c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51eddb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], eax
mov dword [eax + 0x7dc], 0
cmp dword [edi + 4], 0
jne 0x48416d
lea eax, [ebp - 0xa4]
push eax
call fcn.00483bc0
mov ecx, dword [edi + 0x30]
movups xmm0, xmmword [ebp - 0xa4]
push 0
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00433bc0
push eax
mov ecx, edi
call fcn.00431120
mov esi, dword [edi + 0x30]
mov ecx, esi
call fcn.00471310
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00433830
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x30]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00430800
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0042fe20
test bl, bl
je 0x4841aa
mov eax, dword [edi + 0x30]
add eax, 0x7cc
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x30]
add eax, 0x7cc
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 4
Function at 0x491ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x491af7
cmp eax, edi
jge 0x491aef
push esi
call fcn.0048da10
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x491b20
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x491b03
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x491b3c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x491b2d
xor dl, dl
jmp 0x491b32
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x491b25
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x491b71
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.0048d920
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x491b89
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.0048d920
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x491ba7
push edi
push ecx
push esi
call fcn.00494d50
add esp, 0xc
test eax, eax
jne 0x491ba7
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004c8c90
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret

Function at 0x499d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f423
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x574b90
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x574b90
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x520770
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0049d8a0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49dcc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49dd10
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x49dd0a
shr eax, 8
cmp al, 2
jne 0x49dd0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret

Function at 0x49faa0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x55d4dc]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x49fb7c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.0049fbb0
add esp, 0x10
test eax, eax
je 0x49fb7c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x49fb34
push eax
call dword [0x55d4d0]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x55d4d8]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x49fb7c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x49fb7c
lea eax, [edi + 0x10]
push eax
push 0x49fa10
call fcn.004ae180
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x49fb99
call fcn.004cf4da
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.0049f920
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4a879e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4a876e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004acc80
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004a8400
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a8980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x4a89a9
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4a89df
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x53b924
push 2
push eax
call fcn.004d63b8
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004d63b8
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
cmp ecx, 0xffffffff
je 0x4a8bcb
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4a8bcb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4a8b99
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4a8baf
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x4a8db0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x4a8f23
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4a8e2e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004acc80
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004a8400
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a8e81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004acc80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004a8400
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004a9320
add esp, 0xc
test eax, eax
jne 0x4a8ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004acc80
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a8400
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a9320
add esp, 0xc
test eax, eax
jne 0x4a8f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004acc80
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a8400
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret
push edi
call fcn.004a8bd0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004974f6
mov esp, ebp
pop ebp
ret
Function at 0x4a9790
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a97da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004acc80
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a84a0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004a84a0
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x4ab840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4ab851
jmp dword [eax*4 + 0x4ab8c4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x4ac600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x574bc8], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x4ac110
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x4ac3b0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.004ac0c0
jne 0x4ac782
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4ac778
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004def6a
push str.ws2_32
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004defc4
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4ac6d8
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4ac72d
push edi
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004def6a
push str.wship6
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004defc4
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ac775
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4ac72d
push edi
call esi
jmp 0x4ac775
xor esi, esi
nop
push dword [ebp + esi*8 - 0x230]
push edi
call ebx
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x4ac76e
inc esi
cmp esi, 3
jl 0x4ac730
mov eax, dword [ebp - 0x22c]
mov dword [0x55d4e4], eax
mov eax, dword [ebp - 0x224]
mov dword [0x55d4ec], eax
mov eax, dword [ebp - 0x21c]
mov dword [fcn.004ac0c0], eax
jmp 0x4ac775
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov dword [0x574bc8], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [eax*8 + 0x55d4e4]
call fcn.004974f6
mov esp, ebp
pop ebp
ret 4