joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000870a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000872c
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
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__]
jmp 0x100087dc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x1000874f
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10008751
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100087cd
jg 0x10008764
test esi, esi
je 0x100087cd
test eax, eax
jl 0x100087a4
jg 0x1000876e
test ebp, ebp
je 0x100087a4
cmp edi, eax
jg 0x1000877e
jl 0x10008778
cmp esi, ebp
jae 0x1000877e
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x100087a8
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x100087cd
jg 0x100087b2
test esi, esi
je 0x100087cd
cmp dword [ebx + 0x4c], 0
je 0x100087cd
push dword [ebx + 0x4c]
push esi
push 1
push ecx
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 + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x1000b944
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10013d6f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100374d0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1000ba31
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d63d
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000d69b
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000ba07
call fcn.1000d9cb
jmp 0x1000ba07
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10011148
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1000fb2e
pop ecx
pop ecx
push ebx
push esi
call fcn.10013074
int3
Function at 0x1000ba46
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10013d9f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100374d0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1000bb33
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d63d
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000d69b
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000bb09
call fcn.1000d9cb
jmp 0x1000bb09
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10011148
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1000fb2e
pop ecx
pop ecx
push ebx
push esi
call fcn.10013074
int3

Function at 0x1000bcac
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10013dc7
call fcn.1001154f
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.1000bbc2
test eax, eax
je 0x1000bcdd
call fcn.1000bbb4
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10015440
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x1000bdf3
jmp 0x1000bd2d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000bd3b
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x1000bdeb
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x1000bd9c
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x1000bdf9
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x1000bdeb
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x1000bdeb
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x1000bdf9
mov eax, esi
call fcn.100114ad
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.1000fb2e
pop ecx
pop ecx
push edi
push esi
call fcn.10013074
int3

Function at 0x1000c714
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x1000c738
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x1000d398
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x10013e22
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100374d0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100285ec
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
add esp, 0xc
test eax, eax
jne 0x1000d490
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x10037c84], 0
pop ecx
je 0x1000d408
xor eax, eax
inc eax
jmp 0x1000d492
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x1000d490
test eax, eax
je 0x1000d490
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000d5f2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000d5f2
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.1000d6b9
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1000d45d
call fcn.1000d9cb
push 0x10028618
lea ecx, [ebp - 0x10]
call fcn.1000d69b
push eax
push 0x10037c84
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x1000d48b
call fcn.1000d9cb
lea eax, [esi + 1]
jmp 0x1000d492
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10011148
add ebp, 0x108
leave
ret

Function at 0x1000d8a7
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x100374d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.10013074
mov esi, eax
test esi, esi
jne 0x1000d956
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000d931
lea eax, [esp + 0x28]
push eax
call fcn.1000d8a7
mov esi, eax
test esi, esi
jne 0x1000d956
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1000d90c
call fcn.10001f41
push ebx
mov ecx, edi
call fcn.1000d712
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.10001f41
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10011148
add esp, 0x11c
ret 4
Function at 0x1000e52e
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.10011620
mov eax, dword [0x100374d0]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1028]
mov ebp, 0x800
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x82c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 0x1c
test eax, eax
je 0x1000e5c9
push eax
push dword [esp + 0x1030]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
test eax, eax
je 0x1000e741
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10011148
add esp, 0x1010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x100367fc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000e5ae
lea eax, [esp + 0x102c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000e725
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x1002a22c
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000e644
xor esi, esi
inc esi
jmp 0x1000e725
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000e63c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000e63c
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
js 0x1000e741
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000e63c
push dword [esp + 0x10]
call ebp
call fcn.10013074
test eax, eax
jne 0x1000e741
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x100367fc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000e5ae
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000e732
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x1000e5b0
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.10013074
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x1000e5b0
Function at 0x1000eab6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x100374d0]
xor eax, ebp
mov dword [ebp + 0x128], eax
push ebx
push 0x104
xor ebx, ebx
lea eax, [ebp + 0x24]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x24]
push eax
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1000eb00
xor eax, eax
jmp 0x1000ec22
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 0xf
lea edx, [ecx + 1]
mov byte [ebp + 0xc], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000eb13
push esi
push edi
sub ecx, edx
lea eax, [ebp + 0x24]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.10013074
push 0x1d
push str.JavaJava_Updatejucheck.exe
lea ecx, [ebp + 0xc]
call fcn.10013074
push eax
lea ecx, [ebp - 0x24]
call fcn.100075d2
lea ecx, [ebp + 0xc]
call fcn.10002e7a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xc]
push 0x22
push eax
call fcn.1000ed76
add esp, 0xc
mov esi, eax
mov ecx, esi
push 0x22
call fcn.10013074
push esi
lea ecx, [ebp - 0xc]
call fcn.100075d2
lea ecx, [ebp + 0xc]
call fcn.10002e7a
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x80], esi
lea edi, [ebp - 0x3c]
mov dword [ebp + 0x18], ebx
stosd dword es:[edi], eax
lea ecx, [ebp - 0xc]
add esp, 0xc
mov dword [ebp + 0x1c], ebx
cmp dword [ebp + 8], 0x10
mov dword [ebp + 0x20], ebx
cmovae ecx, dword [ebp - 0xc]
push dword [ebp - 0x29]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
add eax, ecx
cmp dword [ebp + 8], 0x10
lea ecx, [ebp - 0xc]
cmovae ecx, dword [ebp - 0xc]
push eax
push ecx
lea ecx, [ebp + 0x18]
call fcn.1000ee60
lea eax, [ebp - 0x25]
mov byte [ebp - 0x25], bl
push eax
lea ecx, [ebp + 0x18]
call fcn.1000ef3a
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 1
push ebx
push ebx
push dword [ebp + 0x18]
push eax
call fcn.10013074
add esp, 0x28
lea ecx, [ebp + 0x18]
neg eax
sbb esi, esi
neg esi
call fcn.1000f01f
lea ecx, [ebp - 0xc]
call fcn.10002e7a
lea ecx, [ebp - 0x24]
call fcn.10002e7a
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
pop ebx
call fcn.10011148
add ebp, 0x12c
leave
ret
Function at 0x1000f9aa
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x100374d0]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.10013074
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.10013074
push 0x1002e8b0
lea eax, [esp + 0x40]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000fa50
sub ecx, edx
cmp ecx, 6
jbe 0x1000fa78
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
jne 0x1000fa78
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000fa7f
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x1002d1fb
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.10013074
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call sub.VCRUNTIME140.dll_memcpy
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000faf9
mov ax, word [0x1002e8dc]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10011148
add esp, 0x824
ret
Function at 0x4832f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8638
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x506070]
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, ecx
cmp dword [ebx + 0x38], 0
je 0x48341f
cmp byte [ebx + 0x3d], 0
je 0x48341f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x483349
xor al, al
jmp 0x483421
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00482e80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4833b7
sub eax, 1
je 0x4833bb
sub eax, 2
je 0x483411
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00482890
mov al, bl
jmp 0x483421
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4833f3
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0049cb80
add esp, 0x10
cmp esi, eax
jne 0x4833a9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x483411
test esi, esi
jne 0x483374
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0047ed00
jmp 0x48336e
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00482890
mov al, bl
jmp 0x483421
mov al, 1
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.00493041
mov esp, ebp
pop ebp
ret

Function at 0x485e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7740
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x506070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049349c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00490a5a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x490570
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6418
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x506070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
mov dword [ebp + 8], edi
mov esi, dword [eax]
xor eax, eax
push eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.00485850
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0
push 0
lea eax, [esi + 0x18]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push eax
mov byte [ecx], 0
call fcn.00485ae0
xor eax, eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], al
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 0x10

Function at 0x491205
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x4c652c
call fcn.00493b23
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x491331
cmp byte [edi + 0x3e], bl
je 0x491331
mov eax, dword [edi]
mov ecx, 0xffff
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00493ac3
mov ecx, edi
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x491259
xor al, al
jmp 0x491333
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00482e80
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x49128c
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
push dword [ebp - 0x30]
mov ecx, dword [esi + 0x20]
call fcn.00493ac3
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x4912ba
sub eax, 1
jne 0x491316
mov edi, dword [ebp - 0x2c]
jmp 0x4912c0
mov edi, dword [ebp - 0x2c]
mov byte [edi + 0x3e], bl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4912d0
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
sub esi, edx
je 0x4912f8
cmp eax, 0x10
jae 0x4912df
lea ecx, [ebp - 0x28]
push dword [edi + 0x4c]
push esi
push 1
push ecx
call fcn.0049cb80
add esp, 0x10
cmp esi, eax
jne 0x491321
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [edi + 0x3e], 0
je 0x49131f
test esi, esi
jne 0x491280
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.0047ed00
jmp 0x49127a
dec eax
sub eax, 1
jne 0x491325
inc eax
jmp 0x491323
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00482890
mov al, bl
jmp 0x491333
mov al, 1
call fcn.00493ade
ret