joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032f0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x403318
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x403326
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40333f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40334d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x403366
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x403374
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40338d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40339b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x4033e2
add dword [esp], 5
retf

Function at 0x403470
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7fbdd8
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403599
cmp dword fs:[0xc0], eax
je 0x40349b
mov dword [0x7fbdd4], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7fbcbc], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7fbcc0], eax
movzx edx, word [esi + 0xac]
mov dword [0x7fbcc4], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7fbcc8], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x4034fb
push 0x7f
push eax
push 0x7fbccc
call fcn.00402520
mov edx, dword [0x7fbcc4]
add esp, 0xc
jmp 0x403503
xor eax, eax
mov word [0x7fbccc], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7fbdcc], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7fbdce], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7fbdd0], ax
mov ecx, eax
mov byte [0x7fbdd2], 0
cmp byte [0x7ffe0268], 0
je 0x40354a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7fbdd2], bl
cmp ebx, 1
pop ebx
jne 0x403564
and ecx, 0xffef
mov word [0x7fbdd0], cx
test edx, edx
jne 0x403599
call fcn.00403470
cmp dword [0x7fbcbc], 6
ja 0x403599
jb 0x403581
cmp dword [0x7fbcc0], 4
jae 0x403599
call fcn.00403470
cmp dword [0x7fbcbc], 0xa
jae 0x403599
mov dword [0x7fbcc4], 1
ret
Function at 0x403a30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x110]
lea eax, [esp + 0xc]
push esi
push edi
push 0x100
push 0
lea esi, [ebp + 4]
push eax
mov dword [esp + 0x1c], esi
call fcn.004018d0
add esp, 0xc
xor edi, edi
test esi, esi
je 0x403b1e
test ebp, ebp
je 0x403b1e
push ebx
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x403b1d
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403a80
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + ebp]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403a90
mov esi, dword [esp + 0x120]
xor edi, edi
mov dword [esp + 0x10], edi
add esi, 0xfffffffc
je 0x403b1d
mov ebp, dword [esp + 0x14]
sub ebp, ebx
lea eax, [edi + 1]
movzx edi, al
lea ebx, [ebx + 1]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + edi + 0x18]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [esp + 0x10], eax
movzx eax, byte [esp + eax + 0x18]
mov byte [esp + edi + 0x18], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], cl
movzx eax, byte [esp + edi + 0x18]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x18]
xor al, byte [ebx + ebp - 1]
mov byte [ebx - 1], al
sub esi, 1
jne 0x403ad4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x108
ret

Function at 0x403b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x18]
xor ecx, ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x3c]
movzx eax, word [eax + 0x38]
shr eax, 1
lea eax, [edx + eax*2]
cmp eax, edx
jb 0x403b67
mov edi, edi
cmp word [eax], 0x5c
je 0x403b5e
sub eax, 2
inc ecx
cmp eax, edx
jae 0x403b50
cmp ecx, 0xb
jae 0x403c33
push ebx
push esi
mov esi, 0xfffffffd
mov edi, edi
mov bl, 1
xor edx, edx
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x7fbee0]
add byte [edx + 0x7fbde0], al
mov cl, byte [ecx + 0x7fbde0]
add byte [edx + 0x7fbde0], cl
inc edx
cmp edx, 0x100
jb 0x403b74
mov bl, 1
xor edx, edx
nop
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x7fbee0]
xor byte [edx + 0x7fbde0], al
mov cl, byte [ecx + 0x7fbde0]
xor byte [edx + 0x7fbde0], cl
inc edx
cmp edx, 0x100
jb 0x403ba0
mov bl, 1
xor edx, edx
jmp 0x403bd0
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x7fbee0]
sub byte [edx + 0x7fbde0], al
movzx eax, byte [edx + 0x7fbde0]
sub al, byte [ecx + 0x7fbde0]
mov byte [edx + 0x7fbde0], al
inc edx
cmp edx, 0x100
jb 0x403bd0
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x7fbee0]
xor byte [eax + 0x7fbde0], cl
mov dl, byte [edx + 0x7fbde0]
xor byte [eax + 0x7fbde0], dl
inc eax
cmp eax, 0x100
jb 0x403c02
sub esi, 1
jne 0x403b70
pop esi
pop ebx
ret
Function at 0x403c40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x2000000
mov bl, 1
xor edx, edx
jmp 0x403c50
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x7fbee0]
add byte [edx + 0x7fbde0], al
mov cl, byte [ecx + 0x7fbde0]
add byte [edx + 0x7fbde0], cl
inc edx
cmp edx, 0x100
jb 0x403c50
mov bl, 1
xor edx, edx
jmp 0x403c80
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x7fbee0]
xor byte [edx + 0x7fbde0], al
mov cl, byte [ecx + 0x7fbde0]
xor byte [edx + 0x7fbde0], cl
inc edx
cmp edx, 0x100
jb 0x403c80
mov bl, 1
xor edx, edx
jmp 0x403cb0
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x7fbee0]
sub byte [edx + 0x7fbde0], al
movzx eax, byte [edx + 0x7fbde0]
sub al, byte [ecx + 0x7fbde0]
mov byte [edx + 0x7fbde0], al
inc edx
cmp edx, 0x100
jb 0x403cb0
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x7fbee0]
xor byte [eax + 0x7fbde0], cl
mov dl, byte [edx + 0x7fbde0]
xor byte [eax + 0x7fbde0], dl
inc eax
cmp eax, 0x100
jb 0x403ce2
sub esi, 1
jne 0x403c47
pop esi
pop ebx
ret

Function at 0x418f92
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x402300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402409
test eax, 0xffff0000
jne 0x402409
movzx edi, ax
push edi
call fcn.00407d14
mov ebx, eax
test ebx, ebx
je 0x402407
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402407
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402407
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402407
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402398
cmp esi, ecx
jae 0x402407
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402382
cmp esi, ecx
jae 0x402407
movzx eax, word [esi]
test ax, ax
je 0x402407
push 0
push 0
push 0
push 0
push eax
lea ebx, [esi + 2]
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402412
mov edx, dword [ebp]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4023e0
push edi
mov ecx, ebp
call fcn.00403390
mov edx, dword [ebp]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x402412
mov dword [eax - 0xc], edi
mov eax, dword [ebp]
mov byte [edi + eax], 0
mov dl, 1
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
ret 4
push 0x80070057
call fcn.004022c0
int3

Function at 0x402420
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x204], eax
cmp dword [ecx + 0xe0], 0x10
lea eax, [ecx + 0xcc]
jb 0x402445
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x108]
push eax
call fcn.00402c80
lea eax, [esp + 0x104]
push eax
push 0x100
lea eax, [esp + 0xc]
push eax
push 0x56fd93
push str.NAME
push str.CDINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x56ff60
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
pop esi
jne 0x4024c6
push 0x56ff60
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4024c6
mov eax, 1
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0053fe9d
add esp, 0x208
ret
mov ecx, dword [esp + 0x204]
xor eax, eax
xor ecx, esp
call fcn.0053fe9d
add esp, 0x208
ret
Function at 0x402600
Capabilities:
Copy file
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x34c]
sub esp, 0x34c
push 0xffffffffffffffff
push 0x55dd7d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5b9e84]
xor eax, ebp
mov dword [ebp + 0x348], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x354]
mov dword [ebp - 0x14], eax
call fcn.004081b3
mov ecx, eax
test ecx, ecx
je 0x40280c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.004087bd
push 0x104
lea ecx, [ebp + 0x140]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x244]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp + 0x244]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4026a0
sub ecx, edx
lea eax, [ebp + 0x244]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004034a0
mov eax, dword [ebp - 0x10]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4026c1
sub edx, esi
add edx, 0xffffffff
js 0x402802
cmp edx, dword [eax - 0xc]
jg 0x402802
mov al, byte [edx + eax]
cmp al, 0x5c
je 0x4026ed
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00402100
push dword [edi + 0x64]
lea ecx, [ebp - 0x10]
call fcn.00402160
push str..exe
lea ecx, [ebp - 0x10]
call fcn.00402160
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x40273f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call edi
test eax, eax
je 0x4027bd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4027bd
push 0
push esi
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4027bd
push 0x20
push esi
call edi
test eax, eax
je 0x4027bd
mov edx, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
mov edi, dword [edx]
sub edi, 0x10
cmp ecx, edi
je 0x4027b6
cmp dword [edi + 0xc], 0
jl 0x4027ab
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4027ab
push ecx
call fcn.00402570
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40279c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov edi, 1
mov dword [ecx], eax
jmp 0x4027bf
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.004034a0
mov edi, 1
jmp 0x4027bf
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4027db
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x348]
xor ecx, ebp
call fcn.0053fe9d
lea esp, [ebp + 0x34c]
pop ebp
ret 4
push 0x80070057
call fcn.004022c0
push 0x80004005
call fcn.004022c0
int3
Function at 0x402820
Capabilities:
Check mutex on windows

Disassembly:
push edi
push str.__K_I_M_A_T_E_N_2__
push 0
push 0x1f0001
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x402844
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
push esi
push str.__K_I_M_A_T_E_N_2__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40287c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402881
cmp eax, 0x80
je 0x402881
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret
mov dword [edi + 0xe4], esi
mov eax, 1
pop esi
pop edi
ret
Function at 0x403310
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x56ffdc
lea esi, [edi + 0xcc]
mov ecx, esi
call fcn.004038b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40333a
mov ecx, dword [esi]
mov al, bl
add al, 0x41
mov byte [ecx], al
mov ecx, edi
push ebx
call fcn.004022e0
cmp al, 1
jne 0x40336a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x403356
mov eax, dword [esi]
push eax
call ebp
cmp eax, 5
jne 0x40336a
mov ecx, edi
call fcn.00402420
cmp eax, 1
je 0x403377
inc ebx
cmp ebx, 0x19
jle 0x403330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4042b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x144
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
mov esi, dword [esp + 0x14c]
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404309
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404309
xor al, al
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0053fe9d
add esp, 0x144
ret 4
mov ecx, dword [esp + 0x144]
mov al, 1
pop esi
xor ecx, esp
call fcn.0053fe9d
add esp, 0x144
ret 4

Function at 0x404330
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x964
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x960], eax
push ebx
push esi
mov esi, dword [esp + 0x970]
lea eax, [esp + 0x168]
push edi
push 0x400
push 0
push eax
mov ebx, ecx
call fcn.00541c90
lea edx, [esp + 0x178]
add esp, 0xc
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404372
cmp dword [esp + 0x978], 1
jne 0x4043da
push esi
lea eax, [esp + 0x570]
push str._s.
push eax
call fcn.00403a40
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404404
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
cmp byte [esp + 0x58], 0x2e
jne 0x4043fd
lea eax, [esp + 0x2c]
push eax
push esi
call edi
test eax, eax
jne 0x4043c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x1e], xmm0
mov dword [esp + 0x26], 0
test ebx, ebx
jne 0x404408
mov dword [esp + 0xc], ebx
jmp 0x40440f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40443c
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x16c]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], eax
mov eax, 0x14
mov word [esp + 0x1c], ax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x96c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053fe9d
add esp, 0x964
ret 8
Function at 0x404a70
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
push eax
push 0xf003f
push 0
push str.SoftWarekimaten2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call esi
test eax, eax
jne 0x404bb1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Path
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SoftWarekimaten2
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push str.SoftWarekimaten2
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.00541df0
add esp, 8
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x404bb1
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
push eax
lea eax, [esp + 0x130]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [esp + 0x10]
cmp eax, 0x103
jne 0x404b67
call edi
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
jmp 0x404b69
call edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionUninstallkimaten2
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x404bb1
push str.DisplayName
push dword [esp + 0x14]
call ebp
push str.UninstallString
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call edi
push str.SoftWareMicrosoftWindowsCurrentVersionUninstallkimaten2
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov al, 1
jmp 0x404bb3
xor al, al
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fe9d
add esp, 0x214
ret
Function at 0x405600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push ebx
mov dword [esp + 0x14], eax
mov bl, 1
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0xf003f
push 0
push str.SoftWarekimaten2
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405664
xor al, al
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0053fe9d
add esp, 0x220
ret 4
push ebp
push esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esp + 0x10]
push edi
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
push eax
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
lea eax, [esp + 0x13c]
mov dword [esp + 0x2c], esi
push eax
push esi
push dword [esp + 0x2c]
call ebp
test eax, eax
jne 0x405706
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x128]
push eax
push str.Path
call edi
test eax, eax
je 0x405734
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
push eax
push 0
lea eax, [esp + 0x2c]
inc esi
push eax
lea eax, [esp + 0x13c]
push eax
push esi
push dword [esp + 0x2c]
call ebp
test eax, eax
je 0x4056b1
xor bl, bl
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test ecx, ecx
je 0x40571a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0053fe9d
add esp, 0x220
ret 4
lea edx, [esp + 0x24]
lea esi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x405740
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
sub edx, esi
push edx
push eax
call fcn.00406410
jmp 0x405708
Function at 0x405760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftWarekimaten2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4057be
xor eax, eax
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0053fe9d
add esp, 0x21c
ret 4
push ebp
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x104
push eax
lea eax, [esp + 0x124]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
push eax
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x405866
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
push edi
call ebx
test eax, eax
je 0x405860
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebp
push eax
lea eax, [esp + 0x128]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
push eax
push 0
lea eax, [esp + 0x2c]
inc esi
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x405810
jmp 0x405865
mov ebp, 1
pop ebx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x405875
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
mov eax, ebp
pop esi
pop ebp
pop edi
xor ecx, esp
call fcn.0053fe9d
add esp, 0x21c
ret 4

Function at 0x405ba0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x5b9e84]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [0x5be420], 2
jne 0x405c03
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 8]
mov dword [esp + 4], 1
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 2
push eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor ecx, esp
call fcn.0053fe9d
add esp, 0x18
ret