joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3de0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
jg 0x4b3e0b
jl 0x4b3dfe
test esi, esi
jne 0x4b3e0b
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
add esp, 8
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4b3e23
push eax
push esi
push ebp
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 ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4b3e67
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x4b3e6e
mov edi, dword [esp + 0x20]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x4b3e6e
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x4b3edb
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4b3e98
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 [esp + 0x10]
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 0x4b3ec9
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4b3edb
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4b3ea5
test edi, edi
je 0x4b3edb
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x24]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4b4240
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4d700c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4b4270
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4b42a1
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4b42a1
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4b4387
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4b42ca
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 0x4b42d6
movsx eax, bl
jmp 0x4b4316
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
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 0x4b4341
sub eax, 1
je 0x4b4341
sub eax, 2
jne 0x4b4387
movsx eax, byte [esp + 0x17]
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 [esp + 0x2c]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x4b4361
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 0x4b4387
lea ecx, [esp + 0x17]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c6ef9
add esp, 0x30
ret 4
Function at 0x4b4940
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4d700c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4b4a02
cmp byte [esi + 0x3d], 0
je 0x4b4a02
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4b49ef
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4b49b3
sub eax, 1
je 0x4b49b7
sub eax, 2
jne 0x4b49ef
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x4b49d7
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 0x4b49ef
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c6ef9
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.004c6ef9
add esp, 0x28
ret

Function at 0x4b5d30
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 4
mov esi, ecx
call fcn.004c6f0c
mov edx, dword [esp + 0x10]
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4b5e00
push 0
push 0
mov dword [eax], edx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
jne 0x4b5d6a
push 6
mov dword [edi], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
pop edi
pop esi
ret 4
Function at 0x4bed50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push ebp
xor eax, eax
push esi
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
push edi
test edx, edx
jne 0x4bed87
mov dword [ebx + 0x10], edx
mov word [ebx + edx*2], ax
jmp 0x4bedb6
cmp edx, 7
ja 0x4beda6
xor eax, eax
mov dword [ebx + 0x10], edx
mov ecx, edx
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebx + edx*2], ax
jmp 0x4bedb6
push ecx
push edx
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
push edx
call fcn.004c4440
mov ebp, dword [0x4d786c]
xor edi, edi
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + ebp + 0x78]
add eax, ebp
mov dword [esp + 0x14], eax
mov esi, dword [eax + 0x20]
add esi, ebp
mov ecx, dword [esi]
mov edx, 0xbe388559
add ecx, ebp
mov al, byte [ecx]
inc ecx
test al, al
je 0x4bedfd
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x4bede0
cmp edx, 0x6c1a706
je 0x4bee03
inc edi
add esi, 4
jmp 0x4bedd0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebp]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, ebx
mov edx, dword [eax + ebp]
add edx, ebp
cmp dword [ebx + 0x14], 8
jb 0x4bee26
mov ecx, dword [ebx]
push dword [esp + 0x18]
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
push ecx
cmovae eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
push 0
push 0
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x4bee7a
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4bee70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bee70
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c718d
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x4bee90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4beef2
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x18]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4beeec
cmp dword [esp + 0x1c], 0x10
lea ecx, [esp + 8]
mov eax, dword [esp + 0x18]
cmovae ecx, dword [esp + 8]
inc eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x10
jb 0x4bef2a
mov edx, dword [esp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4bef20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bef20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c718d
add esp, 8
pop esi
ret
Function at 0x4c799e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c79dd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c79dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c79dd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c79dd
cmp dword [ecx + 0x74], 0xe
jbe 0x4c79dd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40172c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x406008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], edx
push 0x400
push eax
call fcn.00401921
add esp, 0x14
test eax, eax
js 0x4017fe
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017fe
push 4
pop edi
lea eax, [ebp - 0x814]
mov dword [ebp - 0x80c], ebx
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x810], ebx
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x814], edi
push eax
push ebx
push dword [ebp - 0x818]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4017f2
cmp dword [ebp - 0x80c], edi
jne 0x4017f2
cmp dword [ebp - 0x810], eax
mov bl, 1
setne al
mov dword [esi], eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402790
leave
ret

Function at 0x401e07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesAdobeAcrobat_ReaderDCFeatureLockDown
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e73
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bEnableATL7Compat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e6a
cmp dword [ebp - 8], 4
jne 0x401e6a
inc eax
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x10001460
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x10005620]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 2], eax
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
push ecx
mov word [esp + 0x16], ax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x10]
mov word [esp + 6], ax
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
add esp, 0x14
jmp 0x1000175b
push 8
push 0x10002068
call fcn.10001978
and dword [ebp - 4], 0
push 0
push 1
call sub.MSVCR71.dll___security_error_handler
pop ecx
pop ecx
jmp 0x1000174e
or dword [ebp - 4], 0xffffffff
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp ecx, dword [0x10005620]
jne 0x10001764
ret
jmp 0x1000172a
Function at 0x405dc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x40c170]
cmp ax, 0xcb
je 0x405ebc
cmp ax, 0xcc
je 0x405ebc
mov edx, dword [0x40f5e0]
test edx, edx
je 0x405df2
mov eax, dword [0x40f480]
call edx
mov ebx, eax
jmp 0x405df7
mov ebx, 0x40f484
cmp word [0x40f470], 0
jle 0x405e1a
mov eax, 0x40f450
call fcn.00406030
mov eax, ebx
call fcn.004059a0
mov eax, ebx
call fcn.00405a10
mov edi, dword [ebx]
jmp 0x405e3a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x405e35
mov edx, edi
mov eax, ebx
call fcn.00404e70
jmp 0x405e38
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x405e20
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x40f470], 0
jle 0x405ebc
mov edx, 0x40f390
mov eax, ebx
call fcn.00404fa0
mov edi, eax
test edi, edi
je 0x405e8f
mov eax, dword [0x40f424]
mov dword [edi + 0xc], eax
cmp dword [0x40f424], 0
je 0x405e84
mov eax, dword [0x40f424]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x40f424], eax
sub word [0x40f470], 1
cmp word [0x40f470], 0
sete bl
mov eax, 0x40f450
call fcn.00406040
test bl, bl
je 0x405ebc
mov eax, 0x40f450
call fcn.00406020
pop edi
pop esi
pop ebx
ret
Function at 0x407ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x40f290], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.004080c0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x40f290]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00401f60
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40c1e0], eax
mov esi, dword [0x40c1e0]
jmp 0x408080
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x407f70
cmp byte [esi], 0
je 0x408089
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x407fe5
mov al, byte [esi]
cmp al, 1
jb 0x407fdb
sub al, 0x20
jbe 0x407fac
sub al, 2
je 0x407fbf
jmp 0x407fdb
mov al, byte [ebp - 0x10c]
test al, al
je 0x407fea
add dword [ebp - 0x110], 1
jmp 0x407fe2
cmp byte [esi + 1], 0x22
je 0x407fd6
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x407fe2
add esi, 1
jmp 0x407fe2
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x407f9c
test dword [ebp - 0x114], 0xffffffff
je 0x408079
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.004080c0
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x40f290]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x408071
mov al, byte [esi]
cmp al, 1
jb 0x408067
sub al, 0x20
jbe 0x408038
sub al, 2
je 0x40804b
jmp 0x408067
mov al, byte [ebp - 0x10c]
test al, al
je 0x408076
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x40806e
cmp byte [esi + 1], 0x22
je 0x408062
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40806e
add esi, 1
jmp 0x40806e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x408028
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x407f73
mov ebx, dword [ebp - 0x114]
mov dword [0x40f280], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x40f290
call fcn.00405c20
mov eax, dword [0x40f290]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4099d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov dx, 0
sub dx, 1
mov esi, esi
add dx, 1
movsx eax, dx
mov ecx, eax
mov bx, 1
sub bx, 1
nop
add bx, 1
mov eax, ecx
and eax, 1
je 0x409a09
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x409a0f
mov eax, ecx
shr eax, 1
mov ecx, eax
cmp bx, 8
jl 0x4099f0
mov ax, dx
and eax, 0xffff
mov dword [eax*4 + 0x4115c0], ecx
cmp dx, 0xff
jl 0x4099dc
pop ebx
ret
Function at 0x409a30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 4]
mov esi, eax
mov edi, edx
mov ebx, ecx
cmp dword [0x4115c4], 0
jne 0x409a4b
call fcn.004099d0
not esi
mov dword [esp], esi
mov edx, ebx
mov ebx, 1
cmp edx, ebx
jl 0x409a86
sub ebx, 1
mov esi, esi
add ebx, 1
mov al, byte [esp]
mov cl, byte [edi]
xor cl, al
movzx eax, cl
mov ecx, dword [esp]
shr ecx, 8
mov eax, dword [eax*4 + 0x4115c0]
xor ecx, eax
mov dword [esp], ecx
add edi, 1
cmp edx, ebx
jg 0x409a60
mov eax, dword [esp]
not eax
lea esp, [esp + 4]
pop edi
pop esi
pop ebx
ret

Function at 0x40a7a0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov byte [ebp - 4], al
cmp al, 7
jb 0x40a7f7
sub al, 7
je 0x40a856
sub al, 1
je 0x40a7df
sub al, 2
je 0x40a7c4
sub al, 3
je 0x40a7d0
jmp 0x40a7f7
add dword [0x411a80], 1
jmp 0x40a856
mov eax, dword [0x4119d0]
mov dword [0x411a70], eax
jmp 0x40a856
mov eax, dword [0x411a70]
cmp eax, dword [0x4119d0]
jbe 0x40a856
sub dword [0x411a70], 1
jmp 0x40a856
mov eax, dword [0x411a70]
sub eax, 1
mov word [ebp - 8], ax
mov eax, dword [0x411a80]
sub eax, 1
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
movzx ax, byte [0x40c4d0]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x411a70], 1
mov eax, dword [0x411a70]
cmp eax, dword [0x4119e0]
jbe 0x40a889
mov eax, dword [0x4119d0]
mov dword [0x411a70], eax
add dword [0x411a80], 1
jmp 0x40a889
mov eax, 1
call fcn.0040a6f0
sub dword [0x411a80], 1
mov eax, dword [0x411a80]
cmp eax, dword [0x411a00]
ja 0x40a878
leave
ret
Function at 0x40a8a0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x411a70]
sub eax, 2
mov word [ebp - 8], ax
mov eax, dword [0x411a80]
sub eax, 1
mov word [ebp - 6], ax
movzx ax, byte [0x40c4d0]
mov word [ebp - 0x10], ax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a8d9
mov ebx, dword [ebx - 4]
mov dword [ebp - 0x14], 1
cmp ebx, dword [ebp - 0x14]
jl 0x40a99b
sub dword [ebp - 0x14], 1
lea esi, [esi]
add dword [ebp - 0x14], 1
add word [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx - 1]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x411a70], 1
mov eax, dword [0x411a70]
cmp eax, dword [0x4119e0]
jbe 0x40a992
mov eax, dword [0x4119d0]
mov dword [0x411a70], eax
add dword [0x411a80], 1
jmp 0x40a96d
mov eax, 1
call fcn.0040a6f0
sub dword [0x411a80], 1
mov eax, dword [0x411a80]
cmp eax, dword [0x411a00]
ja 0x40a95c
mov eax, dword [0x411a70]
sub eax, 2
mov word [ebp - 8], ax
mov eax, dword [0x411a80]
sub eax, 1
mov word [ebp - 6], ax
cmp ebx, dword [ebp - 0x14]
jg 0x40a8f0
pop ebx
leave
ret