joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jg 0x404ebf
push 0x546
push str.C:Users_reddersexMusicmenuimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [esi + 0xbc]
add esp, 0xc
mov eax, dword [esi + 0xc4]
mov edi, 4
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x430f58]
sub edi, 1
jne 0x404ed3
mov ecx, dword [0x4e69d0]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1b0c], eax
jne 0x404f05
mov dword [ecx + 0x1b10], eax
cmp dword [ecx + 0x1b44], eax
jne 0x404f14
mov byte [ecx + 0x1b48], 1
pop ebp
ret 4

Function at 0x4072b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x4072c9
cmp byte [edi + 0x2e80], 0
je 0x4072e1
push 0xf5e
push str.C:Users_reddersexMusicmenuimguiimgui.cpp
push str._g.Initialized___g.SettingsLoaded
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], str.Window
mov esi, 0x42e951
mov al, 0x57
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x40730e
cmp byte [esi], al
jne 0x40730e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x430f58]
test al, al
jne 0x407300
mov esi, dword [edi + 0x2e94]
not edx
mov ecx, dword [edi + 0x2e98]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x412d90
mov dword [ebp - 0xc], 0x412e10
mov dword [ebp - 8], 0x412ec0
cmp esi, ecx
jne 0x4073ee
inc esi
test ecx, ecx
je 0x407365
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x40736a
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x4073ee
mov eax, dword [0x4e69d0]
test eax, eax
je 0x407382
inc dword [eax + 0x374]
push dword [0x4e69d4]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.00402bc0
mov ebx, eax
add esp, 8
mov eax, dword [edi + 0x2e9c]
test eax, eax
je 0x4073e2
mov ecx, dword [edi + 0x2e94]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2e9c]
add esp, 0xc
test ecx, ecx
je 0x4073d3
mov eax, dword [0x4e69d0]
test eax, eax
je 0x4073d3
dec dword [eax + 0x374]
push dword [0x4e69d4]
push ecx
call fcn.00402be0
add esp, 8
mov dword [edi + 0x2e9c], ebx
mov dword [edi + 0x2e98], esi
mov eax, dword [edi + 0x2e94]
movups xmm0, xmmword [ebp - 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2e9c]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 8]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi + 0x2e94]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408ac0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x408aff
cmp bl, 0x23
jne 0x408ae1
cmp byte [esi], bl
jne 0x408ae1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x430f58]
test bl, bl
jne 0x408ad2
mov ebx, dword [0x4e69d0]
not eax
mov esi, dword [ebx + 0x1ac8]
mov edi, dword [ebx + 0x1ad0]
mov ecx, edi
test esi, esi
je 0x408b44
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x408b38
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x408b3a
mov esi, edx
test esi, esi
jne 0x408b20
mov ecx, dword [ebx + 0x1ad0]
mov edx, dword [ebx + 0x1ac8]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x408b5c
cmp dword [edi], eax
jne 0x408b5c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x412590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x4e69d0]
push edi
cmp byte [esi + 0x2eac], 0
je 0x41262f
cmp dword [esi + 0x2eb4], 0
lea edi, [esi + 0x2eb8]
je 0x412621
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x4125d9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00413cd0
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00403840
mov edx, dword [edi]
mov ecx, 0x4e69d8
push dword [esi + 0x2eb4]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2ec0]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00403840
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x4e69d0]
mov eax, ecx
mov dword [esp + 0x14], eax
mov dword [edi + 0x2e84], 0
test eax, eax
je 0x412d82
lea esi, [edi + 0x2e88]
mov dword [edi + 0x2e84], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x412cb9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00413cd0
xor ecx, ecx
mov dword [esi], 0
cmp dword [esi + 4], ecx
jne 0x412cd1
push 8
mov ecx, esi
call fcn.00413cd0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
xor ebx, ebx
mov byte [ecx + eax], 0
inc dword [esi]
mov eax, dword [edi + 0x2e94]
mov ecx, dword [esi]
test eax, eax
jle 0x412d39
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp ebx, eax
jl 0x412d0e
push 0x53c
push str.C:Users_reddersexMusicmenuimguiimgui.h
push str.i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edi + 0x2e9c]
add eax, ecx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [esp + 0x1c]
inc ebx
mov eax, dword [edi + 0x2e94]
add ecx, 0x18
add esp, 0xc
mov dword [esp + 0x10], ecx
cmp ebx, eax
jl 0x412d0e
mov ecx, dword [esi]
lea eax, [ecx - 1]
mov edx, 0x430cb8
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [edi + 0x2e90]
test eax, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov edi, 0x4e69d8
cmovne edi, eax
call fcn.004031c0
mov esi, eax
test esi, esi
je 0x412d82
push esi
push dword [esp + 0x14]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a7c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
push edi
push 0
push 0xf
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x42a939
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x128
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x42a92f
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [eax]
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push eax
push 0
push 0
call ebx
mov esi, eax
test esi, esi
jle 0x42a918
push ecx
lea ecx, [esi - 1]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
call fcn.0042bb80
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push esi
cmovae eax, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push eax
push 0
push 0
call ebx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov edi, ecx
mov ebx, dword [esp + 0x10]
cmovae eax, ebx
cmp dword [ecx + 0x14], 8
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x2c], esi
jb 0x42a893
mov edi, dword [ecx]
mov edx, dword [esp + 0x20]
mov ecx, esi
cmp edx, esi
cmovb ecx, edx
test ecx, ecx
je 0x42a8d4
movzx edx, word [edi]
movzx esi, word [eax]
cmp dx, si
jb 0x42a8da
sub edi, eax
cmp dx, si
ja 0x42a8da
cmp ecx, 1
je 0x42a8cc
movzx edx, word [edi + eax + 2]
add eax, 2
dec ecx
movzx esi, word [eax]
cmp dx, si
jae 0x42a8b2
jmp 0x42a8da
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
cmp esi, edx
jb 0x42a8da
jbe 0x42a942
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x42a912
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x42a908
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a991
push ecx
push ebx
call fcn.0042c3e9
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x42a810
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
cmp edx, 8
jb 0x42a988
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a97e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a991
push edx
push ecx
call fcn.0042c3e9
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x5f3335
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f3350
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b8575]
pop edx
test eax, eax
je 0x5f3422
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f3411
test dword [ebp - 0x2a8], 1
jne 0x5f3411
and dword [ebp - 0x2a8], 0x100
jne 0x5f3411
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3890]
pop edx
pop esi
test eax, eax
je 0x5f33b4
jmp 0x5f3411
cmp word [esi], 0x5a4d
jne 0x5f3411
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f3411
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d38d0]
pop edx
test eax, eax
je 0x5f3411
lea eax, [ebp - 0x28c]
push eax
call fcn.005f3291
test eax, eax
jne 0x5f340a
jmp 0x5f3411
mov eax, esi
jmp 0x5f3422
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f3350
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x41021f
call fcn.00402b00
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.0040a352
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.0040a597
push 0x10
lea eax, [esi + 0x468]
push ebx
push eax
mov dword [esi], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], bl
mov byte [esi + 0x64], bl
mov dword [esi + 0x464], ebx
call fcn.00402b20
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret

Function at 0x4010b6
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x410256
call fcn.00402b00
push ecx
push ecx
push ebx
push esi
push edi
push 0x478
call fcn.0040ab22
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4010e7
call fcn.00401000
mov esi, eax
jmp 0x4010e9
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
je 0x401164
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40114e
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov edi, 0x12345678
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40114e
cmp dword [ebp + 8], 4
jne 0x40114e
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x401149
cmp dword [ebp - 0x14], edi
je 0x401164
mov dword [ebp - 0x14], eax
jmp 0x401120
cmp esi, ebx
je 0x401160
mov ecx, esi
call fcn.00401063
push esi
call fcn.0040ab4b
pop ecx
xor eax, eax
jmp 0x401166
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401462
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, dword [edi + 4]
jge 0x4015e4
imul esi, esi, 0x118
mov eax, esi
add eax, dword [edi]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 0x10]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10c]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x4015e4
cmp dword [ebp + 0x14], ebx
je 0x4014e6
mov eax, dword [edi]
push dword [esi + eax + 0x114]
lea eax, [ebp - 0x10c]
push eax
push 1
call dword [ebp + 0x14]
mov eax, dword [edi]
push dword [esi + eax + 0x108]
call fcn.0040ab22
cmp eax, ebx
pop ecx
mov dword [ebp + 0x14], eax
je 0x4015db
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ebx
push ecx
mov eax, dword [esi + eax + 0x108]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4015d2
mov edx, dword [ebp + 8]
cmp dword [ebp - 8], edx
jne 0x4015d2
mov eax, dword [edi]
add eax, esi
mov ecx, dword [eax + 0x110]
sub ecx, ebx
je 0x4015aa
dec ecx
jne 0x4015d2
push dword [eax + 0x104]
call fcn.0040ab22
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x4015d2
mov ecx, dword [edi]
mov esi, dword [esi + ecx + 0x104]
push esi
push eax
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.004019cf
add esp, 0x10
cmp eax, esi
jne 0x40159f
lea eax, [ebp + 8]
push ebx
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40159f
cmp dword [ebp + 8], esi
jne 0x40159f
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.0040ab4b
pop ecx
jmp 0x4015d2
lea eax, [ebp + 0xc]
push ebx
push eax
push edx
push dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015d2
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jne 0x4015d2
mov dword [ebp - 4], 1
push dword [ebp + 0x14]
call fcn.0040ab4b
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x401667
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, edi
call fcn.004016b9
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jle 0x4016b5
push esi
mov dword [ebp + 0xc], ebx
mov esi, 0x118
cmp ebx, dword [edi + 4]
jge 0x4016ab
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [edi]
add eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push esi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add dword [ebp + 0xc], esi
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x40168a
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401be4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.00402b80
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
lea eax, [ebp - 0x108]
push 1
pop esi
push eax
mov dword [ebp + 8], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, esi
jle 0x401c60
mov eax, dword [ebp + 8]
cmp byte [ebp + eax - 0x108], 0x5c
lea esi, [ebp + eax - 0x108]
jne 0x401c4f
cmp byte [ebp + eax - 0x109], 0x3a
je 0x401c4f
and byte [esi], 0
lea eax, [ebp - 0x108]
push 0
push eax
call ebx
mov byte [esi], 0x5c
inc dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call edi
cmp dword [ebp + 8], eax
jl 0x401c20
lea eax, [ebp - 0x108]
push 0
push eax
call ebx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040312b
pop ecx
neg eax
pop ecx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40312b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40314b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040429e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40316e
test byte [esp + 8], 2
je 0x40316e
call fcn.00404311
mov dword [eax], 0xd
call fcn.0040431a
mov dword [eax], 5
jmp 0x403147
xor eax, eax
ret

Function at 0x4058e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415b50
cmp edx, dword [eax]
je 0x405907
add eax, 8
inc ecx
cmp eax, 0x415be0
jl 0x4058f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415b50]
jne 0x405a35
mov eax, dword [0x41a8d8]
cmp eax, 1
je 0x405a0f
test eax, eax
jne 0x405938
cmp dword [0x4156a4], 1
je 0x405a0f
cmp edx, 0xfc
je 0x405a35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40596f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402b80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004030b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4059b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004030b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4123c4
push edi
call fcn.00402c70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402b80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402b90
lea eax, [ebp - 0xa0]
push 0x4123a4
push eax
call fcn.00402b90
push dword [esi + 0x415b54]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402b90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407a78
add esp, 0x2c
pop edi
jmp 0x405a35
lea eax, [ebp + 8]
lea esi, [esi + 0x415b54]
push 0
push eax
push dword [esi]
call fcn.004030b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aaa2b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100d0008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], esi
mov dword [esi], vtable.Xbyak::CodeArray.0
push 0x18
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100a9813
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp edi, 1
jne 0x100016ad
lea eax, [edi + 2]
jmp 0x100016c0
test edi, edi
je 0x100016bb
mov eax, 1
cmp edi, 2
jne 0x100016c0
mov eax, 2
push 0x100c5ff0
lea ecx, [ebp - 0x30]
mov dword [esi + 0xc], eax
lea ebx, [esi + 0x10]
call fcn.10006810
mov dword [ebx], vtable.Xbyak::Allocator.0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x10001713
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001709
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001709
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100a9b5d
add esp, 8
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, dword [ebp + 8]
cmovne ebx, eax
mov dword [esi + 0x18], ecx
cmp dword [esi + 0xc], 1
mov dword [esi + 0x14], ebx
jne 0x1000172e
mov eax, edi
jmp 0x1000173f
mov eax, dword [ebx]
mov edx, 1
cmp ecx, edx
cmovb ecx, edx
push ecx
mov ecx, ebx
call dword [eax]
cmp dword [esi + 0x18], 0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 0
jbe 0x10001757
test eax, eax
je 0x100017b5
cmp dword [esi + 0xc], 2
jne 0x10001795
cmp edi, 2
je 0x10001795
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x10001795
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [esi + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001795
mov ecx, dword [esi + 0x14]
push dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
push 0xe
jmp 0x100017b7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret 0xc
push 0x16
lea ecx, [ebp - 0x28]
call fcn.10001390
push 0x100ce714
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x10001a00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100d0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
push ebx
mov ebx, eax
mov dword [ebp - 8], eax
push esi
mov esi, eax
shr edx, 8
movzx eax, al
xor eax, 0x811c9dc5
shr ebx, 0x10
push edi
mov edi, ecx
shr esi, 0x18
imul ecx, eax, 0x1000193
movzx eax, dl
xor ecx, eax
movzx eax, bl
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x50]
xor eax, esi
imul esi, eax, 0x1000193
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000aac0
mov edx, dword [eax + 4]
test edx, edx
je 0x10001ab9
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x5c]
and ecx, esi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x10001a96
cmp eax, edx
jne 0x10001a8e
mov eax, dword [edi + 0x54]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10001a9e
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x10001a9e
cmp eax, edx
jne 0x10001a9e
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x58]
mov eax, dword [edx + 4]
push 0xc
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.100a9b5d
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp + 8]
imul ebx, ecx, 0x1000193
lea ecx, [edi + 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000aac0
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10001b08
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x14]
je 0x10001b93
mov eax, dword [ecx + 0x10]
cmp eax, 1
jne 0x10001b8f
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x10]
call fcn.1000aac0
mov edx, dword [eax + 4]
test edx, edx
je 0x10001b93
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x1c]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x10001b59
cmp eax, edx
jne 0x10001b51
mov eax, dword [edi + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10001b61
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x10001b61
cmp eax, edx
jne 0x10001b61
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x18]
mov eax, dword [edx + 4]
push 0x14
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.100a9b5d
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret 8
dec eax
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a95f7
mov esp, ebp
pop ebp
ret 8