joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8880
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x4b896b
cmp dword [ebp + 0xc], 0
jne 0x4b88d4
mov ecx, dword [ebp - 0x14]
call fcn.004b8260
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b88b4
xor eax, eax
jmp 0x4b8984
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b895e
cmp dword [ebp + 0x10], 0
jne 0x4b8913
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004b82f0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b88f6
xor eax, eax
jmp 0x4b8984
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b895e
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004b82f0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4b892c
xor eax, eax
jmp 0x4b8984
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x4b8984
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b8d00
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x4b8d6e
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004b8ca0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b8d2c
mov eax, dword [ebp + 0x10]
jmp 0x4b8d87
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4b8d67
mov eax, dword [ebp - 0x14]
jmp 0x4b8d87
mov eax, dword [ebp + 0x10]
jmp 0x4b8d87
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b9230
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x4b931b
cmp dword [ebp + 0xc], 0
jne 0x4b9284
mov ecx, dword [ebp - 0x14]
call fcn.004b8ba0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b9264
xor eax, eax
jmp 0x4b9334
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b930e
cmp dword [ebp + 0x10], 0
jne 0x4b92c3
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004b8ca0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b92a6
xor eax, eax
jmp 0x4b9334
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b930e
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004b8ca0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4b92dc
xor eax, eax
jmp 0x4b9334
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x4b9334
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ba110
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x584fc0]
call fcn.004e2d7f
mov dword [ebp - 8], eax
cmp dword [0x57c264], 0
je 0x4ba23d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax*4 + 0xcc], 0
je 0x4ba23d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + edx*4 + 0xcc]
je 0x4ba1f3
mov ecx, dword [ebp - 0x14]
call fcn.004137d0
push eax
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4ba197
push 0
mov eax, dword [ebp - 4]
push eax
call sub.IMM32.dll_ImmSetOpenStatus
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004137d0
push eax
call sub.IMM32.dll_ImmReleaseContext
push 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4 + 0xcc]
push ecx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ecx, dword [ebp - 0x14]
call fcn.004137d0
push eax
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x4ba1e1
push 1
mov edx, dword [ebp - 4]
push edx
call sub.IMM32.dll_ImmSetOpenStatus
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004137d0
push eax
call sub.IMM32.dll_ImmReleaseContext
cmp dword [0x57ad5c], 0
je 0x4ba23d
mov ecx, dword [ebp - 0x14]
call fcn.004137d0
push eax
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ba23d
mov ecx, dword [ebp - 4]
push ecx
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
jne 0x4ba22b
push 1
mov edx, dword [ebp - 4]
push edx
call sub.IMM32.dll_ImmSetOpenStatus
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004137d0
push eax
call sub.IMM32.dll_ImmReleaseContext
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7170
Capabilities:
Access peb ldr_data
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fc4e
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x560], ecx
push 0
push 0
push 6
push 0
push 0
push 1
lea ecx, [ebp - 0x554]
call fcn.004441c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x560]
add ecx, 0x78
call fcn.004021c0
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov byte [ebp - 4], 1
push 0x555fcc
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push str..dic
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0xc], esi
push 0x555ff8
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x554]
call fcn.004e5de5
add eax, 0x14
mov dword [ebp - 0x564], eax
mov eax, dword [ebp - 0x564]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x564]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0xc], esi
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x30], 0x556000
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x3c], 0x55601c
push 0x555ea6
mov eax, dword [ebp - 0x560]
add eax, 0x80
push eax
call fcn.00421790
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4d731e
mov edx, dword [ebp - 0x560]
cmp dword [edx + 0x74], 0
je 0x4d72f2
mov ecx, 0x584f78
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
push 0x584f78
lea ecx, [ebp - 0x230]
call fcn.00413820
jmp 0x4d731c
mov ecx, 0x584f70
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
invalid
invalid

Function at 0x4d78c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d791e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x55627c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d7911
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4d7920
xor eax, eax
pop esi
leave
ret 4
Function at 0x4d85e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004e1dfb
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d8622
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004d8235
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4d8680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4d86a4
cmp dword [edi + 0x54], 0
jne 0x4d86a4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004e1dfb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004d8641
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4de698
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4de6df
call fcn.004e1dfb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4de6df
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4de6fb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004de210
mov esi, eax
test edi, edi
je 0x4de6f9
test ebx, ebx
je 0x4de6f9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4df257
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5300b8
call fcn.0050be44
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4df27c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4df2c2
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e2e35
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020d0
mov eax, esi
call fcn.0050bf1c
ret 8
Function at 0x4eb3f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004e1dfb
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4eb41e
xor eax, eax
jmp 0x4eb4c4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4eb417
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4eb417
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d7c06
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4eb475
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4eb464
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004ea0cd
push edi
mov ebx, eax
call fcn.004d7c40
pop ecx
test ebx, ebx
je 0x4eb4b7
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004ea760
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004ea814
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4f2048
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x4f206c
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x4f207a
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x4f2066
xor eax, eax
inc eax
pop esi
ret

Function at 0x4fdf5d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5315ac
call fcn.0050be44
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0042abf0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4fdfbf
call fcn.004e16ac
cmp eax, 1
jne 0x4fdfbf
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x559a28
push eax
call fcn.0042a970
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00413880
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004020d0
mov dword [ebp + 8], reloc.TranslateMemoryCJ.dll_Ordinal_1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020d0
mov eax, esi
call fcn.0050bf1c
ret 0x10
Function at 0x4fdfe8
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5315ac
call fcn.0050be44
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0042abf0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4fe04a
call fcn.004e16ac
cmp eax, 1
jne 0x4fe04a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x559a28
push eax
call fcn.0042a970
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00413880
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004020d0
mov dword [ebp + 8], reloc.TranslateMemoryCJ.dll_Ordinal_1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020d0
mov eax, esi
call fcn.0050bf1c
ret 0x14

Function at 0x504a55
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x578750]
jne 0x504a5f
repz ret
jmp fcn.0050ebdc
Function at 0x51cd3d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050d7a2
and dword [ebp - 4], 0
cmp dword [0x5cc928], 0
mov ebx, eax
jne 0x51cdee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51ce9f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x51ce9f
push eax
call fcn.0050d730
mov dword [esp], 0x55d954
push edi
mov dword [0x5cc928], eax
call esi
push eax
call fcn.0050d730
mov dword [esp], 0x55d940
push edi
mov dword [0x5cc92c], eax
call esi
push eax
call fcn.0050d730
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5cc930], eax
call esi
push eax
call fcn.0050d730
pop ecx
mov dword [0x5cc938], eax
test eax, eax
je 0x51cdee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050d730
pop ecx
mov dword [0x5cc934], eax
mov eax, dword [0x5cc934]
cmp eax, ebx
je 0x51ce46
cmp dword [0x5cc938], ebx
je 0x51ce46
push eax
call fcn.0050d7ab
push dword [0x5cc938]
mov esi, eax
call fcn.0050d7ab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51ce46
test edi, edi
je 0x51ce46
call esi
test eax, eax
je 0x51ce3d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51ce3d
test byte [ebp - 0xc], 1
jne 0x51ce46
or dword [ebp + 0x10], 0x200000
jmp 0x51ce7f
mov eax, dword [0x5cc92c]
cmp eax, ebx
je 0x51ce7f
push eax
call fcn.0050d7ab
pop ecx
test eax, eax
je 0x51ce7f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51ce7f
mov eax, dword [0x5cc930]
cmp eax, ebx
je 0x51ce7f
push eax
call fcn.0050d7ab
pop ecx
test eax, eax
je 0x51ce7f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5cc928]
call fcn.0050d7ab
pop ecx
test eax, eax
je 0x51ce9f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51cea1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f836
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4174d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x4039f6
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x4039f6
call fcn.00402030
mov esi, eax
jmp 0x403ae3
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x403a19
call fcn.00402030
jmp 0x403ad6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x403a37
call fcn.00402030
jmp 0x403ad6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x403a58
mov esi, 0x8007000e
jmp 0x403ad8
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00401b70
jmp 0x403a82
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x403a99
mov esi, 0x8007000e
jmp 0x403ad8
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x403ab9
call fcn.00402030
jmp 0x403ad6
mov eax, dword [ebp - 0x420]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.00403760
mov esi, eax
test edi, edi
je 0x403ae3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x403b00
lea ecx, [ebp - 0x420]
call fcn.00402c10
lea esp, [esp]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004067f8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x404419
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404425
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404420
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404475
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x404480
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404480
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x404570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4174d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4045a7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004067f8
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x402d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4045d0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004067f8
mov esp, ebp
pop ebp
ret

Function at 0x4053c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4174d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.00406c80
push esi
xorps xmm0, xmm0
lea eax, [ebp - 0x7d4]
push 0x4109a0
push eax
mov dword [ebp - 0x818], 0x44
movq qword [ebp - 0x828], xmm0
movq qword [ebp - 0x820], xmm0
call fcn.00404dc0
add esp, 0x18
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40545c
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004067f8
mov esp, ebp
pop ebp
ret 0xc
cmp word [ebp + 0x10], 0xffff
jne 0x405471
push 0xffffffffffffffff
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x828]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x824]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004067f8
mov esp, ebp
pop ebp
ret 0xc