joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4076fd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x40c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov ecx, esi
push eax
call fcn.004050e0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402d38
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402d2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402d2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004068d1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40772d
mov eax, dword fs:[0]
push eax
mov eax, dword [0x40c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004063c0
push str.pause__nul
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 8
push 0x405840
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402de7
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402ddd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402ddd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x404730
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 0x40475c
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 0x404784
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40478a
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 0x4047f2
jg 0x4047a1
test esi, esi
je 0x4047f2
test ecx, ecx
jl 0x4047ed
jg 0x4047ab
test eax, eax
je 0x4047ed
cmp edi, ecx
jg 0x4047bf
jl 0x4047b5
cmp esi, eax
jae 0x4047bf
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 0x4047f5
mov ecx, dword [ebp + 8]
jmp 0x4047ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404819
jg 0x4047ff
test esi, esi
je 0x404819
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404819
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 0x404830
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 0x40485c
jl 0x404850
test ecx, ecx
jne 0x40485c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404875
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 0x4048c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4048c9
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 0x4048c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404936
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4048f2
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 0x404924
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 0x404936
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404900
test edi, edi
je 0x404936
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 0x404cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404ce0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404d1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404d1c
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.00406642
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404df3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404d44
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 0x404d50
movsx eax, bl
jmp 0x404d88
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 0x404db2
sub eax, 1
je 0x404db2
sub eax, 2
jne 0x404df3
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.00406642
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404dd0
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 0x404df3
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.00406642
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.00406642
mov esp, ebp
pop ebp
ret 4
Function at 0x4054a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40555c
cmp byte [esi + 0x3d], 0
je 0x40555c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40554a
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 0x405511
sub eax, 1
je 0x405515
sub eax, 2
jne 0x40554a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405533
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 0x40554a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00406642
mov esp, ebp
pop ebp
ret

Function at 0x40703b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40707a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40707a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40707a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40707a
cmp dword [ecx + 0x74], 0xe
jbe 0x40707a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401011
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x401008
pushfd
pushal
call 0x401011
xor eax, eax
mov eax, esp
add eax, 4
xchg ebx, eax
mov esp, ebx
mov ebx, dword [ebx - 4]
sub ebx, 0x40903f
popal
popfd
jmp fcn.01108389
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.0040219e
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.00407377
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401ecb
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x40167a
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, 0xb83bf
mov ebp, str._d_The_remote_protocol_ID:
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x18
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x33
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x67
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xcf
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x23
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x9b
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x12
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x98
add esp, 0x40
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x21
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x8f
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xf7
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x12
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xf
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0xe6
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x95
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x7f
add esp, 0x40
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xec
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0xe6
add esp, 0x10
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159d
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x414230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41425d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41425d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4027d0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40280f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40280f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40280f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40280f
cmp dword [ecx + 0x74], 0xe
jbe 0x40280f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408957
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
mov eax, esi
call fcn.00408976
xor dword [edi], ecx
or esi, esi
inc edi
sub esp, 4
mov dword [esp], eax
pop esi
cmp edi, ebx
jne fcn.00408957
ret
Function at 0x403337
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [ebx + 0x4fb008], 0x8088405

Function at 0x42725f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x427265
ret

Function at 0x43e8cb
Capabilities:
Access peb ldr_data

Disassembly:
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
mov dword [eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e90f

Function at 0x4a8b40
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x4a8b60
inc ecx
xor esi, esi
mov bl, byte [eax + esi]
xor bl, byte [edx + esi]
mov edi, dword [ebp - 4]
mov byte [edi + esi], bl
inc esi
dec ecx
jne 0x4a8b50
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4c3c67
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov ebx, esi
cmp word [ebx], 0x5a4d
je 0x4c3c81
mov eax, 0x4c3c34
call fcn.004c3c4b
add esi, dword [ebx + 0x3c]
mov ebx, esi
cmp dword [ebx], 0x4550
je 0x4c3c98
mov eax, 0x4c3c54
call fcn.004c3c4b
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x4cd032
Capabilities:
Encode data using xor

Disassembly:
xor ebx, ebx
call fcn.00404544
dec esp
add bh, bl
loopne 0x4ccfd5
jne 0x4cd05f
mov eax, dword [ebp - 0x10]
mov dword [0x4fe110], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4fe114], eax
mov eax, dword [ebp - 0x10]
mov dword [0x4fe118], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4fe11c], eax
jmp 0x4cd085
fld qword [ebp - 0x10]
fsub qword [0x4fe118]
fcomp dword [0x4cd1bc]
fnstsw ax
sahf
jbe 0x4cd085
mov eax, dword [ebp - 0x10]
mov dword [0x4fe118], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4fe11c], eax
fld qword [0x4fe118]
fsub qword [0x4fe110]
call fcn.00402ce4
mov dword [0x4fe100], eax
call fcn.004f2654
test al, al
je 0x4cd0ba
call fcn.004f266c
test al, al
je 0x4cd0ba
call fcn.004f263c
test al, al
jne 0x4cd22e
mov al, byte [0x4fe120]
cmp al, 0x69
jb 0x4cd22e
xor ebx, ebx
mov esi, eax
and esi, 0xff
sub esi, 2
test esi, esi
jle 0x4cd0e3
mov eax, 0x4fe121
add bl, byte [eax]
inc eax
dec esi
jne 0x4cd0dd
xor eax, eax
mov al, byte [0x4fe120]
dec eax
call fcn.004ccf54
cmp bl, al
jne 0x4cd22e
lea eax, [ebp - 0x13c]
push eax
mov ecx, 4
mov edx, 1
mov eax, 0x4fe120
call fcn.00402998
lea eax, [ebp - 0x13c]
mov edx, 0x4cd1c0
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004032d0
jne 0x4cd22e
xor ebx, ebx
lea esi, [ebp - 0x3b]
mov eax, ebx
add eax, eax
add eax, 6
call fcn.004ccf54
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 0x2b
jne 0x4cd133
xor eax, eax
mov dword [ebp - 4], eax
xor ebx, ebx
lea esi, [ebp - 4]
mov eax, ebx
add eax, eax
add eax, 0x5c
call fcn.004ccf54
xor al, 0x8a
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 3
jne 0x4cd152
mov eax, dword [ebp - 4]
mov ecx, 0x7b
cdq
idiv ecx
mov word [0x4fe108], ax
xor eax, eax
mov dword [ebp - 4], eax
xor ebx, ebx
lea esi, [ebp - 4]
mov eax, ebx
add eax, eax
add eax, 0x62
call fcn.004ccf54
xor al, 0x8a
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 2
jne 0x4cd184
mov ax, word [ebp - 4]
mov word [0x4fe10c], ax
xor eax, eax
mov al, byte [0x4fe120]
sub eax, 0x66
sar eax, 1
jns 0x4cd1b6
adc eax, 0
mov dword [ebp - 4], eax
mov eax, 0x4fe104
mov edx, dword [ebp - 4]
call fcn.0040515c
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jl 0x4cd1f2
inc esi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, 0x66
call fcn.004ccf54
xor al, 0x8a
push eax
mov eax, 0x4fe104
call fcn.00405028
pop edx
mov byte [eax + ebx], dl
inc ebx
dec esi
jne 0x4cd1d1
mov ebx, 0x4cd270
add ebx, 3
lea eax, [ebp - 8]
push eax
push 0x40
push 0x2b
push ebx
call fcn.004075a0
mov edx, ebx
lea eax, [ebp - 0x3b]
mov ecx, 0x2b
call fcn.00402a2c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x2b
push ebx
call fcn.004075a0
mov byte [0x4fe0fc], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4eccd1
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4eca52
mov eax, 0xf698386e
or eax, ecx
sub ecx, ecx
call fcn.004ecd06
mov eax, ecx
sub eax, eax
inc eax
xor dword [ebx], esi
and eax, eax
sub eax, 0x581fcd6d
add ebx, 1
inc eax
cmp ebx, edi
jl fcn.004eccd1
add ecx, ecx
dec ecx
ret
Function at 0x406020
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x412350], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x41234c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x412350], eax
cmp ecx, 0x26f
jl 0x406030
mov dword [0x40f410], 0x270
ret

Function at 0x406070
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x411010]
cmp eax, dword [0x40f3c0]
je 0x406088
mov dword [0x40f410], 0x271
cmp dword [0x40f410], 0x270
jl 0x4061a7
cmp dword [0x40f410], 0x271
jne 0x4060bf
mov eax, dword [0x411010]
call fcn.00406020
mov eax, dword [0x411010]
not eax
mov dword [0x411010], eax
mov dword [0x40f3c0], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x412354]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x412350]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x412984]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x40f420]
xor edx, eax
mov dword [ebx*4 + 0x412350], edx
cmp ebx, 0xe2
jl 0x4060c8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x412354]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x412350]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x411fc4]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x40f420]
xor edx, eax
mov dword [ebx*4 + 0x412350], edx
cmp ebx, 0x26e
jl 0x40611c
mov eax, dword [0x412d0c]
and eax, 0x80000000
mov edx, dword [0x412350]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x412980]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x40f420]
xor eax, edx
mov dword [0x412d0c], eax
mov dword [0x40f410], 0
mov eax, dword [0x40f410]
mov eax, dword [eax*4 + 0x412350]
add dword [0x40f410], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x407a10
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x40f170]
cmp ax, 0xcb
je 0x407b0c
cmp ax, 0xcc
je 0x407b0c
mov edx, dword [0x412f60]
test edx, edx
je 0x407a42
mov eax, dword [0x412e00]
call edx
mov ebx, eax
jmp 0x407a47
mov ebx, 0x412e04
cmp word [0x412df0], 0
jle 0x407a6a
mov eax, 0x412dd0
call fcn.00407c80
mov eax, ebx
call fcn.004075f0
mov eax, ebx
call fcn.00407660
mov edi, dword [ebx]
jmp 0x407a8a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x407a85
mov edx, edi
mov eax, ebx
call fcn.00406ac0
jmp 0x407a88
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x407a70
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x412df0], 0
jle 0x407b0c
mov edx, 0x412d10
mov eax, ebx
call fcn.00406bf0
mov edi, eax
test edi, edi
je 0x407adf
mov eax, dword [0x412da4]
mov dword [edi + 0xc], eax
cmp dword [0x412da4], 0
je 0x407ad4
mov eax, dword [0x412da4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x412da4], eax
sub word [0x412df0], 1
cmp word [0x412df0], 0
sete bl
mov eax, 0x412dd0
call fcn.00407c90
test bl, bl
je 0x407b0c
mov eax, 0x412dd0
call fcn.00407c70
pop edi
pop esi
pop ebx
ret

Function at 0x40abb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 8], eax
mov esi, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ab70
test al, al
jne 0x40abe7
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x40abc8
mov eax, dword [ebp - 4]
leave
ret