joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3007602e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x3009c36c]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [0x3009c36c], eax
call sub.MSVCR80.dll__setjmp3
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x30076118
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
jne 0x30076082
call fcn.30006b99
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x3007609b
call fcn.30006b99
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x300760b3
call fcn.30006b99
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
push dword [ebp - 4]
add edi, dword [eax]
add ebx, 0x28
call fcn.30075aee
add ebx, eax
pop ecx
mov eax, 0xff00
jmp 0x300760da
cmp edi, ebx
jae 0x300760de
add edi, 4
cmp dword [edi], eax
jne 0x300760d3
push esi
push esi
call fcn.3007f314
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
pop ecx
pop ecx
jne 0x300760f6
call fcn.30006b99
push esi
push dword [ebp - 4]
push ebx
push 4
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x30076118
call fcn.30006b99
mov eax, dword [ebp - 0x14]
mov dword [0x3009c36c], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x3007612a
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x3007613a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x3007614f
push 2
push dword [ebp - 0xc]
push esi
call fcn.3007f368
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x30076166
push dword [ebp - 0x18]
call fcn.30092000
jmp 0x30076160
pop ecx
jmp 0x3007606b
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3007bb45
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x3009dd88]
or dword [eax + 0x48], 0xffffffff
mov eax, dword [0x3009dd88]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax]
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push ebx
call fcn.3007941e
mov eax, dword [ebp - 4]
add esp, 0x10
cmp dword [ebp + 0x14], 0
mov dword [ebp - 8], eax
je 0x3007bb93
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.30079215
pop ecx
pop ecx
test byte [ebp + 0x10], 4
jne 0x3007bbb2
mov eax, dword [0x3009e09c]
cmp dword [eax + 0xee], 0
jne 0x3007bbb2
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ebp + 0x10], eax
jmp 0x3007bbc8
call fcn.30077e2e
mov ecx, dword [0x3009dd88]
mov edi, dword [ecx + 0x5c]
add edi, dword [ecx + 0x58]
sub edi, eax
mov dword [ebp + 0x10], edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
call fcn.3007b159
push esi
call fcn.3008461e
add esp, 0x18
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x3007bc4d
push esi
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push 0x100
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x3007bc25
movzx eax, word [ebp + 0xc]
movzx ecx, bx
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x20], eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [ebp - 0x28]
js 0x3007bc3c
cmp eax, 0x202
jne 0x3007bc47
sub eax, 0x200
je 0x3007bc52
dec eax
dec eax
jne 0x3007bbf4
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x20]
movzx ebx, ax
shr eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [0x3009dd88]
mov esi, dword [eax + 0xac]
sub esi, dword [ebp + 0xc]
test esi, esi
jle 0x3007bc74
push 0xffffffffffffffff
jmp 0x3007bc81
mov esi, dword [ebp + 0xc]
sub esi, dword [eax + 0xb4]
js 0x3007bca4
push 1
call fcn.3007a0f1
pop ecx
push 0
push 2
call fcn.30079925
mov eax, dword [0x3009dd88]
cmp esi, dword [eax + 0x10]
pop ecx
pop ecx
jg 0x3007bca4
push 0x64
call fcn.300773e7
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.3007941e
mov eax, dword [ebp - 4]
add esp, 0x10
cmp dword [ebp + 0x14], 0
mov dword [ebp - 8], eax
je 0x3007bcd3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.30079215
pop ecx
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
call fcn.3007b159
mov esi, dword [ebp - 0x10]
add esp, 0x14
jmp 0x3007bbf4
Function at 0x3007fdba
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x3009dd0c], ebx
push edi
je 0x3007ffdc
cmp byte [0x3009dd4a], bl
jne 0x3007ffdc
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [0x3009dd14]
jne 0x3007ffcf
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x3007ffcf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.3007fa1f
cmp byte [0x3009dd39], bl
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jne 0x3007fe5b
test byte [0x3009dd10], 4
je 0x3007ff2d
sub eax, dword [0x3009dd4b]
mov ecx, dword [0x3009dd00]
sub edx, dword [0x3009dd4f]
cmp eax, ecx
jg 0x3007fe54
neg ecx
cmp eax, ecx
jl 0x3007fe54
mov eax, dword [0x3009dd04]
cmp edx, eax
jg 0x3007fe54
neg eax
cmp edx, eax
jge 0x3007ff45
mov byte [0x3009dd39], 1
push esi
push 1
call fcn.3007fa97
mov al, byte [0x3009dd10]
test al, 0x20
mov edi, dword [ebp + 0xc]
mov edx, dword [0x3009dd10]
pop ecx
mov esi, 0x200
je 0x3007feb3
test esi, edx
je 0x3007ff6f
cmp byte [0x3009dd7c], bl
je 0x3007ff50
cmp edi, dword [0x3009dd28]
jl 0x3007ff7b
mov ecx, dword [0x3009dd53]
mov byte [0x3009dd7c], bl
mov dword [0x3009dd20], ecx
mov dword [0x3009dd28], edi
test al, 0x40
mov ecx, dword [ebp + 0x10]
je 0x3007fef0
test esi, edx
je 0x3007ffa3
cmp byte [0x3009dd7d], bl
je 0x3007ff86
cmp ecx, dword [0x3009dd2c]
jl 0x3007ffaf
mov eax, dword [0x3009dd57]
mov byte [0x3009dd7d], bl
mov dword [0x3009dd24], eax
mov dword [0x3009dd2c], ecx
mov eax, dword [0x3009dd08]
mov eax, dword [eax + 4]
cmp eax, ebx
pop esi
je 0x3007ff0c
lea ecx, [ebp + 0xc]
push ebx
push ecx
call eax
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
cmp dword [0x3009dd0c], ebx
je 0x3007ffba
push ecx
push edi
call fcn.3007fcbf
push ebx
call fcn.3007fa97
add esp, 0xc
jmp 0x3007ffdc
cmp eax, dword [0x3009dd4b]
jne 0x3007fe54
cmp edx, dword [0x3009dd4f]
jne 0x3007fe54
mov byte [0x3009dd39], bl
jmp 0x3007ffdc
cmp edi, dword [0x3009dd20]
jg 0x3007fead
mov ecx, dword [0x3009dd5b]
mov byte [0x3009dd7c], 1
mov dword [0x3009dd28], ecx
cmp byte [0x3009dd7c], bl
je 0x3007fead
mov dword [0x3009dd20], edi
jmp 0x3007feb3
cmp ecx, dword [0x3009dd24]
jg 0x3007feea
mov eax, dword [0x3009dd5f]
mov byte [0x3009dd7d], 1
mov dword [0x3009dd2c], eax
cmp byte [0x3009dd7d], bl
je 0x3007feea
mov dword [0x3009dd24], ecx
jmp 0x3007fef0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push ebx
push dword [0x3009dd14]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x3007ffdc
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.3007fc56
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x3007ffe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.300845ac
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
pop ecx
pop ecx
push 0x10
call esi
test ax, ax
jns 0x30080013
push 4
pop edi
push 0x11
call esi
test ax, ax
jns 0x3008001f
or edi, 8
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.3007fdba
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x30080710
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x3009d6f4], bl
jne 0x3008080d
push esi
push 4
push 0x2a
push ebx
push dword [0x3009e1a4]
push ebx
push ebx
push 0x3007c388
push 0xa
call fcn.3000c7be
mov esi, dword [sym.imp.USER32.dll_VkKeyScanA]
add esp, 0x20
push 0x3a
call esi
mov edx, dword [0x3009e09c]
movsx eax, ax
movzx ecx, al
push eax
mov dword [edx + 0xce], ecx
call fcn.3000703c
pop ecx
mov ecx, dword [0x3009e09c]
push 0x3b
mov dword [ecx + 0xd2], eax
call esi
mov edx, dword [0x3009e09c]
movsx eax, ax
movzx ecx, al
push eax
mov dword [edx + 0xd6], ecx
call fcn.3000703c
pop ecx
mov ecx, dword [0x3009e09c]
mov dword [ecx + 0xda], eax
cmp dword [0x3009e094], ebx
je 0x30080805
call fcn.3005b53c
cmp eax, ebx
mov dword [0x3009d6f8], eax
je 0x30080805
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002744
push eax
call esi
push 0x30002730
push dword [0x3009d6f8]
mov dword [0x3009d6fc], eax
call esi
push 0x3000271c
push dword [0x3009d6f8]
mov dword [0x3009d700], eax
call esi
push 0x30002700
push dword [0x3009d6f8]
mov dword [0x3009d704], eax
call esi
push 0x300026e8
push dword [0x3009d6f8]
mov dword [0x3009d708], eax
call esi
mov dword [0x3009d70c], eax
mov byte [0x3009d6f4], 1
pop esi
pop ebx
ret

