joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480c00
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
cmp dword [esp + 4], 0
je 0x480cb1
cmp dword [esp + 8], 0xffffffff
je 0x480cb1
push ebp
push esi
xor esi, esi
call fcn.00480ac0
mov ebp, eax
test ebp, ebp
je 0x480cac
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
call fcn.00480b30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x480ca2
mov eax, dword [esp + 0x14]
push edi
test al, 0xf
je 0x480c55
shr eax, 4
inc eax
shl eax, 4
mov edi, eax
jmp 0x480c58
lea edi, [eax + 0x10]
push edi
call fcn.004c669c
push edi
mov esi, eax
push 0
push esi
call fcn.004cab10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.004cab90
add esp, 0x1c
push edi
lea edx, [esp + 0x1c]
push edx
push esi
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebx
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
ret

Function at 0x480cc0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
cmp dword [esp + 4], 0
je 0x480d73
cmp dword [esp + 8], 0xffffffff
je 0x480d73
push ebp
push esi
push edi
xor esi, esi
call fcn.00480ac0
mov ebp, eax
test ebp, ebp
je 0x480d6d
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.00480b30
mov edi, eax
add esp, 4
test edi, edi
je 0x480d64
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ebx, eax
call fcn.004c669c
push ebx
mov esi, eax
push 0
push esi
call fcn.004cab10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.004cab90
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 1
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
pop ebx
test eax, eax
jne 0x480d53
push esi
call fcn.004c6691
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
ret
Function at 0x485120
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 0x4852bb
cmp dword [esp + 0x18], 0xffffffff
je 0x4852bb
push esi
push edi
xor esi, esi
call fcn.00480ac0
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x4852aa
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x94
push 0x51a280
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x485290
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 0x485267
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c669c
mov edx, dword [esp + 0x24]
push edx
mov esi, eax
push ebx
push esi
call fcn.004cab90
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 0x485234
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [eax], edi
xor eax, eax
test edi, 0xfffffffe
jbe 0x48526e
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 0x4851f2
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.004c6691
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 0x4852d0
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 0x485412
test ebp, ebp
je 0x485412
cmp dword [esp + 0x14], 0
je 0x485412
lea ecx, [edi + 2]
test ecx, ecx
jl 0x485412
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x485412
cmp edi, 2
mov ecx, ebp
jle 0x48539f
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 + 0x51a038]
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 + 0x51a038]
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 + 0x51a038]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x51a038]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x485340
pop ebx
test edi, edi
je 0x4853ff
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + 0x51a038]
mov byte [ecx], al
inc ecx
cmp edi, 1
jle 0x4853e5
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
movzx edx, byte [edx + eax + 0x51a038]
mov byte [ecx], dl
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
movzx edx, byte [eax*4 + 0x51a038]
mov byte [ecx], dl
jmp 0x4853fa
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov dl, byte [eax + 0x51a038]
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 0x4855a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x53a97c]
cmp eax, 0xffffffff
jne 0x485801
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [0x53a97c], 0xfffffc18
mov dword [esp + 0xc], 0x114
call fcn.004cab10
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4857fc
cmp dword [esp + 0x10], 2
jne 0x4857fc
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x485710
mov eax, dword [esp + 8]
test eax, eax
jne 0x485639
mov eax, 1
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
cmp eax, 1
jne 0x4856e8
push 0x7f
lea edx, [esp + 0x18]
push edx
push str.Service_Pack_1
call fcn.004c453f
add esp, 0xc
test eax, eax
jne 0x485679
mov eax, 3
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
push 0x7f
lea eax, [esp + 0x18]
push eax
push str.Service_Pack_2
call fcn.004c453f
add esp, 0xc
test eax, eax
jne 0x4856b0
mov eax, 4
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
push 0x7f
lea ecx, [esp + 0x18]
push ecx
push str.Service_Pack_3
call fcn.004c453f
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
cmp eax, 2
jne 0x4857fc
mov eax, 6
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
cmp eax, 6
jne 0x4857dd
mov eax, dword [esp + 8]
sub eax, 0
je 0x48576e
sub eax, 1
je 0x48574f
sub eax, 1
jne 0x4857fc
mov eax, 0xb
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
mov eax, 0xa
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
push 0x7f
lea edx, [esp + 0x18]
push edx
push str.Service_Pack_1
call fcn.004c453f
add esp, 0xc
test eax, eax
jne 0x4857a5
mov eax, 8
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
push 0x7f
lea eax, [esp + 0x18]
push eax
push str.Service_Pack_2
call fcn.004c453f
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
mov eax, 0x3e8
mov dword [0x53a97c], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
mov eax, dword [0x53a97c]
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c31a1
add esp, 0x118
ret
Function at 0x485820
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x485827
xor eax, eax
ret
or eax, 0xffffffff
push esi
cmp edx, 8
jb 0x485904
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 + 0x519c38]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x519c38]
inc ecx
sub edx, 8
sub esi, 1
jne 0x485840
pop edi
test edx, edx
je 0x48592b
jmp 0x485910
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x519c38]
inc ecx
sub edx, 1
jne 0x485910
not eax
pop esi
ret
Function at 0x485ba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fe500
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
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.0043a910
mov dword [esp + 0x14], vtable.UserManager::t_lockerProc.0
mov esi, dword [ebp + 8]
push 0x53aa28
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.0043a960
test al, al
je 0x485d29
push 0x64
push 0
lea ecx, [esp + 0x24]
call fcn.0043a910
mov dword [esp + 0x1c], vtable.UserManager::t_locker.0
push 0x53ac58
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
call fcn.0043a960
test al, al
je 0x485d1b
push 0
push esi
lea ecx, [edi + 0x154]
call fcn.0047fb90
test al, al
je 0x485d1b
push 0
push esi
lea ecx, [edi + 0x44c]
call fcn.0047fb90
test al, al
je 0x485d1b
mov ebx, dword [ebp + 0xc]
push 0x516254
mov ecx, ebx
call fcn.00434c10
cmp byte [edi + 0x151], 0
jne 0x485c8d
push 0x5086d8
mov ecx, esi
call fcn.00433db0
mov ecx, eax
jmp 0x485d16
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.00488290
test al, al
je 0x485cf7
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x485cf7
call fcn.00487ae0
push eax
mov ecx, ebx
call fcn.00434c10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.0043a930
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0043a930
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 0x5086c4
mov ecx, esi
call fcn.00433db0
mov ecx, eax
call fcn.00434720
mov ecx, ebx
mov esi, eax
call fcn.00432030
push eax
mov ecx, esi
call fcn.00434720
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call fcn.0043a930
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0043a930
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 0x486e90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fe868
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
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, 0x53aa28
mov byte [esi], al
call fcn.00445370
test al, al
jne 0x486f00
push 0x5088c4
push edi
call fcn.00433e60
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, 0x53ac58
call fcn.0043aa70
test al, al
je 0x486edd
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.0043a910
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x53ac58
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0043a960
test al, al
jne 0x486f7c
push 0x5088c4
push edi
call fcn.00433e60
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.0043a930
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 0x487000
call fcn.0043ce30
mov ecx, eax
call fcn.0043b1c0
test al, al
jne 0x486fce
push edi
call fcn.0043ce30
mov ecx, eax
call fcn.0043b1f0
test al, al
jne 0x486fce
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043a930
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.00485fb0
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00486af0
test al, al
je 0x486fa6
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.004868e0
test al, al
je 0x486fa6
mov byte [esi + 0xa78], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043a930
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 0x487030
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fe868
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
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, 0x53aa28
mov dword [esi + 0xc], eax
call fcn.00445370
test al, al
jne 0x4870a1
push 0x5088c4
push edi
call fcn.00433e60
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, 0x53ac58
call fcn.0043aa70
test al, al
je 0x48707e
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.0043a910
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x53ac58
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0043a960
test al, al
jne 0x48711d
push 0x5088c4
push edi
call fcn.00433e60
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.0043a930
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 0x4871a1
call fcn.0043ce30
mov ecx, eax
call fcn.0043b1c0
test al, al
jne 0x48716f
push edi
call fcn.0043ce30
mov ecx, eax
call fcn.0043b1f0
test al, al
jne 0x48716f
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043a930
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.00485fb0
push 1
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
call fcn.00486af0
test al, al
je 0x487147
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.004868e0
test al, al
je 0x487147
mov byte [esi + 0xa78], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043a930
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 0x487330
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fe8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
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.0043a910
mov dword [esp + 0x18], vtable.UserManager::t_lockerProc.0
mov esi, dword [esp + 0x30]
push 0x53aa28
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.0043a960
test al, al
je 0x4873c7
push 0x64
push 0
lea ecx, [esp + 0x18]
call fcn.0043a910
mov dword [esp + 0x10], vtable.UserManager::t_locker.0
push 0x53ac58
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0043a960
test al, al
jne 0x4873ef
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0043a930
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043a930
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.0047fb90
test al, al
je 0x4873b9
push 0
push esi
lea ecx, [edi + 0x44c]
call fcn.0047fb90
test al, al
je 0x4873b9
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.004871d0
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x28], 0
call fcn.0043a930
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043a930
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 0x4a4e80
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 0x4a4eb2
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 0x4a5000
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x4a501b
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 0x4a504f
cmp eax, 2
jg 0x4a504f
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [eax + eax*2 + 0x50d520]
push 2
push edx
call fcn.004c9b22
mov eax, dword [esi + 0xf8]
push eax
push 1
push edi
push ebx
call fcn.004c9b22
add esp, 0x20
xor eax, eax
ret

Function at 0x4a5360
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 0x4a53cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4a53af
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.004ba740
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004a51e0
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4a5a70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x5355a0]
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 0x4a5b81
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 0x4a5adf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004ba740
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4a5b76
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 0x4a5b13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004ba740
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4a5b76
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.004a5a20
test eax, eax
jne 0x4a5b44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004ba740
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4a5b76
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x94]
call fcn.004a5a20
test eax, eax
jne 0x4a5b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004ba740
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a51e0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004c31a1
add esp, 0x108
ret

Function at 0x4a5ba0
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 0x4a5be3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004ba740
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a5150
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004a5150
add esp, 8
pop esi
pop ecx
ret

Function at 0x4a5c00
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 0x4a5c49
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4a5c61
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