joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414100
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x4210c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4141fb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x4141fb
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x41415a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x414138
jmp 0x4141fb
cmp edx, 0x200
jae 0x414261
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x4141fb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x4141fa
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x4141fa
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x414243
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x4141e0
pop edi
mov eax, dword [0x421bec]
test eax, eax
jne 0x414221
push str.setlocale
call fcn.00415330
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41421c
or eax, 0xffffffff
mov dword [0x421bec], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x41424f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e684
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x4141fa
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e684
mov esp, ebp
pop ebp
ret
call fcn.0040e7d7
int3
Function at 0x414990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004149c0
mov esi, dword [ebp + 8]
test al, al
je 0x4149ae
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.004149d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x414b00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414b5c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414b5c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414b5c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414b5c
cmp dword [ecx + 0x74], 0xe
jbe 0x414b5c
cmp dword [ecx + 0xe8], 0
je 0x414b5c
push dword [ebp + 8]
call fcn.004149d0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x421c08
call fcn.004147a0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x414b91
push dword [ebp + 8]
call fcn.00414990
mov esp, ebp
pop ebp
ret

Function at 0x414bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414c2c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414c2c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414c2c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414c2c
cmp dword [ecx + 0x74], 0xe
jbe 0x414c2c
cmp dword [ecx + 0xe8], 0
je 0x414c2c
push dword [ebp + 8]
call fcn.004149d0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x421c08
call fcn.004147a0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x414c61
push dword [ebp + 8]
call fcn.00414990
mov esp, ebp
pop ebp
ret
Function at 0x1000132a
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
sub dword [esp + 8], 1
jne 0x10001378
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10015efc
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x1003a4fc]
test eax, eax
je 0x1000137e
push 0x10015d45
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [0x1003daec], eax
test eax, eax
je 0x1000137e
xor eax, eax
push eax
push eax
push dword [esp + 0xc]
push 0x10001303
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
ret 0xc
xor eax, eax
jmp 0x1000137b

Function at 0x10002a77
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, edx
cmp byte [0x1003def1], cl
jne 0x10002ac4
push ebp
lea ebp, [esp + 0x14]
lea eax, [ecx + 1]
cpuid
mov dword [ebp], eax
movzx eax, byte [0x1003def0]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
test dword [esp + 0x1c], 0x100000
push 1
pop ecx
cmovne eax, ecx
mov byte [0x1003def1], cl
mov byte [0x1003def0], al
pop ebp
jmp 0x10002ac9
mov al, byte [0x1003def0]
cmp dword [0x1003daf4], 0
mov dword [esp + 0xc], eax
jne 0x10002b02
xor ecx, ecx
push 8
mov edx, ecx
pop ebx
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0x82f63b78
xor edx, eax
sub ebx, 1
jne 0x10002add
mov dword [ecx*4 + 0x1003daf0], edx
inc ecx
cmp ecx, 0x100
jb 0x10002ad8
mov ebx, dword [esp + 0x24]
not ebx
mov edx, ebx
test edi, edi
jle 0x10002b69
mov eax, dword [esp + 0xc]
dec edi
test al, al
je 0x10002b1e
crc32 edx, byte [esi]
jmp 0x10002b34
movzx eax, byte [esi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
mov eax, dword [esp + 0xc]
xor edx, dword [ecx*4 + 0x1003daf0]
inc esi
test edi, edi
jne 0x10002b12
jmp 0x10002b70
cmp al, 0x23
jne 0x10002b49
cmp byte [esi], al
jne 0x10002b49
cmp byte [esi + 1], al
cmove edx, ebx
cmp byte [esp + 0xc], 0
je 0x10002b57
crc32 edx, al
jmp 0x10002b69
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1003daf0]
mov al, byte [esi]
inc esi
test al, al
jne 0x10002b3b
pop edi
not edx
pop esi
mov eax, edx
pop ebx
add esp, 0x14
ret
Function at 0x100031e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
test ebp, ebp
je 0x100031f5
and dword [ebp], 0
mov edx, 0x1003702c
call fcn.1000315d
mov esi, eax
test esi, esi
je 0x1000328f
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
push 2
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x10003283
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
pop ecx
cmp edi, 0xffffffff
je 0x10003283
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x10003283
lea ecx, [edi + 1]
call fcn.10003ad9
mov ebx, eax
push esi
test ebx, ebx
je 0x10003284
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x1000326d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov ecx, ebx
call fcn.10003aed
jmp 0x1000328b
mov byte [ebx + edi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
test ebp, ebp
je 0x1000327f
mov dword [ebp], edi
mov eax, ebx
jmp 0x1000328d
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10015962
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1003a00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1003a4e4], 0
push esi
push edi
jne 0x10015982
call fcn.100158f9
mov edi, dword [0x1003a018]
lea eax, [ebp - 0x14]
push eax
push dword [0x1003a4fc]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
movd xmm0, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x1c], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
mov dword [edi + 4], eax
movss dword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x3e8
div ecx
push 0x11
mov ecx, eax
sub ecx, dword [0x1003a4f4]
mov dword [0x1003a4f4], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x100380d0]
cvtpd2ps xmm0, xmm0
movss dword [edi + 0xc], xmm0
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xe1], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xe2], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xe3], al
call fcn.10003b20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10015f40
mov esp, ebp
pop ebp
ret

Function at 0x10015b44
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov ebx, ecx
push 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov esi, dword [ebp - 0xc]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10015bbb
mov ecx, dword [esi + 0x3c]
add ecx, esi
cmp dword [ecx], 0x4550
jne 0x10015bbb
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
movzx ecx, word [ecx + 6]
add edx, eax
xor edi, edi
xor eax, eax
cmp di, cx
jae 0x10015bbb
cmp dword [edx], 0x7865742e
jne 0x10015bb2
cmp dword [edx + 4], 0x74
je 0x10015bc6
inc eax
add edx, 0x28
cmp ax, cx
jb 0x10015ba4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
add ecx, esi
add eax, ecx
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov al, 1
jmp 0x10015bbd
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x1001a450
Capabilities:
Encode data using xor

Disassembly:
push esi
xor byte [edi], 0x37
mov ah, 0x35
pop edi
invalid
mov ah, 0x1f
adc ecx, esp
jae 0x1001a444
add dh, byte [esi]
test al, 0x8f
xor al, 0x1d
mov eax, 0x17ddf99b
fdivr dword [edi]
mov esi, 0xa8dcc25b
js 0x1001a491
pop ebx
ret 0xa8dc
insd dword es:[edi], dx
inc byte [edx - 0x4b0e92c2]
mov eax, dword [0xc2dc60ac]
jnp 0x1001a479
jge 0x1001a491
sbb eax, 0x64bf269a
loope 0x1001a3c8
popal
mov al, byte [0x530d4e63]
jmp 0xb0abe1a
inc eax
or eax, 0xb45b1a1f
ret 0x58a9
mov esi, dword [ebp + 0x76]
sbb esp, ebp
jbe 0x1001a46e
in al, dx
loopne 0x1001a3fc
test byte [ebx + 0x4a0ee5d8], 0x75
invalid
enter 0x55c7, 0xffffffffffffffc3
and dword [esi - 0x115fffcc], edi
out dx, al
clc
push ss
jle 0x1001a422
je 0x1001a477
inc edi
cmc
sub eax, 0x6752f82a
out dx, eax
mov ch, 0xcc
pop edi
test eax, 0x33fe7980
loopne 0x1001a410
dec ebx
jno 0x1001a4fd
les esi, [esi]
sbb cl, byte [ebp + esi*4 + 0x1aba5935]
ret
insd dword es:[edi], dx
loope 0x1001a453
dec edx
mov byte [0x13a8980a], al
invalid
jns 0x1001a49f
scasb al, byte es:[edi]
invalid
Function at 0x401230
Capabilities:
Get common file path
Read file on windows

Disassembly:
push esi
push 0x208
mov esi, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push eax
push 0x104
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
pop esi
jmp fcn.004010be
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [0x4a0010]
mov dword [eax], 1
mov eax, dword [0x4a0014]
mov dword [eax], 1
mov eax, dword [0x4a0018]
mov dword [eax], 1
mov ecx, dword [0x4a0004]
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x40107b
mov edx, dword [ecx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x40107b
add ecx, edx
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x401064
cmp edx, 0x10b
jne 0x40107b
cmp dword [ecx + 0x74], 0xf
jb 0x40107b
add ecx, 0xe8
jmp 0x401073
cmp dword [ecx + 0x84], 0xf
jb 0x40107b
add ecx, 0xf8
xor eax, eax
cmp dword [ecx], 0
setne al
push esi
mov ecx, dword [0x4a000c]
cmp dword [ecx], 1
mov dword [0x5052bc], eax
mov eax, 2
sbb eax, 0
push eax
call sym.__set_app_type
add esp, 4
mov eax, dword [0x4a0040]
mov esi, dword [eax]
call sym.___p__fmode
mov dword [eax], esi
mov eax, dword [0x4a0038]
mov esi, dword [eax]
call sym.___p__commode
mov dword [eax], esi
call dbg._setargv
mov eax, dword [section..rdata]
cmp dword [eax], 1
jne 0x4010d3
push dbg._matherr
call dbg.__mingw_setusermatherr
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x401310
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4a000c]
mov dword [eax], 0
jmp dbg.__tmainCRTStartup

Function at 0x401920
Capabilities:
Write file on windows

Disassembly:
push esi
push eax
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp], eax
push 2
call sym.___acrt_iob_func
add esp, 4
push eax
push 1
push 0x1b
push str.Mingw_w64_runtime_failure:_n
call sym._fwrite
add esp, 0x10
push 2
call sym.___acrt_iob_func
add esp, 4
push dword [esp]
push esi
push eax
call dbg.vfprintf
add esp, 0xc
call sym._abort
int3
Function at 0x40a5a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x40a5b1
jmp dword [eax*4 + 0x4aa244]
cmp dword [0x505320], 0
je 0x40a6b3
push 0x505324
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x50533c]
test edi, edi
je 0x40a6a8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a5fb
mov edi, dword [edi + 8]
test edi, edi
je 0x40a6a8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40a5f0
test esi, esi
je 0x40a5f0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40a5f0
cmp dword [0x505320], 0
jne 0x40a630
push 0x505324
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x505320], 1
jmp case.default.0x40a5b1
call dbg._fpreset
jmp case.default.0x40a5b1
cmp dword [0x505320], 0
je case.default.0x40a5b1
push 0x505324
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x50533c]
test edi, edi
je 0x40a703
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a687
mov edi, dword [edi + 8]
test edi, edi
je 0x40a703
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40a680
test esi, esi
je 0x40a680
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40a680
push 0x505324
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x505320]
cmp eax, 1
jne case.default.0x40a5b1
mov eax, dword [0x50533c]
test eax, eax
je 0x40a6e2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sym._free
add esp, 4
mov eax, esi
test esi, esi
jne 0x40a6d0
mov dword [0x50533c], 0
mov dword [0x505320], 0
push 0x505324
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x40a5b1
push 0x505324
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a860
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x4a0004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x40a8c6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x40a8c6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x40a8c6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x40a8c6
mov edx, dword [esp + 0xc]
sub edx, dword [0x4a0004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x40a8b6
add esi, 0x28
dec ecx
je 0x40a8c6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x40a8b0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x40a8b0
mov eax, esi
pop esi
pop edi
ret
Function at 0x413c20
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
push 8
push str.percent_
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x413c41
xor eax, eax
jmp 0x413c9d
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add ebx, 8
push 0x4aa907
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x413c8a
push 0x4aa939
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x413c3d
push ebp
push esi
call dbg.ffOptionParseUInt32
add esp, 8
cmp eax, 0x65
jae 0x413ca2
mov byte [edi + 1], al
jmp 0x413c9b
push ebp
push esi
call dbg.ffOptionParseUInt32
add esp, 8
cmp eax, 0x65
jae 0x413ca2
mov byte [edi], al
mov al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push 0x4aa90d
push eax
call sym._fprintf.llvm.11197304268257191622
add esp, 0xc
push 0x1e0
call sym._exit
int3
Function at 0x413cf0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
push str.percent
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x413d19
test eax, eax
sete al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x413e0e
mov edx, dword [ecx]
mov ebx, edx
not ebx
test bl, 7
jne 0x413e0e
mov esi, dword [ecx + 4]
shld esi, edx, 0x18
je 0x413d0c
mov dword [esp], eax
add ecx, 0x10
mov eax, 0x65657267
mov ebp, esi
mov edi, ecx
jmp 0x413d58
add edi, edx
add edi, 0x10
dec ebp
je 0x413da5
cmp dword [edi + 1], 5
jne 0x413d70
mov edx, dword [edi + 8]
mov ebx, dword [edx]
xor ebx, eax
movzx edx, byte [edx + 4]
xor edx, 0x6e
or edx, ebx
je 0x413d84
mov ebx, dword [edi + 0x10]
not ebx
mov edx, 0x10
test bl, 6
jne 0x413d50
mov edx, dword [edi + 0x18]
jmp 0x413d50
mov eax, 0xf7
and eax, dword [edi + 0x10]
xor ebx, ebx
cmp eax, 4
jne 0x413d9f
mov ebx, dword [edi + 0x18]
cmp ebx, 0x65
jae 0x413e32
mov eax, dword [esp + 0x20]
mov byte [eax], bl
mov edi, 0x6c6c6579
mov eax, dword [esp]
jmp 0x413dbc
add ecx, edx
add ecx, 0x10
dec esi
je 0x413d0c
cmp dword [ecx + 1], 6
jne 0x413dd7
mov ebx, dword [ecx + 8]
mov edx, dword [ebx]
xor edx, edi
movzx ebx, word [ebx + 4]
xor ebx, 0x776f
or ebx, edx
je 0x413deb
mov ebx, dword [ecx + 0x10]
not ebx
mov edx, 0x10
test bl, 6
jne 0x413db0
mov edx, dword [ecx + 0x18]
jmp 0x413db0
mov edx, 0xf7
and edx, dword [ecx + 0x10]
xor ebx, ebx
cmp edx, 4
jne 0x413e02
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x65
jae 0x413e49
mov ecx, dword [esp + 0x20]
mov byte [ecx + 1], bl
jmp 0x413d0c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str.Error:_usage:__s_must_be_an_object_n
push eax
call sym._fprintf.llvm.11197304268257191622
add esp, 0xc
push 0x1e0
call sym._exit
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x36
push str.Error:_usage:_percent.green_must_be_between_0_and_100_n
jmp 0x413e5e
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x37
push str.Error:_usage:_percent.yellow_must_be_between_0_and_100_n
call sym._fwrite
add esp, 0x10
push 0x1e0
call sym._exit

Function at 0x4173d0
Capabilities:
Write file on windows

Disassembly:
cmp byte [0x505228], 0
je 0x4173f6
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 5
push str.e__7h
call sym._fwrite
add esp, 0x10
cmp byte [0x505229], 0
je 0x41741c
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 6
push str.e__25h
call sym._fwrite
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call sym._fflush
add esp, 4
ret
Function at 0x417440
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push eax
xor eax, eax
cmp dword [0x5076ec], 0
sete al
xor ecx, ecx
cmp byte [0x506391], 0
cmovne eax, ecx
cmp byte [0x506393], 0
mov edx, 0
cmovne edx, eax
mov byte [0x505228], dl
cmp byte [0x506394], 0
cmove eax, ecx
mov byte [0x505229], al
movzx ebx, byte [0x50640c]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test bl, bl
je 0x41749b
push 0
push 4
jmp 0x4174a2
push 0x1000
push 0
push 0
push eax
call sym._setvbuf
add esp, 0x10
push 1
push dbg._consoleHandler@4
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov dword [esp], 0
mov eax, esp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp]
or eax, 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp byte [0x506391], 0
jne 0x41751d
cmp dword [0x5076ec], 0
jne 0x41751d
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 4
push 0x4aac0a
call sym._fwrite
add esp, 0x10
cmp byte [0x505229], 0
je 0x417543
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 6
push str.e__25l
call sym._fwrite
add esp, 0x10
cmp byte [0x505228], 0
je 0x417569
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 5
push str.e__7l
call sym._fwrite
add esp, 0x10
call dbg.ffLogoPrint
add esp, 4
pop esi
pop ebx
ret