Function at 0x30082038
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor edx, edx
cmp dword [ebp + 0xc], edx
mov cl, 0x55
jle 0x30082060
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, byte [esi]
dec dword [ebp + 0xc]
xor bl, cl
inc esi
mov byte [eax], bl
inc eax
cmp dword [ebp + 0xc], edx
mov cl, bl
jg 0x3008204c
pop esi
pop ebx
mov byte [eax], dl
pop ebp
ret
Function at 0x3008a4a6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x300027a8
push 0x3000278c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3008a4db
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30002788
push ebx
call edi
test esi, esi
mov dword [0x30002788], esi
jne 0x3008a53f
mov dword [0x30002788], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x3009c2f4], 0x44bf19b1
pop ebx
leave
ret

Function at 0x3008a55a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30002788]
jne 0x3008aef5
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3009d888], eax
mov dword [0x3009d884], ecx
mov dword [0x3009d880], edx
mov dword [0x3009d87c], ebx
mov dword [0x3009d878], esi
mov dword [0x3009d874], edi
mov word [0x3009d8a0], ss
mov word [0x3009d894], cs
mov word [0x3009d870], ds
mov word [0x3009d86c], es
mov word [0x3009d868], fs
mov word [0x3009d864], gs
pushfd
pop dword [0x3009d898]
mov eax, dword [ebp]
mov dword [0x3009d88c], eax
mov eax, dword [ebp + 4]
mov dword [0x3009d890], eax
lea eax, [ebp + 8]
mov dword [0x3009d89c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3009d7d8], 0x10001
mov eax, dword [0x3009d890]
mov dword [0x3009d78c], eax
mov dword [0x3009d780], 0xc0000409
mov dword [0x3009d784], 1
mov eax, dword [0x30002788]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3009c2f4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3009d7d0], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30002b10
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3009d7d0], 0
jne 0x3008afe5
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x3008a567
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300027d4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3008a5bf
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300027cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3008a5bf
mov al, 1
jmp 0x3008a5c1
xor al, al
leave
ret 8
Function at 0x3008b2a5
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [ecx + eax + 0x18]
jbe 0x3008b2e1
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x3008b2d7
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x3008b2e3
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x3008b2c7
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x3008b6cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x3008b70b
xor eax, eax
jmp 0x3008b831
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x3008b727
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x30002cf8
push edi
call fcn.3008b6a4
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x3008b767
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x3008b819
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002ce4
push ebx
call edi
push 0x30002cc4
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x3008b819
cmp dword [ebp - 0x474], esi
mov ebx, 0x30002cb0
mov edi, 0x30002c60
je 0x3008b7f1
cmp dword [ebp - 0x478], esi
je 0x3008b819
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x3008b7ea
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x3008b81d
cmp eax, 0x642
je 0x3008b81d
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x3008b81d
xor eax, eax
jmp 0x3008b82f
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x3009dab8], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3008a55a
leave
ret 4
Function at 0x3008b90d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x30002bf8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x30002d7c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x3008b998
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x3008b9c3
cmp eax, 0x208
ja 0x3008b9c3
shr eax, 1
mov esi, eax
je 0x3008b9c3
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x3008b9c3
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x3008b9b6
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.3008b87f
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.3008a55a
leave
ret 4

Function at 0x3008b9ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30002788]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30002d28
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x30002d08
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x3008ba75
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x30002d98
call fcn.3008b6a4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x3008baa7
push 0x30002d8c
call fcn.3008b90d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3008a55a
leave
ret
Function at 0x41535c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
jmp 0x41541b
cmp dword [esi + 0x10], 0x1000
jne 0x415407
test byte [esi + 0x15], 1
jne 0x415407
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4153b8
cmp ebp, 2
je 0x4153b8
cmp ebp, 0x10
je 0x4153b8
cmp ebp, 0x20
jne 0x4153d4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4153d4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4153e5
mov eax, dword [esi]
add eax, ebx
call fcn.00415354
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4153d8
cmp byte [esp + 4], 0
je 0x415407
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x41538d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5d8abf
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
sub edx, eax
or eax, edx
mov edx, edx
call fcn.005d8b06
sub edx, 1
xor dword [ecx], ebx
sub eax, 1
and eax, edx
add edx, 0xd8d61f4e
add ecx, 2
mov edx, 0x93b3b786
inc edx
cmp ecx, esi
jl fcn.005d8abf
or eax, edx
mov edx, eax
ret
Function at 0x444e30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e503b
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.004d96c2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x444eb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004d7137
mov eax, dword [eax]
push 0x50dd5c
push eax
call fcn.004c5a14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004d994d
test bl, bl
je 0x444eb2
push 0x50dd5c
lea ecx, [esp + 0xc]
call fcn.004d9cdd
push 0x50dd68
lea ecx, [esp + 0xc]
call fcn.004d9cdd
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 0x444eee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004d994d
jmp 0x444fb9
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 0x444f72
lea edx, [esp + 0x7c]
push 0x50dd64
push edx
call fcn.004c5a14
add esp, 8
test eax, eax
je 0x444f72
lea eax, [esp + 0x7c]
push 0x50dd60
push eax
call fcn.004c5a14
add esp, 8
test eax, eax
je 0x444f72
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 0x444f02
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.004d994d
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 0x4457b0
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 0x445812
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