joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f07b
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002f220
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov eax, dword [ebp - 0x64]
mov dword [eax], 1
xor eax, eax
inc eax
je 0x1002f116
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1002f12f
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1002f12f
mov dword [ebp - 0xc], 1
jmp 0x1002f133
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x495e0e2b
jge 0x1002f145
mov dword [ebp - 0x10], 1
jmp 0x1002f149
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jg 0x1002f15c
mov dword [ebp - 0x18], 1
jmp 0x1002f160
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax]
cmp ecx, 0xffff
jbe 0x1002f179
mov dword [ebp - 0x1c], 1
jmp 0x1002f17d
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jne 0x1002f190
mov dword [ebp - 0x20], 1
jmp 0x1002f194
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jle 0x1002f1af
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x1002f1af
mov dword [ebp - 0x28], 1
jmp 0x1002f1b3
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
je 0x1002f1c6
mov dword [ebp - 0x2c], 1
jmp 0x1002f1ca
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jne 0x1002f1dd
mov dword [ebp - 0x34], 1
jmp 0x1002f1e1
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jg 0x1002f1f4
mov dword [ebp - 0x38], 1
jmp 0x1002f1f8
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jne 0x1002f20b
mov dword [ebp - 0x3c], 1
jmp 0x1002f20f
and dword [ebp - 0x3c], 0
push 0
mov ecx, dword [ebp - 0x70]
call fcn.10018a43
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x1002f22d
push 0
push 0x18de
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret
Function at 0x1002f231
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002f279
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [eax], ecx
jmp 0x1002f292
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002f292
push 0x2594
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x10032953
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10032999
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x2d83
push 0x57c9
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0
call fcn.1002e273
add esp, 0x14
jmp 0x100329b7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x100329b7
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x10032a6f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x400
lea eax, [ebp + 8]
push eax
push 1
push 0x2604
lea eax, [ebp - 0x10]
push eax
push 0x3641
push 0xb8b
push 0x6016
call fcn.10031cad
add esp, 0x20
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10032ab8
xor eax, eax
jmp 0x10032c0b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 8]
push eax
call fcn.100326c9
add esp, 0x10
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10032ae0
xor eax, eax
jmp 0x10032c0b
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x5c51
call fcn.10032727
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x10032b04
xor eax, eax
jmp 0x10032c0b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push 0x6cae
push 1
lea eax, [ebp - 4]
push eax
call fcn.100327c3
add esp, 0x1c
push 1
push 0x3d9a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10032845
add esp, 0x14
push 0x5a30
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x7389
call fcn.100328be
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x10032b7f
push 0x7ece
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.10032953
add esp, 0x10
push dword [ebp - 4]
call fcn.10030d6d
pop ecx
test eax, eax
jne 0x10032b90
xor eax, eax
jmp 0x10032c0b
lea eax, [ebp - 4]
push eax
push 0x1e7f
push 1
call fcn.100329bb
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10032bf3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10032bc2
xor eax, eax
jmp 0x10032c0b
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10032bdb
xor eax, eax
jmp 0x10032c0b
push 0x2888
push 0x5a89
lea eax, [ebp - 4]
push eax
push 1
call fcn.100329fb
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10032c04
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10032c08
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10049c67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10049c84
push 0x2594
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x10049ce3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x985a9576
mov eax, dword [ebp - 4]
cmp dword [eax], 0x985a9576
je 0x10049cb9
mov dword [ebp - 8], 1
jmp 0x10049cbd
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax]
cmp ecx, 1
jge 0x10049cd3
mov dword [ebp - 0xc], 1
jmp 0x10049cd7
and dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0x8e46
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x1004a37b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004a393
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1004a3de
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1004a3c1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1004a3de
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10018a43
mov dword [eax], 0xc8959310
jmp 0x1004a3b6
mov esp, ebp
pop ebp
ret

Function at 0x1004abe3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004ac0a
push 0x714
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1004ac10
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
pop ebp
ret
Function at 0x10082e64
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008c330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100710ea
mov dword [ebp - 0x14], eax
cmp dword [0x10cc4b84], esi
jne 0x10082f57
push 0x800
push esi
push 0x10007c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10082ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10083037
push esi
push esi
push 0x10007c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10083037
push 0x10007c84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10083037
push eax
call ebx
push 0x10007c90
push edi
mov dword [0x10cc4b84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ca0
push edi
mov dword [0x10cc4b88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007cb4
push edi
mov dword [0x10cc4b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cc4b94], eax
test eax, eax
je 0x10082f54
push 0x10007cd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cc4b90], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10082f7c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10082f6f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10082f91
push 4
pop eax
jmp 0x10083039
cmp dword [ebp - 0x14], esi
je 0x10082f91
push dword [0x10cc4b84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10082f76
mov eax, dword [0x10cc4b90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10082fef
cmp dword [0x10cc4b94], edi
je 0x10082fef
push eax
call ebx
push dword [0x10cc4b94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10082fef
test eax, eax
je 0x10082fef
call ecx
test eax, eax
je 0x10082fe4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10082fe4
test byte [ebp - 8], 1
jne 0x10082fef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008301f
mov eax, dword [0x10cc4b88]
cmp eax, edi
je 0x1008301c
push eax
call ebx
test eax, eax
je 0x1008301c
call eax
mov esi, eax
test esi, esi
je 0x1008301c
mov eax, dword [0x10cc4b8c]
cmp eax, edi
je 0x1008301c
push eax
call ebx
test eax, eax
je 0x1008301c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10cc4b84]
call ebx
test eax, eax
je 0x10083037
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10083039
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006d17d
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x4ca52462
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x61e45d2
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10011a5
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 4], 0
push esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
jne 0x10011f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10011e6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x1001249
mov esi, 0x80004005
jmp 0x1001249
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x240
mov dword [ebp - 0x34], 0x10010dc
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10011d2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10011d2
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10011d2
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 0
je 0x100125e
cmp dword [ebp - 0xc], 0xffffffff
je 0x100125e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x4022fb
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00406f98
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00406f98
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x40239b
mov dword [ebp - 0x18], esp
mov eax, 0xf
call fcn.00406fb0
cmp dword [ebp - 0x18], esp
je 0x402398
push 0x46
push 0x401c80d
push 6
call fcn.00406faa
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 0
call fcn.00406fb0
cmp dword [ebp - 0x18], esp
je 0x4023d1
push 0x75
push 0x401c80d
push 6
call fcn.00406faa
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 0x10
call fcn.00406fb0
cmp dword [ebp - 0x18], esp
je 0x402409
push 0xa2
push 0x401c80d
push 6
call fcn.00406faa
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 0x49bc28
push 0
mov eax, 0x11
call fcn.00406fb0
cmp dword [ebp - 0x18], esp
je 0x40243f
push 0xcc
push 0x401c80d
push 6
call fcn.00406faa
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x12
call fcn.00406fb0
cmp dword [ebp - 0x18], esp
je 0x4024d8
push 0x1dc
push 0x401c80d
push 6
call fcn.00406faa
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 5
call fcn.00406fb0
cmp dword [ebp - 0x18], esp
je 0x402507
push 0x21c
push 0x401c80d
push 6
call fcn.00406faa
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x40250f
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00406f9e
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00406f9e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40c560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49615b
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.0048b1fa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c5e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048910c
mov eax, dword [eax]
push 0x4b2c58
push eax
call fcn.0047b2e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048b485
test bl, bl
je 0x40c5e2
push 0x4b2c58
lea ecx, [esp + 0xc]
call fcn.0048b815
push 0x4b2c64
lea ecx, [esp + 0xc]
call fcn.0048b815
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 0x40c61e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048b485
jmp 0x40c6e9
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 0x40c6a2
lea edx, [esp + 0x7c]
push 0x4b2c60
push edx
call fcn.0047b2e4
add esp, 8
test eax, eax
je 0x40c6a2
lea eax, [esp + 0x7c]
push 0x4b2c5c
push eax
call fcn.0047b2e4
add esp, 8
test eax, eax
je 0x40c6a2
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 0x40c632
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.0048b485
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 0x40cef0
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 0x40cf52
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 0x40cf60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4961db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c20b8]
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 0x40d098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cfc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b485
xor eax, eax
jmp 0x40d10f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048b5c2
push esi
lea ecx, [esp + 0xc]
call fcn.0048b851
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40d0ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040cef0
test eax, eax
jne 0x40d0ed
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 closesocket
mov ecx, edi
call fcn.0040cef0
test eax, eax
jne 0x40d0ed
lea eax, [esp + 0x14]
push 0x4b2c74
push eax
call fcn.0047c360
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d0cc
lea ecx, [esp + 0x14]
push 0x4b2c70
push ecx
call fcn.0047c2e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d0cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d0cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048b572
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cfde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b485
xor eax, eax
jmp 0x40d10f
mov byte [esi], 0
push 0x4b2c6c
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.0048b485
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