joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ab3c
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 0x45ace7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45acc8
mov dl, 1
mov eax, dword [0x41651c]
call fcn.0040331c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404140
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45acb7
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.00448a20
test al, al
je 0x45acaa
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, 0x45acf8
lea eax, [ebp - 0x254]
call fcn.004096f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45acaa
xor eax, eax
push ebp
push 0x45aca3
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 0x45ad30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ac8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043b0
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 0x45ac8c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45acaa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45abad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a4a8
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 0x45acee
lea eax, [ebp - 0x260]
call fcn.00404140
ret

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

Disassembly:
push ecx
mov eax, dword [0x47fbbc]
cmp byte [eax + 0xa5], 0
jne 0x45b68d
cmp dword [0x47fbd4], 0
jne 0x45b64e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b5d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47fbd4], eax
cmp dword [0x47fbd0], 0
jne 0x45b669
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47fbd0], eax
cmp dword [0x47fbd8], 0
jne 0x45b68d
push esp
push 0
push 0
push 0x45b57c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47fbd8], eax
pop edx
ret
Function at 0x45b784
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b79b
add esp, 0xfffffff0
call fcn.00403670
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e34c
mov eax, dword [0x47dfc0]
cmp word [eax + 2], 0
jne 0x45b7c3
mov eax, dword [0x47dfc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cf04
mov eax, dword [0x47e0f4]
cmp word [eax + 2], 0
jne 0x45b7dd
mov eax, dword [0x47e0f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d0fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416048]
call fcn.0040331c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416048]
call fcn.0040331c
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 [0x420860]
call fcn.0042812c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b964
mov eax, dword [0x47de54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004284fc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d6ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47de54]
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.0040d5e8
test eax, eax
je 0x45b8d2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d4c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d610
test eax, eax
je 0x45b8e6
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.004043b0
mov eax, dword [0x47dc2c]
cmp byte [eax], 0
jne 0x45b91a
mov eax, ebx
call fcn.0045ba8c
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.0045d888
mov eax, ebx
call fcn.0045e24c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b95a
call fcn.004036c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bd0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47fbbc]
cmp dword [eax + 0x30], 0
je 0x45bdb6
cmp dword [ebx + 0x94], 0
jne 0x45bdb0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bc9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45bdb0
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 0x45bd76
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45bdb0
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.004184d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45bd85
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c918
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 0x45c94d
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.00404230
jmp 0x45c95a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404194
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45da64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45daa5
mov eax, esi
call fcn.0044402c
test al, al
je 0x45daa5
mov eax, dword [ebx + 0x84]
call fcn.00443d28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45daa5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443d28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45ee5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x45ee94]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x45ee72
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x45ee81
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x45ee90
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x460230
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x47e0b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460256
push 0
mov eax, dword [0x47e0b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x460adc
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x460aec
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x460b01
mov byte [ebx + 0xd], 0
pop ebx
ret
Function at 0x460c04
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.00460b70
mov esi, eax
mov eax, ebx
call fcn.0040334c
mov eax, esi
pop esi
pop ebx
ret

Function at 0x46146c
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 [0x4155f8]
call fcn.00404aac
xor eax, eax
push ebp
push 0x4615b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47cef0], 0
jne 0x4614bf
mov ecx, dword [0x47dc54]
mov dl, 1
mov eax, dword [0x4073ec]
call fcn.0040c7e8
call fcn.00403ad8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d60
mov eax, ebx
call fcn.0040497c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4615c0
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.00405a30
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040498c
test eax, eax
jle 0x461557
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 0x461550
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004043c8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004043b0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004082e8
test eax, eax
jne 0x461550
mov ebx, 0x15
jmp 0x46155c
mov ebx, 0x10
jmp 0x46155c
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 [0x47cef0]
call fcn.004613c4
mov eax, dword [ebp - 8]
call fcn.004613c4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4615b7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404164
lea eax, [ebp - 0x10]
mov edx, dword [0x4155f8]
call fcn.00404b7c
ret
Function at 0x46e2e4
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x47d304], 0
mov eax, dword [0x47e318]
cmp dword [eax], 2
jne 0x46e4bd
mov eax, dword [0x47de5c]
cmp dword [eax], 5
jl 0x46e4bd
call fcn.0046b480
test al, al
jne 0x46e315
call fcn.0046b48c
call fcn.0046b478
mov dword [0x47d30c], eax
push 0x46e4c0
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2d0], eax
cmp dword [0x47d2d0], 0
jne 0x46e370
mov edx, 0x8000
mov eax, 0x46e4d4
call fcn.0040e258
mov dword [0x47d308], eax
mov eax, dword [0x47d308]
mov dword [0x47d30c], eax
push 0x46e4c0
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2d0], eax
cmp dword [0x47d2d0], 0
je 0x46e4b8
push 0x46e4e0
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2d4], eax
cmp dword [0x47d2d4], 0
je 0x46e4b8
push 0x46e4ec
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2d8], eax
cmp dword [0x47d2d8], 0
je 0x46e4b8
mov byte [0x47d304], 1
push 0x46e4fc
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2dc], eax
push 0x46e508
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2e0], eax
push 0x46e514
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2e4], eax
push 0x46e524
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2e8], eax
push 0x46e534
mov eax, dword [0x47d30c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2ec], eax
mov edx, 0x8000
mov eax, 0x46e54c
call fcn.0040e258
mov dword [0x47d310], eax
cmp dword [0x47d310], 0
je 0x46e4bd
push 0x46e55c
mov eax, dword [0x47d310]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2f0], eax
push 0x46e578
mov eax, dword [0x47d310]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2f4], eax
push 0x46e598
mov eax, dword [0x47d310]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2f8], eax
push 0x46e5b4
mov eax, dword [0x47d310]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d2fc], eax
push 0x46e5cc
mov eax, dword [0x47d310]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47d300], eax
ret
call fcn.0046e264
ret
Function at 0x470bf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x470d18
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00470adc
mov eax, dword [esi]
call fcn.004051bc
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x468f54]
call fcn.00405378
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402984
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402984
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004051bc
mov dword [ebp - 0xc], eax
mov eax, dword [0x47e22c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.00469c30
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402d60
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004051bc
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.00469b60
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.00469b48
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.00469c28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470d1f
lea eax, [ebp - 8]
mov edx, dword [0x468f54]
call fcn.00405384
ret

Function at 0x4774a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47750f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004043b0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d40c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477516
lea eax, [ebp - 0x10c]
call fcn.00404140
ret
Function at 0x478b70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045f0
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x478cef
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x478cbf
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esi], 0x128
push esi
push ebx
call sub.kernel32.dll_Process32First
jmp 0x478cad
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004043b0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408bc4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00477d4c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00477d4c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040454c
je 0x478c91
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004043b0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00477d4c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00477d4c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040454c
jne 0x478ca6
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push esi
push ebx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x478bf2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478cc9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478cf6
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404164
lea eax, [ebp - 4]
call fcn.00404140
ret
Function at 0x478d00
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov eax, dword [ebp - 4]
call fcn.004045f0
mov eax, dword [ebp + 8]
call fcn.004045f0
xor eax, eax
push ebp
push 0x478f26
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x478efe
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x478ee6
cmp esi, dword [ebp - 0x124]
jne 0x478ed3
call fcn.0040a878
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00468bcc
cmp eax, 0x1f4
jge 0x478eee
cmp byte [0x47fd88], 1
jne 0x478db7
cmp eax, 0x1f4
jge 0x478dc9
mov edx, 0x1f4
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
jmp 0x478dc9
cmp eax, 0xa
jge 0x478dc9
mov edx, 0xa
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov edx, 0x478f40
call fcn.0040454c
jne 0x478de2
mov eax, dword [ebp + 8]
call fcn.00478b70
jmp 0x478dfa
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov edx, 0x478f58
call fcn.0040454c
je 0x478e22
mov eax, dword [ebp + 8]
mov edx, 0x478f70
call fcn.0040454c
jne 0x478e4b
push 1
push 0
mov eax, dword [0x47fd94]
call fcn.00404600
push eax
mov eax, dword [ebp - 4]
call fcn.00404600
push eax
push 0x478f84
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x478eee
mov eax, dword [ebp + 8]
mov edx, 0x478f94
call fcn.0040454c
je 0x478e87
mov eax, dword [ebp + 8]
mov edx, 0x478fb0
call fcn.0040454c
je 0x478e87
mov eax, dword [ebp + 8]
mov edx, 0x478fc4
call fcn.0040454c
je 0x478e87
mov eax, dword [ebp + 8]
mov edx, 0x478fd8
call fcn.0040454c
jne 0x478ead
push 1
push 0
mov eax, dword [0x47fd90]
call fcn.00404600
push eax
mov eax, dword [ebp - 4]
call fcn.00404600
push eax
push 0x478f84
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x478eee
push 1
push 0
mov eax, dword [0x47fd8c]
call fcn.00404600
push eax
mov eax, dword [ebp - 4]
call fcn.00404600
push eax
push 0x478f84
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x478eee
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x478d6a
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478f2d
lea eax, [ebp - 4]
call fcn.00404140
lea eax, [ebp + 8]
call fcn.00404140
ret
Function at 0x407f00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d47b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004720eb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407f82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046fe2d
mov eax, dword [eax]
push 0x49fc64
push eax
call fcn.00462aa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00472376
test bl, bl
je 0x407f82
push 0x49fc64
lea ecx, [esp + 0xc]
call fcn.00472706
push 0x49fc70
lea ecx, [esp + 0xc]
call fcn.00472706
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x407fbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00472376
jmp 0x408089
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408042
lea edx, [esp + 0x7c]
push 0x49fc6c
push edx
call fcn.00462aa4
add esp, 8
test eax, eax
je 0x408042
lea eax, [esp + 0x7c]
push 0x49fc68
push eax
call fcn.00462aa4
add esp, 8
test eax, eax
je 0x408042
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407fd2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00472376
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408890
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4088f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc