joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007070
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
or esi, 0xffffffff
inc eax
dec ebx
dec eax
inc ebx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CreateToolhelp32Snapshot
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 8], eax
jne 0x100070ba
push str.GetProc_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc eax
dec ebx
dec eax
inc ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 2
inc eax
dec ebx
dec eax
inc ebx
call dword [ebp - 8]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x130]
push eax
push ebx
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10007116
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x128]
cmp eax, edi
je 0x1000710c
lea ecx, [ebp - 0x130]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10007116
cmp dword [ebp - 0x128], edi
jne 0x100070f3
inc eax
dec ebx
dec eax
inc ebx
mov esi, dword [ebp - 0x118]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007120
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
inc eax
dec ebx
dec eax
inc ebx
push str.Kernel32.dll
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1000715b
inc eax
dec ebx
dec eax
inc ebx
push str.Loaddll_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CreateToolhelp32Snapshot
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [ebp - 8], ecx
inc eax
dec ebx
dec eax
inc ebx
test ecx, ecx
jne 0x10007189
push str.GetProc_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 2
call dword [ebp - 8]
mov dword [ebp - 4], eax
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x130]
push eax
push ecx
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100071f0
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
inc eax
dec ebx
dec eax
inc ebx
lea edx, [ebp - 0x10c]
push str.explorer.exe
push edx
call esi
add esp, 8
test eax, eax
je 0x100071ea
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x130]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100071f0
jmp 0x100071bb
mov edi, dword [ebp - 0x128]
inc eax
dec ebx
dec eax
inc ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008140
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x100080c0
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x100081b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000c338
push 0x1000b800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x2c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0x100
lea ecx, [ebp - 0x13c]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x10008269
mov dword [ebp - 0x28], eax
jmp 0x10008280
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x140]
test eax, eax
jne 0x1000827c
mov dword [ebp - 0x28], eax
jmp 0x10008280
push esi
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.100082a6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008390
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x100083fe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10008455
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1000846d
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008478
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret

Function at 0x10008550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000856e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000856e
xor eax, eax
ret
mov eax, 1
ret
Function at 0x10008580
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
sub esp, 0x2c
mov al, 0x45
push ebx
mov byte [esp + 5], al
mov byte [esp + 8], al
mov al, 0x6c
mov cl, 0x6f
mov byte [esp + 0xe], al
mov byte [esp + 0xf], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov al, 0x70
push ebp
mov byte [esp + 0x25], al
mov byte [esp + 0x2b], al
push esi
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], cl
mov byte [esp + 0x32], cl
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x10]
mov dl, 0x65
mov bl, 0x68
push eax
push ecx
mov byte [esp + 0x18], 0x4b
mov byte [esp + 0x1a], 0x52
mov byte [esp + 0x1b], 0x4e
mov byte [esp + 0x1d], 0x4c
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x24], 0
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x74
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], 0x54
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], dl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x53
mov byte [esp + 0x39], 0x6e
mov byte [esp + 0x3a], 0x61
mov byte [esp + 0x3c], 0x73
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3f], 0x74
mov byte [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
call eax
push 0x128
mov edi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100086ce
mov ebp, dword [esp + 0x40]
lea ebx, [esi + 0x24]
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100086ac
mov edi, dword [esi + 8]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100086ce
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10008696
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100086b7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10008a30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000c368
push 0x1000b800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x38], edi
push str.RegCreateKeyExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2c], eax
push str.RegSetValueExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push edi
call esi
mov dword [ebp - 0x1c], eax
push str.RegDeleteValueA
push edi
call esi
mov dword [ebp - 0x40], eax
push str.RegOpenKeyExA
push edi
call esi
mov ebx, eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.0x10008b1f.3
jmp dword [eax*4 + 0x10008be8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne case.0x10008b1f.3
lea ecx, [ebp - 0x3c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
jne case.0x10008b1f.3
mov ebx, dword [ebp + 0x14]
lea eax, [ebx - 1]
cmp eax, 6
ja case.0x10008b1f.3
jmp dword [eax*4 + 0x10008bf8]
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
jmp 0x10008b3b
push 4
lea eax, [ebp + 0x1c]
push eax
push ebx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x34]
test eax, eax
jne case.0x10008b1f.3
jmp 0x10008ba1
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
test eax, eax
jne case.0x10008b1f.3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne case.0x10008b1f.3
jmp 0x10008ba1
lea edx, [ebp - 0x3c]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
jne case.0x10008b1f.3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
test eax, eax
jne case.0x10008b1f.3
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10008bd6
test edi, edi
je 0x10008bbf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6e6459a1
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6d5a4ab8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x1000bb30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037fb8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1003b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x10], 0x100013a0
mov dword [edi + 0x14], edi
mov dword [edi + 4], 1
mov dword [edi + 0xc], edi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], 0x100012f0
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 8], 4
test ecx, ecx
je 0x1000bbd1
mov dword [edi + 0x30], ecx
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1003e1c0]
call esi
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x2c], ecx
test ecx, ecx
je 0x1000bbeb
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1003e1c0]
call esi
mov eax, edi
cmp ebx, 0x8007000e
jne 0x1000bc10
mov dword [edi + 0x1c], 7
mov dword [edi + 0x148], 0xe2
mov dword [edi + 0x144], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037650
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 9
push 0
push str.SOFTWAREMicrosoftMSSQLServerClientSQLXMLX
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
mov dword [0x1003b050], 0x1f
mov dword [0x1003b088], 0x1f
mov dword [0x1003b084], 0x708
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000fd7f
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x1000fd7f
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x100038a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000fc8c
mov eax, dword [ebp - 8]
mov dword [0x1003b050], eax
cmp eax, 0x80
jbe 0x1000fc8c
mov dword [0x1003b050], 0x80
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100038b4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000fcca
mov eax, dword [ebp - 8]
mov dword [0x1003b088], eax
cmp eax, 0x80
jbe 0x1000fcca
mov dword [0x1003b088], 0x80
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100038c8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000fcf9
cmp dword [ebp - 8], eax
setne byte [0x1003d094]
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100038e4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100038fc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000fd47
mov eax, dword [ebp - 8]
mov dword [0x1003b084], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10003914
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000fd76
cmp dword [ebp - 8], eax
setne byte [0x1003d0ac]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x100204b0
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + edx]
cmp esi, edi
jae 0x100204fe
jmp 0x100204d0
mov al, byte [ecx]
movsx edx, al
cmp edx, 0x100
ja 0x100204e9
cmp byte [edx + 0x100048f0], 0x3f
ja 0x100204e9
inc ebx
jmp 0x100204f9
cmp al, 0x20
je 0x100204f9
cmp al, 9
je 0x100204f9
cmp al, 0xd
je 0x100204f9
cmp al, 0xa
jne 0x10020525
inc ecx
cmp ecx, edi
jb 0x100204d0
mov edi, dword [ebp + 8]
lea eax, [ebx + 3]
shr eax, 2
mov edx, edi
mov dword [ebp - 4], edx
lea eax, [eax + eax*2]
test edi, edi
jne 0x10020545
mov edx, eax
mov eax, dword [ebp + 0xc]
sub edx, edi
pop edi
pop esi
mov dword [eax], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10020539
mov ecx, ebx
and ecx, 3
je 0x100204fe
cmp al, 0x3d
jne 0x10020539
cmp ecx, 1
jne 0x100204fe
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jbe 0x1002055a
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0xea
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10020633
mov dword [ebp - 8], 0
xor edi, edi
jmp 0x10020570
mov eax, 4
cmp ebx, 4
ja 0x1002057c
mov eax, ebx
cmp edi, eax
jae 0x100205b7
mov al, byte [esi]
movsx ecx, al
cmp ecx, 0x100
jae 0x100205af
mov dl, al
nop
movsx ecx, dl
mov al, dl
cmp byte [ecx + 0x100048f0], 0x3f
jbe 0x100205af
mov al, byte [esi + 1]
inc esi
movsx ecx, al
mov dl, al
cmp ecx, 0x100
jb 0x10020590
mov byte [ebp + edi - 8], al
inc esi
inc edi
jmp 0x10020570
mov eax, dword [ebp - 8]
movzx ecx, ah
movzx eax, al
mov dl, byte [ecx + 0x100048f0]
movzx ecx, byte [eax + 0x100048f0]
mov al, dl
shr al, 4
shl cl, 2
or cl, al
mov eax, dword [ebp - 4]
mov byte [eax], cl
inc eax
mov cl, byte [ebp - 6]
mov dword [ebp - 4], eax
cmp edi, 2
jbe 0x10020604
movzx eax, cl
shl dl, 4
mov al, byte [eax + 0x100048f0]
shr al, 2
or al, dl
mov edx, dword [ebp - 4]
mov byte [edx], al
inc edx
mov dword [ebp - 4], edx
jmp 0x10020607
mov edx, dword [ebp - 4]
cmp edi, 3
jbe 0x10020628
movzx eax, cl
mov cl, byte [eax + 0x100048f0]
movzx eax, byte [ebp - 5]
shl cl, 6
or cl, byte [eax + 0x100048f0]
mov byte [edx], cl
inc edx
mov dword [ebp - 4], edx
sub ebx, edi
jne 0x10020562
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub edx, edi
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10037a90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10037ace
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10037ac6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10037ad0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10037ab6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10037ba0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10037bb6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10037bd1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4022e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40230b
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
jmp 0x402311
mov al, byte [ebp + 0x10]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
leave
ret 0xc
Function at 0x403288
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404db4
test esi, esi
jne 0x4032bf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404ea4
jmp 0x4032e0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403124
mov dword [esp], eax
test esi, esi
je 0x4032e0
cmp dword [ebx], 0
je 0x4032e0
dec esi
jmp 0x4032c7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403e94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x486020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f0c
xor eax, eax
push ebp
push 0x403f05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403f48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x486020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x486020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48904c], 0
je 0x404c91
cmp word [0x489220], 0xd7b2
jne 0x404c59
cmp dword [0x489228], 0
jbe 0x404c59
mov eax, 0x48921c
call dword [0x489238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x486070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404cb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486030], 0
jne 0x404cad
push 0
push 0x486068
push 0x486070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret