joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, ebx
push edi
mov dword [ebp - 4], ecx
mov edi, ebx
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
jmp 0x43c3d4
cmp eax, 3
jb 0x43c241
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x43c27e
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x43c27e
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x43c268
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.0043bebf
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x43c35e
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.0043b7df
pop ecx
mov ecx, dword [esi + 0x6af90]
sub ecx, edi
mov dword [ebp - 8], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x43c328
cmp ecx, 3
jb 0x43c328
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x43c2c0
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
jmp 0x43c359
mov edx, dword [esi + 0x6af84]
add edx, edi
mov edi, ebx
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 8]
jmp 0x43c383
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.0043b7df
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
pop ecx
test eax, eax
je 0x43c3b7
mov eax, dword [esi + 0x6af74]
sub edx, eax
test eax, eax
js 0x43c39c
add eax, 0x1af70
add eax, esi
jmp 0x43c39e
mov eax, ebx
push ebx
push edx
mov edx, eax
mov ecx, esi
call fcn.0043b5ea
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x43c3d1
mov ecx, esi
call fcn.0043c079
mov eax, dword [esi + 0x6af90]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x43c1ea
mov eax, dword [esi + 0x6af74]
mov ecx, dword [esi + 0x6af84]
sub ecx, eax
test eax, eax
js 0x43c3f6
lea ebx, [esi + 0x1af70]
add ebx, eax
push 1
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0043b5ea
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cff3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43cffe
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43d0ba
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
sub edi, 1
jne 0x43d013
pop edi
test esi, esi
je 0x43d0d6
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
inc edx
sub esi, 1
jne 0x43d0be
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43d0dd
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x47a0d0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47a0d0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x43d25a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [0x46b110]
test eax, eax
jne 0x43d282
mov eax, 0x200
jmp 0x43d43e
mov ebx, dword [ebp - 0x48]
mov edi, 0x41000000
mov esi, ebx
mov eax, ebx
and esi, 1
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [ebp - 8], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
and bl, 0x20
cmove ecx, eax
mov eax, dword [ebp - 8]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x43d2e8
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
mov ebx, dword [ebp - 4]
push 0
push ebx
call dword [0x46b140]
mov esi, eax
cmp esi, 0x28
jbe 0x43d397
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [0x46b174]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call dword [0x46b180]
push 0
push 0
push 0x24
push ebx
call dword [0x46b174]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call dword [0x46b180]
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x43d397
mov ecx, dword [ebp - 8]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x43d397
push 0
push 0
push ecx
push ebx
call dword [0x46b174]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [0x46b180]
mov eax, dword [ebp - 0x10]
cmp eax, 0x5a4d
je 0x43d391
cmp eax, 0x454e
je 0x43d391
cmp eax, 0x454c
je 0x43d391
cmp eax, 0x4550
jne 0x43d397
or edi, 0x400000
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43d3a0
mov dword [eax], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x43d3a9
mov dword [eax], esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43d413
mov ecx, dword [ebp - 0x3c]
mov ebx, 0x19db1de
mov eax, dword [ebp - 0x38]
sub ecx, 0xd53e8000
push 0
mov edi, 0x989680
sbb eax, ebx
push edi
push eax
push ecx
call fcn.00467830
mov ecx, dword [ebp - 0x34]
mov dword [esi], eax
sub ecx, 0xd53e8000
mov eax, dword [ebp - 0x30]
push 0
push edi
sbb eax, ebx
mov dword [esi + 4], edx
push eax
push ecx
call fcn.00467830
mov ecx, dword [ebp - 0x44]
mov dword [esi + 8], eax
sub ecx, 0xd53e8000
mov eax, dword [ebp - 0x40]
push 0
push edi
sbb eax, ebx
mov dword [esi + 0xc], edx
push eax
push ecx
call fcn.00467830
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x43d43c
push dword [ebp - 0x30]
lea edx, [ebp - 8]
push dword [ebp - 0x34]
lea ecx, [ebp - 4]
call fcn.0043d1fd
movzx eax, word [ebp - 8]
pop ecx
pop ecx
movzx ecx, word [ebp - 4]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458ae2
Capabilities:
Read file on windows

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

Function at 0x10ce5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10ce51a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10ce507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ce506a
add dl, dl
jne 0x10ce5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ce50dc
xor eax, eax
add dl, dl
jne 0x10ce5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ce517d
add dl, dl
jne 0x10ce50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ce50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ce50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ce50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10ce50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10ce5075
mov eax, 1
add dl, dl
jne 0x10ce50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ce50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ce50e1
sub eax, ebx
mov ebx, 1
jne 0x10ce5128
mov ecx, 1
add dl, dl
jne 0x10ce510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ce5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ce5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ce5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10ce513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ce514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ce5136
cmp eax, 0x7d00
jae 0x10ce516d
cmp eax, 0x500
jb 0x10ce5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ce5075
cmp eax, 0x7f
ja 0x10ce5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ce5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10ce519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10ce5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x75e6360d
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x749c41ab
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e56a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4294c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00409bdd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401216
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a057
push 0x4276dc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0040bfbb
push edi
push esi
call fcn.00409896
add esp, 8
mov eax, esi
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.0040a011
mov esp, ebp
pop ebp
ret 4

Function at 0x402410
Capabilities:
Create process on windows
Create thread
Get token membership
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4294c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x110], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x110]
mov word [ebp - 0x10c], 0x500
push eax
mov dword [ebp - 0x118], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402547
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push dword [ebp - 0x118]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x402547
cmp dword [ebp - 0x114], 0
jne 0x402528
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402579
push 0x38
lea eax, [ebp - 0x150]
mov dword [ebp - 0x154], 0x3c
push 0
push eax
call fcn.0040ddc0
add esp, 0xc
mov dword [ebp - 0x148], str.runas
lea eax, [ebp - 0x108]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x138], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402579
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x402579
jmp 0x402564
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x402539
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a011
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push 0x42777c
push eax
call fcn.0040bfbb
push 0
push 0
push 0
push fcn.00402410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
call fcn.0040b00e
int3
Function at 0x402590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e6d4
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4294c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x22c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call esi
test eax, eax
jne 0x402787
lea eax, [ebp - 0x224]
push eax
push 0x20019
push 0
push 0x425904
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x40277b
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
push 0x425910
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x40277b
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0x100
push eax
push 0
push 2
push 0x425918
push 0
push dword [ebp - 0x224]
call esi
test eax, eax
je 0x40268d
push dword [ebp - 0x224]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x220]
call esi
push dword [ebp - 0x21c]
call esi
jmp 0x402787
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push 0x425918
push 0
push dword [ebp - 0x220]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x224]
test eax, eax
jne 0x402676
call esi
push dword [ebp - 0x220]
call esi
push dword [ebp - 0x21c]
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004069a0
mov dword [ebp - 4], 0
mov ebx, 1
mov edx, 0x425924
mov dword [ebp - 0x22c], ebx
mov ecx, eax
call fcn.004086d0
test al, al
jne 0x402745
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x244]
call fcn.004069a0
mov dword [ebp - 4], ebx
mov edx, 0x425944
mov ebx, 3
mov ecx, eax
mov dword [ebp - 0x22c], ebx
call fcn.004086d0
mov byte [ebp - 0x225], 0
test al, al
je 0x40274c
mov byte [ebp - 0x225], 1
test bl, 2
je 0x40275f
lea ecx, [ebp - 0x244]
and ebx, 0xfffffffd
call fcn.00406af0
test bl, 1
je 0x40276f
lea ecx, [ebp - 0x25c]
call fcn.00406af0
cmp byte [ebp - 0x225], 0
sete al
jmp 0x402789
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a011
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e773
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4294c0]
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 esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x402aaa
mov eax, dword [esi]
jmp 0x402aac
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402c66
test al, 0x10
je 0x402c6a
push 0x4259ac
mov edx, esi
lea ecx, [ebp - 0x198]
call fcn.00408930
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x402ae1
mov eax, dword [eax]
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x184], 0x10
mov edi, eax
jb 0x402b08
push dword [ebp - 0x198]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x184], 0xf
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
cmp edi, 0xffffffff
je 0x402c66
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x4259b0
mov edx, esi
lea ecx, [ebp - 0x180]
call fcn.00408930
add esp, 4
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004087a0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x16c], 0x10
jb 0x402b7d
push dword [ebp - 0x180]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x16c], 0xf
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x170], 0
mov ecx, 0x4259b4
mov byte [ebp - 0x180], 0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402bc3
test dl, dl
je 0x402bbf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402bc3
add eax, 2
add ecx, 2
test dl, dl
jne 0x402ba3
xor eax, eax
jmp 0x402bc8
sbb eax, eax
or eax, 1
test eax, eax
je 0x402c0c
mov ecx, 0x4259b8
lea eax, [ebp - 0x13c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402bf7
test dl, dl
je 0x402bf3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402bf7
add eax, 2
add ecx, 2
test dl, dl
jne 0x402bd7
xor eax, eax
jmp 0x402bfc
sbb eax, eax
or eax, 1
test eax, eax
je 0x402c0c
lea ecx, [ebp - 0x28]
call fcn.00402a70
test al, al
je 0x402c4e
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x402c24
push dword [ebp - 0x28]
call fcn.0040a00c
add esp, 4
lea eax, [ebp - 0x168]
push eax
push edi
call ebx
test eax, eax
jne 0x402b32
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x402c45
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402c79
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 0x10
jb 0x402c66
push dword [ebp - 0x28]
call fcn.0040a00c
add esp, 4
xor al, al
jmp 0x402c7f
cmp dword [esi + 0x14], 0x10
jb 0x402c72
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
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.0040a011
mov esp, ebp
pop ebp
ret
Function at 0x402ca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4294c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x44
push 0
push eax
mov esi, ecx
call fcn.0040ddc0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x402cd2
mov esi, dword [esi]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402d22
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c]
call esi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a011
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0040a011
mov esp, ebp
pop ebp
ret
Function at 0x402d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e7e4
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4294c0]
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 esi, ecx
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402e14
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jne 0x402dbc
xor ecx, ecx
jmp 0x402dce
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402dc5
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00407b40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14c]
push 0x4259b0
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x11c], 1
call fcn.004087a0
add esp, 4
mov edi, eax
mov ebx, 3
jmp 0x402e4c
push 0
push 0x425808
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
call fcn.00407b40
lea edi, [ebp - 0x134]
mov ebx, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [edi + 0x14], 0x10
jae 0x402e76
mov eax, dword [edi + 0x10]
inc eax
je 0x402e80
push eax
push edi
push esi
call fcn.0040a1a0
add esp, 0xc
jmp 0x402e80
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
or ebx, 8
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
test bl, 4
je 0x402eda
and ebx, 0xfffffffb
cmp dword [ebp - 0x120], 0x10
jb 0x402ebf
push dword [ebp - 0x134]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
test bl, 2
je 0x402f14
and ebx, 0xfffffffd
cmp dword [ebp - 0x150], 0x10
jb 0x402ef9
push dword [ebp - 0x164]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x150], 0xf
mov dword [ebp - 0x154], 0
mov byte [ebp - 0x164], 0
test bl, 1
je 0x402f30
cmp dword [ebp - 0x138], 0x10
jb 0x402f30
push dword [ebp - 0x14c]
call fcn.0040a00c
add esp, 4
mov eax, esi
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.0040a011
mov esp, ebp
pop ebp
ret
Function at 0x404750
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4047a1
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x10]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404799
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x404784
mov esi, dword [esi]
inc eax
push eax
push esi
push edi
call fcn.0040b8e0
add esp, 0xc
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret