joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x454014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4248b8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x424898
xor eax, eax
push ebp
push 0x424891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4248d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x454014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x454014], ax
mov esp, ebp
pop ebp
ret

Function at 0x42538c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45603c], 0
je 0x4253ed
cmp word [0x456210], 0xd7b2
jne 0x4253b5
cmp dword [0x456218], 0
jbe 0x4253b5
mov eax, 0x45620c
call dword [0x456228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45405c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x425414
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x454020], 0
jne 0x425409
push 0
push 0x454054
push 0x45405c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x4265d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x42663a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0042576c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00424714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x426624
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426641
lea eax, [ebp - 0x10]
call fcn.00425508
ret

Function at 0x4277a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x42783e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00425a80
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004259f0
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x4277c8
cmp byte [esp], 0
je 0x42780f
mov eax, edi
call fcn.004259f0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x42784a
mov eax, edi
call fcn.004259f0
push eax
mov eax, edi
call fcn.004259f0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004245ec
mov edx, ebx
mov eax, edi
call fcn.00425a80
jmp 0x42784a
mov eax, edi
mov edx, 0x427858
call fcn.0042555c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x427e90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0042555c
mov eax, ebx
call fcn.004259e8
mov eax, dword [ebx]
call fcn.00425798
test eax, eax
jle 0x427ec1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x427eb6
pop esi
pop ebx
ret

Function at 0x428690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x4286d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x4286ce
cmp word [edi], 0x5a4d
jne 0x4286ce
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x4286ce
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4286e4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x428874
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4288ba
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x4288eb
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x428948
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x428916
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x428928
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x428942
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x42bb24
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x42bba0
cmp dword [esp + 0x10], 0x1000
jne 0x42bba0
cmp dword [esp + 4], 0
je 0x42bba0
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x42bba0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x42bba0
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x42bba0
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42f5f0
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x454e74], 0xffffffff
jne 0x42f63f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x42f638
mov eax, esp
mov edx, 0x114
call fcn.00426dd4
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.KERNEL32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x454e74], eax
jmp 0x42f63f
xor eax, eax
mov dword [0x454e74], eax
cmp dword [0x454e74], 1
sete al
add esp, 0x114
ret

Function at 0x42fff8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4300af
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x454d70]
call fcn.00427e90
push dword [ebp - 0xc]
push 0x4300c8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x454d74]
call fcn.0042fee8
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00425858
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00425998
push eax
call fcn.0042fcfc
mov esi, eax
test esi, esi
je 0x430094
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x43008e
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4300b6
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0042552c
ret

Function at 0x430300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x430371
mov ebx, 0x5f040000
jmp 0x43035f
cmp dword [esp + 0x10], 0x10000
jne 0x43033d
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x430371
cmp dword [esp + 0xc], 0x10000
jae 0x430351
mov dword [esp + 0xc], 0x10000
jmp 0x430359
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x43031d
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x43063c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x454e60]
cmp eax, 0x1c
jne 0x4306b7
cmp dword [ebp - 0xc], 0x1000
jne 0x4306b2
cmp dword [ebp - 0x18], 0
je 0x4306b2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x4306b2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x430691
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x4306b7
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x454e30]
cmp eax, 0
je 0x4306b2
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x454e8c]
add ebx, dword [ebp - 0x10]
jmp 0x430653
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x4340b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x434297
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x454ce0]
call fcn.0042b9a0
mov dword [0x4568e8], eax
xor edx, edx
mov eax, dword [0x454ce4]
call fcn.0042b9a0
mov dword [0x4568ec], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.00425a80
lea eax, [ebp - 8]
call fcn.004259f0
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.004259f0
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.004259f0
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.004259f0
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.004259f0
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x454d58]
call fcn.00427e90
push dword [ebp - 0xc]
push 0x4342b0
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00427b38
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00425858
mov eax, dword [ebp - 8]
call fcn.00425998
push eax
push 0
push 0
call fcn.00426a8c
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x43427c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x4568dc], esi
mov dword [0x4568e0], edi
cmp dword [0x4568e8], 0
je 0x4341cc
cmp dword [0x4568ec], 0
jne 0x43424e
mov dl, 1
mov eax, dword [0x454c5c]
call fcn.0042ba88
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x434260
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x434260
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x434260
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x434260
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x434260
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x434260
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4568e4], edx
mov edx, 0x434060
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x434260
push 0x43400c
push 1
call dword [0x4568e8]
test eax, eax
setne bl
test bl, bl
jne 0x43427c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43429e
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0042552c
ret
Function at 0x4342b4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x4568e8], 0
je 0x4342cc
cmp dword [0x4568ec], 0
jne 0x434325
mov dl, 1
mov eax, dword [0x454c5c]
call fcn.0042ba88
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x43430b
mov eax, dword [0x4568e4]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x434330
push 0x43400c
call dword [0x4568ec]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x436d74
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00425988
xor eax, eax
push ebp
push 0x436e34
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x436e1e
cmp dword [ebp - 4], 0
jne 0x436dc1
lea edx, [ebp - 8]
mov eax, esi
call fcn.0042f650
test al, al
je 0x436e1e
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.0042f650
test al, al
je 0x436e0f
cmp dword [ebp - 4], 0
je 0x436def
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x436e06
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_LocalFree
cmp dword [ebp - 8], 0
je 0x436e1e
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436e3b
lea eax, [ebp - 4]
call fcn.00425508
ret

Function at 0x437680
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x437729
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edi, eax
test edi, edi
je 0x437723
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x43771d
cmp ebx, dword [esp]
jne 0x43771d
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x437707
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x437703
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4376e6
mov eax, ebx
and ax, 0xffff
shr ebx, 0x10
add ax, bx
movzx eax, ax
mov ebx, eax
mov ebp, dword [esp]
add ebp, ebx
push edi
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x437734
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x437843
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x4566b8], 0
jne 0x437815
cmp byte [0x454f8c], 0
je 0x43777d
push ebx
push 0x104
call sub.KERNEL32.dll_GetTempPathW
jmp 0x437788
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x437797
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4377b0
push 0x437850
push ebx
call sub.KERNEL32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, dword [0x454db0]
call fcn.00427e90
push dword [ebp - 0x44]
push 0x43785c
lea edx, [ebp - 0x48]
mov eax, dword [0x454da8]
call fcn.00427e90
push dword [ebp - 0x48]
push 0x437868
lea edx, [ebp - 0x4c]
mov eax, dword [0x454db4]
call fcn.00427e90
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00425858
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.00425998
push eax
call fcn.0042f200
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.KERNEL32.dll_lstrcatW
jmp 0x437820
push 0x4566b8
push ebx
call sub.KERNEL32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43784a
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0042552c
lea eax, [ebp - 4]
call fcn.00425508
ret

Function at 0x43786c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00425988
xor eax, eax
push ebp
push 0x4378f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.00425a80
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x4378c9
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x4378c4
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x4378b9
add ebx, 2
jmp 0x4378cf
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.00425798
add eax, dword [edi]
cmp eax, esi
ja 0x4378a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4378f9
lea eax, [ebp - 4]
call fcn.00425508
ret
Function at 0x438194
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4383c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x224]
mov eax, dword [0x454dd8]
call fcn.00427e90
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
call fcn.00425c80
push dword [ebp - 0x220]
push 0x4383d8
lea eax, [ebp - 0x228]
mov edx, esi
call fcn.00425c2c
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.00425cac
mov eax, dword [ebp - 0x21c]
call fcn.00425c90
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x4382dd
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x22c]
mov eax, dword [0x454dc0]
call fcn.00427e90
mov eax, dword [ebp - 0x22c]
call fcn.00425998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x438293
cmp dword [ebp - 8], 4
je 0x43829a
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4382a3
cmp dword [ebp - 4], 0
jbe 0x4382a3
dec dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x230]
mov eax, dword [0x454dc0]
call fcn.00427e90
mov eax, dword [ebp - 0x230]
call fcn.00425998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x4382e2
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43837a
call fcn.00437ba4
test al, al
je 0x43837d
push 0xf003f
push 0
push 0
call dword [0x45691c]
mov edi, eax
test edi, edi
je 0x43837d
push 0x101ff
push esi
push edi
call dword [0x456920]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x438360
mov eax, dword [ebp - 4]
push eax
call dword [0x456918]
mov ebx, eax
test ebx, ebx
je 0x438354
mov word [ebp - 0x216], 0
lea eax, [ebp - 0x216]
call fcn.00437734
lea eax, [ebp - 0x216]
push eax
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [ebp - 4]
push eax
call dword [0x45690c]
jmp 0x438371
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x424
sete al
neg al
sbb ebx, ebx
push edi
call dword [0x45690c]
jmp 0x43837d
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4383c8
lea eax, [ebp - 0x230]
mov edx, 2
call fcn.0042552c
lea eax, [ebp - 0x228]
call fcn.00425b14
lea eax, [ebp - 0x224]
call fcn.00425508
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.00425b2c
ret
Function at 0x4383dc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00425988
xor eax, eax
push ebp
push 0x4384a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00425998
push eax
push esi
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x438479
xor ebx, ebx
jmp 0x438456
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.0042576c
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.004383dc
pop ecx
inc ebx
push 0x104
lea eax, [ebp - 0x10d]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegEnumKeyA
test eax, eax
je 0x43842c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 4]
call fcn.00425998
push eax
push esi
call sub.ADVAPI32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4384b0
lea eax, [ebp - 0x114]
call fcn.00425508
lea eax, [ebp - 4]
call fcn.00425508
ret