joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458230
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 0x4583db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4583bc
mov dl, 1
mov eax, dword [0x4132e0]
call fcn.00403e60
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404cbc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4583ab
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.0044ac80
test al, al
je 0x45839e
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, 0x4583ec
lea eax, [ebp - 0x254]
call fcn.00409f58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45839e
xor eax, eax
push ebp
push 0x458397
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 0x458424
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458380
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f2c
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 0x458380
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45839e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4582a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416fd8
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 0x4583e2
lea eax, [ebp - 0x260]
call fcn.00404cbc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4815b0]
cmp byte [eax + 0xad], 0
jne 0x458dc5
cmp dword [0x4815c8], 0
jne 0x458d86
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458d10
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4815c8], eax
cmp dword [0x4815c4], 0
jne 0x458da1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4815c4], eax
cmp dword [0x4815cc], 0
jne 0x458dc5
push esp
push 0
push 0
push 0x458cb4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4815cc], eax
pop edx
ret
Function at 0x458f98
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458faf
add esp, 0xfffffff0
call fcn.004041b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b0d8
mov eax, dword [0x47d3d0]
cmp word [eax + 2], 0
jne 0x458fd7
mov eax, dword [0x47d3d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045aaf0
mov eax, dword [0x47d488]
cmp word [eax + 2], 0
jne 0x458ff1
mov eax, dword [0x47d488]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045acfc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.00403e60
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.00403e60
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.00403e60
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41fe48]
call fcn.00427860
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4591a8
mov eax, dword [0x47d2dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427c34
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b3cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47d2dc]
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.0040d888
test eax, eax
je 0x4590f8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d8bc
test eax, eax
je 0x45910c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f2c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45a638
call fcn.0041c254
mov dword [ebx + 0xc8], eax
mov eax, dword [0x47d1a4]
cmp byte [eax], 0
jne 0x45915d
mov eax, ebx
call fcn.004592ec
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045b5a8
mov eax, ebx
call fcn.0045c108
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45919d
call fcn.0040420c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45956c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4815b0]
cmp dword [eax + 0x30], 0
je 0x459616
cmp dword [ebx + 0x94], 0
jne 0x459610
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4594fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459610
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 0x4595d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459610
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.00415268
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4595e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a330
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45a365
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.00404dac
jmp 0x45a372
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d10
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b78c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b7fa
mov eax, esi
call fcn.0044591c
test al, al
je 0x45b7fa
mov eax, dword [ebx + 0x84]
call fcn.0044557c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b7fa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45b7ee
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044557c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043d968
jmp 0x45b7fa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045b5c8
pop esi
pop ebx
ret
Function at 0x45f030
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45f05e
mov eax, ebx
call fcn.0045fae4
cmp dword [ebx + 0x40], 0
je 0x45f057
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45f0cf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45f0c1
cmp dword [ebx + 8], 0
je 0x45f080
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 0x45f092
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45f0c1
cmp dword [ebx + 8], 0
je 0x45f073
cmp eax, 3
je 0x45f0a5
dec eax
jne 0x45f073
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 0x45f073
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45f073
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45f0ed
cmp dword [ebx + 0x14], 0xcc
je 0x45f0ed
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.0045f0f8
pop ebx
ret

Function at 0x473224
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
cmp dword [0x4819f8], 1
jne 0x47323b
push 0
push 0x12
call sub.user32.dll_ExitWindowsEx
jmp 0x4732a7
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x473263
mov ecx, 0x4732b4
mov dl, 1
mov eax, dword [0x407c14]
call fcn.0040c9f0
call fcn.00404704
lea eax, [esp + 0xc]
push eax
push 0x4732dc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 0x12
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret

Function at 0x473630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405170
mov eax, dword [ebp - 8]
call fcn.00405170
xor eax, eax
push ebp
push 0x4736cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403678
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0x500
mov eax, 0x4736dc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.00405180
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.00405180
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x4736b4
call fcn.0040e124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4736d6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ce0
ret
Function at 0x474f48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x475117
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409478
test al, al
jne 0x474fc4
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.0040969c
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 0x268], 0xb
lea eax, [ebp - 0x26c]
push eax
push 0
mov ecx, 0x475134
mov dl, 1
mov eax, dword [0x407c14]
call fcn.0040ca2c
call fcn.00404704
push ebx
push 0x47515c
push edi
lea eax, [ebp - 0x274]
mov edx, 3
call fcn.00405040
mov edx, dword [ebp - 0x274]
lea eax, [ebp - 0x210]
call fcn.0040994c
lea eax, [ebp - 0x254]
xor ecx, ecx
mov edx, 0x44
call fcn.00403678
mov dword [ebp - 0x254], 0x44
mov dword [ebp - 0x228], 1
movzx eax, word [ebp - 4]
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp bl, 1
cmc
sbb eax, eax
call fcn.0040e1c8
mov eax, esi
sub eax, 1
jb 0x4750e1
je 0x475068
dec eax
je 0x475078
jmp 0x4750d4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4750e1
push 0x32
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
jne 0x4750e1
mov eax, dword [0x47d46c]
mov eax, dword [eax]
call fcn.0045a7e8
push 0x32
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
je 0x47509f
jmp 0x4750e1
push esi
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x264]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47511e
lea eax, [ebp - 0x274]
mov edx, 2
call fcn.00404ce0
ret
Function at 0x475820
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405170
xor eax, eax
push ebp
push 0x47597d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x47589d
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00409020
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x475994
call fcn.00404fcc
mov eax, dword [ebp - 0x24]
call fcn.004730d4
jmp 0x47595a
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00405180
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x4758e2
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00409020
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x4759c0
call fcn.00404fcc
mov eax, dword [ebp - 0x2c]
call fcn.004730d4
jmp 0x475954
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x47591b
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.00409020
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4759e8
call fcn.00404fcc
mov eax, dword [ebp - 0x34]
call fcn.004730d4
push esi
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x47594e
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00409020
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x475a14
call fcn.00404fcc
mov eax, dword [ebp - 0x3c]
call fcn.004730d4
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475984
lea eax, [ebp - 0x40]
mov edx, 8
call fcn.00404ce0
lea eax, [ebp - 4]
call fcn.00404cbc
ret
Function at 0x4765c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x476802
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41e3c8]
call fcn.0041e4c8
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0041e568
xor ecx, ecx
mov edx, 0x476818
mov eax, ebx
call fcn.0041e6ac
cmp dword [0x4819f8], 1
jne 0x476646
cmp dword [0x4819ec], 4
je 0x476660
cmp dword [0x4819f8], 2
jne 0x4767d0
cmp dword [0x4819ec], 4
jne 0x4767d0
test al, al
je 0x4767d0
cmp dword [0x4819f8], 1
jne 0x476718
push 0x476864
lea edx, [ebp - 0x128]
mov eax, dword [0x47d250]
call fcn.00409ae8
push dword [ebp - 0x128]
push 0x47688c
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00405040
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x11d]
call fcn.0040994c
mov eax, 0x4768bc
call fcn.004730d4
push 1
push 0
lea eax, [ebp - 0x11d]
push eax
push 0x4768ec
push 0x4768f8
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.0040ac58
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040b858
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 4]
mov edx, 0x476908
call fcn.00404fcc
mov eax, dword [ebp - 0x12c]
call fcn.004730d4
jmp 0x4767d0
cmp dword [0x4819f8], 2
jne 0x4767d0
cmp dword [0x4819ec], 4
jne 0x4767d0
push 0x476864
lea edx, [ebp - 0x134]
mov eax, dword [0x47d250]
call fcn.00409ae8
push dword [ebp - 0x134]
push 0x476930
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00405040
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x11d]
call fcn.0040994c
mov eax, 0x476960
call fcn.004730d4
push 1
push 0
lea eax, [ebp - 0x11d]
push eax
push 0x4768ec
push 0x4768f8
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.0040ac58
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040b858
lea eax, [ebp - 0x138]
mov ecx, dword [ebp - 8]
mov edx, 0x476908
call fcn.00404fcc
mov eax, dword [ebp - 0x138]
call fcn.004730d4
mov eax, ebx
call fcn.00403e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476809
lea eax, [ebp - 0x138]
mov edx, 6
call fcn.00404ce0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ce0
ret
Function at 0x478240
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
push 0x478304
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x478267
push 0x478314
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481ae0], eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
mov dword [0x481acc], eax
mov edx, 0x47832c
mov eax, esp
call fcn.00409994
mov eax, esp
call fcn.00478a20
mov eax, dword [0x4819dc]
mov eax, dword [eax + 0x37c]
mov edx, dword [0x481acc]
call fcn.00472898
mov eax, dword [0x4819dc]
mov eax, dword [eax + 0x37c]
mov edx, 1
call fcn.004728f4
mov eax, dword [0x4819dc]
mov eax, dword [eax + 0x37c]
xor edx, edx
call fcn.0047288c
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, 0x47832c
mov eax, esp
call fcn.00409994
mov eax, esp
call fcn.00478334
test ebx, ebx
je 0x4782f9
push ebx
call sub.kernel32.dll_FreeLibrary_1
add esp, 0x108
pop ebx
ret
Function at 0x478a20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdb4
mov edi, eax
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
cmp dword [esp], 0
jne 0x478a52
call sub.kernel32.dll_GetLastError_1
jmp 0x478b2d
lea eax, [esp + 0x10c]
push eax
push edi
call sub.kernel32.dll_FindFirstFileA_1
mov ebp, eax
lea eax, [esp + 0x10c]
push eax
push ebp
call sub.kernel32.dll_FindNextFileA
mov eax, edi
call fcn.004098a4
mov byte [edi + eax - 1], 0
lea eax, [esp + 4]
mov edx, edi
call fcn.004098e0
jmp 0x478af9
lea edx, [esp + 0x138]
mov eax, edi
call fcn.00409994
test byte [esp + 0x10c], 0x10
je 0x478ab4
mov edx, 0x478b38
mov eax, edi
call fcn.00409994
mov eax, edi
call fcn.00478a20
mov eax, edi
call fcn.004098a4
mov esi, eax
movzx ebx, byte [edi + esi - 1]
cmp bl, 0x66
je 0x478acc
cmp bl, 0x46
jne 0x478aee
cmp byte [edi + esi - 2], 0x6e
je 0x478ada
cmp byte [edi + esi - 2], 0x4e
jne 0x478aee
cmp byte [edi + esi - 3], 0x69
je 0x478ae8
cmp byte [edi + esi - 3], 0x49
jne 0x478aee
inc dword [0x481acc]
lea edx, [esp + 4]
mov eax, edi
call fcn.004098e0
lea eax, [esp + 0x10c]
push eax
push ebp
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x478a89
push 0x8000
push 0
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
test eax, eax
jne 0x478b2b
call sub.kernel32.dll_GetLastError_1
jmp 0x478b2d
xor eax, eax
add esp, 0x24c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x478b3c
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x478b57
xor eax, eax
pop esi
pop ebx
ret
push ebx
call sub.advapi32.dll_LockServiceDatabase
mov esi, eax
test esi, esi
jne 0x478b68
xor eax, eax
pop esi
pop ebx
ret
push 0xf01ff
push 0x478bb0
push ebx
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x478b83
xor eax, eax
pop esi
pop ebx
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call sub.advapi32.dll_ChangeServiceConfigA
push esi
call sub.advapi32.dll_UnlockServiceDatabase
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov al, 1
pop esi
pop ebx
ret
Function at 0x40625c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406281
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x406278
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x4062f4
cmp dword [0x440a20], ebx
je 0x4062f4
cmp byte [0x440620], bl
je 0x4062c0
cmp dword [0x40a880], 0xffffffff
jne 0x4062c9
push 4
push 0x40000000
push 0x440620
call fcn.00405c10
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x4062f4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x4062f4
push esi
mov esi, 0x444a40
push 0x40aac8
push esi
call fcn.00405f5e
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f51
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44021c], esi
push edi
jne 0x4064e0
mov ecx, 0x440218
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064bc
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440618
jl 0x4064b7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406515
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440218]
xor eax, esi
inc ecx
dec edx
jne 0x4064f8
pop edi
pop esi
not eax
ret 0xc

Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
dec ebx
sub ebx, 0xc665e22c
call fcn.0043b686
and ebx, ebx
xor dword [esi], edi
or edx, edx
or edx, edx
inc esi
sub ebx, ebx
cmp esi, eax
jne fcn.0043b651
add ebx, 0x865d4f95
inc ebx
ret