joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b7e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd54d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x508040]
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
push 0
push 0x43b6c0
call dword [sym.imp.USER32.dll_EnumWindows]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea esi, [ebp - 0x13]
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x43b823
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.0043beb0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
mov ecx, 0x57eccc
call fcn.0043bcd0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x43b899
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43b88f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b96e
push ecx
push edx
call fcn.004af3d3
add esp, 8
mov ebx, dword [0x57ef30]
cmp ebx, dword [0x57ef34]
je 0x43b94c
mov eax, dword [0x57ecd0]
mov ecx, dword [0x57eccc]
xor edi, edi
cmp ecx, eax
je 0x43b93d
cmp dword [ebx + 0x14], 0xf
mov esi, ecx
mov eax, dword [ebx + 0x10]
jbe 0x43b906
jmp 0x43b8d3
mov eax, dword [ebx + 0x10]
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x43b8dd
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push eax
push dword [ebx]
call fcn.0043c250
add esp, 8
lea ecx, [edi + 1]
test al, al
mov eax, dword [0x57ecd0]
cmove ecx, edi
add esi, 0x18
mov edi, ecx
cmp esi, eax
jne 0x43b8d0
jmp 0x43b933
mov eax, dword [ebx + 0x10]
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x43b910
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push eax
push ebx
call fcn.0043c250
add esp, 8
lea ecx, [edi + 1]
test al, al
mov eax, dword [0x57ecd0]
cmove ecx, edi
add esi, 0x18
mov edi, ecx
cmp esi, eax
jne 0x43b903
test edi, edi
jg 0x43b96a
mov ecx, dword [0x57eccc]
add ebx, 0x18
cmp ebx, dword [0x57ef34]
jne 0x43b8b6
xor al, al
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.004af2b0
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x43b94e
call fcn.004bf6cd
int3
Function at 0x443320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x418], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
push edi
mov edi, eax
mov dword [ebp - 0x408], eax
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x443350
sub edi, ecx
mov ecx, 0xffffffff
mov eax, edi
add eax, 1
cmovb eax, ecx
push eax
call fcn.004bf410
lea ecx, [edi + 1]
mov ebx, eax
push ecx
push dword [ebp - 0x408]
push ebx
call fcn.004ba090
add esp, 0x10
mov dword [ebp - 0x40c], 0x400
mov dword [ebp - 0x408], 0
push 0x4fa1cc
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x4433e5
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x414]
test eax, eax
je 0x4433e5
cmp dword [ebp - 0x408], 0
je 0x4433e5
lea eax, [ebp - 0x410]
push eax
push 0x20119
jmp 0x4433f1
lea eax, [ebp - 0x410]
push eax
push 0x20019
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4434dd
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push dword [ebp - 0x418]
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x410]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4434dd
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x443450
sub ecx, edx
je 0x44348f
nop dword [eax + eax]
movsx eax, byte [ebp + esi - 0x404]
push eax
call fcn.004b64ab
mov byte [ebp + esi - 0x404], al
add esp, 4
lea eax, [ebp - 0x404]
inc esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443482
sub eax, edx
cmp esi, eax
jb 0x443460
xor esi, esi
test edi, edi
je 0x4434aa
movsx eax, byte [ebx + esi]
push eax
call fcn.004b64ab
mov byte [ebx + esi], al
add esp, 4
inc esi
cmp esi, edi
jb 0x443495
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.004b2160
add esp, 8
test eax, eax
je 0x4434dd
push ebx
call fcn.004ba650
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004ba650
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
Function at 0x4435b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
or esi, 0xffffffff
push 0x4fa1cc
push str.kernel32
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x443659
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x443659
cmp dword [ebp - 8], 1
jne 0x443659
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov dword [ebp - 8], 0
call edi
push eax
call ebx
test eax, eax
je 0x443664
lea ecx, [ebp - 8]
push ecx
call eax
test eax, eax
je 0x443664
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.Wow64RevertWow64FsRedirection
mov esi, eax
mov eax, dword [ebp - 8]
push str.kernel32
mov dword [ebp - 0xc], eax
call edi
push eax
call ebx
test eax, eax
je 0x443664
push dword [ebp - 0xc]
call eax
jmp 0x443664
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
Function at 0x4462e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddbab
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x508040]
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
cmp dword [0x57ed48], 3
jb 0x4464f5
cmp dword [0x57ed60], 0
je 0x4464f5
call fcn.0045de90
mov esi, eax
test esi, esi
je 0x4464ec
cmp dword [0x57ee78], 0xf
mov ecx, 0x57ee64
cmova ecx, dword [0x57ee64]
push ecx
push 0x2712
push esi
call fcn.004627a0
add esp, 0xc
push 1
push 0x2c
push esi
call fcn.004627a0
add esp, 0xc
push esi
call fcn.0045def0
add esp, 4
test eax, eax
jne 0x4464ec
lea eax, [ebp - 0x18]
push eax
push 0x200002
push esi
call fcn.0045de70
add esp, 0xc
cmp dword [ebp - 0x18], 0xc8
jne 0x4464ec
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x57f004]
cmp eax, dword [ecx + 4]
jle 0x44646d
push 0x57f004
call fcn.004af4d1
add esp, 4
cmp dword [0x57f004], 0xffffffff
jne 0x44646d
mov dword [ebp - 4], 0
lea esi, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0x2b3d5f2d
movlpd qword [0x57effc], xmm0
lea ebx, [ebp - 0x19]
movaps xmm0, xmmword [0x4fbba0]
push 0x10
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0x5e252423
mov word [ebp - 0x1c], 0x2826
mov byte [ebp - 0x1a], 0x29
mov dword [0x57effc], 0
mov dword [0x57f000], 0
call fcn.004af986
mov edi, eax
add esp, 4
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [edi + 8], edi
mov word [edi + 0xc], 0x101
mov dword [0x57effc], edi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x44644c
nop dword [eax]
push esi
push edi
call fcn.0044ff80
inc esi
cmp esi, ebx
jne 0x446440
push 0x4df620
call fcn.004af971
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x57f004
call fcn.004af480
add esp, 4
cmp dword [0x57ed4c], 0xf
mov ecx, 0x57ed38
mov eax, dword [0x57ed48]
jbe 0x44648a
mov esi, dword [0x57ed38]
add eax, esi
jmp 0x446491
add eax, ecx
mov esi, 0x57ed38
mov dword [ebp - 0x18], eax
cmp esi, eax
je 0x4464cc
mov edi, dword [0x57effc]
nop
mov bl, byte [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 0x14], bl
push eax
call fcn.0044fce0
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0xd], 0
jne 0x4464c0
cmp bl, byte [eax + 0xe]
jge 0x4464c2
mov eax, edi
cmp eax, edi
jne 0x4464e3
inc esi
cmp esi, dword [ebp - 0x18]
jne 0x4464a0
call fcn.00444490
test al, al
je 0x446506
mov dword [0x57ece8], 1
xor al, al
jmp 0x446508
push 0xc
push str.bad_username
jmp 0x4464fc
push 0xd
push str.not_connected
jmp 0x4464fc
push 0x15
push str.bad_username_password
mov ecx, 0x57ed90
call fcn.0044a0d0
mov al, 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.004af2b0
mov esp, ebp
pop ebp
ret
Function at 0x4476c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4476f2
jl 0x4476e5
test ecx, ecx
jne 0x4476f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4477cf
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x447722
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x447724
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x447778
jg 0x447735
test esi, esi
je 0x447778
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x447749
jl 0x447743
cmp ecx, esi
jae 0x447749
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.004b2880
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x44779c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4477b8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x447707
jl 0x4477b8
test ecx, ecx
jne 0x447707
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x44780d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x44780d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.004b2880
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x447877
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x447833
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x447862
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004ba829
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x447877
cmp edi, eax
ja 0x447840
test edi, edi
je 0x447877
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004ba829
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x449ec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dde90
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x508040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004af986
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004b0bc0
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00449e60
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 0x45bee0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x45bf6d
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x45bf6d
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004c1d2c
add esp, 8
test eax, eax
jne 0x45bf6b
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x45bf7c
jmp 0x45bf26
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
Function at 0x467f30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x467fbc
push esi
call fcn.0047bd70
add esp, 4
test al, al
jne 0x467fbc
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x467f53
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004843e0
add esp, 0xc
test eax, eax
je 0x467f87
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004843e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x467f89
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x467fb5
mov al, byte [esi]
push eax
call fcn.00478b30
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x467f97
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x46c680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, 0x1b8
mov edx, 0x178
push esi
push edi
cmp dword [ebp], 0x4e2e88
mov ecx, dword [ebp + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46c6b8
mov byte [eax], 0
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0x8f0]
test esi, esi
je 0x46c86c
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x50800c]
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x46c711
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x201], 0
je 0x46c71e
push dword [eax + 0x6c]
call dword [0x50800c]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x46c726
mov edi, dword [esp + 0x30]
push edi
call dword [0x508004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x202], 0
je 0x46c73e
mov ecx, dword [eax + 0x4a8]
mov dword [esp + 0x14], ecx
jmp 0x46c746
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x46c75c
test byte [eax + 4], 0x10
je 0x46c75c
lea edx, [eax + 0x74]
mov dword [esp + 0x2c], edx
jmp 0x46c766
lea eax, [ebx + 0x8f4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x4b4]
mov ecx, 1
cmp eax, ecx
jbe 0x46c7b3
mov eax, dword [ebx + 0x8f0]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
je 0x46c7ad
mov edi, dword [eax]
lea esi, [eax - 0x14]
cmp edi, edx
cmovge esi, dword [esp + 0x1c]
inc ecx
add eax, 0x60
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebx + 0x4b4]
jb 0x46c780
mov eax, dword [ebx + 0x4b4]
cmp ecx, eax
jne 0x46c7c2
push esi
call fcn.0046d2c0
add esp, 4
jmp 0x46c7ce
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebx + 0x8f0]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x508004]
push dword [esi + 4]
call dword [0x508004]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
lea ebp, [esi + 0x20]
push ebp
push dword [esp + 0x30]
mov eax, dword [eax + 0x238]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.0046bec0
add esp, 0x10
test al, al
jne 0x46c861
push ebp
call fcn.0046c140
push edi
mov dword [esi + 0xc], 0
call dword [0x508004]
push ebx
call dword [0x508004]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46c86c
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4729b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x508040]
xor eax, esp
mov dword [esp + 0x10c], eax
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 0xc]
cmp edx, dword [edi + 0x128]
je 0x472a17
cmp edx, dword [edi + 0x12c]
je 0x472a17
pop edi
pop ebp
mov eax, 0x2b
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004af2b0
add esp, 0x110
ret
mov ecx, dword [esp + 0x12c]
xor eax, eax
cmp edx, dword [edi + 0x12c]
push esi
sete al
mov dword [esp + 0x14], 0x168
mov esi, 0x158
cmove esi, dword [esp + 0x14]
add esi, edi
lea eax, [eax*4 + 0x128]
mov eax, dword [eax + edi]
mov dword [esp + 0x18], eax
mov edx, dword [esi]
test edx, edx
je 0x472abd
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp edi, eax
jbe 0x472a7b
sub edi, eax
cmp ecx, edi
cmovb edi, ecx
add eax, edx
push edi
push eax
push dword [esp + 0x18]
call fcn.004b2880
add esp, 0xc
add dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
jmp 0x472a7d
xor edi, edi
cmp eax, dword [esi + 8]
jne 0x472aa8
push dword [esi]
call dword [0x508004]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edi, edi
jle 0x472ab2
xor eax, eax
mov dword [ebx], edi
jmp 0x472b20
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x18]
push 0
push ecx
push dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x472b13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x472ae9
lea eax, [edi + 0x52]
jmp 0x472b13
push 0x100
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0045e830
push eax
push str.Recv_failure:__s
push ebp
call fcn.004727e0
add esp, 0x18
mov dword [ebp + 0x938], esi
mov eax, 0x38
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x472b20
mov dword [ebx], 0
mov ecx, dword [esp + 0x11c]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af2b0
add esp, 0x110
ret
Function at 0x472b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x508040]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 8], eax
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + ecx*4 + 0x128]
shl ecx, 4
mov dword [esp + 0x14], edx
lea esi, [ecx + 0x158]
mov ecx, dword [esp + 0x12c]
add esi, eax
mov edx, dword [esi]
test edx, edx
je 0x472c47
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp edi, eax
jbe 0x472c07
sub edi, eax
cmp ecx, edi
cmovb edi, ecx
add eax, edx
push edi
push eax
push dword [esp + 0x18]
call fcn.004b2880
add esp, 0xc
add dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
jmp 0x472c09
xor edi, edi
cmp eax, dword [esi + 8]
jne 0x472c34
push dword [esi]
call dword [0x508004]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edi, edi
jle 0x472c40
mov dword [ebx], 0
jmp 0x472ca8
mov ecx, dword [esp + 0x12c]
push 0
push ecx
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x472ca8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x472c7d
mov dword [ebx], 0x51
jmp 0x472ca8
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0045e830
push eax
push str.Recv_failure:__s
push ebp
call fcn.004727e0
mov dword [ebp + 0x938], esi
add esp, 0x18
mov dword [ebx], 0x38
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af2b0
add esp, 0x10c
ret
Function at 0x472cd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x508040]
xor eax, esp
mov dword [esp + 0x108], eax
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 0xc], eax
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x130]
mov eax, dword [ecx + edx*4 + 0x128]
lea esi, [ecx + 0x158]
mov dword [esp + 0x10], eax
mov eax, edx
shl eax, 4
add esi, eax
mov eax, dword [ecx + 0x238]
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x472dba
cmp dword [ecx + edx*4 + 0x140], 0x482550
jne 0x472dba
cmp dword [esi], 0
je 0x472d4f
test ebx, ebx
je 0x472dba
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00483e50
add esp, 0x14
cmp eax, 0xffffffff
je 0x472dba
test al, 1
je 0x472dba
mov ecx, dword [esi]
test ecx, ecx
jne 0x472da0
mov eax, dword [ebp + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x472df6
mov ebx, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x472dba
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x472e2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x472e01
mov dword [edi], 0x51
jmp 0x472e2c
mov dword [edi], 0x1b
or eax, 0xffffffff
jmp 0x472e2e
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0045e830
push eax
push str.Send_failure:__s
push ebp
call fcn.004727e0
mov dword [ebp + 0x938], esi
add esp, 0x18
mov dword [edi], 0x37
mov eax, ebx
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af2b0
add esp, 0x10c
ret