joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4101cf
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.0040af34
and dword [ebp - 4], 0
cmp dword [0x419b2c], 0
mov ebx, eax
jne 0x410280
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410331
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410331
push eax
call fcn.0040aec2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419b2c], eax
call esi
push eax
call fcn.0040aec2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419b30], eax
call esi
push eax
call fcn.0040aec2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419b34], eax
call esi
push eax
call fcn.0040aec2
pop ecx
mov dword [0x419b3c], eax
test eax, eax
je 0x410280
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aec2
pop ecx
mov dword [0x419b38], eax
mov eax, dword [0x419b38]
cmp eax, ebx
je 0x4102d8
cmp dword [0x419b3c], ebx
je 0x4102d8
push eax
call fcn.0040af3d
push dword [0x419b3c]
mov esi, eax
call fcn.0040af3d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4102d8
test edi, edi
je 0x4102d8
call esi
test eax, eax
je 0x4102cf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4102cf
test byte [ebp - 0xc], 1
jne 0x4102d8
or dword [ebp + 0x10], 0x200000
jmp 0x410311
mov eax, dword [0x419b30]
cmp eax, ebx
je 0x410311
push eax
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410311
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410311
mov eax, dword [0x419b34]
cmp eax, ebx
je 0x410311
push eax
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410311
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419b2c]
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410331
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410333
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
mov ecx, 0x14c01685
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
mov ecx, 0x2bd76841
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402d70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4aa008], 0x8088405
inc edx
mov dword [ebx + 0x4aa008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4219ec
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4219f2
ret

Function at 0x42e964
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42eb15
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004047e8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42eb2c
call fcn.00404444
mov eax, ebx
call fcn.0041f8b0
mov edi, eax
dec edi
test edi, edi
jl 0x42ea1c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041f884
mov edx, dword [0x43fd9c]
call fcn.004034f0
test al, al
je 0x42ea18
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041f884
lea edx, [ebp - 0x14]
call fcn.0044a660
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004047e8
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044b8
inc esi
dec edi
jne 0x42e9ca
mov al, byte [0x42eb30]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42eb3c
mov eax, dword [ebp - 0xc]
call fcn.0040d674
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004041d0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0044a660
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42eb2c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0044a660
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42eb2c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42eb2c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42eb48
call fcn.004096c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42eb1c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040415c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040415c
lea eax, [ebp - 0x14]
call fcn.00404138
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040415c
ret
Function at 0x4762fc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47632a
mov eax, ebx
call fcn.00476db0
cmp dword [ebx + 0x40], 0
je 0x476323
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47639b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47638d
cmp dword [ebx + 8], 0
je 0x47634c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47635e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47638d
cmp dword [ebx + 8], 0
je 0x47633f
cmp eax, 3
je 0x476371
dec eax
jne 0x47633f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47633f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47633f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4763b9
cmp dword [ebx + 0x14], 0xcc
je 0x4763b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004763c4
pop ebx
ret
Function at 0x48f04c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x48f054
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48f246
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48f25c
mov eax, esi
call fcn.0048cddc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040418c
lea ecx, [ebp - 0x10]
mov edx, 0x48f270
mov eax, esi
call fcn.0048cddc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040418c
lea ecx, [ebp - 0x14]
mov edx, 0x48f288
mov eax, esi
call fcn.0048cddc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040418c
lea ecx, [ebp - 0x18]
mov edx, 0x48f2a4
mov eax, esi
call fcn.0048cddc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040418c
lea ecx, [ebp - 0x1c]
mov edx, 0x48f2c0
mov eax, esi
call fcn.0048cddc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040418c
lea ecx, [ebp - 0x24]
mov edx, 0x48f2d8
mov eax, esi
call fcn.0048cddc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408554
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408934
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x48f2f0
mov eax, esi
call fcn.0048cddc
mov eax, dword [ebp - 0x28]
call fcn.0048beec
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x48f300
mov eax, esi
call fcn.0048cddc
mov eax, dword [ebp - 0x2c]
call fcn.0048beec
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x48f318
mov eax, esi
call fcn.0048cddc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408934
inc eax
je 0x48f1e9
lea ecx, [ebp - 0x34]
mov edx, 0x48f318
mov eax, esi
call fcn.0048cddc
mov eax, dword [ebp - 0x34]
call fcn.004088f8
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409fd4
fstp qword [ebp - 0x3c]
wait
call fcn.0040a338
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48f204
lea ecx, [ebp - 0x40]
mov edx, 0x48f318
mov eax, esi
call fcn.0048cddc
mov eax, dword [ebp - 0x40]
call fcn.0048beec
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x48f328
mov eax, esi
call fcn.0048cddc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040418c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f24d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040415c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040415c
ret
Function at 0x49b518
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49b572
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0049b508
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048ab58
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048a758
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b579
lea eax, [ebp - 4]
call fcn.00404138
ret

Function at 0x4a75e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045e8
xor eax, eax
push ebp
push 0x4a7686
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404138
mov eax, dword [ebp - 4]
call fcn.004043f8
mov edi, eax
test edi, edi
jle 0x4a7668
mov esi, 1
mov eax, esi
dec eax
mov ecx, 0xd
cdq
idiv ecx
mov bl, byte [edx + 0x4ac730]
mov eax, dword [ebp - 4]
xor bl, byte [eax + esi - 1]
lea ecx, [ebp - 0xc]
xor eax, eax
mov al, bl
mov edx, 2
call fcn.004088d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00404400
mov eax, dword [ebp - 8]
inc esi
dec edi
jne 0x4a762d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a768d
lea eax, [ebp - 0xc]
call fcn.00404138
lea eax, [ebp - 4]
call fcn.00404138
ret
Function at 0x4c4c50
Capabilities:
Encode data using xor

Disassembly:
pop eax
scasb al, byte es:[edi]
out 0xc9, al
iretd
std
stc
enter 0x2c4b, 4
fild word [0x7eeeb5]
jg 0x4be175
add ebp, dword [edx + 0x4b]
ljmp 0x680d
jp 0x4be199
stc
out dx, eax
cmp al, 0x81
scasb al, byte es:[edi]
fimul word [esi + 0xaa3ca07]
ret
jmp 0x4be1bb
or dword [esi], esp
pop es
ret 0xef54
test eax, 0xff0646df
jb 0x4be1ff
popal
push eax
jecxz 0x4be2cb
push esp
sal byte [eax + 0x6e2ef925], 0xe7
insd dword es:[edi], dx
mov bh, 0x20
movsd dword es:[edi], dword [esi]
pop edx
mov edx, 0x8b9bb851
cmc
wait
mov esi, ebp
jle 0x4be1f1
jg 0x4be2af
notrack jmp 0x7fce9f78
lea eax, sym.imp.kernel32.dll_LocalAlloc
push ebx
mov dword [esp + 0x20], 0x4bf4a3
pushal
call fcn.004be5c1
lodsd eax, dword [esi]
out dx, eax
jg 0x4be248
fcmovb st(0), st(3)
push esp
test dh, ch
imul edx, edi, 0x3b7af665
inc esp
push edi
adc dword [ebx + edx*8 - 0x32c9af4d], edx
retf 0x43f1
jle 0x4be263
out dx, eax
xchg ebx, eax
inc ecx
mov edi, 0x17361078
fsubr st(3), st(0)
sbb eax, 0x4de1b607
jns 0x4be2a4
wait
add eax, 0x10587310
add eax, 0x7d6b1972
sbb eax, 0xfb85c66e
js 0x4be2dc
imul edi, dword [ebp + 0x1d], 0x6e
mov byte [ebp + 0x560878fb], 0x28
cmp eax, 0x5a11a778
push esi
sub byte [0x5a11a778], bh
lcall 0x7ee6, 0x25a24216
xchg esi, eax
push ss
inc edx
mov byte [0x967ee625], al
in eax, 0x32
pop esp
mov ah, 0xc6
daa
dec esp
call 0xc99ba49d
dec edi
leave
sbb al, 0x7d
mov cl, 0x9f
xor eax, 0xb58e5c2e
pushfd
xor al, 0xd2
scasd eax, dword es:[edi]
inc ebx
mov ch, 0xec
wait
xchg ebx, eax
xor ch, byte [edi - 0x64]
call dword [ecx - 0x45fd7d27]
xchg esi, eax
sub dword [eax + 8], edi
mov byte [0xabaa1b0b], al
sbb cl, byte [ebp + 0x329ac1f9]
or edx, dword [ebp + esi + 0x23]
wait
mov esp, 0x9ce33091
cld
pop edi
push cs
add ebp, dword [edx]
jecxz 0x4be2ed
mov esi, 0x7b296aee
pop ecx
xchg esi, ecx
pop ebp
pop ecx
invalid
pushfd
xchg dword [esp], eax
sete ah
movzx ax, dl
bswap ax
mov ax, 0x2fa8
push 0
pushfd
movsx ax, al
lea eax, sym.imp.kernel32.dll_LocalAlloc
pushfd
pushal
push 0xcb5321bc
mov dword [esp + 0x28], 0x4d3a2e
pushfd
push ecx
call fcn.004bde66
dec ebx
xor ebp, edi
xor dh, byte [0xb5ef54c4]
mov edx, 0xc3cd7eb6
clc
pop eax
invalid
push 0xbaefcddc
push 0x85f992b2
mov dword [ebp - 4], eax
push dword [esp]
lea esp, [esp + 0x10]
jbe 0x4c0dbe
push eax
lea eax, [ebx - 0x56002778]
sete ah
movzx eax, al
push 0
pushal
lahf
lahf
jmp 0x4be27f
Function at 0x4051d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c080], 0x44
push eax
xor eax, eax
push 0x42c080
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405211
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40529b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call 0x4683fa
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052d1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec88], eax
jmp 0x405456
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052ec
test eax, eax
je 0x405401
test cl, 2
je 0x405401
mov esi, 0x42b080
push ebx
push esi
call fcn.00405969
cmp dword [ebp + 8], 0
je 0x40530b
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405311
push ebx
call fcn.004054a3
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053f7
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405487
cmp byte [eax], 0
je 0x405362
cmp byte [ebp - 0x18], 0
je 0x405362
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405378
mov al, byte [esi + 1]
test al, al
je 0x4053d6
cmp al, 0x2e
jne 0x405378
cmp byte [esi + 2], 0
je 0x4053d6
push esi
push edi
call fcn.00405969
test byte [ebp - 0x148], 0x10
je 0x40539d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053d6
push dword [ebp + 0xc]
push ebx
call fcn.0040529b
jmp 0x4053d6
push ebx
call fcn.00405621
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053ce
test byte [ebp + 0xc], 4
je 0x4053c6
push ebx
push 0xfffffffffffffff1
call fcn.00404d1d
push 0
push ebx
call fcn.004056b7
jmp 0x4053d6
inc dword [0x42ec88]
jmp 0x4053d6
push ebx
push 0xfffffffffffffff2
call fcn.00404d1d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405401
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405456
cmp dword [ebp - 8], esi
jne 0x405416
inc dword [0x42ec88]
jmp 0x405456
push ebx
call fcn.00405c11
test eax, eax
je 0x405456
push ebx
call fcn.0040545c
push ebx
call fcn.00405621
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40544e
test byte [ebp + 0xc], 4
je 0x40540e
push ebx
push 0xfffffffffffffff1
call fcn.00404d1d
push esi
push ebx
call fcn.004056b7
jmp 0x405456
push ebx
push 0xffffffffffffffe5
call fcn.00404d1d
pop esi
pop ebx
leave
ret 8
Function at 0x401ae0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401c90
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401bde
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401b81
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401bc4
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401b98
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401bb3
test al, 0x40
je 0x401baa
mov ecx, dword [edi + 0x20]
jmp 0x401bb1
test al, 0x80
je 0x401bc4
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401bc4
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401b50
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40cd10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x495e1b
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.0048839d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40cd92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00485980
mov eax, dword [eax]
push 0x4d8244
push eax
call fcn.00465834
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00488628
test bl, bl
je 0x40cd92
push 0x4d8244
lea ecx, [esp + 0xc]
call fcn.00488a04
push 0x4dbdbc
lea ecx, [esp + 0xc]
call fcn.00488a04
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 0x40cdce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00488628
jmp 0x40ce99
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 0x40ce52
lea edx, [esp + 0x7c]
push 0x4dbdb8
push edx
call fcn.00465834
add esp, 8
test eax, eax
je 0x40ce52
lea eax, [esp + 0x7c]
push 0x4dbdb4
push eax
call fcn.00465834
add esp, 8
test eax, eax
je 0x40ce52
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 0x40cde2
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.00488628
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 0x40e0f0
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 0x40e152
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40e160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x495f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e3180]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40e298
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e1c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488628
xor eax, eax
jmp 0x40e30f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004887b1
push esi
lea ecx, [esp + 0xc]
call fcn.00488a40
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4dbdf4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40e2ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040e0f0
test eax, eax
jne 0x40e2ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040e0f0
test eax, eax
jne 0x40e2ed
lea eax, [esp + 0x14]
push 0x4dbdd0
push eax
call fcn.00466920
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e2cc
lea ecx, [esp + 0x14]
push 0x4dbdcc
push ecx
call fcn.004668a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e2cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e2cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00488761
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e1de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488628
xor eax, eax
jmp 0x40e30f
mov byte [esi], 0
push 0x4dbdc8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00488628
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4