joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, edx
mov dword [esp + 0x2c], 0
push ebx
mov dword [esp + 0x40], eax
mov ebx, 1
shl eax, 5
push esi
mov esi, ecx
mov dword [esp + 0x38], ebx
mov ecx, dword [ebp + 8]
inc eax
mov dword [esp + 0x4c], eax
shl eax, 3
push edi
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x58], ecx
mov dword [ecx], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
add esp, 4
mov dword [esp + 0x40], edx
test edx, edx
je 0x10009551
mov ecx, dword [esi]
xor eax, eax
xor edi, edi
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], eax
cmp dword [esp + 0x48], eax
jle 0x10009516
mov ecx, dword [ebp + 0xc]
nop dword [eax]
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x1000942f
cmp byte [eax + ecx], 0
jne 0x1000942f
mov eax, dword [esi + edi*8 + 8]
mov dword [edx + ebx*8], eax
mov eax, dword [esi + edi*8 + 0xc]
mov dword [edx + ebx*8 + 4], eax
inc ebx
mov dword [esp + 0x30], 1
jmp 0x100094f7
mov ecx, dword [esi + edi*8 + 8]
sub esp, 0x10
mov edx, dword [esi + edi*8]
mov eax, dword [esi + edi*8 + 4]
mov esi, dword [esi + edi*8 + 0xc]
mov ebx, dword [esp + 0x44]
movsd xmm0, qword [0x100cbbd0]
mov dword [esp + 0x6c], eax
lea eax, [ecx + ecx*2]
mov dword [esp + 0x70], eax
lea eax, [esi + esi*2]
mov edi, dword [ebx + edi*8 + 0x10]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x5c], edi
mov edi, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x74], eax
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [esp], xmm0
mov ebx, dword [edi + ebx*8 + 0x1c]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x68], edx
lea eax, [edi + edi*2]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esi + edi*8 + 0x14]
push dword [esi + edi*8 + 0x1c]
lea eax, [eax + eax*2]
mov dword [esp + 0x80], eax
mov eax, dword [esi + edi*8 + 0x18]
push eax
push dword [esi + edi*8 + 4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x54]
push dword [esi + edi*8]
push ecx
push 1
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x84]
lea edx, [eax + ebx*8]
call fcn.10008e80
mov edx, dword [esp + 0x6c]
add esp, 0x2c
add ebx, dword [esp + 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], 3
mov eax, dword [esp + 0x44]
add edi, dword [esp + 0x30]
inc eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edi
cmp eax, dword [esp + 0x48]
jl 0x10009400
cmp ebx, dword [esp + 0x50]
jge 0x10009534
lea eax, [ebx*8]
push eax
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edx, eax
add esp, 8
test edx, edx
je 0x10009551
mov eax, dword [esp + 0x54]
mov dword [eax], ebx
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
Function at 0x10009889
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100098c4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100098ab
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100098bc
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100098c6
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100098a1
xor eax, eax
pop edi
pop esi
ret

Function at 0x10009ae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10009849
or eax, 0x8dd36954
inc ebp
test al, 0x50
call fcn.10009859
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10009b37
invalid
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10009849
xchg esi, eax
cld
pushal
loope 0x10009b19
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x10009c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10009859
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
mov dword [ebp - 0xbc], eax
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
loop 0x10009cf4
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10009859
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10009849
mov esp, 0x88228f15
popfd
jl 0x10009cce
invalid
invalid
Function at 0x10009c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10009859
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
mov dword [ebp - 0xbc], eax
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
loop 0x10009cf4
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10009859
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10009849
mov esp, 0x88228f15
popfd
jl 0x10009cce
invalid
invalid

Function at 0x10009ca0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10009859
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
mov dword [ebp - 0xbc], eax
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
loop 0x10009cf4
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10009859
push eax
push esi
push dword [ebp + 8]
call fcn.1000980e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10009849
mov esp, 0x88228f15
popfd
jl 0x10009cce
invalid
invalid
Function at 0x1000a6e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add bh, bh
xchg ebp, eax
sar ah, 0xff
dec dword [ecx + 0x4680845]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.10009849
xor dh, bl
xor ebp, edi
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10009827
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10009859
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000980e
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10009849
stosb byte es:[edi], al
clc
iretd
Function at 0x10014900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x474], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [ebp - 0x468]
push eax
push 0x54
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x54
jne 0x10014ad8
movzx eax, word [ebp - 0x442]
imul eax, dword [ebp - 0x44c]
mov ecx, eax
shr ecx, 5
test al, 0x1f
je 0x10014959
inc ecx
mov edx, dword [ebp - 0x448]
mov eax, 0x4d42
mov word [ebp - 0x414], ax
mov eax, dword [ebp - 0x430]
imul edx, ecx
push 0
lea ebx, [eax*4]
lea eax, [ebx + 0x36]
shl edx, 2
add eax, edx
mov dword [ebp - 0x478], edx
mov dword [ebp - 0x412], eax
xor eax, eax
mov dword [ebp - 0x40e], eax
lea eax, [ebx + 0x36]
mov dword [ebp - 0x40a], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x470], eax
test eax, eax
je 0x10014ad8
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x430]
push 0
push dword [ebp - 0x470]
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
push esi
mov esi, dword [ebp - 0x470]
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp - 0x474]
call dword [sym.imp.HncFoundation.dll_HncCreateFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014ad8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x46c]
push 0
push eax
push 0xe
lea eax, [ebp - 0x414]
push eax
push esi
call edi
test eax, eax
je 0x10014ad1
cmp dword [ebp - 0x46c], 0xe
jne 0x10014ad1
push 0
lea eax, [ebp - 0x46c]
push eax
push 0x28
lea eax, [ebp - 0x450]
push eax
push esi
call edi
test eax, eax
je 0x10014ad1
cmp dword [ebp - 0x46c], 0x28
jne 0x10014ad1
test ebx, ebx
je 0x10014a8d
push 0
lea eax, [ebp - 0x46c]
push eax
push ebx
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x10014ad1
cmp dword [ebp - 0x46c], ebx
jne 0x10014ad1
mov ebx, dword [ebp - 0x478]
lea eax, [ebp - 0x46c]
push 0
push eax
push ebx
push dword [ebp - 0x454]
push esi
call edi
test eax, eax
je 0x10014ad1
cmp dword [ebp - 0x46c], ebx
jne 0x10014ad1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be194
mov esp, ebp
pop ebp
ret 8
Function at 0x10014bf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], ebx
cmp byte [esi + 0x20], 0
je 0x10014c3b
push 0
push dword [esi + 0x1c]
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [esi + 0x18]
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esi + 0x20], 0
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 1
je 0x10014c96
push 0
push 0x104
lea eax, [esp + 0x28]
push eax
push 0x100c45c4
push 0
push 0x100c45cc
push 0
call dword [sym.imp.HncFoundation.dll_HncPathMakeTempEx]
test eax, eax
jne 0x10014c90
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esp + 0x20]
jmp 0x10014c98
mov edi, ebx
push dword [esi + 0x14]
push edi
call sym.HncBaseDraw.dll_HncDRSaveDIBSection
mov ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x10014cec
test eax, eax
je 0x10014cec
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x10014ce2
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push edi
call sym.HncBaseDraw.dll__HncDRImWriteDLLEx_12
mov ebx, eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
mov ecx, dword [esp + 0x22c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10022ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edx
push ecx
push 0x100c4e30
push eax
mov dword [ebp - 0x210], 0xffffffff
call fcn.100934d0
push 0
push 0x20
push 0x8000
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_s]
add esp, 0x24
test eax, eax
jne 0x10022f85
push 0x200
push esi
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 0x200
jne 0x10022f76
mov ecx, 0x100c4e3c
mov edx, 0x1c
nop
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x10022f76
add esi, 4
add ecx, 4
sub edx, 4
jae 0x10022f50
mov eax, dword [ebp - 0x210]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.100be194
mov esp, ebp
pop ebp
ret
Function at 0x10024aa0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bx, dx
test bx, bx
je 0x10024ace
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10024acd
mov dl, byte [ecx]
lea ecx, [ecx + 1]
mov al, dl
xor al, bl
mov byte [ecx - 1], al
movzx eax, dl
inc ax
add bx, ax
sub esi, 1
jne 0x10024ab4
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10056f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
xor ecx, ecx
test byte [edi + 0xa4], 3
mov eax, dword [edi + 0x60]
mov eax, dword [eax]
mov dword [ebp - 8], eax
je 0x10057159
mov esi, dword [edi + 8]
test esi, esi
je 0x10056fa1
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov dword [edi + 0xac], ecx
mov dword [edi + 0xb0], edx
test esi, esi
je 0x10056fd2
mov eax, dword [edi + 0x24]
cmp eax, 7
je 0x10056fbe
cmp eax, 8
jne 0x10056fcc
mov dword [edi + 0x28], 1
mov dword [edi + 0x2c], 1
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x34]
mov dword [edi + 0xb4], ecx
mov dword [edi + 0xb8], edx
test esi, esi
je 0x10057003
mov eax, dword [edi + 0x24]
cmp eax, 7
je 0x10056fef
cmp eax, 8
jne 0x10056ffd
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 1
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov dword [edi + 0xbc], ecx
mov dword [edi + 0xc0], edx
test esi, esi
je 0x10057027
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0xc4], ecx
mov dword [edi + 0xc8], edx
test esi, esi
je 0x1005704b
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x4c]
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0xcc], ecx
mov dword [edi + 0xd0], edx
test esi, esi
je 0x1005706e
mov eax, dword [edi + 0x24]
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
jmp 0x10057071
or eax, 0xffffffff
mov dword [edi + 0xa8], eax
test esi, esi
je 0x100570b8
cmp dword [edi + 0x24], 1
je 0x100570af
mov dword [edi + 0x24], 1
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax + 0x68]
mov ecx, dword [edi + 8]
lea eax, [edi + 0x30]
push eax
mov edx, dword [ecx]
call dword [edx + 0x78]
mov ecx, dword [edi + 8]
lea eax, [edi + 0x28]
push eax
mov edx, dword [ecx]
call dword [edx + 0x90]
mov esi, dword [edi + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov ecx, dword [ebp - 8]
lea eax, [edi + 0xd4]
xor ebx, ebx
mov dword [ebp - 4], eax
lea esi, [ecx + 0x20]
add ecx, 0x420
mov dword [ebp - 8], ecx
cmp dword [esi], 0
jne 0x100570fd
mov al, byte [esi - 0xc]
cmp al, 2
jne 0x10057141
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0
push eax
push ebx
mov ecx, edi
call fcn.10058690
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x100570fb
mov eax, dword [esi - 0x10]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
inc ebx
movzx eax, byte [esi - 0xa]
add dword [ebp - 4], 4
mov dword [ecx + 0x1c], eax
mov eax, dword [esi - 0x10]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
cdq
add ecx, 4
xor eax, edx
mov byte [esi - 0xa], 0x64
sub eax, edx
mov dword [ebp - 8], ecx
neg eax
mov dword [esi - 0x10], eax
add esi, 0x94
cmp ebx, 7
jl 0x100570d2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x100570f8
imul ecx, dword [ecx], 0xb0
mov eax, dword [0x100ed9a8]
mov eax, dword [ecx + eax + 0x94]
jmp 0x100570fb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
pop ebp
jmp fcn.1006a5c0
Function at 0x100740a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0x65c], eax
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.HncFoundation.dll_HncFindFirstFile]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp eax, 0xffffffff
je 0x100741b9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
lea eax, [esp + 0x260]
push 0x400
push edi
push eax
mov dword [esp + 0x14], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push 0x100c4354
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x100741a2
mov eax, dword [esp + 8]
test eax, eax
je 0x100741a2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc]
movzx eax, ax
mov ecx, 0xffff
add esp, 4
cmp cx, ax
je 0x10074185
mov ecx, 0xfeff
cmp ax, cx
jne 0x10074185
push dword [esp + 8]
lea eax, [esp + 0x264]
push 0x1e
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 0x1e
jl 0x10074185
push 0x1e
lea eax, [esp + 0x264]
push str.__HWP_Font_Configuration_V5.00
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
mov eax, 1
cmove edi, eax
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
jne 0x10074286
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x100741b9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
push esi
mov eax, dword [eax]
or eax, 0x40000000
push eax
call dword [sym.imp.HncFoundation.dll_HncSetFileError]
push dword [esp + 0xc]
call dword [sym.imp.HncFoundation.dll_HncPathCreate]
push 0x100c46ac
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1007429f
mov eax, dword [esp + 8]
test eax, eax
je 0x1007429f
push str.__HWP_Font_Configuration_V5.00
push 0xfeff
push str._c_s_r_n_r_n
push eax
call fcn.10001510
push 0x100c593c
push str.__s__r_n_r_n
push dword [esp + 0x20]
call fcn.10001510
add esp, 0x1c
call fcn.10070d30
push str.Default_Fonts
push str.__s__r_n_r_n
push dword [esp + 0x10]
call fcn.10001510
add esp, 0xc
mov esi, 0x100c6be0
nop word [eax + eax]
push dword [esi]
push str.Subst_Fonts
push str.__s____s__r_n_r_n
push dword [esp + 0x14]
call fcn.10001510
add esi, 4
add esp, 0x10
cmp esi, 0x100c6bfc
jl 0x10074240
push 0x100c5910
push str.__s__r_n
push dword [esp + 0x10]
call fcn.10001510
add esp, 0xc
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x65c]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
call edi
push esi
mov eax, dword [eax]
or eax, 0x40000000
push eax
call dword [sym.imp.HncFoundation.dll_HncSetFileError]
mov ecx, dword [esp + 0x664]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret