joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d210
Capabilities:
Enumerate processes
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4283f6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x430618]
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
xor esi, esi
push esi
push 2
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2d0], ebx
cmp ebx, esi
je 0x40d3b3
cmp ebx, 0xffffffff
je 0x40d3b3
push 0x228
lea eax, [ebp - 0x2c0]
push esi
push eax
call fcn.004178a0
add esp, 0xc
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
mov dword [ebp - 0x2c4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40d3a1
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x94]
push ecx
mov dword [ebp - 0x98], edx
call fcn.00411500
lea edx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
push edx
call fcn.0040f910
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x40d2f5
push eax
call fcn.004159f9
add esp, 4
lea edi, [ebp - 0x2cc]
call fcn.0040f9b0
mov esi, dword [ebp - 0x2cc]
mov eax, esi
lea edx, [eax + 1]
jmp 0x40d310
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d310
sub eax, edx
mov edx, esi
or ecx, 0xffffffff
mov edi, edi
mov edi, eax
dec eax
test edi, edi
je 0x40d33f
movzx edi, byte [edx]
xor edi, ecx
and edi, 0xff
shr ecx, 8
xor ecx, dword [edi*4 + 0x42c5f0]
inc edx
jmp 0x40d320
not ecx
mov byte [ebp - 4], 0
lea eax, [esi - 0x10]
cmp dword [ebp + 8], ecx
jne 0x40d372
mov dword [ebp - 0x2c8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d3a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d3a1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d38b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40d2a3
test ebx, ebx
je 0x40d3b3
cmp ebx, 0xffffffff
je 0x40d3b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40d3ca
cmp ebx, 0xffffffff
je 0x40d3ca
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c8]
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.00415554
mov esp, ebp
pop ebp
ret
Function at 0x40da30
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x430618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x40dc19
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40da73
sub eax, edx
sar eax, 1
je 0x40dc19
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dc19
push 0x14
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40dc0b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x40dc19
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40dc19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x40dc19
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x30]
push ecx
push edi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004075d0
add esp, 8
cmp eax, ebx
je 0x40dbf2
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
cmp edi, esi
je 0x40dbf2
mov edx, dword [ebp + 8]
push 0x42ccc8
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00416519
add esp, 0xc
test eax, eax
jne 0x40dbf2
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40dbf2
push eax
sub esi, edi
push esi
push 1
push edi
call fcn.004166b7
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.0041679e
add esp, 0x14
cmp esi, ebx
je 0x40dbf2
lea esi, [ebp - 0x20]
call fcn.004068a0
push 0x6b
mov byte [ebp - 4], 2
call fcn.00406eb0
add esp, 4
cmp eax, ebx
je 0x40dbea
push eax
mov eax, 0x6b
mov edi, esi
call fcn.00406a10
cmp eax, ebx
je 0x40dbea
mov edi, dword [ebp - 0x20]
cmp dword [edi - 0xc], ebx
je 0x40dbea
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004068c0
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004105d0
mov eax, edi
call fcn.004104b0
cmp eax, ebx
je 0x40dbe2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40dbe2
mov eax, dword [ebp - 0x14]
push 1
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
call fcn.00406ab0
lea eax, [ebp - 0x20]
call fcn.00406ab0
lea esi, [ebp - 0x30]
call fcn.00407650
jmp 0x40dc19
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e1e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4286e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x430618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x466c00
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.0040ca40
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40e2b5
cmp edi, 2
jge 0x40e2b5
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e2ac
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x40e278
lea eax, [ebx + 0xd]
jmp 0x40e298
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x42ce58
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40e2ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x40e231
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410630
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4287f7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x430618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x42cdf4
mov dword [ebx + 0x60], 0x42cb54
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x42cdb0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.0040a670
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.004120a0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4106bb
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.0040a530
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], 0x42cdf0
call fcn.00411ce0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], 0x42cdb4
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x468c30]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4117f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4282e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x430618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x411981
cmp byte [ebx + 0x49], 0
je 0x411981
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x411975
lea esi, [ebp - 0x2c]
call fcn.00411340
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x411863
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x41189c
dec eax
je 0x4118a0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x41197c
call fcn.0040ffa0
xor al, al
jmp 0x411983
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4118b0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4118dd
cmp edi, 0x10
jae 0x4118bf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004166b7
add esp, 0x10
cmp esi, eax
jne 0x41196d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x411979
test esi, esi
jne 0x411857
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x41199e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x41199e
cmp edi, esi
jae 0x411956
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00411f30
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x411857
mov ecx, eax
cmp edi, 0x10
jae 0x411932
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x41194d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x411851
test esi, esi
jne 0x411928
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x411965
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x411851
lea ecx, [ebp - 0x2c]
call fcn.0040ffa0
xor al, al
jmp 0x411983
lea ecx, [ebp - 0x2c]
call fcn.0040ffa0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415554
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041434f
int3
Function at 0x411ce0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42833b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x430618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x42cd74
call fcn.004150e0
push 4
mov dword [ebp - 4], 0
call fcn.00415a33
mov edi, eax
add esp, 4
test edi, edi
je 0x411d5c
call fcn.00414770
mov dword [edi], eax
call fcn.0041452f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00414464
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411d52
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041448c
jmp 0x411d5e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428778
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x430618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x431648
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040ca40
add esp, 8
lea ecx, [ebp - 0x18]
push 0x4316bc
push ecx
mov byte [ebp - 4], 1
call fcn.0040ca40
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406eb0
add esp, 4
cmp eax, ebx
je 0x4128c1
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.00406a10
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x41294d
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x41294d
cmp dword [esi - 0xc], ebx
je 0x41294d
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x41294d
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.004127b0
test eax, eax
jne 0x412931
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x412931
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x412934
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x412942
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x4128e0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41296d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412990
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4129b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412d3e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x412d0d
cmp eax, 2
jne 0x412d28
mov eax, dword [ebp - 4]
test esi, esi
je 0x412d38
test eax, eax
je 0x412d33
test al, 1
jne 0x412d28
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x412d38
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x415554
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430618]
jne 0x41555e
repz ret
jmp fcn.0041bf6a

Function at 0x4246ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041b7a2
and dword [ebp - 0x14], 0
cmp dword [0x468b00], 0
mov dword [ebp - 0x18], eax
jne 0x42475f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x424807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x424807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x468b00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x468b04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x468b08], eax
call edi
push eax
call esi
mov dword [0x468b10], eax
test eax, eax
je 0x42475f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x468b0c], eax
mov eax, dword [0x468b0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4247b8
cmp dword [0x468b10], ecx
je 0x4247b8
push eax
call esi
push dword [0x468b10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4247b8
test ebx, ebx
je 0x4247b8
call edi
test eax, eax
je 0x4247af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4247af
test byte [ebp - 8], 1
jne 0x4247b8
or dword [ebp + 0x10], 0x200000
jmp 0x4247eb
mov eax, dword [0x468b04]
cmp eax, dword [ebp - 0x18]
je 0x4247eb
push eax
call esi
test eax, eax
je 0x4247eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4247eb
mov eax, dword [0x468b08]
cmp eax, dword [ebp - 0x18]
je 0x4247eb
push eax
call esi
test eax, eax
je 0x4247eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x468b00]
call esi
test eax, eax
je 0x424807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x424809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415554
leave
ret
Function at 0x422d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422dc9
test eax, edx
je 0x422dcc
movzx ecx, word [edx]
cmp cx, word [eax]
cmp ecx, dword [eax]
je 0x422d87
movzx eax, word [eax]
sub eax, ecx
jmp 0x422dae
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x422daf
add ecx, 4
js 0x422d9f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422dac
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422dae
xor eax, eax
ret
test eax, eax
je 0x422dd8
test edx, edx
jne 0x422d78
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42aec4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004096b8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d1d0
mov edi, eax
cmp edi, 0x104
jbe 0x42ae6b
mov eax, edi
add eax, eax
call fcn.00406454
mov esi, eax
jmp 0x42ae6d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d1d0
mov eax, esi
push eax
call fcn.00412514
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42aea8
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42ae92
mov eax, esp
cmp esi, eax
je 0x42aeb5
mov eax, esi
call fcn.00406470
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42aef0
cmp bl, 0
je 0x42aeec
cmp bl, 0x41
jl 0x42aee7
cmp bl, 0x5a
jg 0x42aee7
or bl, 0x20
xor al, bl
inc esi
jmp 0x42aecb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42ae2c
Function at 0x4fdc9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fddf1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4fddc6
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.004242f4
test al, al
je 0x4fddc6
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x490efc]
call fcn.004b4aac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4fddbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004b01d4
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41cd94]
call fcn.0040b48c
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042e1e8
mov esi, eax
mov dl, 1
mov eax, dword [0x48e3e8]
call fcn.004b0130
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fdda2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b270
sub eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0042f428
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004fe08c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdda9
mov eax, dword [ebp - 8]
call fcn.00407520
ret
mov eax, ebx
call fcn.004fda98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fddf8
lea eax, [ebp - 0x10]
call fcn.004091e0
lea eax, [ebp - 4]
mov edx, dword [0x41cd94]
call fcn.0040b5b0
ret

Function at 0x50be84
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x50be8a
ret