joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100052d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp ebx, 0xffffffff
jne 0x100052e9
or eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov edx, dword [esi + 0x18]
mov eax, edx
mov edi, dword [esi + 0x1c]
mov ecx, edi
cmp ebx, 3
ja case.default.0x100052f8
jmp dword [ebx*4 + 0x1000544c]
lea ecx, [edi - 1]
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], ecx
jmp case.default.0x100052f8
lea ecx, [edi + 1]
mov dword [esi + 0x24], 1
mov dword [esi + 0x1c], ecx
jmp case.default.0x100052f8
mov dword [esi + 0x24], 2
lea eax, [edx - 1]
jmp 0x10005333
mov dword [esi + 0x24], 3
lea eax, [edx + 1]
mov dword [esi + 0x18], eax
test eax, eax
js 0x100053de
test ecx, ecx
js 0x100053de
cmp eax, 0x1d
jge 0x100053de
cmp ecx, 0x1d
jge 0x100053de
imul eax, eax, 0x1d
add eax, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
cmp dword [ecx + eax*8 + 0x24], 1
je 0x100053de
imul eax, edx, 0x1d
add eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x20]
lea eax, [ecx + eax*8]
push 0xfffffffffffffff5
mov dword [ebp + 0xc], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + 0x18]
add ax, ax
mov word [ebp + 8], ax
movzx eax, word [ecx + 0x1c]
mov word [ebp + 0xa], ax
push dword [ebp + 8]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp + 0xc]
mov edx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x100053be
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x100053ea
mov dword [esi + 0x1c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x18], edx
push dword [esi + 0x20]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [esi + 0x18]
add ax, ax
mov word [ebp + 8], ax
movzx eax, word [esi + 0x1c]
mov word [ebp + 0xa], ax
push dword [ebp + 8]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x10005423
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x10005460
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x18]
cmp dword [esi + 0x18], eax
jne 0x100055ba
mov edx, dword [edi + 0x1c]
cmp dword [esi + 0x1c], edx
jne 0x100055ba
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x8370], 0
jle 0x100055c4
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
imul eax, eax, 0x1d
add eax, edx
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x20]
lea eax, [ecx + eax*8]
push 0xfffffffffffffff5
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + 0x18]
add ax, ax
mov word [ebp + 8], ax
movzx eax, word [ecx + 0x1c]
mov word [ebp + 0xa], ax
push dword [ebp + 8]
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp + 0xc]
mov edx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x100054e8
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [edi + 0x28]
push dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x2c]
push 0xfffffffffffffff5
mov dword [edi + 0x1c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [edi + 0x18]
add ax, ax
mov word [ebp + 8], ax
movzx eax, word [edi + 0x1c]
mov word [ebp + 0xa], ax
push dword [ebp + 8]
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1000554b
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
call edi
push dword [esi + 0x20]
push 0xfffffffffffffff5
call ebx
push eax
call edi
movzx eax, word [esi + 0x18]
add ax, ax
mov word [ebp + 8], ax
movzx eax, word [esi + 0x1c]
mov word [ebp + 0xa], ax
push dword [ebp + 8]
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x100055a0
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call ebx
push eax
call edi
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x10005f40
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 0x10005f6c
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 0x10005f94
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10005f9a
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 0x10006002
jg 0x10005fb1
test esi, esi
je 0x10006002
test ecx, ecx
jl 0x10005ffd
jg 0x10005fbb
test eax, eax
je 0x10005ffd
cmp edi, ecx
jg 0x10005fcf
jl 0x10005fc5
cmp esi, eax
jae 0x10005fcf
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 0x10006005
mov ecx, dword [ebp + 8]
jmp 0x1000600f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10006029
jg 0x1000600f
test esi, esi
je 0x10006029
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10006029
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 0x10006040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10006064
jl 0x10006059
test ecx, ecx
jne 0x10006064
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000607e
push eax
push ecx
push dword [ebp + 8]
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100060ca
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x100060d0
mov edi, dword [ebp + 8]
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 + 8], 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
jmp 0x100060d0
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10006146
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100060fc
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 - 4]
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 0x10006134
nop dword [eax]
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 0x10006146
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10006110
test edi, edi
je 0x10006146
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 0x100064c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100064f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a46c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000652c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000652c
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.1000a46c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10006603
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10006554
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 0x10006560
movsx eax, bl
jmp 0x10006598
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 0x100065c2
sub eax, 1
je 0x100065c2
sub eax, 2
jne 0x10006603
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.1000a46c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100065e0
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 0x10006603
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.1000a46c
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.1000a46c
mov esp, ebp
pop ebp
ret 4
Function at 0x10006890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000694c
cmp byte [esi + 0x3d], 0
je 0x1000694c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000693a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
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 0x10006901
sub eax, 1
je 0x10006905
sub eax, 2
jne 0x1000693a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a46c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10006923
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 0x1000693a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a46c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a46c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000a46c
mov esp, ebp
pop ebp
ret
Function at 0x1000a420
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x39
nop
xor dword [eax - 0x4f], ebx
mov esi, 0x63496a23
dec edi
stosd dword es:[edi], eax
adc byte [esp + esi*2 - 0x25], bl
sub al, 0x68
xor al, 0xcb
lea eax, [ecx]
xchg esp, eax
sar dl, 1
dec edx
push ebx
add byte [eax], al
mov al, 0x46
push ebp
nop
cmc
imul ebx, dword [edi + 0x3f], 0x80e66c5a
insb byte es:[edi], dx
mov bl, 0x15
xor eax, 0xe0114ebc
ror dword [ecx + 0x7c], 0x89
jns 0x1000a45f
xchg byte [0x1ddc55e6], bl
mov ebp, 0xc80c5ce3
jecxz 0x1000a4bd
or al, 0xc8
sub al, 0x5f
sbb byte [eax], dh
mov dword [eax], ecx
pop ebp
or byte [eax + ebp*4 - 0x2b185c9c], ah
invalid
insd dword es:[edi], dx
push edx
xchg ecx, eax
xchg edi, eax
ret
Function at 0x4a5260
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4a52cc
mov eax, dword [ebp + 0x10]
mov edx, edi
and edx, 0xffffffff
push eax
mov eax, edi
push edx
cdq
mov eax, edx
xor edx, edx
push eax
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
je 0x4a52ba
push 1
add edi, dword [ebp + 0x10]
push edi
push ebx
call fcn.004a51d0
add esp, 0xc
test eax, eax
jge 0x4a52ce
mov edx, dword [ebp + 0x10]
push edx
push esi
push ebx
call fcn.004a52d8
add esp, 0xc
xor esi, esi
jmp 0x4a52ce
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x402ee4
pop dword [ebp - 0x30]
mov eax, 0x402ee4
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x6f34954a
sub dword [ebp - 0x40], 0x20e24fff
mov dword [ebp - 0x3c], 0x57af60ab
sub dword [ebp - 0x3c], 0x257c1466
mov dword [ebp - 0x38], 0x34c111a
add dword [ebp - 0x38], 0x49003314
mov dword [ebp - 0x34], 0xe0b640fc
sub dword [ebp - 0x34], 0xe0b640fc
lea eax, [ebp - 0x40]
push eax
mov eax, 0x467c262e
add eax, 0xb9c45ad6
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x8a5b9e91
sub dword [ebp - 0x40], 0x15e9353b
mov dword [ebp - 0x3c], 0x375494d3
sub dword [ebp - 0x3c], 0xf5e8335e
mov dword [ebp - 0x38], 0x97fe9cab
add dword [ebp - 0x38], 0xcb70cfc1
mov dword [ebp - 0x34], 0xafb47f01
sub dword [ebp - 0x34], 0xafb47f01
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x5d38d713
add eax, 0xa307a9ed
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34f0b
push 0
call eax
mov ecx, 0xd29dddff
sub ecx, 0xd29d9e61
mov edi, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x30]
mov ebx, 0xcc8b053
mov edx, dword [esi]
mov dword [ebp - 0x28], 0xee5a3a16
sub edx, ebx
xor dword [ebp - 8], esi
mov dword [edi], edx
sub dword [ebp - 0xc], 0x40054c0b
add edi, 0x99ab36c0
sub edi, 0x99ab36bc
add esi, 4
loop 0x402ff5
add eax, 0xd8d9629a
sub eax, 0xd8d8714f
mov ebx, eax
add eax, 0xc315faa2
sub eax, 0xc315fa9d
mov ecx, 0x2e864c3e
add ecx, 0xd1b9b3c2
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x401440
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
push str.msvcrt.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
push str.malloc
push ebp
call edi
push 0x4dc5c
call eax
mov esi, eax
add esp, 4
test esi, esi
jne 0x401480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.kernel32.dll
call ebx
mov ebx, eax
mov al, 0x74
mov byte [esp + 0x1f], al
mov byte [esp + 0x26], al
mov byte [esp + 0x29], al
lea eax, [esp + 0x1c]
mov cl, 0x72
push eax
push ebx
mov byte [esp + 0x24], 0x56
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], cl
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0x50
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x63
mov byte [esp + 0x32], 0
call edi
push str.memcpy
push ebp
mov dword [esp + 0x1c], eax
call edi
mov ecx, dword [esp + 0x10]
push 0x4dc5c
add ecx, 0x4dc74
push ecx
push esi
call eax
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x40
push 0x4dc5c
push esi
call dword [esp + 0x24]
push str.CreateThread
push ebx
call edi
push 0
push 0
push esi
push esi
push 0
push 0
call eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x10009530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009c0a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10091727
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1000a3b0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10009584
jmp dword [ecx*4 + 0x100096ec]
mov al, byte [esi]
test al, al
je 0x100095b2
cmp al, 0x20
je 0x1000959e
cmp al, 0xa1
jne 0x100095b2
cmp byte [esi + 1], al
jne 0x100095b2
test al, 0x80
je 0x100095aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100095b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10009591
test ecx, ecx
je case.default.0x10009584
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10009584
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100095f8
cmp dl, 0xa1
jne 0x100095ec
cmp byte [eax + 1], 0xa1
jne 0x100095ec
test ecx, ecx
jne 0x100095e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000960c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10009626
jmp 0x1000960c
cmp dl, 0x20
jne 0x1000960a
test ecx, ecx
jne 0x10009603
mov edi, eax
mov ecx, 1
jmp 0x1000960c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100095cc
cmp ecx, 1
jne case.default.0x10009584
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009584
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009584
mov al, byte [esi]
test al, al
je 0x1000967e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10009664
mov cl, byte [esi + 1]
test cl, cl
je 0x1000967e
cmp al, 0xa1
jne 0x10009654
cmp cl, al
je 0x10009661
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1000a640
inc esi
jmp 0x10009676
cmp al, 0x20
je 0x10009676
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000a680
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000963d
push 0
lea ecx, [esp + 0x14]
call fcn.1000a680
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100135c0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100096b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a33d4
call fcn.1000a5b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100916b9
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret