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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4521a8]
cmp byte [eax + 0xc], 0
je 0x437819
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437812
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453af8], 0
jne 0x437700
push 0x437820
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x437828
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453af8], eax
cmp dword [0x451b24], 0
jne 0x4377fb
push 0x437838
call sub.kernel32.dll_LoadLibraryA
mov dword [0x451b24], eax
cmp dword [0x451b24], 0
je 0x4377fb
push 0x437844
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453afc], eax
push 0x437854
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b00], eax
push 0x437868
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b04], eax
push 0x437880
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b08], eax
push 0x437898
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b0c], eax
push 0x4378ac
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b10], eax
push 0x4378c4
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b14], eax
push 0x4378dc
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b18], eax
push 0x4378f8
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b1c], eax
push 0x437904
mov eax, dword [0x451b24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437819
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b6cc
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.004043a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b71b
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.00404618
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442ec4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442f14]
test si, 4
je 0x442ed8
or bl, 1
test si, 8
je 0x442ee2
or bl, 4
test si, 1
je 0x442eec
or bl, 8
test si, 2
je 0x442ef6
or bl, 0x10
test si, 0x10
je 0x442f00
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442f0f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x442f18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442f50]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442f31
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442f40
or bl, 4
test esi, 0x20000000
je 0x442f4b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449614
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x449626
add esp, 0xfffffff0
call fcn.00403954
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419c60
mov eax, dword [0x451e7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4499b8
mov eax, dword [0x451e88]
mov dword [eax + 4], ebx
mov dword [eax], 0x4499c4
mov eax, ebx
call fcn.004499d0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411cf0]
call fcn.00403604
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411cf0]
call fcn.00403604
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411cf0]
call fcn.00403604
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411cf0]
call fcn.00403604
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411cf0]
call fcn.00403604
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, 0x445de8
push eax
push 0
push 0
mov eax, dword [0x451fd0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b6d8]
call fcn.0041cb40
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b6d8]
call fcn.0041cb40
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b6d8]
call fcn.0041cb40
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449e20
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ce8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ce8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ce8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449763
call fcn.004039ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449acc
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 0x449c77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449c58
mov dl, 1
mov eax, dword [0x41210c]
call fcn.00403604
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449c47
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.00437a0c
test al, al
je 0x449c3a
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, 0x449c88
lea eax, [ebp - 0x254]
call fcn.00408ff4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449c3a
xor eax, eax
push ebp
push 0x449c33
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 0x449cc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449c1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
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 0x449c1c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449c3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449b3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d4c
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 0x449c7e
lea eax, [ebp - 0x260]
call fcn.004043a8
ret

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

Disassembly:
push ecx
mov eax, dword [0x453b44]
cmp byte [eax + 0xa5], 0
jne 0x44a631
cmp dword [0x453b5c], 0
jne 0x44a5f2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a57c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453b5c], eax
cmp dword [0x453b58], 0
jne 0x44a60d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453b58], eax
cmp dword [0x453b60], 0
jne 0x44a631
push esp
push 0
push 0
push 0x44a520
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453b60], eax
pop edx
ret
Function at 0x44acc4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453b44]
cmp dword [eax + 0x30], 0
je 0x44ad6e
cmp dword [ebx + 0x94], 0
jne 0x44ad68
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ac54
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44ad68
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 0x44ad2e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44ad68
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.0041406c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ad3d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b8cc
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 0x44b901
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.00404498
jmp 0x44b90e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44cac0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44cb01
mov eax, esi
call fcn.004331c4
test al, al
je 0x44cb01
mov eax, dword [ebx + 0x84]
call fcn.00432f64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44cb01
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432f64
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44fa44
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed4
mov dword [esp], eax
or edi, 0xffffffff
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov eax, 2
call fcn.0044f468
mov esi, eax
cmp esi, 0xffffffff
je 0x44faf5
mov dword [esp + 4], 0x128
lea edx, [esp + 4]
mov eax, esi
call fcn.0044f488
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x44faeb
mov eax, dword [esp]
cmp eax, dword [esp + 0x1c]
jne 0x44fada
cmp edi, 0xffffffff
jne 0x44fa9e
mov edi, 2
mov eax, dword [esp + 0xc]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x44fada
cmp edi, 2
jne 0x44facc
push 0
push ebp
call sub.kernel32.dll_TerminateProcess
mov edi, eax
test edi, edi
jne 0x44fad4
mov edi, 3
jmp 0x44fad4
push 0
push ebp
call sub.kernel32.dll_TerminateProcess
push ebp
call sub.kernel32.dll_CloseHandle
lea edx, [esp + 4]
mov eax, esi
call fcn.0044f4a8
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x44fa8b
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x12c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401174
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401170
lea ebx, [ebx]
cmp esi, eax
jae 0x401174
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jb 0x40117a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402e70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e80
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e96
push ebp
sub eax, edx
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push 0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402fe8
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push str..UCIP
push edx
call ebx
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402f03
mov eax, dword [esp + 0x10]
push 0xd
push str.YingUnInstall
push 1
push 0
push 0
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push str.YingUnInstall
push eax
call ebx
test eax, eax
jne 0x402fde
mov ecx, dword [esp + 0x10]
push 0xe
push str.Uninstall_File
push 1
push eax
push eax
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push str.DefaultIcon
push eax
call ebx
test eax, eax
jne 0x402f5b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ebp
push ecx
push 1
push eax
push eax
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push str.Shell
push edx
call ebx
test eax, eax
jne 0x402fd7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str.Open
push ecx
call ebx
test eax, eax
jne 0x402fd0
mov edx, dword [esp + 0x18]
push eax
push 0x469790
push 1
push eax
push eax
push edx
call esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push str.Command
push ecx
call ebx
test eax, eax
jne 0x402fc9
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push 2
push 0
push 0
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret
Function at 0x402ff0
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x403094
push 0x94
mov edi, 1
call fcn.00446c17
mov esi, eax
add esp, 4
test esi, esi
je 0x403107
push 0x94
push 0
push esi
call fcn.00446ce0
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x403055
push esi
lea edi, [eax + 1]
call fcn.00446b3a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4030fe
cmp dword [esi + 8], 0
jne 0x403075
push esi
lea edi, [eax + 1]
call fcn.00446b3a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4030fe
cmp dword [esi + 8], edi
jne 0x4030fe
push esi
lea edi, [eax + 2]
call fcn.00446b3a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x40309d
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.00446c17
mov esi, eax
add esp, 4
test esi, esi
je 0x403107
push 0x94
push 0
push esi
call fcn.00446ce0
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x4030fe
cmp dword [esi + 8], 0xa
jne 0x4030f1
push esi
lea edi, [eax - 1]
call fcn.00446b3a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x4030fe
cmp dword [esi + 8], 0x5a
jne 0x4030fe
mov edi, eax
push esi
call fcn.00446b3a
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x403110
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x486904]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0x64
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x28], 0
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x4031ed
lea esp, [esp]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x403178
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4031cf
movsx edx, byte [esi]
push edx
call fcn.00446b13
add esp, 4
cmp eax, 0x41
je 0x4031cf
movsx eax, byte [esi]
push eax
call fcn.00446b13
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [edx + ecx], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
shrd ecx, edx, 0x14
shr edx, 0x14
mov dword [ebx + eax*8], ecx
mov dword [ebx + eax*8 + 4], edx
add dword [edi], 1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4031d4
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x403160
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00445fb9
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4603e8
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x486904]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov eax, dword [0x486904]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
sub esp, 0xc
lea eax, [esp + 0x280]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x27c], 0
call fcn.00421420
lea esi, [esp + 0x28]
call fcn.00403770
mov eax, dword [eax + 4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, esi
call fcn.004212c0
mov ecx, dword [esp + 0x278]
push ecx
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.00446925
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00446ce0
mov cx, word [esp + 0x298]
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x74], cx
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403de3
lea ecx, [esp + 0x274]
mov dword [esp + 0x26c], 0xffffffff
call fcn.004212c0
mov eax, 0xbeb95
jmp 0x403e1d
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x274]
mov dword [esp + 0x26c], 0xffffffff
call fcn.004212c0
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00445fb9
add esp, 0x268
ret
Function at 0x403e50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x460428
mov eax, dword fs:[0]
push eax
sub esp, 0x70c
mov eax, dword [0x486904]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486904]
xor eax, esp
push eax
lea eax, [esp + 0x720]
mov dword fs:[0], eax
mov eax, dword [esp + 0x734]
push eax
lea ecx, [esp + 0x52c]
push 0x1f4
push ecx
call fcn.00446925
lea edx, [esp + 0x534]
push edx
lea eax, [esp + 0x344]
push 0x1f4
push eax
call fcn.00446925
lea eax, [esp + 0x34c]
add esp, 0x18
lea edx, [eax + 1]
xor ebx, ebx
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403ed0
sub eax, edx
cmp eax, 4
jl 0x403fc0
mov cx, word [esp + 0x334]
mov dl, byte [esp + 0x336]
push 0x469790
lea eax, [esp + 0x18]
push 0x12c
push eax
mov word [esp + 0x14c], cx
mov byte [esp + 0x14e], dl
mov byte [esp + 0x14f], bl
xor esi, esi
call fcn.00446925
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
cmp byte [esp + 0x337], bl
je 0x403f97
lea edi, [esp + 0x337]
mov al, byte [edi]
cmp al, 0x5c
jne 0x403f89
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x144]
push 0x1f4
push edx
mov byte [esp + esi + 0x20], bl
call fcn.0044698a
add esp, 0xc
push ebx
lea eax, [esp + 0x144]
push eax
call ebp
push 0x469904
lea ecx, [esp + 0x144]
push 0x1f4
push ecx
call fcn.0044698a
add esp, 0xc
xor esi, esi
mov byte [esp + 0x14], bl
jmp 0x403f90
mov byte [esp + esi + 0x14], al
add esi, 1
add edi, 1
cmp byte [edi], bl
jne 0x403f38
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x144]
push 0x1f4
push eax
mov byte [esp + esi + 0x20], bl
call fcn.0044698a
add esp, 0xc
push ebx
lea ecx, [esp + 0x144]
push ecx
call ebp
lea ecx, [esp + 0x730]
mov dword [esp + 0x728], 0xffffffff
call fcn.004212c0
mov ecx, dword [esp + 0x720]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.00445fb9
add esp, 0x718
ret
Function at 0x404030
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x460468
mov eax, dword fs:[0]
push eax
sub esp, 0x908
mov eax, dword [0x486904]
xor eax, esp
mov dword [esp + 0x904], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486904]
xor eax, esp
push eax
lea eax, [esp + 0x91c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x930]
push eax
lea ecx, [esp + 0x728]
push 0x1f4
push ecx
call fcn.00446925
push 0x469d2c
lea edx, [esp + 0x734]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00447468
add esp, 0x18
test eax, eax
jne 0x40423c
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x1e0
push edx
call fcn.0044721d
mov eax, dword [esp + 0x20]
push eax
call fcn.004471ee
add esp, 0x10
test eax, eax
jne 0x40422f
lea esi, [esp + 0x1c]
sub esi, 2
mov dword [esp + 0x18], esi
mov ebp, dword [esp + 0x18]
xor ebx, ebx
jmp 0x4040e7
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4040f0
sub eax, edx
mov byte [esi + eax], bl
mov edi, 0x469790
lea esi, [esp + 0x1c]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404206
cmp byte [esp + 0x1c], 0x5b
jne 0x404131
lea eax, [esp + 0x1c]
push eax
call fcn.00403480
add esp, 4
mov ebp, eax
jmp 0x404206
cmp byte [esp + 0x1d], 0x22
mov esi, 1
je 0x40414a
lea ecx, [ecx]
add esi, 1
cmp byte [esp + esi + 0x1c], 0x22
jne 0x404140
lea ecx, [esi - 1]
push ecx
lea edx, [esp + 0x21]
push edx
lea eax, [esp + 0x40c]
push eax
call fcn.00446d60
lea eax, [esp + 0x28]
add esp, 0xc
mov byte [esp + esi + 0x403], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404171
sub eax, edx
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + esi + 0x23]
push ecx
lea edx, [esp + 0x218]
push edx
call fcn.00446d60
lea eax, [esp + 0x28]
add esp, 0xc
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4041a0
sub eax, ecx
sub eax, esi
mov byte [esp + eax + 0x20c], bl
lea eax, [esp + 0x210]
push eax
push 0x469d28
lea ecx, [esp + 0x600]
push 0x12c
push ecx
call fcn.004471b3
lea eax, [esp + 0x220]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4041e0
sub eax, ecx
push eax
lea edx, [esp + 0x5fc]
push edx
push 1
push ebx
lea eax, [esp + 0x414]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x1e0
push edx
call fcn.0044721d
mov eax, dword [esp + 0x20]
push eax
call fcn.004471ee
add esp, 0x10
test eax, eax
je 0x4040e3
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00447137
add esp, 4
lea ecx, [esp + 0x92c]
mov dword [esp + 0x924], 0xffffffff
call fcn.004212c0
mov ecx, dword [esp + 0x91c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x904]
xor ecx, esp
call fcn.00445fb9
add esp, 0x914
ret