joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051f0
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 0x40521c
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 0x405244
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40524a
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 0x4052b2
jg 0x405261
test esi, esi
je 0x4052b2
test ecx, ecx
jl 0x4052ad
jg 0x40526b
test eax, eax
je 0x4052ad
cmp edi, ecx
jg 0x40527f
jl 0x405275
cmp esi, eax
jae 0x40527f
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 0x4052b5
mov ecx, dword [ebp + 8]
jmp 0x4052bf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4052d9
jg 0x4052bf
test esi, esi
je 0x4052d9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4052d9
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 0x4052f0
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 0x405314
jl 0x405309
test ecx, ecx
jne 0x405314
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40532e
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 0x40537a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x405380
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 0x405380
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x4053f6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4053ac
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 0x4053e4
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 0x4053f6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4053c0
test edi, edi
je 0x4053f6
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 0x405770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4057a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4057dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4057dc
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.0040ac8b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4058b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405804
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 0x405810
movsx eax, bl
jmp 0x405848
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 0x405872
sub eax, 1
je 0x405872
sub eax, 2
jne 0x4058b3
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.0040ac8b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405890
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 0x4058b3
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.0040ac8b
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.0040ac8b
mov esp, ebp
pop ebp
ret 4
Function at 0x405c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405cec
cmp byte [esi + 0x3d], 0
je 0x405cec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405cda
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 0x405ca1
sub eax, 1
je 0x405ca5
sub eax, 2
jne 0x405cda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405cc3
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 0x405cda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret
Function at 0x40b927
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b966
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b966
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b966
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b966
cmp dword [ecx + 0x74], 0xe
jbe 0x40b966
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40dfc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x40e031
cmp dword [ecx], edi
jne 0x40e029
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x40e039
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40e039
cmp dword [ecx], edi
jne 0x40e03c
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0x10
push 1
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
push edi
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.0040d9d0
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40e380
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
mov esi, dword [edi + 0xc]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
mov edx, dword [edi + 4]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x18]
and ecx, eax
mov eax, dword [esi + ecx*8]
add ecx, ecx
lea edi, [esi + ecx*4]
mov esi, dword [esi + ecx*4]
cmp esi, edx
jne 0x40e3db
mov ecx, edx
jmp 0x40e3e0
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40e405
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx]
je 0x40e3ef
mov eax, dword [eax]
jmp 0x40e3d3
mov ecx, dword [ebx]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
pop edi
cmovne eax, edx
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
pop ebp
ret 8
Function at 0x40e570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416546
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 0x1c]
push 0
mov dword [edi], vtable.DirectX::SoundEffect::Impl.0
mov ecx, esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], eax
push 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040ecd0
mov dword [esi], eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0
push 0
push edi
push dword [edi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040cee0
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ff40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x4237b8]
test esi, esi
je 0x40ffd6
mov eax, dword [ebp + 8]
push ebx
add eax, 0xffffffe4
xor bl, bl
cmp eax, 0xe9
ja case.0x40ff69.29
movzx eax, byte [eax + 0x410024]
jmp dword [eax*4 + 0x410014]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
pop ebx
movups xmmword [esi + 0x10], xmm0
pop esi
pop ebp
ret
mov bl, 1
mov edx, dword [ebp + 0xc]
mov eax, edx
sub eax, 0x10
je 0x40ffd9
sub eax, 1
je 0x40ffa5
sub eax, 1
jne 0x40ffb7
mov edx, dword [ebp + 0x10]
and edx, 0x1000000
or edx, 0xa4ffffff
jmp 0x40ffb4
mov edx, dword [ebp + 0x10]
and edx, 0x1000000
or edx, 0xa2ffffff
shr edx, 0x18
test bl, bl
je 0x40fff5
cmp edx, 0xfe
ja case.0x40ff69.29
mov eax, edx
and edx, 0x1f
sar eax, 5
lea ecx, [esi + eax*4]
mov eax, dword [ecx]
bts eax, edx
mov dword [ecx], eax
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
sar eax, 0x10
push 3
movzx eax, al
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test bl, bl
jne 0x40ffbb
and dword [esi + 0x14], 0xfffffffc
cmp edx, 0xfe
ja case.0x40ff69.29
mov eax, edx
and edx, 0x1f
sar eax, 5
lea ecx, [esi + eax*4]
mov eax, dword [ecx]
btr eax, edx
pop ebx
mov dword [ecx], eax
pop esi
pop ebp
ret
Function at 0x4129c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x4129f4
pop edi
mov eax, 0x80070057
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret
push esi
push 0
push 3
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFile2]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
test esi, esi
je 0x412a82
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x412a82
cmp dword [ebp - 0x10], 0
jle 0x412a35
mov edi, 0x80004005
jmp 0x412aa6
mov eax, dword [ebp - 0x14]
cmp eax, 0x22
jae 0x412a44
mov edi, 0x80004005
jmp 0x412aa6
push 0x41855c
push eax
call fcn.00415b28
mov ecx, dword [edi]
add esp, 8
mov dword [edi], eax
test ecx, ecx
je 0x412a63
push ecx
call fcn.0040aec0
add esp, 4
mov eax, dword [edi]
test eax, eax
jne 0x412a70
mov edi, 0x8007000e
jmp 0x412aa6
push 0
push ebx
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x412aa6
movzx edi, di
or edi, 0x80070000
jmp 0x412aa6
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x14]
sbb edi, edi
and edi, 0x80004005
test esi, esi
je 0x412ab1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret

Function at 0x414d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
pop ebp
jmp fcn.004144e0
Function at 0x401877
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x44c, 0
push 0x10
push 0
push 0
push 0
push 0
push 0
lea esi, [ebp - 0x14]
call dword [sym.imp.USER32.DLL_LoadImageA]
push esi
mov ebx, eax
lea esi, [ebp - 0x3c]
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push esi
push 0x18
push ebx
lea esi, [ebp - 0x244]
call dword [sym.imp.GDI32.DLL_GetObjectA]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor eax, eax
push 0
mov word [ebp - 0x24], ax
call dword [sym.imp.OLE32.DLL_CoInitialize]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea esi, [ebp - 0x244]
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
lea edi, [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.DLL_GetBitmapBits]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteObject]
push 0x104
lea ebx, [ebp - 0x44c]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetParent]
push ebx
push 0
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
push 0
lea ebx, [esi - 3]
call dword [sym.imp.SHLWAPI.DLL_PathFindExtensionW]
mov eax, ebx
jmp 0x401c68
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401bfa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edi, [eax + 1]
mov eax, dword [0x403050]
cdq
idiv edi
mov ebx, esi
mov edx, eax
mov eax, 0x403054
call fcn.00401b3d
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x402992
push eax
sub edi, fcn.0040215d
push edi
push fcn.0040215d
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401c68
mov eax, fcn.0040215d
mov ebx, esi
mov edx, edi
call fcn.00401b3d
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401c6f
Function at 0x10001b50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021b4b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1002db00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000e0d7
push 4
mov dword [ebp - 4], 0
call fcn.1000e884
mov edi, eax
add esp, 4
test edi, edi
je 0x10001bd0
call fcn.1000db75
mov dword [edi], eax
call fcn.1000d934
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1000d869
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10001bc6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1000d891
jmp 0x10001bd2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021d58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002db00]
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
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x10002d01
cmp byte [edi + 0x49], bl
je 0x10002d01
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10002cf5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10002c55
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10002c6d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10002c96
dec eax
je 0x10002c9a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10002cf0
jmp 0x10002cfc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10002caa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10002cd3
cmp ebx, 0x10
jae 0x10002cb9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1000fa4a
add esp, 0x10
cmp esi, eax
jne 0x10002ced
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10002cf9
test esi, esi
jne 0x10002c61
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10002940
jmp 0x10002c5b
lea ecx, [ebp - 0x2c]
call fcn.10002550
xor al, al
jmp 0x10002d03
lea ecx, [ebp - 0x2c]
call fcn.10002550
mov al, 1
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.1000ed3f
mov esp, ebp
pop ebp
ret
Function at 0x1000cf80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1002db00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push esi
push ebx
mov dword [ebp - 0x114], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000d068
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x10c]
push eax
push eax
push eax
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push ecx
mov dword [ebp - 0x110], 0x104
call edi
test eax, eax
jne 0x1000d052
jmp 0x1000d000
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call fcn.1000cf80
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000d078
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x10c]
push eax
push eax
push eax
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push esi
push ecx
mov dword [ebp - 0x110], 0x104
call edi
test eax, eax
je 0x1000d000
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret

Function at 0x1000d0a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1002db00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10010436
add esp, 0xc
test esi, esi
je 0x1000d102
push 0x10025360
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.10010495
push esi
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.10010495
add esp, 0x18
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1000d16e
test edi, edi
je 0x1000d161
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d140
sub eax, edx
mov edx, dword [ebp - 0x408]
inc eax
push eax
push edi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret