joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5bb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52446b
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x74], 0
je 0x4a5d54
cmp dword [edi + 0xc0], 8
lea esi, [edi + 0xac]
jb 0x4a5bfd
mov eax, dword [esi]
jmp 0x4a5bff
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a5d73
push 1
lea ecx, [ebp - 0x168]
call fcn.00409f40
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4a5c2a
mov esi, dword [esi]
push 0x40
push 0x20
push esi
lea ecx, [ebp - 0x168]
call fcn.00409ee0
cmp dword [ebp - 0x10c], 0
je 0x4a5d68
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0xac]
call fcn.0044916a
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xac]
call fcn.00449390
cmp dword [edi + 0x78], 8
lea eax, [edi + 0x64]
mov byte [ebp - 4], 1
jb 0x4a5c77
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005162f0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
lea edi, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmp esi, 0x10
push 0x4fa5ba
cmovae ecx, edx
mov byte [ebp - 4], 2
cmovae edi, edx
add eax, ecx
push edi
cmp esi, 0x10
lea ecx, [ebp - 0x40]
push eax
cmovae ecx, edx
lea eax, [ebp - 0xb0]
push ecx
push eax
call fcn.004a4bf0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea edi, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp esi, 0x10
push 0x4fa5ba
cmovae ecx, edx
cmovae edi, edx
add eax, ecx
lea ecx, [ebp - 0x28]
push edi
cmp esi, 0x10
push eax
cmovae ecx, edx
lea eax, [ebp - 0xb0]
push ecx
push eax
call fcn.004a4bf0
add esp, 0x30
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
cmovae ecx, dword [ebp - 0x40]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4a5d30
test dl, dl
je 0x4a5d2c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4a5d30
add ecx, 2
add eax, 2
test dl, dl
jne 0x4a5d10
xor eax, eax
jmp 0x4a5d35
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x4a5d5b
call fcn.00402b26
lea ecx, [ebp - 0x40]
call fcn.00402b26
lea ecx, [ebp - 0x168]
call fcn.0040361b
mov eax, 1
jmp 0x4a5d75
call fcn.00402b26
lea ecx, [ebp - 0x40]
call fcn.00402b26
lea ecx, [ebp - 0x168]
call fcn.0040361b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x4a5d90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5244b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x569564]
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 esi, ecx
mov dword [ebp - 0x2c], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
mov dword [ebp - 0x30], ebx
call edi
sub eax, ebx
cmp eax, dword [0x56953c]
jae 0x4a5dfe
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x30]
push 0xa
call ebx
cmp byte [0x56eded], 0
jne 0x4a5dfb
call edi
sub eax, esi
cmp eax, dword [0x56953c]
jb 0x4a5de2
mov esi, dword [ebp - 0x2c]
mov al, byte [ebp + 8]
lea ecx, [ebp - 0x34]
mov byte [esi + 0x110], al
mov al, byte [ebp + 0xc]
push 0x549dd0
mov byte [esi + 0x111], al
call fcn.004074c0
mov eax, dword [esi + 0x108]
xor edi, edi
sub eax, dword [esi + 0x104]
sar eax, 2
mov dword [ebp - 4], 0
test eax, eax
je 0x4a5f20
nop dword [eax]
mov eax, dword [esi + 0x104]
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
cmp dword [ecx + 0x158], 0
je 0x4a5e7b
push ecx
call fcn.004a7300
add esp, 4
test eax, eax
jne 0x4a5f08
mov eax, dword [esi + 0x104]
mov ecx, esi
push dword [eax + edi*4]
call fcn.004a6f60
jmp 0x4a5f08
cmp dword [ecx + 0x15c], 0
je 0x4a5f08
cmp dword [ecx + 0x18], 8
lea eax, [ecx + 4]
jb 0x4a5e93
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005162f0
sub esp, 0x10
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4a5ebe
mov eax, dword [ecx]
jmp 0x4a5ec0
mov eax, ecx
push 0
push 0x549961
mov byte [eax], 0
call fcn.00404c71
lea eax, [ebp - 0x28]
mov ecx, 0x56ed2c
push eax
call fcn.004a8400
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4a5ef6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040550e
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [esi + 0x108]
inc edi
sub eax, dword [esi + 0x104]
sar eax, 2
cmp edi, eax
jb 0x4a5e40
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5f42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.004ac267
mov esp, ebp
pop ebp
ret 8
Function at 0x4a5f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x824]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0
push eax
call fcn.004e9750
xor eax, eax
mov dword [ebp - 0x828], 0x44
push 0x7d0
push eax
mov word [ebp - 0x7f8], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x7d4]
push eax
movups xmmword [ebp - 0x7e4], xmm0
call fcn.004e9750
push esi
push edi
lea eax, [ebp - 0x7d4]
push 0x526a38
push eax
call fcn.004490df
add esp, 0x28
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x7d4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a604b
push 0xffffffffffffffff
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac267
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4a6057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac267
mov esp, ebp
pop ebp
ret

Function at 0x4a6070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.004e9750
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4a60b3
mov esi, dword [esi]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x4a60e6
xor ecx, ecx
jmp 0x4a60ff
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a60f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00408e30
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x4a6660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5245a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push 0
push 0x56eb50
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404cea
push 1
push 0
push 0x54e0e8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404ad0
test eax, eax
js 0x4a6735
cmp eax, dword [ebp - 0x18]
jae 0x4a6735
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403921
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00516250
add esp, 8
lea esi, [edi + 0x194]
mov ecx, esi
push eax
call fcn.00413fc0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4a671e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409960
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4a6749
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040550e
jmp 0x4a6749
push 0
lea esi, [edi + 0x194]
push 0x549dd0
mov ecx, esi
call fcn.00408e30
cmp dword [esi + 0x14], 8
lea eax, [esi + 0x10]
jb 0x4a6754
mov esi, dword [esi]
push 5
push str.show0
push dword [eax]
push esi
call fcn.004129e0
add esp, 0x10
test eax, eax
je 0x4a6791
mov eax, dword [edi + 0x100]
push 0
push 0
push 0
push 0x4a6310
lea esi, [edi + eax*4]
inc eax
push 0xa
push 0
mov dword [edi + 0x100], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4a67a6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040550e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x4a6f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x4a6fc5
cmp dword [edx + 0xbc], 0
je 0x4a6fc5
cmp dword [edx + 0x44], 0
je 0x4a6fc5
cmp byte [0x56952d], 0
je 0x4a6fb3
mov eax, dword [ecx + 0x100]
push esi
push 0
push 0
push edx
push fcn.004a67d0
lea esi, [ecx + eax*4]
inc eax
push 0xa
push 0
mov dword [ecx + 0x100], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, 1
pop esi
pop ebp
ret 4
push edx
call fcn.004a67d0
add esp, 4
mov eax, 1
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4
Function at 0x4a82a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524760
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x569564]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp - 0x14]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.004a7f20
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
add esp, 0x10
mov dword [esi + 4], eax
call fcn.00516bc0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00516c00
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.SoftwareHeinoteReport
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x4a8343
push 0
lea ecx, [ebp - 0x10]
call fcn.00516c00
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHeinoteReport
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4a83db
lea ecx, [ebp - 0x10]
call fcn.00516c00
push eax
push 0xf003f
push 0
push str.SoftwareHeinoteReport
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x4a83db
lea ecx, [ebp - 0x14]
call fcn.00516bc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00516c00
push eax
push 0xf003f
push 0
push 0x536e1c
lea ecx, [ebp - 0x10]
call fcn.00516c10
push eax
call esi
test eax, eax
jne 0x4a83a7
push str.Kunbang
lea ecx, [ebp - 0x10]
call fcn.00516c10
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0
lea ecx, [ebp - 0x14]
call fcn.00516c00
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x536e1c
lea ecx, [ebp - 0x10]
call fcn.00516c10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x14]
call fcn.00516be0
lea ecx, [ebp - 0x10]
call fcn.00516be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a9670
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524a56
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x569564]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00516f50
test al, al
jne 0x4a96b2
xor al, al
jmp 0x4a9815
push 4
push 0x536eb8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00404c71
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.005170d0
mov ebx, eax
cmp esi, ebx
je 0x4a9727
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x4a9702
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040550e
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4a971a
mov eax, dword [esi]
jmp 0x4a971c
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.00404f22
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4a973c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040550e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4a976a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040550e
cmp dword [esi + 0x10], 0
je 0x4a96ab
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x54b0c8
movlpd qword [ebp - 0x48], xmm0
call fcn.00403a6c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.00516fa0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4a97b4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040550e
mov edx, dword [ebp - 0x50]
mov eax, edx
mov ecx, dword [ebp - 0x54]
sub eax, ecx
cmp eax, 8
jne 0x4a9809
cmp ecx, edx
je 0x4a97d0
movq xmm0, qword [ecx]
movq qword [ebp - 0x48], xmm0
push 0
call fcn.004f97a5
xor edx, edx
add esp, 4
sub eax, dword [ebp - 0x48]
mov ecx, eax
sbb edx, dword [ebp - 0x44]
call fcn.004acc60
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [ebp + 0xc]
divss xmm1, dword [0x536ed8]
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x4a9809
mov bl, 1
jmp 0x4a980b
xor bl, bl
lea ecx, [ebp - 0x54]
call fcn.0040a570
mov al, bl
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.004ac267
mov esp, ebp
pop ebp
ret 8
Function at 0x4abc20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524f63
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x569564]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.004abf80
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4abca2
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.004abe40
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x78], ebx
call fcn.005174d0
add esp, 8
mov byte [ebp - 0x71], bl
test al, al
jne 0x4abca6
mov byte [ebp - 0x71], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x4abccd
mov eax, dword [ebp - 0x44]
and ebx, 0xfffffffe
mov dword [ebp - 0x78], ebx
cmp eax, 0x10
jb 0x4abccd
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040550e
cmp byte [ebp - 0x71], 0
je 0x4abcee
push esi
mov ecx, edi
call fcn.004abf10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4abe17
inc ecx
push ecx
jmp 0x4abe0c
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0040e540
add esp, 8
test al, al
je 0x4abd35
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.004abe40
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
or ebx, 4
push eax
mov dword [ebp - 0x78], ebx
call fcn.005174d0
add esp, 8
test al, al
je 0x4abd35
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.004abf10
or ebx, 8
jmp 0x4abd5c
push 0
push 0x549961
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00404c71
lea eax, [ebp - 0x40]
or ebx, 0x10
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.00404f22
or ebx, 2
test bl, 0x10
je 0x4abda7
mov eax, dword [ebp - 0x2c]
and ebx, 0xffffffef
cmp eax, 0x10
jb 0x4abd95
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040550e
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test bl, 8
je 0x4abdd6
mov eax, dword [ebp - 0x5c]
and ebx, 0xfffffff7
cmp eax, 0x10
jb 0x4abdc4
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040550e
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
test bl, 4
je 0x4abe02
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4abdf0
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040550e
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4abe17
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040550e
mov eax, esi
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.004ac267
mov esp, ebp
pop ebp
ret 4
Function at 0x4adaf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x569564]
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 0x4adb40
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4adb3a
shr eax, 8
cmp al, 2
jne 0x4adb3a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac267
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.004ac267
mov esp, ebp
pop ebp
ret
Function at 0x4aeff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4af01c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4af00d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4af050
cmp dword [esi + 8], 0
jne 0x4af040
push 0x54dc88
push dword [eax + 8]
call fcn.004f1612
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4af040
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004f17f5
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4af072
mov eax, dword [esi + 8]
test eax, eax
je 0x4af06c
push eax
call fcn.004f138d
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4b3d40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b3d5e
cmp dword [esi + 0x48], 0
je 0x4b3d5e
push 2
push 3
push esi
call fcn.004c8bf0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004c05d0
add esp, 4
test esi, esi
je 0x4b3d7e
cmp dword [esi + 0x48], 0
je 0x4b3d7e
push 3
push esi
call fcn.004c8c30
add esp, 8
pop esi
pop ebp
ret
Function at 0x4bcef0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.004bd260
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4bcf74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4bcf4c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004c9160
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004bcb60
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4684], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x288]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4bd316
cmp dword [ecx + edx*4 + 0x1a4], 0x4bce40
jne 0x4bd316
cmp dword [esi], 0
je 0x4bd2ac
test edi, edi
je 0x4bd316
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004bc4e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4bd316
test al, 1
je 0x4bd316
cmp dword [esi], 0
jne 0x4bd2ff
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x569594]
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
jne 0x4bd2ff
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
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 0x4bd316
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bd320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4bd349
push dword [esi + 0x11c]
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 0x4bd37f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x538948
push 2
push eax
call fcn.004f23b6
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004f23b6
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x4bd453
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x4bd44f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x4bdb30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x56f1b0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4bdb81
push 3
push 2
push eax
push 6
call fcn.004dbe20
add esp, 0x10
test al, al
je 0x4bdb75
mov dword [0x56f1b0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x56f1b0], 1
jmp 0x4bdb86
cmp eax, 2
je 0x4bdbc6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4bdbad
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4bdbc6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4bdc90
Capabilities:
Set socket configuration

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