joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dea0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57632d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
sub esp, 8
mov eax, esp
mov dword [ebp - 0x30], esi
mov dword [eax], str.Retrieving_operating_system_language.
mov dword [eax + 4], 0x25
call fcn.0042d780
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.0046db90
mov dword [ebp - 4], 0
cmp byte [eax + 0x18], 0
je 0x46df1f
push eax
lea eax, [ebp - 0x32]
push eax
call fcn.0046cf60
add esp, 8
lea ecx, [ebp - 0x32]
jmp 0x46df28
mov word [ebp - 0x2e], 0
lea ecx, [ebp - 0x2e]
cmp byte [ecx + 1], 0
mov word [esi], 0
je 0x46df3f
mov al, byte [ecx]
mov byte [esi], al
mov byte [esi + 1], 1
mov byte [ecx + 1], 0
cmp byte [ebp - 0x14], 0
je 0x46df4d
lea ecx, [ebp - 0x2c]
call fcn.0045e370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
Function at 0x47acb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x8f9064]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x10]
push ebx
test eax, eax
jne 0x47acf8
sub esp, 8
mov eax, esp
mov dword [eax], str.Empty_path_passed
mov dword [eax + 4], 0x11
call fcn.0042d2a0
add esp, 8
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 0x10
jb 0x47ad00
mov ecx, dword [ecx]
mov dword [esp + 4], ecx
lea edx, [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
call fcn.00485f20
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 0xc]
setne bl
call fcn.0045e370
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret

Function at 0x47b3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578085
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00485ee0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47b43e
lea ecx, [ebp - 0x28]
call fcn.0045e370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], eax
lea ecx, [ebp - 0x40]
call fcn.0047cc90
push eax
mov edx, str.Could_not_get_the_current_attributes__error_code:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0044f120
add esp, 4
push 0x2e
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0047c8e0
add esp, 4
push eax
push edi
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 3
call fcn.004786d0
push 0x8e4a5c
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x47ba10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5781b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00485ee0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0047b3c0
mov edx, eax
mov ecx, edx
and ecx, 1
cmp bl, cl
je 0x47babe
and eax, 0xfffffffe
or edx, 1
test bl, bl
cmove edx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47bae1
mov ecx, 0x89926c
test bl, bl
mov eax, 0x5a753f
mov edx, esi
cmove eax, ecx
sub esp, 8
mov dword [ebp - 0x2d4], eax
mov eax, esp
mov dword [eax], str.The_file__read_only_flag_was_set.
mov dword [eax + 4], 0x27
lea eax, [ebp - 0x2d4]
push eax
call fcn.0047f070
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.0045e370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], eax
lea ecx, [ebp - 0x40]
call fcn.0047cc90
push eax
mov edx, str.Could_not_set_read_only_attribute__error_code:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0044f120
add esp, 4
push 0x2e
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0047c8e0
add esp, 4
push eax
push esi
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 3
call fcn.004786d0
push 0x8e4a5c
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x47bbf0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578085
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00485ee0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0047b3c0
mov edx, eax
mov ecx, edx
shr ecx, 1
and ecx, 1
cmp bl, cl
je 0x47bc6a
mov ecx, edx
lea eax, [ebp - 0x28]
and ecx, 0xfffffffd
or edx, 2
test bl, bl
cmove edx, ecx
cmp dword [ebp - 0x14], 8
push edx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47bc8d
lea ecx, [ebp - 0x28]
call fcn.0045e370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], eax
lea ecx, [ebp - 0x40]
call fcn.0047cc90
push eax
mov edx, str.Could_not_set_hidden_attribute__error_code:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0044f120
push 0x2e
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0047c8e0
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 3
call fcn.004786d0
push 0x8e4a5c
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x480750
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5789af
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x8f9064]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2ac], 0
call fcn.00485ee0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x480865
push ecx
lea eax, [ebp - 0x2a1]
mov byte [ebp - 0x2a1], 0
push eax
push edi
mov ecx, esi
call fcn.004835a0
push dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push 0
push eax
mov dword [ebp - 0x2ac], 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x48083f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x2a8], eax
mov ecx, esp
push str.Failed_to_get_version_information__error_.
call fcn.0042d9c0
lea edx, [ebp - 0x2a8]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 3
jmp 0x480895
lea ecx, [ebp - 0x28]
call fcn.0045e370
mov eax, esi
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.0056d0b2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x2a8], eax
mov ecx, esp
push str.Failed_to_get_file_version_information_size__error_.
call fcn.0042d9c0
lea edx, [ebp - 0x2a8]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.0042b6d0
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004781f0
push 0x8e4a88
lea eax, [ebp - 0x2a0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x482bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x482bdc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x482bfe
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x482c00
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x482c85
jg 0x482c15
test esi, esi
je 0x482c85
test ecx, ecx
jl 0x482c68
jg 0x482c1f
test eax, eax
je 0x482c68
cmp edi, ecx
jg 0x482c33
jl 0x482c29
cmp esi, eax
jae 0x482c33
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x482c85
jg 0x482c6b
test esi, esi
je 0x482c85
jmp 0x482c6b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x482c85
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x482ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jg 0x482ccb
jl 0x482cbe
test esi, esi
jne 0x482ccb
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 0x482ce5
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x482d26
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x482d26
cmp eax, dword [ebp + 0xc]
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x482d2d
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x482db2
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x482d56
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [esp + 0x10]
cmp edi, 0xfff
jbe 0x482d9e
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x482dc5
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x482d70
test edx, edx
je 0x482db2
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x483200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x483230
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x483260
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x483260
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x48335b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x483289
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4832bd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x48331c
sub eax, 1
je 0x48331c
sub eax, 2
jne 0x48335b
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00480730
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x48333a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x48335b
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x48335b
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret 4
Function at 0x4836d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x48378c
cmp byte [esi + 0x3d], 0
je 0x48378c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x48377a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x483741
sub eax, 1
je 0x483745
sub eax, 2
jne 0x48377a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x483763
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x48377a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret
Function at 0x486b90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x486bb0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x4873e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x48743e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x487400
mov eax, dword [edi]
jmp 0x487529
cmp eax, 0x4e0
jb 0x487529
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x487460
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4874b0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ae20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x4997e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bdba
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x8f9064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea esi, [ebx + 4]
mov dword [ebx], vtable.galaxy::http::HttpMessage.0
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0056d2dd
add esp, 4
lea ecx, [ebx + 0xc]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
mov dword [ebx + 0x10], 1
mov dword [ebp - 4], 0
lea esi, [ebx + 0x18]
mov dword [ebx], vtable.galaxy::http::HttpRequest.0
mov byte [ebx + 0x14], 0
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0056d2dd
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [ebx + 0x24]
mov dword [ebx + 0x20], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
mov dword [ebx + 0x28], 1
mov eax, 0x50
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0xf
mov byte [ebx + 0x2c], 0
mov word [ebx + 0x44], ax
mov byte [ebx + 0x46], 1
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [ebx + 0x50], 0xa
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 3
mov dword [ebx + 0x5c], eax
call fcn.0049ab80
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], 1
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x98], 0
add ebx, 0xa0
mov byte [ebp - 4], 4
push 0x40
mov dword [ebp + 8], ebx
call fcn.0056d2dd
mov edi, eax
xorps xmm0, xmm0
push 0x34
push 0
mov dword [ebp + 8], edi
movq qword [edi], xmm0
lea esi, [edi + 0xc]
mov dword [edi + 8], 0
push esi
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_class_galaxy::http::HttpRequest::ProcessingState_.0
call sub.VCRUNTIME140.dll_memset
push 0x102
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov word [esi + 0x30], 0
mov dword [ebx], esi
mov dword [ebx + 4], edi
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