joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47eb89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x3c]
lea ebx, [esi + 4]
cmp eax, dword [esp + 0x40]
je 0x43a23c
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x48]
je 0x43a23c
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x64]
add esp, 8
test al, al
mov eax, dword [ecx + 4]
je 0x43a1f3
mov edx, dword [esp + 0x44]
cmp eax, dword [ecx + 8]
jae 0x43a1c9
mov edx, dword [edx + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x5c]
add dword [eax + 4], ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
jmp 0x43a232
cmp eax, esi
je 0x43a1d6
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
add dword [ecx + 4], ebx
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
jmp 0x43a232
mov edx, dword [esp + 0x3c]
cmp eax, dword [ecx + 8]
jae 0x43a20a
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov eax, dword [esp + 0x5c]
add dword [eax + 4], ebx
jmp 0x43a224
cmp eax, esi
je 0x43a217
mov edx, dword [edx + 8]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
add dword [ecx + 4], ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x40]
jne 0x43a182
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], esp
mov dword [eax + 0x10], ecx
mov byte [esp + 0x44], 2
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x50], 1
call fcn.00439710
add esp, 0x20
mov byte [esp + 0x30], 3
mov edx, dword [eax + 0x10]
mov dword [esp + 0x5c], edx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x43a29a
push eax
call fcn.00459fc8
add esp, 4
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], esp
mov dword [eax + 0x10], ecx
mov byte [esp + 0x44], bl
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
push eax
push ebp
mov byte [esp + 0x50], 1
call fcn.00439710
add esp, 0x20
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x43a2ef
push eax
call fcn.00459fc8
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret
Function at 0x43cc10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4aa900], eax
mov edx, 1
mov eax, 0x4aa900
push esi
mov ecx, dword [eax]
mov esi, ecx
shr esi, 0x1e
xor esi, ecx
imul esi, esi, 0x6c078965
add esi, edx
mov dword [eax + 4], esi
add eax, 4
inc edx
cmp eax, 0x4ab2bc
jl 0x43cc20
mov dword [0x4aa8fc], 0x270
pop esi
ret

Function at 0x44ba10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0x20
cmp byte [edi + 0x10], 0
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, eax
je 0x44ba35
fld qword [edi + 0x18]
mov byte [edi + 0x10], 0
fmul qword [ebx + 8]
fadd qword [ebx]
pop esi
pop ebx
add esp, 0x20
ret 4
fld qword [0x48a398]
fsub qword [0x48a3b0]
fadd qword [0x48a380]
fstp qword [esp + 8]
jmp 0x44ba52
fstp st(0)
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44ba64
mov eax, esi
call fcn.0044c7b0
jmp 0x44ba70
cmp eax, 0x4e0
jb 0x44ba70
call fcn.0044c6e0
mov ecx, dword [esi]
mov eax, dword [esi + ecx*4 + 4]
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov edx, eax
and edx, 0xffffdf8c
shl edx, 0xf
xor eax, edx
mov edx, eax
shr edx, 0x12
xor edx, eax
inc ecx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esi], ecx
test edx, edx
jge 0x44bab3
fadd qword [0x48a3a0]
fdiv qword [esp + 8]
fadd st(0), st(0)
fsub qword [0x48a380]
fstp qword [esp + 0x10]
cmp ecx, 0x270
jne 0x44bad4
mov eax, esi
call fcn.0044c7b0
jmp 0x44bae1
cmp ecx, 0x4e0
jb 0x44bae1
call fcn.0044c6e0
mov ecx, dword [esi]
mov eax, dword [esi + ecx*4 + 4]
inc ecx
mov dword [esi], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
test edx, edx
jge 0x44bb24
fadd qword [0x48a3a0]
fdiv qword [esp + 8]
fadd st(0), st(0)
fld1
fsub st(1), st(0)
fxch st(1)
fst qword [esp + 0x20]
fmul st(0), st(0)
fld qword [esp + 0x10]
fmul st(0), st(0)
faddp st(1)
fst qword [esp + 0x18]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x44ba50
call fcn.00478e10
fmul qword [0x48a3a8]
fdiv qword [esp + 0x18]
call fcn.00478d10
fld qword [esp + 0x20]
fmul st(1)
mov byte [edi + 0x10], 1
pop esi
fstp qword [edi + 0x18]
fmul qword [esp + 0xc]
fmul qword [ebx + 8]
fadd qword [ebx]
pop ebx
add esp, 0x20
ret 4
Function at 0x44c6e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push edi
lea ecx, [esi + 0x9c4]
mov edi, 0xe3
lea ecx, [ecx]
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x634]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
sub edi, 1
jne 0x44c6f0
lea ecx, [esi + 0xd50]
mov edi, 0x18c
mov ebp, 0x26f
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx - 0xd4c]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
sub edi, 1
jne 0x44c736
mov eax, dword [esi + ebp*4 + 0x9c4]
xor eax, dword [esi + 4]
and eax, 0x7fffffff
xor eax, dword [esi + ebp*4 + 0x9c4]
mov ecx, eax
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [esi + 0x634]
shr eax, 1
xor edx, eax
mov dword [esi + ebp*4 + 4], edx
mov dword [esi], edi
pop edi
pop ebp
ret

Function at 0x44c7b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push esi
push edi
add eax, 0x638
mov ebp, 0x68
lea ecx, [ecx]
mov esi, dword [eax - 0x630]
mov ecx, dword [eax - 0x634]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, dword [eax - 0x634]
mov edi, dword [eax - 0x62c]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
shr ecx, 1
xor edx, ecx
xor edx, dword [eax]
mov ecx, edi
mov dword [eax + 0x38c], edx
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
mov esi, dword [eax - 0x628]
and edx, 0x9908b0df
xor edx, dword [eax + 4]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x390], edx
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov edi, dword [eax - 0x624]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 8]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x394], edx
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov esi, dword [eax - 0x620]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0xc]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x398], edx
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0x10]
shr ecx, 1
xor edx, ecx
mov ecx, dword [eax - 0x61c]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov dword [eax + 0x39c], edx
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0x14]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x3a0], edx
add eax, 0x18
sub ebp, 1
jne 0x44c7c0
pop edi
pop esi
pop ebp
ret
Function at 0x44e360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x480298
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 8], ecx
mov edx, 1
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], 0x280
mov dword [eax + 0x20], 0x1e0
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x34], dl
mov dword [eax + 0x38], ecx
mov dword [esp + 8], 0xffffffff
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x456780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fc68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push edi
mov dword [esp + 0x14], 0
mov edi, dword [esi + 8]
mov ebp, dword [esi + 4]
mov ecx, edi
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4567cc
push edi
push ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00457350
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x34], 0x10
jb 0x4567e8
mov edx, dword [esp + 0x20]
push edx
call fcn.00459fc8
add esp, 4
mov ecx, dword [esp + 0xc]
pop edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword fs:[0], ecx
pop ebp
add esp, 0x10
ret 0x1c

Function at 0x458320
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47e568
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
mov dword [eax], vtable.cr::CBatchBase.0
mov dword [eax + 4], esi
mov dword [eax + 8], 8
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x1c]
mov dword [eax], vtable.cr::CBatch_DrawText.0
mov dword [eax + 0xc], esi
mov esi, dword [edx]
mov dword [eax + 0x10], esi
mov esi, dword [edx + 4]
mov dword [eax + 0x14], esi
mov esi, dword [edx + 8]
mov dword [eax + 0x18], esi
mov edx, dword [edx + 0xc]
mov dword [eax + 0x1c], edx
fld dword [ecx]
fstp dword [eax + 0x20]
fld dword [ecx + 4]
fstp dword [eax + 0x24]
fld dword [ecx + 8]
fstp dword [eax + 0x28]
fld dword [ecx + 0xc]
mov ecx, dword [esp + 0x20]
fstp dword [eax + 0x2c]
mov dword [eax + 0x30], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10

Function at 0x46663c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5c74]
jne 0x466646
repz ret
jmp fcn.00472d16
Function at 0x476953
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046a57f
and dword [ebp - 4], 0
cmp dword [0x4aa884], 0
mov ebx, eax
jne 0x476a04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x476ab5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4879ac
push edi
call esi
test eax, eax
je 0x476ab5
push eax
call fcn.0046a50d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4aa884], eax
call esi
push eax
call fcn.0046a50d
mov dword [esp], 0x487988
push edi
mov dword [0x4aa888], eax
call esi
push eax
call fcn.0046a50d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4aa88c], eax
call esi
push eax
call fcn.0046a50d
pop ecx
mov dword [0x4aa894], eax
test eax, eax
je 0x476a04
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046a50d
pop ecx
mov dword [0x4aa890], eax
mov eax, dword [0x4aa890]
cmp eax, ebx
je 0x476a5c
cmp dword [0x4aa894], ebx
je 0x476a5c
push eax
call fcn.0046a588
push dword [0x4aa894]
mov esi, eax
call fcn.0046a588
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x476a5c
test edi, edi
je 0x476a5c
call esi
test eax, eax
je 0x476a53
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x476a53
test byte [ebp - 0xc], 1
jne 0x476a5c
or dword [ebp + 0x10], 0x200000
jmp 0x476a95
mov eax, dword [0x4aa888]
cmp eax, ebx
je 0x476a95
push eax
call fcn.0046a588
pop ecx
test eax, eax
je 0x476a95
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x476a95
mov eax, dword [0x4aa88c]
cmp eax, ebx
je 0x476a95
push eax
call fcn.0046a588
pop ecx
test eax, eax
je 0x476a95
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4aa884]
call fcn.0046a588
pop ecx
test eax, eax
je 0x476ab5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x476ab7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056f5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push edi
push 0x18
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x405769
push 0x3e
pop ecx
call fcn.00406a3f
mov ebx, eax
test ebx, ebx
jne 0x405734
mov eax, 0xc000009a
jmp 0x405769
mov esi, edi
cmp dword [ebp - 0x1c], esi
jbe 0x405760
push esi
push 0x401160
push 0x1f
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
mov ecx, ebx
call fcn.00405398
test eax, eax
jns 0x40575a
mov edi, eax
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x40573b
mov ecx, ebx
call fcn.00406a57
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3a0
mov esp, ebp
pop ebp
ret

