joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100137df
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.100b0a27
sub byte [eax], al
add byte [eax - 0x64846fe], al
sub esp, dword [ebx + 0x14]
xchg esp, eax
or esi, dword [ebp + 0xd508a03]
sbb eax, 0x6e64b0a0
dec ebx
jae 0x1001385c
dec edi
lds esi, [edx - 0x7b1f398d]
out dx, al
out dx, eax
ljmp 0xfdb3
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x10120740], 1
je 0x10013871
mov esi, 0x8000ffff
jmp 0x10013899
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [0x10120730]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100138be
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100b7e18
mov esi, eax
test esi, esi
jge 0x100138be
mov eax, dword [0x1011faf4]
cmp eax, 0x1011faf4
je 0x100138be
test byte [eax + 0x3c], 2
je 0x100138be
push esi
push 0x100034d8
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.100b7e18
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100b7e18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100b7e27
pop dword [ebp - 0x14]
mov eax, 0x100b7e27
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x5d07e
push 0
mov eax, 0xb926918e
add eax, 0x56d97f36
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x5bf8
xor edx, edx
add edx, eax
mov ebx, 0x868297f2
sub ebx, 0x766f1ff2
add ebx, dword [ebp - 0x14]
mov edi, 0x669bb9bb
add edi, 0xcbb1dbe4
sub dword [ebp - 0x10], 0xf1ff3025
mov esi, dword [ebx]
xor dword [ebp - 4], 0x9b62fe6f
sub esi, edi
xor dword [ebp - 0x10], 0xe3b4be98
mov dword [edx], esi
xor dword [ebp - 0x10], 0x728ac5ce
add edx, 0x2713b160
sub edx, 0x2713b15c
add ebx, 0xa8f3d9de
add ebx, 0x570c2626
loop 0x100b7e7d
add eax, 0x162b3
xor ebx, ebx
add ebx, eax
add eax, 0xf942bf8
add eax, 0xf06bd40d
mov ecx, 0x3f152815
add ecx, 0xd0ead7eb
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x402c90
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [edx + 0x40d238]
call eax
test eax, eax
je 0x402cd5
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
jmp 0x402d08
mov edx, dword [ebp + 0xc]
shl edx, 1
cmp dword [ebp + 0xc], edx
jne 0x402d08
mov ecx, 8
mov esi, str.Poverty_is_the_parent_of_crime.
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402d20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xffffffff
cmp dword [0x40d688], 0
jne 0x402db0
mov dword [ebp - 8], 0
jmp 0x402d4e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x402da6
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
jmp 0x402d6f
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x402d97
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x402d8d
mov edx, dword [ebp - 4]
shr edx, 1
xor edx, 0xedb88320
mov dword [ebp - 4], edx
jmp 0x402d95
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
jmp 0x402d66
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx*4 + 0x40d690], edx
jmp 0x402d45
mov dword [0x40d688], 1
mov dword [ebp - 0xc], 0
jmp 0x402dc2
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jae 0x402ded
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x40d690]
mov dword [ebp - 0x10], ecx
jmp 0x402db9
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x4036d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4036ec
mov dword [ebp - 4], 1
jmp 0x4036f3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
push edi
push str.LMR_002_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4047bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4047bb
push 0x1e01
push 0x40d180
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x4047bb
call fcn.004049d0
test eax, eax
je 0x404784
lea eax, [ebp - 0x154]
push eax
call fcn.00404120
add esp, 4
test eax, eax
jl 0x404784
sub esp, 0x11c
mov ecx, 0x47
lea esi, [ebp - 0x154]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404c90
add esp, 0x11c
test eax, eax
je 0x404784
push 0x64
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040b5d0
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xc], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0
je 0x404784
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x402830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x402380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0x4058f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x24]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040b670
add esp, 4
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00404350
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402e40
add esp, 4
push 0x40d180
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [0x40d198]
push ecx
call fcn.00402e40
add esp, 4
mov edx, dword [0x40d1a8]
push edx
call fcn.00402e40
add esp, 4
mov eax, dword [0x40d1a0]
push eax
call fcn.00402e40
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4047d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
pop ebp
ret
Function at 0x4047f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 2], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x40481e
mov eax, dword [ebp + 8]
push eax
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [edx + 0x40d1e8]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404859
cmp dword [ebp + 8], 0
jne 0x404834
call fcn.004047d0
mov dword [ebp - 8], eax
jmp 0x40484b
mov ecx, dword [ebp + 8]
push ecx
mov edx, 4
imul eax, edx, 6
mov ecx, dword [eax + 0x40d1e8]
call ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404859
mov al, byte [ebp - 2]
jmp 0x4049bd
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4049ba
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
jne 0x4049ba
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x16]
and eax, 0x2000
je 0x4049ba
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x78], 0
je 0x4049ba
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x7c], 0
je 0x4049ba
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 0
jmp 0x404920
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
jae 0x4049ba
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
mov eax, dword [ebp + 0xc]
cmp dword [eax + edx*4], 0
je 0x4049b5
movzx ecx, byte [ebp - 1]
cmp ecx, 0xff
jl 0x40495d
jmp 0x4049b5
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403190
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402d20
add esp, 8
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + ecx*4]
jne 0x4049aa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
movzx edx, byte [ebp - 1]
mov eax, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
mov cl, byte [ebp - 2]
add cl, 1
mov byte [ebp - 2], cl
jmp 0x4049b5
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
jmp 0x404942
jmp 0x404917
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret
Function at 0x406b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
shr eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
je 0x406be7
mov dword [ebp - 0xc], 0
jmp 0x406b89
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x406be5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2]
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
and ecx, 0x8000
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 8]
sar eax, 0xf
xor eax, 1
sub edx, eax
movzx ecx, word [ebp - 4]
and ecx, edx
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
or edx, 0x8000
mov word [ebp - 4], dx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 4]
mov word [ecx + eax*2], dx
jmp 0x406b80
jmp 0x406c3c
mov dword [ebp - 0xc], 0
jmp 0x406bf9
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x406c3c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx*2]
test ecx, ecx
jl 0x406c2b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx*2]
add ecx, 0x8000
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
jmp 0x406c3a
mov ecx, 0xffff8000
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
jmp 0x406bf0
mov esp, ebp
pop ebp
ret
Function at 0x40b160
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x4034b50
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040ad00
add esp, 8
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad60
add esp, 8
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040ad60
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040ad60
add esp, 8
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad60
add esp, 8
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040ad60
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040ad00
add esp, 8
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad00
add esp, 8
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040ad00
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040ad60
add esp, 8
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x1a]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad60
add esp, 8
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x18]
test edx, edx
je 0x40b2d5
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402ec0
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x18]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x1a]
test edx, edx
je 0x40b308
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x1a]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402ec0
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x1a]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x40b4f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 4
shl eax, 0
cmp dword [eax + 0x40daa0], 0
jne 0x40b575
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x40b520
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jge 0x40b575
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x40b541
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x40b566
mov ecx, dword [ebp - 8]
and ecx, 1
neg ecx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp - 0x18]
and eax, 0xedb88320
xor edx, eax
mov dword [ebp - 8], edx
jmp 0x40b538
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx*4 + 0x40daa0], edx
jmp 0x40b517
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x40b58e
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jae 0x40b5ba
mov edx, dword [ebp - 0x10]
shr edx, 8
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 0x10]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x40daa0]
mov dword [ebp - 0x10], edx
jmp 0x40b585
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40605d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x413004]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x3fe
xor edi, edi
push esi
lea eax, [esp + 0x666]
push edi
push eax
mov word [esp + 0x66c], di
call fcn.00406d20
push esi
lea eax, [esp + 0x272]
push edi
push eax
mov word [esp + 0x278], di
call fcn.00406d20
push ebx
push 0x411734
mov esi, 0x1ff
lea eax, [esp + 0x680]
push esi
push eax
call fcn.00406e8d
add esp, 0x28
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4060ef
xor eax, eax
jmp 0x406173
lea eax, [esp + 0x3c]
push 0x411744
push eax
call fcn.00406d9a
test eax, eax
pop ecx
pop ecx
je 0x406152
lea eax, [esp + 0x3c]
push 0x411748
push eax
call fcn.00406d9a
test eax, eax
pop ecx
pop ecx
je 0x406152
lea eax, [esp + 0x3c]
push eax
push ebx
push str._s_s
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.0040594d
add esp, 0x14
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x260]
push eax
je 0x40614c
call fcn.0040605d
pop ecx
jmp 0x406152
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4060ef
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
inc eax
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406488
mov esp, ebp
pop ebp
ret

Function at 0x406188
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3c4]
sub esp, 0x444
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp + 0x3c0], eax
mov eax, dword [ebp + 0x3cc]
and word [ebp - 0x40], 0
push edi
push 0x3fe
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3e]
push 0
push eax
mov edi, ecx
call fcn.00406d20
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push edi
push str._s_s
push 0x1ff
push eax
call fcn.0040594d
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00406d20
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x70], eax
add esp, 0x2c
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], str.open
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x406230
push str.ShellExecute_succeed_
call fcn.0040597f
mov eax, dword [ebp - 0x48]
jmp 0x40623c
push str.ShellExecute_failed_
call fcn.0040597f
xor eax, eax
pop ecx
mov ecx, dword [ebp + 0x3c0]
xor ecx, ebp
call fcn.00406488
add ebp, 0x3c4
leave
ret
Function at 0x44b800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7bfa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x634f14]
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 dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0057fd4e
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 0x44b8c0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.005826df
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x631ae4
push eax
call fcn.005849a3
push edi
push esi
call fcn.005800ef
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.00581041
mov esp, ebp
pop ebp
ret 4
Function at 0x44d930
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7f20
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x634f14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov bl, 0x41
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x30], bl
test al, 1
je 0x44da7c
push dword [ebp - 0x30]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
push 1
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004549f0
push 0x62bea4
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00457100
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x44da10
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x44da07
test cl, 0x1f
jne 0x44daab
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44daab
sub ecx, eax
cmp ecx, 4
jb 0x44daab
cmp ecx, 0x23
ja 0x44daab
mov ecx, eax
push ecx
call fcn.00581615
add esp, 4
push dword [ebp - 0x34]
mov edx, esi
mov dword [ebp - 0x44], 0xf
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], 0
push dword [ebp - 0x3c]
mov byte [ebp - 0x58], 0
push dword [ebp - 0x40]
push edi
call fcn.0044d490
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44da79
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x44da70
test cl, 0x1f
jne 0x44daab
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44daab
sub ecx, eax
cmp ecx, 4
jb 0x44daab
cmp ecx, 0x23
ja 0x44daab
mov ecx, eax
push ecx
call fcn.00581615
add esp, 4
mov eax, dword [ebp - 0x2c]
inc bl
shr eax, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x30], bl
cmp bl, 0x5a
jle 0x44d985
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.00581041
mov esp, ebp
pop ebp
ret
call fcn.0058a435
int3
Function at 0x44e2d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x634f14]
xor eax, esp
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov eax, 0x4414
movq qword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
lea eax, [esp]
movaps xmmword [esp], xmm0
push eax
mov word [esp + 0x20], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 3
mov dword [esp + 0xc], str.C:_Recycle.Bin
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x44e341
mov edx, str.Recycle_Bin_emptied_successfully.
mov ecx, 0x6370e0
call fcn.00456b30
jmp 0x44e35c
push eax
push ecx
mov edx, str.Failed_to_empty_Recycle_Bin._Error_code:
mov ecx, 0x6371f8
call fcn.00456b30
add esp, 4
mov ecx, eax
call fcn.00452e90
push eax
call fcn.00456de0
mov ecx, dword [esp + 0x30]
add esp, 4
xor ecx, esp
call fcn.00581041
mov esp, ebp
pop ebp
ret

Function at 0x44e9b0
Capabilities:
Delete user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x634f14]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push str.test1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserDel]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00581041
mov esp, ebp
pop ebp
ret