joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48dee0
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
sub esp, 0xc
push ebx
mov ebx, eax
push ebp
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x48e07b
cmp dword [esp + 0x18], 0xffffffff
je 0x48e07b
push esi
push edi
xor esi, esi
call fcn.00489870
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x48e06a
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x94
push 0x523be0
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x48e050
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push esi
push 1
push esi
push eax
mov dword [esp + 0x30], esi
call edi
test eax, eax
je 0x48e027
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004cf7ac
mov edx, dword [esp + 0x24]
push edx
mov esi, eax
push ebx
push esi
call fcn.004d33e0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x10
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push 0
push 1
push 0
push edx
call edi
test eax, eax
je 0x48dff4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [eax], edi
xor eax, eax
test edi, 0xfffffffe
jbe 0x48e02e
mov ecx, esi
mov bl, byte [ecx + edi - 1]
mov dl, byte [eax + esi]
mov byte [eax + esi], bl
mov edi, dword [esp + 0x20]
mov byte [ecx + edi - 1], dl
mov edi, dword [esp + 0x20]
mov edx, edi
inc eax
shr edx, 1
dec ecx
cmp eax, edx
jb 0x48dfb2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
mov dword [ebp], 0xfffffff5
call fcn.004cf7a1
mov eax, dword [esp + 0x14]
add esp, 4
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebp], 0xfffffff4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
push edi
mov dword [ebp], 0xfffffff3
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
mov dword [ebp], 0xfffffff2
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebp], 0xfffffff6
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x48e090
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, eax
test esi, esi
je 0x48e1d2
test ebp, ebp
je 0x48e1d2
cmp dword [esp + 0x14], 0
je 0x48e1d2
lea ecx, [edi + 2]
test ecx, ecx
jl 0x48e1d2
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x48e1d2
cmp edi, 2
mov ecx, ebp
jle 0x48e15f
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x523998]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
movzx eax, byte [eax + ebx + 0x523998]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
shr ebx, 6
movzx eax, byte [ebx + eax*4 + 0x523998]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x523998]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x48e100
pop ebx
test edi, edi
je 0x48e1bf
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + 0x523998]
mov byte [ecx], al
inc ecx
cmp edi, 1
jle 0x48e1a5
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
movzx edx, byte [edx + eax + 0x523998]
mov byte [ecx], dl
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
movzx edx, byte [eax*4 + 0x523998]
mov byte [ecx], dl
jmp 0x48e1ba
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov dl, byte [eax + 0x523998]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [esp + 0x14]
mov eax, ecx
sub eax, ebp
pop edi
pop esi
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
Function at 0x48e360
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x544638]
cmp eax, 0xffffffff
jne 0x48e5c1
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [0x544638], 0xfffffc18
mov dword [esp + 0xc], 0x114
call fcn.004d3360
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48e5bc
cmp dword [esp + 0x10], 2
jne 0x48e5bc
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x48e4d0
mov eax, dword [esp + 8]
test eax, eax
jne 0x48e3f9
mov eax, 1
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
cmp eax, 1
jne 0x48e4a8
push 0x7f
lea edx, [esp + 0x18]
push edx
push str.Service_Pack_1
call fcn.004cd64f
add esp, 0xc
test eax, eax
jne 0x48e439
mov eax, 3
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
push 0x7f
lea eax, [esp + 0x18]
push eax
push str.Service_Pack_2
call fcn.004cd64f
add esp, 0xc
test eax, eax
jne 0x48e470
mov eax, 4
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
push 0x7f
lea ecx, [esp + 0x18]
push ecx
push str.Service_Pack_3
call fcn.004cd64f
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
cmp eax, 2
jne 0x48e5bc
mov eax, 6
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
cmp eax, 6
jne 0x48e59d
mov eax, dword [esp + 8]
sub eax, 0
je 0x48e52e
sub eax, 1
je 0x48e50f
sub eax, 1
jne 0x48e5bc
mov eax, 0xb
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
mov eax, 0xa
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
push 0x7f
lea edx, [esp + 0x18]
push edx
push str.Service_Pack_1
call fcn.004cd64f
add esp, 0xc
test eax, eax
jne 0x48e565
mov eax, 8
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
push 0x7f
lea eax, [esp + 0x18]
push eax
push str.Service_Pack_2
call fcn.004cd64f
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
mov eax, 0x3e8
mov dword [0x544638], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
mov eax, dword [0x544638]
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x118
ret
Function at 0x48e5e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x48e5e7
xor eax, eax
ret
or eax, 0xffffffff
push esi
cmp edx, 8
jb 0x48e6c4
mov esi, edx
shr esi, 3
push edi
lea ebx, [ebx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x523598]
inc ecx
sub edx, 8
sub esi, 1
jne 0x48e600
pop edi
test edx, edx
je 0x48e6eb
jmp 0x48e6d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x523598]
inc ecx
sub edx, 1
jne 0x48e6d0
not eax
pop esi
ret
Function at 0x48e970
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x507330
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x64
push 0
lea ecx, [esp + 0x1c]
call fcn.00442020
mov dword [esp + 0x14], vtable.UserManager::t_lockerProc.0
mov esi, dword [ebp + 8]
push 0x5446e8
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00442070
test al, al
je 0x48eaf9
push 0x64
push 0
lea ecx, [esp + 0x24]
call fcn.00442020
mov dword [esp + 0x1c], vtable.UserManager::t_locker.0
push 0x544918
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
call fcn.00442070
test al, al
je 0x48eaeb
push 0
push esi
lea ecx, [edi + 0x154]
call fcn.00488880
test al, al
je 0x48eaeb
push 0
push esi
lea ecx, [edi + 0x44c]
call fcn.00488880
test al, al
je 0x48eaeb
mov ebx, dword [ebp + 0xc]
push 0x51f23c
mov ecx, ebx
call fcn.00439120
cmp byte [edi + 0x151], 0
jne 0x48ea5d
push 0x5116a8
mov ecx, esi
call fcn.00438300
mov ecx, eax
jmp 0x48eae6
mov eax, dword [ebp + 0x10]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00491080
test al, al
je 0x48eac7
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x48eac7
call fcn.004908b0
push eax
mov ecx, ebx
call fcn.00439120
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.00442040
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00442040
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x511694
mov ecx, esi
call fcn.00438300
mov ecx, eax
call fcn.00438c70
mov ecx, ebx
mov esi, eax
call fcn.00439650
push eax
mov ecx, esi
call fcn.00438c70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.00442040
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00442040
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48fc50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x507a18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x2c]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
mov dword [esi + 4], ecx
push edi
mov ecx, 0x5446e8
mov byte [esi], al
call fcn.00449e90
test al, al
jne 0x48fcc0
push 0x511894
push edi
call fcn.004383b0
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push str.Local_sgime_user_lock
push edi
mov ecx, 0x544918
call fcn.004421a0
test al, al
je 0x48fc9d
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00442020
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x544918
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00442070
test al, al
jne 0x48fd3c
push 0x511894
push edi
call fcn.004383b0
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00442040
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
cmp byte [esi + 0xa78], 0
jne 0x48fdc0
call fcn.0043dc70
mov ecx, eax
call fcn.0043c000
test al, al
jne 0x48fd8e
push edi
call fcn.0043dc70
mov ecx, eax
call fcn.0043c030
test al, al
jne 0x48fd8e
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442040
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov ecx, esi
call fcn.0048ed70
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.0048f8b0
test al, al
je 0x48fd66
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.0048f6a0
test al, al
je 0x48fd66
mov byte [esi + 0xa78], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442040
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x48fdf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x507a18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov cl, byte [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push str.Local_sgime_user_lock_proc
mov byte [esi + 8], cl
push edi
mov ecx, 0x5446e8
mov dword [esi + 0xc], eax
call fcn.00449e90
test al, al
jne 0x48fe61
push 0x511894
push edi
call fcn.004383b0
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
push str.Local_sgime_user_lock
push edi
mov ecx, 0x544918
call fcn.004421a0
test al, al
je 0x48fe3e
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00442020
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x544918
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00442070
test al, al
jne 0x48fedd
push 0x511894
push edi
call fcn.004383b0
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.00442040
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
cmp byte [esi + 0xa78], 0
jne 0x48ff61
call fcn.0043dc70
mov ecx, eax
call fcn.0043c000
test al, al
jne 0x48ff2f
push edi
call fcn.0043dc70
mov ecx, eax
call fcn.0043c030
test al, al
jne 0x48ff2f
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442040
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov ecx, esi
call fcn.0048ed70
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.0048f8b0
test al, al
je 0x48ff07
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.0048f6a0
test al, al
je 0x48ff07
mov byte [esi + 0xa78], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00442040
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4900f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5076d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
push 0x64
push 0
lea ecx, [esp + 0x20]
call fcn.00442020
mov dword [esp + 0x18], vtable.UserManager::t_lockerProc.0
mov esi, dword [esp + 0x30]
push 0x5446e8
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.00442070
test al, al
je 0x490187
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.00442020
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x544918
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00442070
test al, al
jne 0x4901af
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00442040
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00442040
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0
push esi
lea ecx, [edi + 0x154]
call fcn.00488880
test al, al
je 0x490179
push 0
push esi
lea ecx, [edi + 0x44c]
call fcn.00488880
test al, al
je 0x490179
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.0048ff90
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x28], 0
call fcn.00442040
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00442040
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4adc60
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 0x4adc92
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 0x4adde0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x4addfb
mov edx, dword [esi + 0xfc]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4ade2f
cmp eax, 2
jg 0x4ade2f
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5164f0]
push 2
push edx
call fcn.004d2c6d
mov eax, dword [esi + 0xf8]
push eax
push 1
push edi
push ebx
call fcn.004d2c6d
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4ae1af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4ae18f
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.004c3540
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004adfc0
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4ae850
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x134], 0
mov ebx, dword [ebp]
jne 0x4ae961
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4ae8bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c3540
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4ae956
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4ae8f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c3540
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4ae956
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.004ae800
test eax, eax
jne 0x4ae924
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c3540
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4ae956
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x94]
call fcn.004ae800
test eax, eax
jne 0x4ae95f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c3540
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004adfc0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004cc2b1
add esp, 0x108
ret

Function at 0x4ae980
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4ae9c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004c3540
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004adf30
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004adf30
add esp, 8
pop esi
pop ecx
ret

Function at 0x4ae9e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4aea29
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4aea41
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x4b0390
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4b0434
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4b0405
cmp word [ecx + 0xa], 4
jne 0x4b0405
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4b0405
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.004b0320
mov dword [esi], eax
test eax, eax
je 0x4b0428
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4b03e0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004d542d
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4b0444.11001
jmp dword [eax*4 + 0x4b0468]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4b0ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x544b54], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4b0700
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4b09f0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004b06b0
je 0x4b0d12
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x53f35c]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4b0e0d
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004cfa9e
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004cfb06
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4b0d8d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4b0dd4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004cfa9e
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004cfb06
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4b0e09
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4b0e3d
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x4b0e3d
inc edi
cmp edi, 3
jl 0x4b0dd6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x53f35c], edx
mov dword [0x53f364], eax
mov dword [fcn.004b06b0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x53f35c]
xor ecx, esp
mov dword [0x544b54], 1
call fcn.004cc2b1
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4b0e09