joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d8c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62b538
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6bae70]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0046ffc0
mov dword [esp + 0x70], 0
mov eax, dword [0x6c9a40]
mov dword [esp + 8], 0
mov byte [esp + 0xc], 0
test al, 1
jne 0x47d951
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
push 1
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x6c9a30
push eax
lea ecx, [esp + 0x20]
call fcn.0047f550
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47d995
test al, 1
jne 0x47d995
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x47d995
lea ecx, [esp + 0x44]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005e9734
mov esp, ebp
pop ebp
ret

Function at 0x47dde0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6296a8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6bae70]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [edx]
push dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
call fcn.0046ffc0
mov dword [esp + 0x70], 0
mov eax, dword [0x6c9a40]
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
test al, 1
jne 0x47de61
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0x6c9a30
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x20]
mov edx, dword [eax]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
sub edx, eax
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00482240
mov dword [esp + 0x7c], 0xffffffff
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47decd
test al, 1
jne 0x47decd
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x47decd
lea ecx, [esp + 0x44]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005e9734
mov esp, ebp
pop ebp
ret
Function at 0x47eb50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b7b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [0x6c9ad8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47eb93
mov ecx, dword [eax + 4]
jmp 0x47eb95
xor ecx, ecx
mov byte [ebp + 0xc], 0
mov edx, 0xa0
push dword [ebp + 0xc]
call fcn.0044a6c0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x47ebd2
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.004809c0
jmp 0x47ebd4
xor eax, eax
push ecx
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + 8]
call fcn.0042a3d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0047ff00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x47ff00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x47ff1a
add ecx, 0x28
call fcn.004782f0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x47ff61
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ff51
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47ff51
cmp dword [ecx], 0
jne 0x47ff51
mov al, byte [esi + 0xa0]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.005e8fa6
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x485de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
lea esi, [edi + 0x10]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x4c]
mov eax, dword [edi + 0xc]
push esi
mov dword [ebp - 0x50], eax
call fcn.0046b1e0
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x485e3d
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 4], 0
push dword [edi]
lea ecx, [ecx + 0x10]
call fcn.00486e90
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00461030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x487130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b01b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
sub esp, 0x58
mov esi, esp
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
mov dword [esi], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [edi + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00422880
mov dword [ebp - 4], 0
lea ecx, [esi + 0x28]
mov eax, dword [edi + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x24], eax
lea eax, [edi + 0x30]
push eax
call fcn.004699c0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
push dword [edi]
call fcn.004883f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x488480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c748
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x44]
movq xmm0, qword [esi + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x30]
push eax
movq qword [ebp - 0x64], xmm0
call fcn.004699c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 4], 0
push dword [esi]
lea ecx, [ecx + 0x10]
call fcn.0048aa80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x488527
test al, 1
jne 0x488527
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x488527
lea ecx, [ebp - 0x2c]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x489250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c819
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [0x6c9ad8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489293
mov ecx, dword [eax + 4]
jmp 0x489295
xor ecx, ecx
mov byte [ebp + 0xc], 0
mov edx, 0x80
push dword [ebp + 0xc]
call fcn.0044a6c0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4892d2
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.0048a4d0
jmp 0x4892d4
xor eax, eax
push ecx
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + 8]
call fcn.0042a3d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00489e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x489e20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x489e3a
add ecx, 0x30
call fcn.00469d20
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x489e81
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489e71
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x489e71
cmp dword [ecx], 0
jne 0x489e71
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.005e8fa6
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x48a610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
push dword [0x6c9ad8]
mov esi, ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48a634
mov ecx, dword [eax + 4]
jmp 0x48a636
xor ecx, ecx
mov byte [ebp + 0xc], 0
mov edx, 0x44
push dword [ebp + 0xc]
call fcn.0044a6c0
add esp, 4
test eax, eax
je 0x48a65b
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.0048d820
jmp 0x48a65d
xor eax, eax
push ecx
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + 8]
call fcn.0042a3d0
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.0048c850
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x48c850
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x48c896
mov esi, dword [esi + 0x30]
test esi, esi
je 0x48c88f
push ebx
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x48c88e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x48c88e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x48c8da
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c8ca
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x48c8ca
cmp dword [ecx], 0
jne 0x48c8ca
mov al, byte [esi + 0x44]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.005e8fa6
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x48eb90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c748
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x44]
movq xmm0, qword [esi + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x30]
push eax
movq qword [ebp - 0x64], xmm0
call fcn.0046ffc0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 4], 0
push dword [esi]
lea ecx, [ecx + 0x10]
call fcn.00492a20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x48ec37
test al, 1
jne 0x48ec37
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x48ec37
lea ecx, [ebp - 0x2c]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x490000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62cccb
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x28]
lea ecx, [esi + 8]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
movq xmm0, qword [edi + 0x18]
movq qword [ebx + 0x18], xmm0
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 4], eax
lea eax, [edi + 0x30]
push eax
call fcn.004226f0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x30]
mov eax, dword [edi + 0x48]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x2c], eax
lea eax, [edi + 0x58]
push eax
call fcn.0046b1e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4900c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62cccb
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x28]
lea ecx, [esi + 8]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
movq xmm0, qword [edi + 0x18]
movq qword [ebx + 0x18], xmm0
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 4], eax
lea eax, [edi + 0x30]
push eax
call fcn.004226f0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x28]
mov eax, dword [edi + 0x48]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x24], eax
lea eax, [edi + 0x50]
push eax
call fcn.004699c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x492130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62cccb
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x28]
lea ecx, [esi + 8]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
movq xmm0, qword [edi + 0x18]
movq qword [ebx + 0x18], xmm0
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 4], eax
lea eax, [edi + 0x30]
push eax
call fcn.004226f0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x30]
mov eax, dword [edi + 0x48]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x2c], eax
lea eax, [edi + 0x58]
push eax
call fcn.00471070
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x498db0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62df18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6bae70]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00422880
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.00498cd0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x498e2d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.005eb9b2
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x498e56
push dword [esp + 0x10]
call fcn.005e8fa6
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4995b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62dfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], edi
mov byte [ebp - 0x65], 0
cmp dword [eax + 0x14], 0x10
jb 0x4995f9
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x499619
push 0x6aec40
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 9
push eax
call fcn.005e9743
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.0049af10
add esp, 0x18
mov dword [ebp - 0x28], 0xf
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x499666
xor ecx, ecx
jmp 0x499679
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499670
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00422c80
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0049b4c0
mov ebx, eax
lea esi, [edi + 0xc]
cmp esi, ebx
je 0x4996c9
cmp dword [esi + 0x14], 8
jb 0x4996ae
push dword [esi]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00421ee0
cmp dword [ebp - 0x40], 8
jb 0x4996da
push dword [ebp - 0x54]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
jb 0x499702
push dword [ebp - 0x3c]
call fcn.005e8fa6
add esp, 4
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x499711
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x49973a
push 0x6aec40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0xa
push eax
call fcn.005e9743
push 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x2710
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x64], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push 0x10
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4997a4
push 0x6aec40
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 2
push eax
call fcn.005e9743
mov al, 1
jmp 0x4997bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 8
Function at 0x49cec0
Capabilities:
Initialize winhttp library

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x24]
mov dword [esi], vtable.CWinHttp.0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x1388
mov dword [esi + 0x1c], 0x1388
mov dword [esi + 0x20], 0x1388
call fcn.0049de70
push 0
push 0
push 0
xorps xmm0, xmm0
push 0
movq qword [esi + 0x7c], xmm0
push 0x68fd00
mov dword [esi + 0x84], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x49cf40
mov dword [esi + 0x84], 1
mov eax, esi
pop esi
ret
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
pop esi
ret