joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6001a415
Capabilities:
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x6001f6c6
call fcn.6001adcc
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [0x60030374]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword fs:[0x2c]
mov edx, dword [eax + edx*4]
mov eax, dword [0x600302dc]
cmp eax, dword [edx + 4]
jg 0x6001a524
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x6001a472
xor al, al
jmp 0x6001a51c
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
push esi
push dword [esi]
push dword [ebp - 0x30]
push dword [edi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x6001a50f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x6001a511
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
jmp 0x6001a4e7
cmp eax, 1
jne 0x6001a511
push eax
push 0x113
push 0x113
jmp 0x6001a4d3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
mov eax, 0x113
push eax
push eax
push dword [0x600302d8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x6001a4b6
push 4
push 0x10
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x6001a4a4
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
push dword [edi]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x6001a511
mov bl, 1
push dword [ebp - 0x34]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, bl
call fcn.6001ad76
ret 8
mov edi, 0x600302dc
push edi
call fcn.60013390
cmp dword [0x600302dc], 0xffffffff
pop ecx
jne 0x6001a44f
mov dword [ebp - 4], ebx
call fcn.600023b0
or dword [ebp - 4], 0xffffffff
push edi
mov dword [0x600302d8], eax
call fcn.60013390
pop ecx
jmp 0x6001a44f
Function at 0x6001dcb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6001fa3d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6002c484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6002c4a8]
cmp eax, 0xffffffff
jne 0x6001dce9
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x6001dcf5
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x6001de58
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x6001dd20
cmp dword [ebx + 0xc], 0
je 0x6001de09
nop dword [eax + eax]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x6001ddc0
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x6001dd8c
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x600204bc]
mov ecx, dword [ebp - 0x14]
call edi
mov ebx, dword [esi]
push 0
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [0x600204bc]
mov ecx, ebx
call edi
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x6001dd89
push 0x23
push str.D:TImportsOpen_boost_boost_threadwin32_thread_heap_alloc.hpp
push str.winapi::HeapFree_winapi::GetProcessHeap___0_heap_memory__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x6001dd20
push 0x23
push str.D:TImportsOpen_boost_boost_threadwin32_thread_heap_alloc.hpp
push str.winapi::HeapFree_winapi::GetProcessHeap___0_heap_memory__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x6001dd20
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x6001dd0e
mov esi, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
mov esi, dword [esi]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x6001ddf6
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x6001ddf6
mov edi, dword [esi + 0x14]
mov ecx, edi
push eax
push edx
call dword [0x600204bc]
call edi
add esp, 8
lea ecx, [ebx + 0x14]
push esi
call fcn.60013390
push 0x20
push eax
call fcn.60013390
add esp, 8
jmp 0x6001ddc0
push 0
call fcn.60013390
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x6001de58
mov eax, dword [ebx]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x600204bc]
mov ecx, ebx
call esi
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x6001de58
push 0x23
push str.D:TImportsOpen_boost_boost_threadwin32_thread_heap_alloc.hpp
push str.winapi::HeapFree_winapi::GetProcessHeap___0_heap_memory__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401020
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x469c40
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x469c6e
mov eax, ebx
call fcn.0046a6f4
cmp dword [ebx + 0x40], 0
je 0x469c67
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x469cdf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x469cd1
cmp dword [ebx + 8], 0
je 0x469c90
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x469ca2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x469cd1
cmp dword [ebx + 8], 0
je 0x469c83
cmp eax, 3
je 0x469cb5
dec eax
jne 0x469c83
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x469c83
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x469c83
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x469cfd
cmp dword [ebx + 0x14], 0xcc
je 0x469cfd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00469d08
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4123e6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x419668]
cmp eax, dword [0x41965c]
jge 0x412422
mov ecx, dword [0x41969c]
cmp ecx, dword [0x4196a8]
jge 0x412422
mov edx, dword [0x419694]
sub edx, dword [0x419698]
sub edx, dword [0x419690]
add edx, dword [0x4196b0]
mov dword [0x419650], edx
mov eax, dword [0x4196a8]
sub eax, dword [0x419664]
mov dword [0x4196a8], eax
mov ecx, dword [0x41965c]
mov dword [0x41966c], ecx
push 0x4408ec
push 0x40
push 0x1000
mov edx, dword [0x417030]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x41967c]
cmp eax, dword [0x41966c]
jge 0x41248e
mov edx, dword [0x4196a0]
add edx, dword [0x419678]
add edx, dword [0x419690]
sub edx, dword [0x419668]
sub edx, dword [0x4196b0]
mov eax, dword [0x419650]
add eax, edx
mov dword [0x419650], eax
mov ecx, dword [0x419668]
sub ecx, dword [0x419650]
mov dword [0x419694], ecx
mov edx, dword [0x41965c]
add edx, dword [0x419694]
add edx, dword [0x419688]
mov eax, dword [0x41969c]
imul eax, edx
mov dword [0x41969c], eax
mov ecx, dword [0x419658]
add ecx, dword [0x419680]
add ecx, dword [0x4196ac]
add ecx, dword [0x41967c]
mov edx, dword [0x4196b0]
add edx, ecx
mov dword [0x4196b0], edx
pop ebp
ret

Function at 0x4124e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4408e4], 0
jmp 0x412506
mov ecx, dword [0x4408e4]
add ecx, 1
mov dword [0x4408e4], ecx
cmp dword [0x4408e4], 0x23
jge 0x41252f
mov edx, dword [0x419640]
add edx, dword [0x4408e4]
mov al, byte [edx]
add al, 0x5a
mov ecx, dword [0x419640]
add ecx, dword [0x4408e4]
mov byte [ecx], al
jmp 0x4124f7
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x419640]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41255f
mov dword [0x4408e0], 0xc4
jmp 0x41258d
push 0
push 0x4408e8
push 0x53
push 0x4408f0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx edx, byte [0x4408f1]
cmp edx, 0x5a
jne 0x41258d
mov dword [0x4408e0], 0xc4
mov esp, ebp
pop ebp
ret
Function at 0x413471
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x440538
cmp edx, dword [eax]
je 0x413493
add eax, 8
inc ecx
cmp eax, 0x4405c8
jl 0x413484
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x440538]
jne 0x4135c1
mov eax, dword [0x440954]
cmp eax, 1
je 0x41359b
test eax, eax
jne 0x4134c4
cmp dword [0x44048c], 1
je 0x41359b
cmp edx, 0xfc
je 0x4135c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4134fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413b90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41353e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413b90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x416388
push edi
call fcn.00414820
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413a30
lea eax, [ebp - 0xa0]
push 0x416368
push eax
call fcn.00413a30
push dword [esi + 0x44053c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041478e
add esp, 0x2c
pop edi
jmp 0x4135c1
lea eax, [ebp + 8]
lea esi, [esi + 0x44053c]
push 0
push eax
push dword [esi]
call fcn.00413b90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001210
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, 0x10
push esi
lea eax, [ebp - 8]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x502127
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call esi
mov eax, 0x10001ab0
sub eax, 0x50212c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x502128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push 0x50212c
call esi
mov eax, 0x50212c
mov byte [eax], 0x90
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push 1
push 0x50212c
call esi
push 0
push 0
push dword [ebp + 8]
push 0x100012b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000784a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10007889
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10007889
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10007889
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10007889
cmp dword [ecx + 0x74], 0xe
jbe 0x10007889
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10008e4e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017bd8
push 0x10017bd0
push str.FlsAlloc
push 0x1f
call fcn.10008d6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008e82
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001412c]
call esi
jmp 0x10008e88
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10008ecc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017be8
push 0x10017be0
push str.FlsGetValue
push 0x21
call fcn.10008d6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008f03
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008f0b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017bf0
push 0x10017be8
push str.FlsSetValue
push 0x22
call fcn.10008d6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008f45
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000b967
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000ba04
push ebx
push esi
call fcn.1000b930
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b8c4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b9b1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ba03
push edi
push eax
call fcn.10008b41
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b9d1
call fcn.10008b07
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ba02
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b8c4
add esp, 0x20
test eax, eax
jne 0x1000b9f0
push edi
call fcn.10008b07
jmp 0x1000b9f8
push ebx
call fcn.10008b07
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100130f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001311d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001311d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x506400
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cd34b
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.005bef90
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x506482
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005bc8a3
mov eax, dword [eax]
push 0x911efc
push eax
call fcn.005ac9f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005bf21b
test bl, bl
je 0x506482
push 0x911efc
lea ecx, [esp + 0xc]
call fcn.005bf5f7
push 0x911f08
lea ecx, [esp + 0xc]
call fcn.005bf5f7
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 0x5064be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005bf21b
jmp 0x506589
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 0x506542
lea edx, [esp + 0x7c]
push 0x911f04
push edx
call fcn.005ac9f4
add esp, 8
test eax, eax
je 0x506542
lea eax, [esp + 0x7c]
push 0x911f00
push eax
call fcn.005ac9f4
add esp, 8
test eax, eax
je 0x506542
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 0x5064d2
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.005bf21b
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 0x506da0
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 0x506e02
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 0x506e10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cd3cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x9354a8]
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 0x506f48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x506e76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005bf21b
xor eax, eax
jmp 0x506fbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005bf3a4
push esi
lea ecx, [esp + 0xc]
call fcn.005bf633
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 0x506f9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00506da0
test eax, eax
jne 0x506f9d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00506da0
test eax, eax
jne 0x506f9d
lea eax, [esp + 0x14]
push 0x911f18
push eax
call fcn.005adc00
mov esi, eax
add esp, 8
test esi, esi
jne 0x506f7c
lea ecx, [esp + 0x14]
push 0x911f14
push ecx
call fcn.005adb80
mov esi, eax
add esp, 8
test esi, esi
jne 0x506f7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x506f7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005bf354
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x506e8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005bf21b
xor eax, eax
jmp 0x506fbf
mov byte [esi], 0
push 0x911f10
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.005bf21b
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
Function at 0x50dcd0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5cdd55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x879904
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 4
call fcn.005c60a9
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x8789f8
call fcn.004fbba0
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 5
call fcn.005c60a9
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x8789f8
call fcn.004fbba0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.005be162
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x8789f8
call fcn.004fbba0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005c74e1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret