joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a20ea
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
add eax, ecx
xor edi, edi
cmp ecx, eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov esi, ecx
jae 0x4a2141
mov bl, byte [esi]
movsx edx, bl
cmp edx, 0x100
ja 0x4a2124
cmp byte [edx + 0x1001688], 0x3f
ja 0x4a2124
inc edi
mov dword [ebp - 4], edi
jmp 0x4a213c
cmp bl, 0x20
je 0x4a213c
cmp bl, 9
je 0x4a213c
cmp bl, 0xd
je 0x4a213c
cmp bl, 0xa
jne 0x4a2216
inc esi
cmp esi, eax
jb 0x4a2108
mov esi, dword [ebp + 0x10]
lea eax, [edi + 3]
shr eax, 2
test esi, esi
lea eax, [eax + eax*2]
jne 0x4a2158
mov esi, eax
jmp 0x4a2204
test edi, edi
jbe 0x4a2204
xor eax, eax
lea edi, [ebp + 8]
stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [ebp - 4]
cmp eax, 4
jbe 0x4a2173
push 4
pop eax
cmp edi, eax
jae 0x4a219d
movsx eax, byte [ecx]
mov edx, 0x100
cmp eax, edx
jae 0x4a2193
cmp byte [eax + 0x1001688], 0x3f
jbe 0x4a2193
movsx eax, byte [ecx + 1]
inc ecx
jmp 0x4a217f
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi + 8], al
inc edi
jmp 0x4a2168
movzx eax, byte [ebp + 9]
movzx edx, byte [ebp + 8]
mov bl, byte [eax + 0x1001688]
mov dl, byte [edx + 0x1001688]
shl dl, 2
shr bl, 4
or dl, bl
mov byte [esi], dl
inc esi
cmp edi, 2
jbe 0x4a21dc
movzx edx, byte [ebp + 0xa]
mov al, byte [eax + 0x1001688]
mov dl, byte [edx + 0x1001688]
shr dl, 2
shl al, 4
or dl, al
mov byte [esi], dl
inc esi
cmp edi, 3
jbe 0x4a21fb
movzx eax, byte [ebp + 0xa]
movzx edx, byte [ebp + 0xb]
mov al, byte [eax + 0x1001688]
shl al, 6
or al, byte [edx + 0x1001688]
mov byte [esi], al
inc esi
sub dword [ebp - 4], edi
jne 0x4a2160
sub esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
test edi, edi
je 0x4a2233
mov eax, edi
and eax, 3
je 0x4a2141
cmp byte [esi], 0x3d
jne 0x4a2233
cmp eax, 1
jne 0x4a2141
mov dword [ebp - 8], 0xd
jmp 0x4a220c
Function at 0x574d94
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf05661dc
jmp 0x574da5
mov byte [esp], bl
push word [esp + 3]
jno 0x574dbb
mov dword [esp], esi
jmp 0x574d6f
pop word [esp + 1]
jmp 0x574d8e
mov dword [esp], esi
pop word [esp + 1]
call 0x574d94
dec edx
mov byte [esp + 5], bh
pop word [esp]
lea esp, [esp + 2]
mov dword [esp], edi
jmp 0x574dee
neg ax
jns 0x574dd3
or bh, 0xbf
jmp 0x574dbd
jmp 0x574d86
rdtsc
rdtsc
jmp 0x574e0a
pushfd
jmp 0x574cf4

Function at 0x5777d8
Capabilities:
Execute anti-debugging instructions

Disassembly:
dec dx
mov bh, byte [esp]
rdtsc
mov eax, 0x66a17098
btr ebx, esi
jmp 0x5786df
lea edx, reloc.MSVCRT.dll_strncpy
cmc
neg dx
sub esp, 7
mov byte [esp + 1], al
lea esp, [esp + 3]
jmp fcn.005778c8
xchg dword [esp], eax
lea ebx, [ecx + esi]
bsf dx, di
mov bl, 0xe7
bsr dx, sp
lea eax, [eax + 0x3a]
jmp 0x577afe

Function at 0x577d28
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edx, 0x57033e8d
jmp 0x577d32
lea eax, [eax*4]
jmp 0x576d1e
shl edx, 2
mov al, dl
btc eax, esi
jmp 0x577d4c
mov ah, cl
mov ax, word [esp]
push ebp
jmp 0x577d5a
jbe 0x577d12
lea eax, [eax*4]
jmp 0x576d1e
mov eax, dword [esp + 1]

Function at 0x5834ab
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x56950f
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x569529
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x569518
pop esi
jmp 0x569534
ret 4
jmp 0x569502

Function at 0x6659a6
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [esp + 0x38], edi
lea esp, [esp + 0x38]
jmp 0x6659e1
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x6659cb
Function at 0x402600
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62385d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.004024a0
cmp byte [ebp - 0x84], 0
jne 0x402751
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x402695
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x717fe8
call fcn.004024a0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.004024a0
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x402704
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.00402550
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x402793
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402789
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402789
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x403dc0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x403eed
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXGetImageInfoFromFileA]
test eax, eax
js 0x403eda
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x10]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push ebx
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
test eax, eax
jns 0x403ebf
movaps xmm0, xmmword [0x6e67b0]
mov ch, 0x3f
mov cl, 0x4d
mov byte [ebp - 0x2c], ch
mov dl, cl
mov byte [ebp - 0x26], 0
mov ah, cl
mov byte [ebp - 0x26], 0
mov al, 0x7a
mov dword [ebp - 0x3c], 0xd0f0905
mov bl, 0x50
mov dword [ebp - 0x38], 0x100d1c48
xor cl, ch
mov dword [ebp - 0x34], 0xd1a1d1c
xor al, ch
mov byte [ebp - 0x2a], cl
xor dl, ch
mov byte [ebp - 0x2b], al
xor bl, ch
mov byte [ebp - 0x29], dl
xor ah, ch
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], ah
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x1b
jb 0x403e94
push 0x10
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x4b]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x24]
test eax, eax
pop edi
mov dword [esi], eax
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x406bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x7dd8c4]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x10c], ebx
mov edx, dword [0x7dd898]
mov dword [ebp - 0x10c], ebx
lea ecx, [edi*4]
cmp byte [edx + edi], 0
jne 0x406c0e
mov eax, dword [0x7dd8b4]
mov eax, dword [ecx + eax]
mov dword [ecx + esi], eax
mov byte [edx + edi], 1
mov eax, dword [ecx + esi]
mov ecx, 0x3c
cdq
idiv ecx
movaps xmm0, xmmword [0x6e6a30]
mov ecx, eax
mov dword [ebp - 0x110], edx
mov eax, 0x88888889
mov dword [ebp - 0x10c], ecx
imul ecx
movups xmmword [ebp - 0x158], xmm0
movaps xmm0, xmmword [0x6e6a40]
movups xmmword [ebp - 0x148], xmm0
movaps xmm0, xmmword [0x6e6a20]
add edx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
movups xmmword [ebp - 0x138], xmm0
add esi, edx
xor ecx, ecx
movaps xmm0, xmmword [0x6e6790]
movups xmmword [ebp - 0x128], xmm0
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0x158]
xor byte [ebp + ecx - 0x157], al
inc ecx
cmp ecx, 0x3e
jb 0x406c80
push dword [ebp - 0x110]
mov ecx, dword [ebp - 0x10c]
mov eax, esi
shl eax, 4
sub eax, esi
mov byte [ebp - 0x119], 0
shl eax, 2
sub ecx, eax
lea eax, [ebp - 0x157]
push ecx
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00401d70
mov eax, dword [0x7dd8a8]
add esp, 0x14
cmp dword [eax + edi*4], 0
mov eax, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
jne 0x406cf8
call eax
mov esi, dword [0x7dd8c0]
mov dword [esi + edi*4], eax
mov eax, dword [0x7dd8a8]
mov dword [eax + edi*4], 1
mov eax, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
jmp 0x406cfe
mov esi, dword [0x7dd8c0]
mov esi, dword [esi + edi*4]
call eax
sub eax, esi
cmp eax, 0x3e8
jle 0x406d38
mov eax, dword [0x7dd8a8]
cmp dword [eax + edi*4], 1
lea ecx, [eax + edi*4]
jne 0x406d38
mov eax, dword [0x7dd8c4]
dec dword [eax + edi*4]
mov dword [ecx], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, eax
mov eax, dword [0x7dd8c0]
mov dword [eax + edi*4], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x108]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
lea edx, [ecx + 1]
mov dword [ebx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d55
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, ebx
call fcn.00401af0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x40bb40
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623df0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a4
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ac], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x298], 0x44
push 0x104
lea eax, [ebp - 0x120]
movlpd qword [ebp - 0x294], xmm0
push eax
push 0
movlpd qword [ebp - 0x28c], xmm0
movlpd qword [ebp - 0x284], xmm0
movlpd qword [ebp - 0x27c], xmm0
movlpd qword [ebp - 0x274], xmm0
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x264], xmm0
movlpd qword [ebp - 0x25c], xmm0
movups xmmword [ebp - 0x2a8], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc20
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00401af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x224], 0xf
mov esi, dword [ebp - 0x228]
mov edx, esi
cmova ecx, dword [ebp - 0x238]
push 2
sub esp, 8
call fcn.00418da0
add esp, 0xc
mov dword [ebp - 0x240], 0
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x250], xmm0
lea edx, [eax + 1]
cmp esi, edx
jb 0x40bdb3
sub esi, edx
lea eax, [ebp - 0x238]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp - 0x224], 0xf
push ecx
cmova eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x250]
add eax, edx
push eax
call fcn.00401af0
push 0x7dd9e8
push 0x7dd960
lea eax, [ebp - 0x220]
push str.0__s__s
push eax
call fcn.00401d70
add esp, 0x10
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x298]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x2a8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2a4]
call esi
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xf
jbe 0x40bd5a
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bd86
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0x224]
cmp ecx, 0xf
jbe 0x40bd96
mov edx, dword [ebp - 0x238]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bd8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00418800
int3
Function at 0x40bdc0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623e30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a4
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x198], 0x44
push 0x104
lea eax, [ebp - 0x120]
movlpd qword [ebp - 0x194], xmm0
push eax
push 0
movlpd qword [ebp - 0x18c], xmm0
movlpd qword [ebp - 0x184], xmm0
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x174], xmm0
movlpd qword [ebp - 0x16c], xmm0
movlpd qword [ebp - 0x164], xmm0
movlpd qword [ebp - 0x15c], xmm0
movups xmmword [ebp - 0x1a8], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], 0
movups xmmword [ebp - 0x138], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bea0
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.00401af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x138]
cmp dword [ebp - 0x124], 0xf
mov esi, dword [ebp - 0x128]
mov edx, esi
cmova ecx, dword [ebp - 0x138]
push 2
sub esp, 8
call fcn.00418da0
add esp, 0xc
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
lea edx, [eax + 1]
cmp esi, edx
jb 0x40c03e
sub esi, edx
lea eax, [ebp - 0x138]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp - 0x124], 0xf
push ecx
cmova eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x150]
add eax, edx
push eax
call fcn.00401af0
cmp dword [ebp - 0x13c], 0xf
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x198]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x150]
cmova eax, dword [ebp - 0x150]
push 0
push eax
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x1a8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1a4]
call esi
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x40bfca
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c011
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp ecx, 0xf
jbe 0x40c021
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c017
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c017
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00418800
int3
Function at 0x4179f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x417a1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
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__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x417a44
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x417a4a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x417ab2
jg 0x417a61
test esi, esi
je 0x417ab2
test ecx, ecx
jl 0x417aad
jg 0x417a6b
test eax, eax
je 0x417aad
cmp edi, ecx
jg 0x417a7f
jl 0x417a75
cmp esi, eax
jae 0x417a7f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x417ab5
mov ecx, dword [ebp + 8]
jmp 0x417abf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x417ad9
jg 0x417abf
test esi, esi
je 0x417ad9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x417ad9
push eax
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 + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x417b1c
jl 0x417b10
test ecx, ecx
jne 0x417b1c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x417b35
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x417b83
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x417b89
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x417b89
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x417bf6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x417bb2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x417be4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x417bf6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x417bc0
test edi, edi
je 0x417bf6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x417fb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x417fec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x417fec
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4180c3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x418014
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x418020
movsx eax, bl
jmp 0x418058
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x418082
sub eax, 1
je 0x418082
sub eax, 2
jne 0x4180c3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4180a0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4180c3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret 4