joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483c60
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58086c
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x62f018]
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 esi, dword [ebp + 8]
mov ecx, 0x6355a1
call fcn.00561ea5
push 0x208
lea eax, [ebp - 0x264]
mov dword [ebp - 0x5c], 0x61004d
push 0
push eax
mov dword [ebp - 0x58], 0x720063
mov ebx, 0x6c
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00403ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00403ed0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c8]
push eax
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x294]
call fcn.00490590
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b0]
call fcn.00404570
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c8]
call fcn.00404570
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x294]
call fcn.0048e520
test al, al
jne 0x483dec
xor bl, bl
jmp 0x483e55
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.0049dfc0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
jne 0x483e0f
xor bl, bl
jmp 0x483e32
lea eax, [ebp - 0x27c]
cmp esi, eax
je 0x483e30
cmp dword [ebp - 0x268], 8
push ecx
cmovae eax, dword [ebp - 0x27c]
mov ecx, esi
push eax
call fcn.00404640
mov bl, 1
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x27c]
call fcn.00404570
mov byte [ebp - 4], 8
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 8
mov dword [ebp - 4], 0x1e
lea ecx, [ebp - 0x294]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x294]
mov dword [ebp - 0x298], eax
mov dword [ebp - 4], 0xffffffff
mov al, bl
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.0052f553
mov esp, ebp
pop ebp
ret 4
Function at 0x48cda0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5819e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
mov ecx, 0x6355a1
mov dword [ebp - 0x20], 0
call fcn.00561ea5
mov dword [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 4
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x48cf8e
mov ecx, dword [ebp - 0x1c]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0xb], dl
mov byte [ebp - 0xd], dh
cmp esi, 3
jne 0x48cec5
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop dword [eax + eax]
cmp dword [0x63213c], 0x10
mov ecx, 0x632128
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x632128]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00445c60
inc esi
cmp esi, 4
jl 0x48ce90
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp + 0xb]
mov dh, byte [ebp - 0xd]
test ebx, ebx
jne 0x48ce33
mov dword [ebp + 8], esi
test esi, esi
je 0x48cf8e
mov eax, esi
cmp esi, 3
jge 0x48cefe
cmp eax, 3
jae 0x48cfa2
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x48cee2
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x48cf01
mov cl, byte [ebp - 0xe]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x48cf6c
mov esi, eax
nop dword [eax]
cmp dword [0x63213c], 0x10
mov ecx, 0x632128
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x632128]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00445c60
inc ebx
cmp ebx, esi
jl 0x48cf40
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x48cf8e
mov ebx, 3
sub ebx, esi
nop dword [eax + eax]
push 0x3d
mov ecx, edi
call fcn.00445c60
sub ebx, 1
jne 0x48cf80
mov eax, 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
call fcn.0052fda7
int3
Function at 0x48fb80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x48fbb2
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x48fbf6
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0052f553
add esp, 0x418
ret
cmp eax, 0x208
jae 0x48fbde
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48fc10
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00404640
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0052f553
add esp, 0x418
ret

Function at 0x490800
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x5fe4c8
push 0x52ff95
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62f018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x490870
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.00490950
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4908a7
test bl, bl
jne 0x49091c
cmp edi, 0x1a
jne 0x49091c
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4908c1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push 0x5ce31c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4908f2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00404640
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0052f553
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4947d0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x583b28
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x6355a1
mov dword [ebp - 0x14], esi
call fcn.00561ea5
mov dword [ebp - 4], 0
push 1
call fcn.0052f564
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49485f
cmp dword [ebp + 4], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0052f553
lea esp, [ebp + 0x120]
pop ebp
ret
Function at 0x49a820
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
push 0x118
lea eax, [esi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49a96c
cmp dword [esi + 4], 6
push edi
ja 0x49a880
jne 0x49a908
cmp dword [esi + 8], 2
jb 0x49a908
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x49a908
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49a908
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49a908
movups xmm0, xmmword [0x5ceba0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5cebb0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x49a908
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49a908
cmp word [edi + 2], ax
jbe 0x49a908
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push 0x5c8878
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x49a953
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x49a953
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0052f553
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0052f553
add esp, 0x140
ret
Function at 0x49d820
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x5856d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
lea eax, [ebp + 4]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x49d8f0
lea ecx, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp edi, 0x3fe
jbe 0x49d915
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052ffb8
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x49d8da
cmp eax, edi
ja 0x49d8da
mov ecx, esi
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ecx + eax*2], edx
jmp 0x49d941
mov dword [ebp - 4], 0xffffffff
mov eax, esi
test eax, eax
je 0x49d8f0
push eax
call fcn.0052fc78
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.0052f553
lea esp, [ebp + 0x808]
pop ebp
ret
add edi, edi
cmp edi, 0x800
jae 0x49d9e0
xor eax, eax
mov word [ebp + edi + 4], ax
add edi, 2
cmp edi, 0x800
jae 0x49d9e0
mov word [ebp + edi + 4], ax
mov eax, dword [ebp - 0x14]
xor edx, edx
xor edi, edi
test eax, eax
je 0x49d9c5
mov ecx, dword [ebp - 0x14]
mov eax, 2
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp word [esi + eax - 2], 0
jne 0x49d9b7
cmp edx, edi
je 0x49d9b7
lea eax, [esi + edx*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403ed0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov eax, dword [ebx + 4]
push ecx
cmp dword [ebx + 8], eax
je 0x49d98c
mov ecx, eax
call fcn.00409fb0
add dword [ebx + 4], 0x18
jmp 0x49d994
push eax
mov ecx, ebx
call fcn.00425720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00404570
mov byte [ebp - 4], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea edx, [edi + 1]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc edi
add eax, 2
mov dword [ebp - 0x18], eax
cmp edi, ecx
jb 0x49d957
mov esi, dword [ebp]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49d9d9
push esi
call fcn.0052fc78
add esp, 4
mov al, 1
jmp 0x49d8f2
call fcn.0052fda7
int3
Function at 0x49fd70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x633f95
push edi
call fcn.00561ea5
cmp dword [ebx + 0x38], 0
je 0x49fda8
push dword [ebp + 0x10]
mov ecx, ebx
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 0x49fdca
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x49fdcc
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x49fe51
jg 0x49fde1
test esi, esi
je 0x49fe51
test ecx, ecx
jl 0x49fe2a
jg 0x49fdeb
test eax, eax
je 0x49fe2a
cmp edi, ecx
jg 0x49fdff
jl 0x49fdf5
cmp esi, eax
jae 0x49fdff
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 edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x49fe2d
mov edx, dword [ebp + 8]
test edi, edi
jl 0x49fe51
jg 0x49fe37
test esi, esi
je 0x49fe51
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x49fe51
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 0x49fe70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x633f95
call fcn.00561ea5
cmp dword [edi + 0x38], 0
je 0x49fea8
push dword [ebp + 0x10]
mov ecx, edi
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__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x49feca
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x49fecc
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x49ff6c
jg 0x49fee9
test esi, esi
je 0x49ff6c
test ecx, ecx
jl 0x49ff36
jg 0x49fef3
test eax, eax
je 0x49ff36
cmp ebx, ecx
jg 0x49ff07
jl 0x49fefd
cmp esi, eax
jae 0x49ff07
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x49ff3d
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x49ff6c
jg 0x49ff47
test esi, esi
je 0x49ff6c
cmp dword [edi + 0x4c], 0
je 0x49ff6c
mov ecx, edi
call fcn.004a1240
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a02b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x633f95
call fcn.00561ea5
mov ebx, dword [esp + 0x3c]
cmp ebx, 0xffffffff
jne 0x4a02ea
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0052f553
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4a031d
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4a031d
mov ecx, esi
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 [esp + 0x2c]
xor ecx, esp
call fcn.0052f553
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4a0423
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4a0346
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 0x4a037b
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 [esp + 0x2c]
xor ecx, esp
call fcn.0052f553
add esp, 0x30
ret 4
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
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]
test eax, eax
js 0x4a0423
cmp eax, 1
jle 0x4a03df
cmp eax, 3
jne 0x4a0423
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.0049ef90
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0052f553
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x4a03ff
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 0x4a0423
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
je 0x4a0423
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0052f553
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f553
add esp, 0x30
ret 4
Function at 0x4a12b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x62f018]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov ecx, 0x633f95
push edi
call fcn.00561ea5
cmp dword [esi + 0x38], 0
je 0x4a1368
cmp byte [esi + 0x3d], 0
je 0x4a1368
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4a1319
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
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 0x4a132c
sub eax, 1
je 0x4a1330
sub eax, 2
je 0x4a1368
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0052f553
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x4a1350
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 0x4a1319
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0052f553
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0052f553
add esp, 0x28
ret
Function at 0x4ac9c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588a4f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 4
lea esi, [edi + 0x7c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
lea esi, [edi + 0x64]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
lea esi, [edi + 0x48]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xe
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x12
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00404570
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0x1a
mov ecx, edi
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4af230
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58911f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62f018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00409fb0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00409fb0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00409fb0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00409fb0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00409fb0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00409fb0
mov dword [ebp - 4], 0xffffffff
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