joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40faa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d75d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422a54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x20], 0x3f800000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0x3f800000
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0x3f800000
mov dword [esi + 0x34], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x3f800000
mov dword [esi + 0x54], eax
mov byte [esi + 4], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMissileBase.0
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0x3f000000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f000000
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
je 0x40fbc8
mov dword [ecx], eax
add dword [esi + 0x5c], 4
jmp 0x40fbd5
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x58]
call fcn.00404630
mov word [esi + 0x64], 1
mov eax, esi
mov byte [esi + 0x66], 0
mov dword [esi + 0x68], 0
mov byte [esi + 0x8c], 0
mov dword [esi + 0x94], 0x1e
mov byte [esi + 0x98], 0
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 0x40fc20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d75d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422a54]
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]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x20], 0x3f800000
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x24], 0x3f800000
mov dword [edi + 0x30], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0x3f800000
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x3f800000
mov dword [edi + 0x54], eax
mov byte [edi + 4], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [edi], vtable.CMothership.0
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0x3e800000
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f800000
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov ecx, dword [edi + 0x5c]
cmp ecx, dword [edi + 0x60]
je 0x40fd48
mov dword [ecx], eax
add dword [edi + 0x5c], 4
jmp 0x40fd55
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [edi + 0x58]
call fcn.00404630
push 0x1c
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0xbf8ccccd
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f4ccccd
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov ecx, dword [edi + 0x5c]
cmp ecx, dword [edi + 0x60]
je 0x40fda2
mov dword [ecx], eax
add dword [edi + 0x5c], 4
jmp 0x40fdaf
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [edi + 0x58]
call fcn.00404630
push 0x1c
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0x3f8ccccd
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f4ccccd
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov ecx, dword [edi + 0x5c]
cmp ecx, dword [edi + 0x60]
je 0x40fdfc
mov dword [ecx], eax
add dword [edi + 0x5c], 4
jmp 0x40fe09
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [edi + 0x58]
call fcn.00404630
mov ecx, dword [edi + 0x54]
xor edx, edx
mov esi, 0x45d
mov eax, dword [ecx + 0x11b0]
div esi
mov esi, 0x1388
mov eax, dword [ecx + edx*4 + 0x3c]
cdq
idiv esi
mov eax, 0x3a98
sub eax, edx
mov dword [edi + 0x64], eax
mov eax, edi
inc dword [ecx + 0x11b0]
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0x1e
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 0x40fe60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d75d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422a54]
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]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x20], 0x3f800000
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x24], 0x3f800000
mov dword [edi + 0x30], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0x3f800000
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x3f800000
mov dword [edi + 0x54], eax
mov byte [edi + 4], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [edi], vtable.CNuke.0
mov dword [edi + 0x8c], 0x3a98
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0x3e800000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3e4ccccd
mov dword [eax + 0x10], 0x41200000
mov dword [eax + 0x14], 0x41200000
mov dword [eax + 0x18], 0
mov ecx, dword [edi + 0x5c]
cmp ecx, dword [edi + 0x60]
je 0x40ff92
mov dword [ecx], eax
add dword [edi + 0x5c], 4
jmp 0x40ff9f
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [edi + 0x58]
call fcn.00404630
push 0x1c
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0xbe19999a
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3e800000
mov dword [eax + 0x10], 0x41200000
mov dword [eax + 0x14], 0x41200000
mov dword [eax + 0x18], 0
mov ecx, dword [edi + 0x5c]
cmp ecx, dword [edi + 0x60]
je 0x40ffec
mov dword [ecx], eax
add dword [edi + 0x5c], 4
jmp 0x40fff9
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [edi + 0x58]
call fcn.00404630
mov dword [edi + 0x64], 0x3e99999a
xor edx, edx
mov dword [edi + 0x6c], 0x3f800000
mov ecx, 0x45d
mov esi, dword [edi + 0x54]
mov eax, dword [esi + 0x11b0]
div ecx
mov eax, 0x80010003
mov ecx, dword [esi + edx*4 + 0x3c]
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x70], xmm0
inc dword [esi + 0x11b0]
xor eax, eax
mov dword [edi + 0x74], 0
mov word [edi + 0x68], ax
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x10]
mov dword [edi + 0x88], eax
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 0x410080
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d75d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422a54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x20], 0x3f800000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0x3f800000
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0x3f800000
mov dword [esi + 0x34], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x3f800000
mov dword [esi + 0x54], eax
mov byte [esi + 4], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [esi], vtable.CPlanet.0
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f800000
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
je 0x4101a8
mov dword [ecx], eax
add dword [esi + 0x5c], 4
jmp 0x4101b5
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x58]
call fcn.00404630
mov eax, esi
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 0x4102b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d75d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422a54]
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]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x20], 0x3f800000
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x24], 0x3f800000
mov dword [edi + 0x30], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0x3f800000
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x3f800000
mov dword [edi + 0x54], eax
mov byte [edi + 4], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [edi], vtable.CShip.0
mov byte [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f800000
mov dword [eax + 0x10], 0xc1200000
mov dword [eax + 0x14], 0xc1200000
mov dword [eax + 0x18], 0xc1200000
mov ecx, dword [edi + 0x5c]
cmp ecx, dword [edi + 0x60]
je 0x4103f3
mov dword [ecx], eax
add dword [edi + 0x5c], 4
jmp 0x410400
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [edi + 0x58]
call fcn.00404630
xor eax, eax
xor edx, edx
mov word [edi + 0x68], ax
mov ecx, 0x45d
mov dword [edi + 0x6c], 0x3f800000
mov esi, dword [edi + 0x54]
mov eax, dword [esi + 0x11b0]
div ecx
mov eax, 0x80010003
mov ecx, dword [esi + edx*4 + 0x3c]
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
mov eax, edi
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x70], xmm0
inc dword [esi + 0x11b0]
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0xf
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 0x410480
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d75d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x422a54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x20], 0x3f800000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0x3f800000
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0x3f800000
mov dword [esi + 0x34], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x3f800000
mov dword [esi + 0x54], eax
mov byte [esi + 4], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [esi], vtable.CTheFlag.0
mov dword [esi + 0x64], 0
mov word [esi + 0x68], 1
call fcn.0041c3b9
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax], 0x3f800000
mov dword [eax + 0x10], 0xc1200000
mov dword [eax + 0x14], 0xc1200000
mov dword [eax + 0x18], 0xc1200000
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
je 0x4105b5
mov dword [ecx], eax
add dword [esi + 0x5c], 4
jmp 0x4105c2
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x58]
call fcn.00404630
mov eax, esi
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 0x41aad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x422a54]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41ab92
cmp byte [esi + 0x3d], 0
je 0x41ab92
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41ab7f
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x41ab43
sub eax, 1
je 0x41ab47
sub eax, 2
jne 0x41ab7f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x41ab67
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 0x41ab7f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.0041c3e9
add esp, 0x28
ret
Function at 0x41ad20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x422a54]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41ad50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x41ad81
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x41ad81
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x41ae8d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41adaa
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 0x41addf
push dword [esi + 0x4c]
movsx eax, bl
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
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
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 0x41ae47
sub eax, 1
je 0x41ae47
sub eax, 2
jne 0x41ae8d
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.0041a240
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x41ae67
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 0x41ae8d
lea ecx, [esp + 0xc]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x14], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041c3e9
add esp, 0x30
ret 4
Function at 0x41b590
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x41b5b1
jl 0x41b5a7
test esi, esi
jne 0x41b5b1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41b5c9
push eax
push esi
push dword [esp + 0x18]
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
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edx, dword [eax]
mov edi, esi
test edx, edx
je 0x41b612
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x41b619
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x41b619
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x41b686
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41b643
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x41b674
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x41b686
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x41b650
test edi, edi
je 0x41b686
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x41b6a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41b6c5
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
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 ebx
add esp, 0x14
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x41b6f2
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x41b6f8
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41b760
jg 0x41b70f
test esi, esi
je 0x41b760
test ecx, ecx
jl 0x41b75a
jg 0x41b719
test eax, eax
je 0x41b75a
cmp edi, ecx
jg 0x41b72d
jl 0x41b723
cmp esi, eax
jae 0x41b72d
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41b764
mov ebp, dword [esp + 0x28]
jmp 0x41b76e
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x41b788
jg 0x41b76e
test esi, esi
je 0x41b788
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41b788
push eax
push esi
push 1
push ebp
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 + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x41cdbc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cdfb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cdfb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cdfb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cdfb
cmp dword [ecx + 0x74], 0xe
jbe 0x41cdfb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e4b50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x56761b
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.0055bfce
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4e4bd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00559d10
mov eax, dword [eax]
push 0x73ed24
push eax
call fcn.0054ba24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0055c259
test bl, bl
je 0x4e4bd2
push 0x73ed24
lea ecx, [esp + 0xc]
call fcn.0055c5e9
push 0x73ed30
lea ecx, [esp + 0xc]
call fcn.0055c5e9
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 0x4e4c0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0055c259
jmp 0x4e4cd9
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 0x4e4c92
lea edx, [esp + 0x7c]
push 0x73ed2c
push edx
call fcn.0054ba24
add esp, 8
test eax, eax
je 0x4e4c92
lea eax, [esp + 0x7c]
push 0x73ed28
push eax
call fcn.0054ba24
add esp, 8
test eax, eax
je 0x4e4c92
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 0x4e4c22
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.0055c259
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 0x4e54f0
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 0x4e5552
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