joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007480
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push esi
push edi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edi, [esp + 8]
mov esi, eax
call fcn.18002330
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret 0x10

Function at 0x180077a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x18040c24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x18007889
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18007889
push 0
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x18007889
lea eax, [esp + 0xc]
push eax
call fcn.180078d0
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
jne 0x1800781a
call esi
mov edx, dword [esp + 0x18]
push edx
push edi
push 0
lea eax, [esp + 0x34]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x18]
jne 0x18007838
call esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1804079c
push ecx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 8]
cmp word [edx + 0xa], 2
jb 0x1800787f
lea eax, [esp + 0xc]
push eax
call fcn.18007940
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
push ecx
call fcn.18007940
mov ecx, dword [esp + 0x234]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1802929c
mov esp, ebp
pop ebp
ret

Function at 0x18007d50
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi + 0x14]
sub esp, 0xc
test eax, eax
ja 0x18007d60
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push ebx
lea edx, [eax + eax]
mov eax, dword [esi + 0x1c]
push 0xc
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
or eax, 0x20000000
push 1
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
call edi
mov edx, dword [esp + 0x1c]
add esp, 0x10
push ebx
push edx
push 1
push 0
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator___unsigned_int_]
push eax
call edi
mov eax, dword [esi + 0x30]
add esp, 0x10
sub eax, dword [esi + 0x2c]
jne 0x18007db9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x2c]
push ebx
push ecx
push 1
push edx
call edi
add esp, 0x10
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x18008410
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [edi + 0x14]
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
ja 0x1800842a
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x1c]
mov esi, dword [sym.imp.MSVCR90.dll_fwrite]
push ebx
lea edx, [eax + eax]
push 0xc
lea eax, [esp + 0x14]
push 1
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ebp
call esi
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
push ecx
push 1
push ebp
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator___unsigned_int_]
push eax
call esi
mov eax, dword [edi + 0x34]
add esp, 0x10
cmp eax, ebp
jbe 0x180084ad
push ebx
lea edx, [eax + eax]
push 0xc
lea eax, [esp + 0x14]
push 1
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x10000000
call esi
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
push 1
push ebp
lea ecx, [edi + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator___unsigned_int_]
push eax
call esi
add esp, 0x10
mov ecx, dword [edi + 0x60]
sub ecx, dword [edi + 0x5c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x18008549
mov esi, dword [edi + 0x5c]
cmp esi, dword [edi + 0x60]
jbe 0x180084da
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [edi + 0x50]
lea ecx, [ecx]
mov ebx, dword [edi + 0x60]
cmp dword [edi + 0x5c], ebx
jbe 0x180084ee
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x50]
test ebp, ebp
je 0x180084f9
cmp ebp, eax
je 0x180084ff
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, ebx
je 0x18008549
test ebp, ebp
jne 0x1800853f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1800851a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x1c]
call fcn.18007d50
test ebp, ebp
jne 0x18008544
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1800853a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add esi, 0x38
jmp 0x180084e0
mov eax, dword [ebp]
jmp 0x1800850f
mov eax, dword [ebp]
jmp 0x1800852f
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
Function at 0x18008ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1802a369
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x1804e020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov dword [esp + 0x40], 0
cmp dword [esp + 0x30], 8
mov esi, dword [ebx + 0x6c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
jae 0x18008b39
lea eax, [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x1804079c
push eax
call dword [sym.imp.MSVCR90.dll_wcstok_s]
add esp, 0xc
mov edi, eax
test esi, esi
jne 0x18008b72
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [eax], ebx
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
jmp 0x18008bf6
test edi, edi
je 0x18008bc9
cmp dword [esi + 0x14], 0
jbe 0x18008bbe
push 0
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator___unsigned_int_]
mov edx, eax
mov eax, edi
call fcn.18006730
neg eax
sbb eax, eax
add eax, 1
je 0x18008bbe
mov eax, dword [esi + 0x6c]
mov dword [esp + 0xc], esi
test eax, eax
je 0x18008ba5
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
push 0x1804079c
push 0
call dword [sym.imp.MSVCR90.dll_wcstok_s]
add esp, 0xc
mov edi, eax
jmp 0x18008bc5
mov esi, dword [esi + 0x70]
test esi, esi
je 0x18008bc9
test edi, edi
jne 0x18008b76
mov eax, dword [esp + 0x14]
test eax, eax
je 0x18008bd7
mov edx, dword [esp + 0xc]
mov dword [eax], edx
xor eax, eax
cmp dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
setne al
mov dword [esp + 0x40], 0xffffffff
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1802929c
add esp, 0x38
ret 4
Function at 0x18009b80
Capabilities:
Copy file
Create directory
Delete file
Set current directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
test eax, 0xfffffffc
jne 0x18009bd7
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x28]
test ecx, 0xfffffffc
jne 0x18009bd7
mov edx, dword [esi + 0x44]
sub edx, dword [esi + 0x40]
test edx, 0xfffffffc
jne 0x18009bd7
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1802929c
add esp, 0x414
ret
push ebx
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
push str._UserDataUser_
call sym.HncBL90.dll_HncPathToAbsolute
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 8]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18009c15
push 0
lea edx, [esp + 0xc]
push edx
call ebx
test eax, eax
je 0x18009cac
push 0x104
lea eax, [esp + 0xc]
push eax
push str._UserDataUser_AppName_
call sym.HncBL90.dll_HncPathToAbsolute
lea ecx, [esp + 8]
push ecx
call edi
test eax, eax
jne 0x18009c40
push eax
lea edx, [esp + 0xc]
push edx
call ebx
test eax, eax
je 0x18009cac
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x214]
push 0x104
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov edi, dword [sym.imp.MSVCR90.dll_wcscat_s]
push str.hncreg.brg
lea edx, [esp + 0x18]
push 0x104
push edx
call edi
push str.hncreg.temp
lea eax, [esp + 0x22c]
push 0x104
push eax
call edi
push 0x18040cd4
lea ecx, [esp + 0x238]
push ecx
lea edi, [esi + 0x4c]
push edi
call dword [sym.imp.MSVCR90.dll__wfopen_s]
add esp, 0x30
test eax, eax
jne 0x18009cac
mov ecx, esi
call fcn.18009810
test eax, eax
jne 0x18009cc5
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1802929c
add esp, 0x414
ret
mov edx, dword [edi]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x218]
push ecx
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1802929c
add esp, 0x414
ret
Function at 0x1800caf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x884
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x87c], eax
push esi
push edi
call sym.HncBL90.dll__HncCheckNetFramworkVersion2_0
test eax, eax
je 0x1800cc28
push 0x206
xor esi, esi
lea ecx, [esp + 0x26e]
xor eax, eax
push esi
push ecx
mov word [esp + 0x274], ax
call sub.MSVCR90.dll_memset
push 0x206
lea eax, [esp + 0x72]
xor edx, edx
push esi
push eax
mov word [esp + 0x78], dx
call sub.MSVCR90.dll_memset
push 0x40e
lea edx, [esp + 0x48e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x494], cx
call sub.MSVCR90.dll_memset
add esp, 0x24
push 0x104
lea eax, [esp + 0x26c]
push eax
push 0x1804121c
call sym.HncBL90.dll_HncPathToAbsolute
mov edi, dword [sym.imp.MSVCR90.dll_wcscat_s]
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x64]
push 0x104
push edx
call edi
push str.HncReporter.exe
lea eax, [esp + 0x70]
push 0x104
push eax
call edi
mov ecx, dword [ebx + 0x20]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x490]
push str._s_0___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push 0x20
push esi
xor ecx, ecx
push esi
mov word [esp + 0x66], cx
push esi
lea ecx, [esp + 0x490]
push ecx
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov ecx, dword [esp + 0x884]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1802929c
add esp, 0x884
ret

Function at 0x1800fb20
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x1802a7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1804e020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
lea eax, [esp + 0x1c]
xor esi, esi
mov dword [ebp], sym.HncBL90.dll_const_CHncATLInternetSession::vftable
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x48]
push ecx
push edx
push eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x1800fba4
lea ebx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x38], ebp
call fcn.18010110
lea edi, [esp + 0x14]
call fcn.18002330
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
Function at 0x1800fd60
Capabilities:
Connect to http server

Disassembly:
push 0xffffffffffffffff
push 0x1802a7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1804e020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
lea eax, [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x38]
push esi
lea ecx, [ebp + 4]
push 0x100
push ecx
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [ebp + 0x204], ecx
cmp eax, edi
je 0x1800fe10
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x44]
neg edx
sbb edx, edx
and edx, 0x8000000
push edx
mov edx, dword [esp + 0x44]
push 1
push ecx
mov ecx, dword [esp + 0x58]
push edx
push ecx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp], eax
cmp eax, edi
je 0x1800fe04
lea ebx, [esp + 0x34]
mov esi, eax
call fcn.18010110
jmp 0x1800fe10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x20c], eax
lea edi, [esp + 0x14]
call fcn.18002330
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x1c

Function at 0x1800fea0
Capabilities:
Send file using ftp

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi]
push edi
xor edi, edi
cmp ecx, edi
jne 0x1800feb9
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esp + 0x24]
test edx, 0x10000000
jne 0x1800feaf
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], edi
cmp eax, 1
jne 0x1800fee0
mov eax, dword [esi + 0x204]
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_FtpPutFileW]
test eax, eax
jne 0x1800ff51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x418], eax
cmp eax, 0x2ee3
jne 0x1800ff3c
push 0x104
add esi, 0x210
push edi
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0x104
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
lea edi, [esp + 8]
xor esi, esi
call fcn.18002330
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
lea edi, [esp + 8]
mov esi, 1
call fcn.18002330
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret 0x10

Function at 0x18010910
Capabilities:
Read file on windows

Disassembly:
test eax, eax
jne 0x18010945
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18010941
push esi
js 0x18010925
test eax, eax
jg 0x18010929
mov esi, eax
jmp 0x18010932
movzx esi, ax
or esi, 0x80070000
call fcn.18025bc0
mov dword [eax], esi
mov dword [eax + 4], 0
pop esi
or eax, 0xffffffff
ret
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
ret
Function at 0x18010960
Capabilities:
Write file on windows

Disassembly:
test eax, eax
jne 0x18010995
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18010991
push esi
js 0x18010975
test eax, eax
jg 0x18010979
mov esi, eax
jmp 0x18010982
movzx esi, ax
or esi, 0x80070000
call fcn.18025bc0
mov dword [eax], esi
mov dword [eax + 4], 0
pop esi
or eax, 0xffffffff
ret
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
ret
Function at 0x180147c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1802a10b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x1804e020]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ecx
xor ecx, ecx
push 0x206
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
push ecx
lea edx, [esp + 0x46]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x48], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x1801492c
test ebx, ebx
je 0x1801492c
cmp dword [ebx], 0
je 0x1801492c
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jl 0x1801492c
mov eax, dword [esp + 0x14]
cmp eax, 0x104
jae 0x18014896
push esi
push eax
lea ecx, [esp + 0x44]
push 2
push ecx
call edi
add esp, 0x10
cmp eax, dword [esp + 0x14]
jb 0x1801492c
lea edx, [esp + 0x30]
xor eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x258], eax
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
push esi
push 1
lea eax, [esp + 0x30]
push 4
push eax
call edi
add esp, 0x1c
cmp eax, 1
jl 0x18014923
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
mov dword [edx], ecx
call edi
add esp, 0x10
cmp eax, 1
jl 0x18014923
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
cmp eax, dword [edx]
jbe 0x18014960
mov eax, dword [ebx]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x14]
push ecx
call fcn.18028ee8
add esp, 8
test eax, eax
jne 0x18014954
push 2
call sym.HncBL90.dll_HncSetError
lea edi, [esp + 0x28]
call fcn.18002330
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [esp + 0x18]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov dword [edx], eax
push esi
push eax
mov eax, dword [ebx]
push 1
push eax
call edi
add esp, 0x10
lea edi, [esp + 0x28]
cmp eax, dword [esp + 0x10]
jb 0x18014927
call fcn.18002330
mov eax, 1
jmp 0x1801492e
Function at 0x18014990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edx, edx
push 0x206
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x32]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0
mov word [esp + 0x34], dx
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call edi
add esp, 0x1c
cmp eax, 1
jge 0x18014a1d
lea edi, [esp + 0x18]
call fcn.18002330
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x18014a3c
push esi
push eax
lea edx, [esp + 0x30]
push 2
push edx
call edi
add esp, 0x10
cmp eax, dword [esp + 0xc]
jb 0x180149fb
lea eax, [esp + 0x28]
push eax
push 0x104
push ebx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call edi
add esp, 0x1c
cmp eax, 1
lea edi, [esp + 0x18]
jl 0x180149ff
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
call fcn.18002330
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1802929c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x18014a90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x220
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x234]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call sub.MSVCR90.dll_memset
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebx
add esp, 0x1c
cmp eax, 1
jge 0x18014aea
xor eax, eax
jmp 0x18014b48
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x18014b09
push esi
push eax
lea eax, [esp + 0x28]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, dword [esp + 0xc]
jb 0x18014ae6
mov eax, dword [esp + 0x238]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x20]
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edi + edx*2], cx
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.18002330
mov eax, 1
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1802929c
add esp, 0x220
ret 0xc