joyce8/EMBER2024-capa huggingface dataset:
Function at 0x535060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa16bb8]
xor edx, edx
cmp eax, edx
jne 0x535086
xor eax, eax
mov byte [eax + 0xa16ab8], al
inc eax
cmp eax, 0x100
jl 0x53506e
mov dword [0xa16bb8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa16ab8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x535117
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5350ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5350b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x535120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x535173
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x53515a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53bb10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x566a8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0053c430
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x9cdce4
call fcn.005593e8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x53bba3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005593e8
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x53bb9c
push 0
mov ecx, eax
call fcn.00532ca0
mov dword [esi + 0xc], eax
jmp 0x53bba5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x53bba5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x55ba75
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x55baad
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00559b02
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00559ada
jmp 0x55bab9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x55d167
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x55d1a9
call fcn.00563206
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x55d1a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x55d1a0
xor eax, eax
jmp 0x55d1b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055d1b7
pop edi
pop esi
pop ebx
ret 4

Function at 0x5628eb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x562919
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x562937
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00562851
jmp 0x562937
mov eax, dword [esi + 0x14]
test eax, eax
je 0x562937
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00562851
test edi, edi
mov eax, edi
jne 0x562921
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401d05
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x417148], eax
mov esp, ebp
pop ebp
ret

Function at 0x401e68
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x417148]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
ret
Function at 0x402da3
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push edi
mov dword [ebp - 0x160], 0x44
mov dword [ebp - 0x15c], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x104
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0x412dac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
sub ecx, 1
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 0x164], 4
ja case.default.0x402e3a
mov edx, dword [ebp - 0x164]
jmp dword [edx*4 + 0x402fd5]
mov eax, dword [ebp + 8]
push eax
push 0x412dc8
lea ecx, [ebp - 0x118]
push ecx
call fcn.00408310
add esp, 4
lea edx, [ebp + eax - 0x118]
push edx
call fcn.0040811b
add esp, 0xc
jmp case.default.0x402e3a
push 0x412de0
lea eax, [ebp - 0x118]
push eax
call fcn.00408310
add esp, 4
lea ecx, [ebp + eax - 0x118]
push ecx
call fcn.00408170
add esp, 8
jmp case.default.0x402e3a
push 0x412df0
lea edx, [ebp - 0x118]
push edx
call fcn.00408310
add esp, 4
lea eax, [ebp + eax - 0x118]
push eax
call fcn.00408170
add esp, 8
jmp case.default.0x402e3a
push 0x412e00
lea ecx, [ebp - 0x118]
push ecx
call fcn.00408310
add esp, 4
lea edx, [ebp + eax - 0x118]
push edx
call fcn.00408170
add esp, 8
jmp case.default.0x402e3a
push 0x412e10
lea eax, [ebp - 0x118]
push eax
call fcn.00408310
add esp, 4
lea ecx, [ebp + eax - 0x118]
push ecx
call fcn.00408170
add esp, 8
cmp dword [ebp - 0x11c], 0
je 0x402f46
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x160]
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402f46
mov dword [ebp - 0x168], 1
jmp 0x402f50
mov dword [ebp - 0x168], 0
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
sub ecx, 1
mov dword [ebp - 0x16c], ecx
cmp dword [ebp - 0x16c], 4
ja case.default.0x402f83
mov edx, dword [ebp - 0x16c]
jmp dword [edx*4 + 0x402fe9]
cmp dword [ebp - 0x11c], 0
je 0x402f9f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp case.default.0x402f83
cmp dword [ebp - 0x11c], 0
je case.default.0x402f83
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x11c]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402ffd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x412e20
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403068
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x403068
cmp dword [ebp - 4], 0
je 0x403068
mov dword [ebp - 0x10], 1
jmp 0x40306f
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40334e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x412efc
push 0x5c
lea ecx, [ebp - 0x114]
push ecx
call fcn.004082e0
add esp, 8
push eax
call fcn.00408170
add esp, 8
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4033ad
xor eax, eax
jmp 0x4034d9
push 0x412f08
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4033cf
xor eax, eax
jmp 0x4034d9
cmp dword [ebp + 0x10], 0
je 0x40342f
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x403426
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412f1c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403426
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40342d
mov dword [ebp - 0xc], 0
jmp 0x403449
push 0x400
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00408390
add esp, 0xc
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x4034c9
mov dword [ebp - 0x11c], 1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412f54
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4034a7
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push 0x412f78
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x412c00]
push edx
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x416dd4]
push eax
call dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x403872
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x412f88
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4038d2
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x412fac
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp dword [ebp - 0x10], 0
setne dl
mov eax, dword [ebp - 8]
and eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x4041d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x413150
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40424e
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x413174
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404244
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 4
push 0
push 0x413184
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x404554
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0x40
call fcn.004017ac
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
ret

Function at 0x40457c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ebp
ret
Function at 0x4054e6
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x405505
mov eax, dword [0x4170f4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, 1
pop ebp
ret

Function at 0x40550c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40552c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x4170f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
pop ebp
ret
Function at 0x40608e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push edi
mov dword [ebp - 4], 0
jmp 0x4060a7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x406232
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x21c
add ecx, 0x413778
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, 1
mov ecx, dword [edx]
shl eax, cl
mov ecx, dword [ebp + 8]
and ecx, eax
test ecx, ecx
je 0x40622d
mov edx, dword [ebp - 8]
movsx eax, byte [edx + 0x118]
test eax, eax
je 0x40622d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0
je 0x406105
cmp dword [ebp - 0x6c], 1
je 0x406111
jmp 0x406172
mov eax, dword [ebp - 8]
mov dword [eax + 8], 1
jmp 0x406172
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
je 0x406168
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x40603f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [ebp - 0x10], 0
je 0x406152
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
jmp 0x40615c
mov edx, dword [ebp - 8]
mov dword [edx + 8], 1
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
jmp 0x406172
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 1
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x40622d
mov dword [ebp - 0x68], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], 0xa
mov word [ebp - 0x36], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x14
push edx
push 0
push 0
push 1
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x118
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40622d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40609e
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406237
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x124]
push eax
push 0x20019
push 0
push 0x4140f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406276
mov eax, dword [ebp - 0x18]
jmp 0x406313
mov dword [ebp - 0x10], 0
jmp 0x406288
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x105
mov dword [ebp - 0x14], 0x105
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x103
jne 0x4062d8
jmp 0x406303
cmp dword [ebp - 0x14], 0
je 0x4062fe
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x40627f
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x406317
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
call fcn.004058b0
mov eax, dword [0x4110ec]
cmp dword [eax], 0
jne 0x406334
call fcn.00406237
call fcn.004017f0
call fcn.00401e44
mov ecx, dword [ebp + 8]
push ecx
push 1
call fcn.00401e7b
add esp, 8
mov dword [0x4170e4], eax
cmp dword [0x4170e4], 0
jne 0x40642f
mov edx, dword [0x4110bc]
cmp dword [edx], 0x4b57
je 0x4063d9
mov eax, dword [0x4110bc]
cmp dword [eax], 0x3135
je 0x4063d9
mov ecx, dword [0x4110bc]
cmp dword [ecx], 0x3137
je 0x4063d9
mov edx, dword [0x4110bc]
cmp dword [edx], 0x3138
je 0x4063d9
mov eax, dword [0x4110bc]
cmp dword [eax], 0x3148
je 0x4063d9
mov ecx, dword [0x4110bc]
cmp dword [ecx], 0x3143
je 0x4063d9
mov edx, dword [0x4110bc]
cmp dword [edx], 0x3146
je 0x4063d9
mov eax, dword [0x4110bc]
cmp dword [eax], 0x314d
je 0x4063d9
mov ecx, dword [0x4110bc]
cmp dword [ecx], 0x3154
jne 0x4063f5
lea edx, [ebp - 4]
push edx
push 0xe
call fcn.00401593
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x13
call fcn.00401e7b
add esp, 8
mov ecx, dword [0x41105c]
mov edx, dword [ecx]
and edx, 0x20000
test edx, edx
je 0x40642f
mov eax, dword [0x41105c]
mov ecx, dword [eax]
and ecx, 2
test ecx, ecx
je 0x406423
push 1
push 0x11
call fcn.00401e7b
add esp, 8
jmp 0x40642f
push 0
push 0x11
call fcn.00401e7b
add esp, 8
lea edx, [ebp - 0x118]
push edx
push 0x414110
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x41412c
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], 0
jne 0x4064a2
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x416dec], eax
mov dword [ebp - 0x114], 0
jmp 0x4064bd
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
cmp dword [ebp - 0x114], 0x20
jge 0x40651a
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x70
mov ecx, dword [eax + 0x411274]
mov dword [ecx], 0
push 1
mov edx, dword [ebp - 0x114]
imul edx, edx, 0x70
add edx, 0x411268
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x70
add eax, 0x411208
sub edx, eax
sar edx, 4
push edx
mov ecx, dword [ebp - 0x114]
imul ecx, ecx, 0x70
add ecx, 0x411208
push ecx
call fcn.004011d0
add esp, 0xc
jmp 0x4064ae
cmp dword [0x416dec], 0
je 0x406553
push 0x414134
mov edx, dword [0x416dec]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
push 0x411208
mov eax, dword [0x416dec]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x11c]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x407f1a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x406a35
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x4141e4
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0x4141f4
push 0x4141fc
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407fb7
or eax, 0xffffffff
jmp 0x407ffa
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x407ff7
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407fcd
mov eax, dword [ebp - 0x48]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401cf4
Capabilities:
Create thread

Disassembly:
mov eax, 0x498f13
call fcn.00497cb0
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [esi], 0x4a4634
call fcn.00483344
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x4bb1bc], ebx
jne 0x401dfe
mov eax, dword [0x4b92ec]
push edi
mov edi, eax
imul eax, eax, 0x9c
add eax, 4
push eax
mov dword [ebp - 0x10], edi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 1
mov esi, 0x9c
je 0x401d6d
push fcn.00401ecc
push 0x401e80
push dword [ebp - 0x10]
mov dword [eax], edi
lea edi, [eax + 4]
push esi
push edi
call fcn.0049784e
mov eax, edi
jmp 0x401d6f
xor eax, eax
mov byte [ebp - 4], bl
mov ecx, dword [0x4b92ec]
cmp ecx, ebx
mov dword [0x4bb1bc], eax
pop edi
jle 0x401d94
add eax, 0x70
mov edx, ecx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 0x18], ebx
add eax, esi
dec edx
jne 0x401d87
lea eax, [ecx*4 + 4]
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push ebx
push ebx
push ebx
push ebx
mov dword [0x4bb1c0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x4bb1c0]
push 0x4badb0
mov dword [ecx], eax
mov byte [0x4bb1c4], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x402cfe
push 0x1000
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jbe 0x401df1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401dfb
mov dword [0x4b92f0], 0xa
mov esi, dword [ebp + 8]
or dword [esi + 0xc], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4