Function at 0x40577f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40118c
lea eax, [ebp - 0xc]
push 3
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x41
pop eax
mov word [ebp - 0xc], ax
push 0x106
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4057ec
mov ecx, dword [ebp - 0xc]
call fcn.0040779a
cmp eax, 0xffffffff
je 0x40580c
lea ecx, [ebp - 0x220]
xor edx, edx
push ecx
push 0
mov ecx, eax
call fcn.0040547f
test eax, eax
js 0x4057fe
mov ax, word [ebp - 0xc]
inc ax
mov word [ebp - 0xc], ax
cmp ax, 0x5a
jbe 0x4057af
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3a0
mov esp, ebp
pop ebp
ret
mov eax, 0xc00000ef
jmp 0x4057fe
Function at 0x405a9c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
push 0x1083
call fcn.00406b94
mov ebx, 0x101d
push ebx
call fcn.00406b94
add esp, 0xc
mov ecx, esi
call fcn.004059cc
mov edi, eax
test edi, edi
jns 0x405af7
push 0x1082
call fcn.00406b94
pop ecx
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.00406be0
push ebx
call fcn.00406b94
mov eax, edi
jmp 0x405c94
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x405b0f
push 0x1084
call fcn.00406b94
xor eax, eax
jmp 0x405c94
push dword [esi + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x2a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push 7
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], edi
push eax
push 0xc0100080
lea eax, [ebp - 4]
mov dword [ebp - 0x30], 0x40
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jns 0x405b7d
push 0x1086
call fcn.00406b94
pop ecx
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.00406be0
mov eax, ebx
jmp 0x405c95
mov ebx, dword [esi + 0x10]
mov eax, 0x200
cmp ebx, eax
jb 0x405b91
test ebx, 0x1ff
je 0x405b93
mov ebx, eax
lea ecx, [ebx + ebx]
call fcn.00406a3f
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x405bb9
push 0x1085
call fcn.00406b94
pop ecx
mov esi, 0xc000009a
jmp 0x405c77
push edi
push ebx
push edi
push esi
call fcn.0040a9c0
mov edi, esi
test eax, eax
je 0x405bd1
sub edi, eax
add edi, ebx
mov dword [ebp - 0xc], edi
jmp 0x405bd4
mov dword [ebp - 0xc], esi
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405bee
push 0x1087
jmp 0x405c5f
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c5a
cmp dword [ebp - 8], ebx
jne 0x405c5a
mov esi, dword [0x411f00]
push 0x6e
pop ecx
mov esi, dword [esi + 0xc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405be7
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405c53
cmp dword [ebp - 8], ebx
jne 0x405c53
push 0x108a
call fcn.00406b94
mov esi, dword [ebp - 0x10]
pop ecx
jmp 0x405c77
push 0x1089
jmp 0x405c5f
push 0x1088
call fcn.00406b94
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00406be0
mov esi, 0xc0000001
mov ecx, dword [ebp - 0x14]
call fcn.00406a57
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x101d
call fcn.00406b94
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b01
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, 0xc0000001
jne 0x406b49
mov ebx, 0x411700
cmp word [0x411700], di
jne 0x406b42
push edi
push 0x400
push ebx
push edi
push 0x1001
push dword [0x4116e0]
push 0xa00
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x406b51
mov ecx, ebx
call fcn.0040752c
cmp esi, 0xc000009a
jne 0x406b8b
mov esi, 0x410ee0
cmp word [0x410ee0], di
jne 0x406b81
push edi
push 0x400
push esi
push edi
push 0x1002
push dword [0x4116e0]
push 0xa00
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x406b8b
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.0040752c
pop edi
pop esi
pop ebx
ret

Function at 0x4073d8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x83c]
push ecx
push eax
mov ebx, edx
mov dword [ebp - 0x81c], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x834], 0x18
mov dword [ebp - 0x82c], eax
xor esi, esi
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], esi
push eax
push 1
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0x40
push eax
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x820], esi
call dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
js 0x4074f4
lea eax, [ebp - 0x818]
mov dword [ebp - 0x814], esi
push eax
lea eax, [ebp - 0x814]
push eax
push esi
push esi
jmp 0x4074c4
test esi, esi
js 0x407517
cmp word [ebp - 0x80c], 0
je 0x4074b2
lea esi, [ebp - 0x808]
push edi
push dword [esi + 8]
mov ecx, ebx
push dword [esi]
call dword [0x4121b4]
call ebx
mov edi, eax
test edi, edi
js 0x407507
mov edi, dword [ebp - 0x81c]
add esi, 0x10
xor eax, eax
cmp word [esi - 4], ax
jne 0x40748b
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
xor eax, eax
push eax
push eax
push 0x800
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x810]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov esi, eax
cmp esi, 0x8000001a
jne 0x407473
push dword [ebp - 0x810]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3a0
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x810]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
jmp 0x4074f4
push dword [ebp - 0x810]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x4074f4
Function at 0x40752c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0xfffffffffffffff5
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
test ebx, ebx
je 0x4075f8
test edi, edi
je 0x4075f8
xor edx, edx
cmp word [edi], dx
je 0x4075f8
push esi
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x407563
sub esi, ecx
push ebx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x40759e
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x40759e
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x4075f7
lea eax, [esi + esi]
mov dword [ebp - 4], eax
add eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4075f7
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push esi
push 0xffffffffffffffff
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4075f0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4075d8
push 0
lea eax, [ebp - 8]
sub ecx, edx
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a43f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40aa70
call fcn.0040a90c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a49f
cmp eax, 0xffffffff
je 0x40a49f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40a498
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40a498
cmp edx, 0x10000000
jae 0x40a498
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40a495
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040a951
ret 4

Function at 0x40a510
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 0x40a54e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40a546
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40a550
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40a536
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a630
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40a646
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40a661
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret