joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x410772
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410768
mov eax, 1
add ebx, ebx
jne 0x41078b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410780
jne 0x41079c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410780
xor ecx, ecx
sub eax, 3
jb 0x4107b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410822
mov ebp, eax
add ebx, ebx
jne 0x4107bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4107c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4107ec
inc ecx
add ebx, ebx
jne 0x4107d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4107cd
jne 0x4107e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4107cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41080c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4107fd
jmp 0x41076e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41080c
add edi, ecx
jmp 0x41076e
pop esi
mov edi, esi
mov ecx, 0x24a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41082a
cmp byte [edi], 0
jne 0x41082a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41082f
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x41089e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10fb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41085c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11054]
or eax, eax
je 0x410898
mov dword [ebx], eax
add ebx, 4
jmp 0x410879
call dword [esi + 0x1105c]
mov ebp, dword [esi + 0x11058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4108d2
sub esp, 0xffffff80
jmp 0x404319
Function at 0x401cd0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c9f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x401e2f
push str.data
push 0x6f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401e2f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401e2f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0xc0
mov esi, eax
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.00407350
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00403fb0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0xd4], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 0
jne 0x401dd7
push 0x42767b
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xd0]
xor bl, bl
call fcn.00401e90
jmp 0x401e31
push 0
push esi
push ebx
lea ecx, [ebp - 0xc0]
call fcn.00403530
lea ecx, [ebp - 0xb8]
call fcn.00403e80
test eax, eax
jne 0x401e20
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401ba0
lea ecx, [ebp - 0xd0]
mov bl, 1
call fcn.00401e90
jmp 0x401e31
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x401e61
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401e57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e7f
push edx
push ecx
call fcn.00405998
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret
call fcn.0040b26c
int3
Function at 0x402910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4029f6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4029e5
jg 0x402950
test edx, edx
je 0x4029e5
nop dword [eax]
call fcn.00403f70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4029a4
jg 0x402967
test esi, esi
je 0x4029a4
cmp ebx, eax
jg 0x402977
jl 0x402971
cmp edi, esi
jae 0x402977
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00406dc0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4029c9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4029df
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402950
jl 0x4029df
test edi, edi
jne 0x402950
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402a18
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x402a1a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402a98
jg 0x402a2d
test esi, esi
je 0x402a98
test eax, eax
jl 0x402a7c
jg 0x402a37
test ebx, ebx
je 0x402a7c
cmp edi, eax
jg 0x402a47
jl 0x402a41
cmp esi, ebx
jae 0x402a47
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00406dc0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x402a98
jg 0x402a7f
test esi, esi
je 0x402a98
jmp 0x402a7f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402a98
push eax
push esi
push 1
push edx
call fcn.0040a66f
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x402ae2
jl 0x402ad5
test ecx, ecx
jne 0x402ae2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402ba2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00403f90
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402b4e
jg 0x402b0d
test esi, esi
je 0x402b4e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402b25
mov eax, dword [esp + 0x10]
jl 0x402b1f
cmp eax, esi
jae 0x402b25
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00406dc0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x402b6f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402b8b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x402af4
jl 0x402b8b
test ecx, ecx
jne 0x402af4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402be1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x402be1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00406dc0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], 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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x402c50
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x402c07
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x402c39
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040ac83
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x402c64
cmp edi, eax
ja 0x402c15
test ecx, ecx
je 0x402c50
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040ac83
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x402fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403000
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40303c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40303c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403124
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403064
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 0x403097
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00409c2d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
sub eax, 0
je 0x4030f7
sub eax, 1
je 0x4030f7
sub eax, 2
jne 0x403124
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00409c2d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403114
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040a66f
add esp, 0x10
cmp edi, eax
jne 0x403124
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x403027
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405955
mov esp, ebp
pop ebp
ret 4
Function at 0x403ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403d5a
cmp byte [esi + 0x3d], 0
je 0x403d5a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403d48
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403d10
sub eax, 1
je 0x403d14
sub eax, 2
jne 0x403d48
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403d31
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040a66f
add esp, 0x10
cmp edi, eax
jne 0x403d48
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405955
mov esp, ebp
pop ebp
ret
Function at 0x404560
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cc6c
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x30]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00404d3a
mov byte [ebp - 4], 1
mov ecx, dword [0x42b020]
mov eax, dword [0x42bc88]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x4045f7
push ecx
lea ecx, [ebp - 0x18]
call fcn.00404d3a
cmp dword [0x42b020], 0
jne 0x4045e6
mov eax, dword [0x42b008]
inc eax
mov dword [0x42b008], eax
mov dword [0x42b020], eax
lea ecx, [ebp - 0x18]
call fcn.00404d92
mov ecx, dword [0x42b020]
mov dword [ebp - 0x24], ecx
cmp ecx, dword [edi + 0xc]
jae 0x40460c
mov eax, dword [edi + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
jne 0x4046a1
jmp 0x40460e
xor esi, esi
cmp byte [edi + 0x14], 0
je 0x404627
call fcn.00405010
mov esi, dword [ebp - 0x24]
cmp esi, dword [eax + 0xc]
jae 0x40462b
mov eax, dword [eax + 8]
mov esi, dword [eax + esi*4]
test esi, esi
jne 0x4046a1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404636
mov esi, eax
jmp 0x4046a1
push 0x18
call fcn.00405968
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x404653
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401750
lea eax, [ebp - 0x3c]
mov dword [esi + 4], 0
push eax
mov dword [esi], vtable.std::ctype_char_.0
call fcn.0040540f
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
call fcn.00401800
mov dword [ebp - 0x14], esi
push esi
mov byte [ebp - 4], 3
call fcn.00404fe4
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x42bc88], esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00404d92
mov eax, dword [esi]
mov ecx, esi
push 0x20
mov eax, dword [eax + 0x20]
call eax
mov edx, dword [edi]
mov ecx, edi
mov byte [ebp - 0x1d], al
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x4046d0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret 4

Function at 0x410761
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004105d7

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4609f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x513a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005074a8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x460a72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00504beb
mov eax, dword [eax]
push 0x12fcd58
push eax
call fcn.004f5de4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00507733
test bl, bl
je 0x460a72
push 0x12fcd58
lea ecx, [esp + 0xc]
call fcn.00507ac3
push 0x12fcd64
lea ecx, [esp + 0xc]
call fcn.00507ac3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x460aae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00507733
jmp 0x460b79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x460b32
lea edx, [esp + 0x7c]
push 0x12fcd60
push edx
call fcn.004f5de4
add esp, 8
test eax, eax
je 0x460b32
lea eax, [esp + 0x7c]
push 0x12fcd5c
push eax
call fcn.004f5de4
add esp, 8
test eax, eax
je 0x460b32
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x460ac2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00507733
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x461de0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x461e42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x461e50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x513b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1315c28]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x461f88
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x461eb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00507733
xor eax, eax
jmp 0x461fff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00507870
push esi
lea ecx, [esp + 0xc]
call fcn.00507aff
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x12fcda8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x461fdd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00461de0
test eax, eax
jne 0x461fdd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00461de0
test eax, eax
jne 0x461fdd
lea eax, [esp + 0x14]
push 0x12fcd84
push eax
call fcn.004f6e60
mov esi, eax
add esp, 8
test esi, esi
jne 0x461fbc
lea ecx, [esp + 0x14]
push 0x12fcd80
push ecx
call fcn.004f6de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x461fbc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x461fbf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00507820
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x461ece
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00507733
xor eax, eax
jmp 0x461fff
mov byte [esi], 0
push 0x12fcd7c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00507733
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4