joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008c8b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009738c]
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.1007f234
mov dword [ebp - 0x14], eax
cmp dword [0x14b2e430], esi
jne 0x1008c9a5
push 0x800
push esi
push 0x10007b6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1008c932
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008ca85
push esi
push esi
push 0x10007b6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1008ca85
push 0x10007b84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008ca85
push eax
call ebx
push 0x10007b90
push edi
mov dword [0x14b2e430], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ba0
push edi
mov dword [0x14b2e434], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007bb4
push edi
mov dword [0x14b2e438], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b2e440], eax
test eax, eax
je 0x1008c9a2
push 0x10007bd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b2e43c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008c9ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008c9bd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008c9df
push 4
pop eax
jmp 0x1008ca87
cmp dword [ebp - 0x14], esi
je 0x1008c9df
push dword [0x14b2e430]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1008c9c4
mov eax, dword [0x14b2e43c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1008ca3d
cmp dword [0x14b2e440], edi
je 0x1008ca3d
push eax
call ebx
push dword [0x14b2e440]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008ca3d
test eax, eax
je 0x1008ca3d
call ecx
test eax, eax
je 0x1008ca32
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 0x1008ca32
test byte [ebp - 8], 1
jne 0x1008ca3d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008ca6d
mov eax, dword [0x14b2e434]
cmp eax, edi
je 0x1008ca6a
push eax
call ebx
test eax, eax
je 0x1008ca6a
call eax
mov esi, eax
test esi, esi
je 0x1008ca6a
mov eax, dword [0x14b2e438]
cmp eax, edi
je 0x1008ca6a
push eax
call ebx
test eax, eax
je 0x1008ca6a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x14b2e430]
call ebx
test eax, eax
je 0x1008ca85
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008ca87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x10002580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100025d8
cmp byte [esi + ebx - 1], 0xa
je 0x100025ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10005128], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x7fb1320e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x5d775d86
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Execute command
Set console window title

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
lea esi, [ebp - 0x1c]
jmp 0x401028
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x40100e
push esi
call sub.user32.dll_wsprintfA
add esp, 0x10
push esi
call dword [sym.imp.msvcrt.dll_system]
add esp, 4
push dword [ebp + 0x10]
call sub.kernel32.dll_SetConsoleTitleA
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4011ea
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffeffc
push ebx
push esi
push edi
lea edx, [ebp - 0x1004]
push edx
push 0x1000
lea eax, [ebp - 0x1000]
push eax
call sub.psapi.dll_EnumProcesses
or eax, eax
je 0x40121b
mov eax, dword [ebp - 0x1004]
shr eax, 2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4012c6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
repne scasw ax, word es:[edi]
sub edi, dword [ebp + 8]
shr edi, 1
dec edi
mov dword [ebp - 0x238], edi
and dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], 0x22c
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
je 0x40136e
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
call sub.kernel32.dll_Process32FirstW
or eax, eax
je 0x40135c
lea esi, [ebp - 0x208]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x238]
repe cmpsw word [esi], word es:[edi]
jne 0x401346
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x234], eax
jmp 0x40135c
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
call sub.kernel32.dll_Process32NextW
or eax, eax
jne 0x401324
push dword [ebp - 0x230]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x234]
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401375
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.psapi.dll_EnumProcessModules
or eax, eax
je 0x4013a8
push 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.psapi.dll_GetModuleInformation
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401932
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
lea ebx, [ebp - 0x10]
and dword [ebx], 0
and dword [ebx + 4], 0
and dword [ebx + 8], 0
and dword [ebx + 0xc], 0
call sub.kernel32.dll_GetCurrentProcess
mov edx, eax
lea eax, [ebp - 0x14]
push eax
push 0x28
push edx
call sub.advapi32.dll_OpenProcessToken
or eax, eax
je 0x4019b6
mov dword [ebx], 1
lea eax, [ebx + 8]
mov dword [eax], 2
mov eax, ebx
add eax, 4
jmp 0x40198c
push eax
push 0x40197a
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
or eax, eax
je 0x4019b6
push 0
push 0
push 0
push ebx
push 0
push dword [ebp - 0x14]
call sub.advapi32.dll_AdjustTokenPrivileges
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00401b80
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x401ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push 7
push dword [ebp - 4]
call sub.kernel32.dll_SetConsoleMode
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp + 8]
sub edx, 1
add edx, 1
cmp byte [edx], 0
je 0x401b14
cmp byte [edx], 0xd
jne 0x401b04
mov byte [edx], 0
mov eax, dword [ebp - 8]
sub eax, 2
leave
ret 8

Function at 0x401b20
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
shl eax, 0x10
mov ax, cx
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetConsoleCursorPosition
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x67d40601
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2cf50b1b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xba61b0
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.00ba6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ba6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ba6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ba6140
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 0xba6bfa
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 0xba6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xbb887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xba6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xba6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x41e810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dab
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.0041fd70
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x210]
push str.FN_CSharedMemoryChannel_GetMessage
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x423484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0041e4b0
cmp eax, 0xfffe00ff
jne 0x41e8cc
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
lea edx, [eax - 1]
cmp edx, 0xffe
ja 0x41e8b2
push eax
lea eax, [ebp - 0x1210]
mov ecx, edi
push eax
call fcn.0041e540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret
push str.Invalid_Message_Header
lea ecx, [ebp - 0x1228]
call fcn.00402d30
lea eax, [ebp - 0x1228]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1244]
call fcn.00401b80
push 0x42b38c
lea eax, [ebp - 0x1244]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x41f37b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42b2e0
call fcn.0041fa90
push 1
call fcn.0041f03d
pop ecx
test al, al
je 0x41f4d7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041f00b
mov byte [ebp - 0x24], al
mov eax, dword [0x43222c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41f4d7
test eax, eax
jne 0x41f405
mov dword [0x43222c], ecx
push 0x423340
push 0x42332c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41f3e8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41f4d1
push 0x423328
push 0x423314
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x43222c], 2
jmp 0x41f40a
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041f1aa
pop ecx
call fcn.0041fc0d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41f43b
push esi
call fcn.0041f120
pop ecx
test al, al
je 0x41f43b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x423310]
call esi
call fcn.0041fc13
mov esi, eax
cmp dword [esi], edi
je 0x41f459
push esi
call fcn.0041f120
pop ecx
test al, al
je 0x41f459
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.0041f819
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0041f84f
test al, al
je 0x41f4de
test bl, bl
jne 0x41f487
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0041f1c7
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41f4d1
call fcn.0041fad6
ret
push 7
call fcn.0041f6fd
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.005a4000
jmp 0x41f37b
Function at 0x10001229
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x10001232
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x10001255
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x10001255
mov eax, ebx
jmp 0x1000126a
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x10001241
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret
Function at 0x1002e0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a8150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1009d661
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1002ef40
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1002e144
jmp dword [ecx*4 + 0x1002e2ac]
mov al, byte [esi]
test al, al
je 0x1002e172
cmp al, 0x20
je 0x1002e15e
cmp al, 0xa1
jne 0x1002e172
cmp byte [esi + 1], al
jne 0x1002e172
test al, 0x80
je 0x1002e16a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1002e172
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002e151
test ecx, ecx
je case.default.0x1002e144
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1002e144
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1002e1b8
cmp dl, 0xa1
jne 0x1002e1ac
cmp byte [eax + 1], 0xa1
jne 0x1002e1ac
test ecx, ecx
jne 0x1002e1a4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002e1cc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1002e1e6
jmp 0x1002e1cc
cmp dl, 0x20
jne 0x1002e1ca
test ecx, ecx
jne 0x1002e1c3
mov edi, eax
mov ecx, 1
jmp 0x1002e1cc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002e18c
cmp ecx, 1
jne case.default.0x1002e144
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002e144
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002e144
mov al, byte [esi]
test al, al
je 0x1002e23e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1002e224
mov cl, byte [esi + 1]
test cl, cl
je 0x1002e23e
cmp al, 0xa1
jne 0x1002e214
cmp cl, al
je 0x1002e221
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1002f210
inc esi
jmp 0x1002e236
cmp al, 0x20
je 0x1002e236
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1002f250
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002e1fd
push 0
lea ecx, [esp + 0x14]
call fcn.1002f250
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003a1f0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1002e271
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100b29c0
call fcn.1002f140
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1009d5f3
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10034440
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a862b
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.1009d368
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100344c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1009b27a
mov eax, dword [eax]
push 0x100c8cbc
push eax
call fcn.1008dd94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1009d5f3
test bl, bl
je 0x100344c2
push 0x100c8cbc
lea ecx, [esp + 0xc]
call fcn.1009d983
push 0x100c8cc8
lea ecx, [esp + 0xc]
call fcn.1009d983
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 0x100344fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1009d5f3
jmp 0x100345c9
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 0x10034582
lea edx, [esp + 0x7c]
push 0x100c8cc4
push edx
call fcn.1008dd94
add esp, 8
test eax, eax
je 0x10034582
lea eax, [esp + 0x7c]
push 0x100c8cc0
push eax
call fcn.1008dd94
add esp, 8
test eax, eax
je 0x10034582
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 0x10034512
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.1009d5f3
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 0x10034dd0
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 0x10034e32
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 0x10034e40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a86ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100d26e8]
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 0x10034f78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10034ea6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1009d5f3
xor eax, eax
jmp 0x10034fef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1009d730
push esi
lea ecx, [esp + 0xc]
call fcn.1009d9bf
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 0x10034fcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10034dd0
test eax, eax
jne 0x10034fcd
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.10034dd0
test eax, eax
jne 0x10034fcd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.1008ee10
mov esi, eax
add esp, 8
test esi, esi
jne 0x10034fac
lea ecx, [esp + 0x14]
push 0x100c8cd4
push ecx
call fcn.1008ed90
mov esi, eax
add esp, 8
test esi, esi
jne 0x10034fac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10034faf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1009d6e0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10034ebe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1009d5f3
xor eax, eax
jmp 0x10034fef
mov byte [esi], 0
push 0x100c8cd0
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.1009d5f3
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