joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ba80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x44bc56
cmp byte [ebp + 8], 0
push esi
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
je 0x44baea
mov al, byte [edx]
test al, 8
je 0x44baea
or al, 8
xor ecx, ecx
push 4
mov byte [edx], al
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x44baea
call esi
push 0x629530
push eax
lea ecx, [ebp - 0x14]
call fcn.0044ab00
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [ebp - 8], eax
test eax, eax
jne 0x44bb13
xorps xmm0, xmm0
movq qword [edi], xmm0
pop esi
mov dword [edi + 8], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
call esi
push 0x629530
push eax
lea ecx, [ebp - 0x14]
call fcn.0044ab00
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov eax, dword [0x629538]
mov esi, dword [0x62953c]
cmp eax, 0x257edfd1
jne 0x44bb4b
cmp esi, 0xb2ab117a
je 0x44bb5a
cmp eax, 0x257edfd0
jne 0x44bb5e
cmp esi, 0xb2ab117a
jne 0x44bb5e
mov al, 1
jmp 0x44bb78
mov eax, dword [0x629530]
mov ecx, 0x629530
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x62953c]
movzx eax, al
lea edx, [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], 0x2733
mov ecx, edi
mov dword [ebp - 0x10], 0x629530
mov dword [ebp - 0xc], eax
call fcn.0044a960
test al, al
jne 0x44bc11
mov eax, dword [0x629538]
cmp eax, 0x257edfd1
jne 0x44bbb1
cmp esi, 0xb2ab117a
je 0x44bbc0
cmp eax, 0x257edfd0
jne 0x44bbc4
cmp esi, 0xb2ab117a
jne 0x44bbc4
mov al, 1
jmp 0x44bbd8
mov eax, dword [0x629530]
mov ecx, 0x629530
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
lea edx, [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], 0x4d5
mov ecx, edi
mov dword [ebp - 0x10], 0x629530
mov dword [ebp - 0xc], eax
call fcn.0044a960
test al, al
jne 0x44bc11
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov eax, dword [ebp - 0x18]
push ebx
and byte [eax], 0xfc
call dword [sym.imp.WSOCK32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.0044ba30
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0046676f
mov esp, ebp
pop ebp
ret
Function at 0x44c6c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfe50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x623ec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x44c716
push 0x4a71d0
push dword [eax - 4]
lea esi, [eax - 4]
push 0x18
push eax
call fcn.00466cb7
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 4]
push eax
push esi
call fcn.00466c35
add esp, 8
cmp byte [0x626910], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x44c72c
push 0x626910
call esi
cmp byte [0x626a10], 0
je 0x44c73c
push 0x626a10
call esi
push 0x18
push edi
call fcn.004667ad
add esp, 8
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 4
Function at 0x44cd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
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 0x44cdb2
jl 0x44cda5
test ecx, ecx
jne 0x44cdb2
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 0x44ce72
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0045a890
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x44ce1e
jg 0x44cddd
test esi, esi
je 0x44ce1e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x44cdf5
mov eax, dword [esp + 0x10]
jl 0x44cdef
cmp eax, esi
jae 0x44cdf5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004684b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x44ce3f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x44ce5b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x44cdc4
jl 0x44ce5b
test ecx, ecx
jne 0x44cdc4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
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 0x44ceb6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x44ceb6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004684b0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x44cf27
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x44cedc
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 0x44cf12
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0047004e
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x44cf27
cmp edi, eax
ja 0x44cef0
test edi, edi
je 0x44cf27
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0047004e
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 0x44d4b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x623ec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebx + 0x70]
mov dword [ebp - 0x10], 0
mov dword [ebx], 0x5fe1a8
call fcn.0045a1b0
mov dword [ebp - 4], 0
sub esp, 8
lea esi, [ebx + 0x10]
mov dword [ebp - 0x10], 1
mov ecx, ebx
mov dword [ebp - 0x18], esi
push esi
call fcn.0044e0e0
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], esi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.00459450
mov byte [ebp - 4], 2
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3d], 0
lea edx, [eax + 0x24]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x1ff9ba4]
mov dword [eax], 0
mov eax, dword [0x1ff9ba0]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], 0
jne 0x44d670
push 0x40
push 1
push str.NUI_Scale.bin
call fcn.00464b54
add esp, 0xc
test eax, eax
je 0x44d670
push 1
push eax
mov ecx, ebx
call fcn.0044dc00
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 3
push eax
call fcn.0044e610
add esp, 4
mov ecx, ebx
push eax
call fcn.0044daa0
mov eax, 3
mov dword [ebp - 0x10], eax
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x44d652
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x44d652
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x14]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0045a100
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44dc00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1c80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
lea ebx, [edx + 4]
cmp dword [ebp + 0xc], 1
lea esi, [edx + 8]
mov dword [ebp - 0x14], eax
lea edi, [edx + 0x14]
sete al
mov dword [edx + 0xc], ebx
mov byte [edx + 0x48], al
lea ecx, [edx + 0x18]
mov eax, dword [ebp - 0x20]
mov byte [edx + 0x3d], 0
mov dword [edx + 0x10], esi
mov dword [edx + 0x1c], edi
mov dword [edx + 0x20], ecx
add edx, 0x24
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
test ebx, ebx
je 0x44dce9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push ebx
call fcn.0047944c
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
jmp 0x44dcec
mov edx, dword [ebp - 0x20]
mov eax, dword [0x1ff9ba0]
mov ecx, dword [0x1ff9ba4]
mov dword [edx + 0x4c], ebx
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
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.0046676f
mov esp, ebp
pop ebp
ret 8
Function at 0x44e0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x623ec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
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
call fcn.0045a100
push 8
call fcn.0046677d
add esp, 4
mov esi, eax
xorps xmm0, xmm0
push 1
movq qword [esi], xmm0
call fcn.00464cc9
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 2
push eax
call fcn.00459050
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, 2
mov byte [ebp + 0xb], al
mov dword [ebp - 0x14], ecx
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x44e224
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x44e224
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x44e240
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.0045a100
mov dword [ebp - 4], 0xffffffff
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 0xc
Function at 0x458d40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c38ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x623ec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00464f09
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x458df1
push eax
push esi
call fcn.00464dc7
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004647d2
int3

Function at 0x459cd0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x1ff9b20
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x459d32
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
push method.boost::asio::detail::execution_context_service_base_class_boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp__.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046676f
mov esp, ebp
pop ebp
ret
Function at 0x45cad0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b8
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
push edi
mov esi, ecx
mov eax, 1
lock xadd dword [0x1ff9b6c], eax
inc eax
mov edi, 0x1ff9b70
cmp eax, 1
jne 0x45cb15
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [ebp + 8], 0
je 0x45cb6d
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
je 0x45cb6d
push 0x629530
push eax
lea ecx, [esp + 0x24]
call fcn.0044ab00
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], str.C:UsersmurakamiDocumentsGitHubTMDependencies_boost_1_83_0_boost_asiodetailimplwinsock_init.ipp
mov dword [esp + 0x10], str.throw_on_error
mov dword [esp + 0x14], 0x48
mov dword [esp + 0x18], 0x1a
test al, 1
je 0x45cb6d
cmp eax, 1
jne 0x45cb85
cmp dword [esp + 0x1c], 0
setne al
test al, al
jne 0x45cb85
mov ecx, dword [esp + 0x1bc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
mov edx, str.winsock
push eax
lea ecx, [esp + 0x20]
call fcn.0044a010
int3

Function at 0x464863
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x46488a
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x46488d
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0046483f
pop esi
leave
ret 8

Function at 0x467697
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4676d6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4676d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4676d6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4676d6
cmp dword [ecx + 0x74], 0xe
jbe 0x4676d6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x477937
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x62e4c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477977
cmp byte [ebx], 0xa
jne 0x477977
or byte [edi + eax + 0x28], 4
jmp 0x47797c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x477a7b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x477a5e
inc eax
cmp dl, 0xd
je 0x4779a8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4779ce
cmp eax, ecx
jae 0x4779dc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x477990
jmp 0x477a7b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477a59
cmp dword [ebp - 0x10], 0
je 0x477a59
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x62e4c0]
test byte [eax + edi + 0x28], 0x48
je 0x477a33
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x477a1e
mov byte [esi], dl
jmp 0x477a2f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x62e4c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x477a7b
cmp byte [ebp - 1], 0xa
jne 0x477a42
cmp esi, ebx
jne 0x477a42
mov byte [esi], 0xa
jmp 0x477a7a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00485b90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x477a7b
mov byte [esi], 0xd
jmp 0x477a7a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x62e4c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x477a78
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x477a7b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x477a84
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x62e4c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477aca
cmp word [ebx], dx
jne 0x477aca
or byte [eax + edi + 0x28], 4
jmp 0x477acf
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x477c32
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x477c12
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x477b10
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x477b46
cmp eax, edx
jae 0x477b54
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x477aeb
jmp 0x477c32
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477c0d
cmp dword [ebp - 0x18], 0
je 0x477c0d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x62e4c0]
test byte [eax + edi + 0x28], 0x48
je 0x477be3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x477ba7
mov word [esi], cx
jmp 0x477bde
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x62e4c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x62e4c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x62e4c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x477c32
pop eax
cmp word [ebp - 4], ax
jne 0x477bf3
cmp esi, ebx
jne 0x477bf3
mov word [esi], ax
jmp 0x477c2f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00485b90
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x477c32
push 0xd
pop eax
jmp 0x477bee
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x62e4c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x477c2c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x477c32
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4789d1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5e17c8
push esi
call fcn.00485f8f
pop ecx
pop ecx
test eax, eax
jne 0x4789ff
xor al, al
jmp 0x478a7c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00478712
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x478a39
push dword [ebp - 0x210]
call fcn.004782b7
xor al, al
jmp 0x478a7a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x478a3f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x478a5f
push edx
call fcn.00478908
pop ecx
test al, al
je 0x478a2a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x478a6d
mov bl, 1
push dword [ebp - 0x210]
call fcn.004782b7
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046676f
leave
ret