joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004088f4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e10a
test ah, 4
je 0x41e103
test bl, bl
jne 0x41e0c8
mov al, 1
jmp 0x41e131
test al, 0x10
je 0x41e0d0
xor eax, eax
jmp 0x41e131
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41e0f4
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41e131
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e131
test al, 0x10
sete al
jmp 0x41e131
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41e12b
cmp ebx, 3
je 0x41e12b
cmp ebx, 0x7b
je 0x41e12b
mov eax, esi
call fcn.0041e060
test al, al
jne 0x41e12f
xor eax, eax
jmp 0x41e131
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41e138
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004088f4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41e1df
test esi, 0x400
jne 0x41e174
test esi, 0x10
setne bl
jmp 0x41e1fe
cmp byte [esp], 0
je 0x41e1a8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41e1fe
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41e1fe
test esi, 0x10
je 0x41e1b4
mov bl, 1
jmp 0x41e1fe
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41e1db
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41e1fe
mov bl, 1
jmp 0x41e1fe
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41e1f8
cmp eax, 3
je 0x41e1f8
cmp eax, 0x7b
je 0x41e1f8
cmp eax, 0x35
jne 0x41e1fc
xor ebx, ebx
jmp 0x41e1fe
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41e368
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41e40d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004088f4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x41e3f2
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.0041ca88
test al, al
je 0x41e3f2
mov eax, dword [ebp - 4]
call fcn.0041eaac
test al, al
je 0x41e3e2
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0041e82c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004248f4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.00408b50
mov eax, dword [ebp - 4]
call fcn.004088f4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e414
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407ac0
ret
Function at 0x41e420
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41e4f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407e88
cmp byte [ebp - 9], 0
je 0x41e4b1
mov eax, ebx
call fcn.004088f4
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x41e4b1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041ca88
test al, al
je 0x41e4b1
mov eax, dword [ebp - 8]
call fcn.0041eaac
test al, al
je 0x41e4a6
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0041e82c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004248f4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00408b50
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407e88
push edi
mov eax, dword [ebp - 4]
call fcn.004088f4
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41e4cb
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e4fa
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407ac0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407ac0
ret

Function at 0x41e61c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004088f4
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41e671
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e66b
test ah, 4
je 0x41e66b
test al, 0x10
je 0x41e66b
mov eax, esi
call fcn.004088f4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41e671
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422950
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x422989
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407be8
jmp 0x422992
mov eax, ebx
mov edx, esi
call fcn.00407e40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42299c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4229be
movzx eax, word [esp]
jmp 0x4229c0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423684
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4237a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042348c
mov esi, eax
mov eax, dword [0x4e9a44]
cmp byte [eax], 0
je 0x423751
mov eax, dword [0x4e97ac]
call fcn.00404f18
call fcn.004046bc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423654]
call fcn.00409de8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4237c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42378d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e9750]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ecc50]
call fcn.0040a104
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4237b0
lea eax, [ebp - 4]
mov edx, dword [0x423654]
call fcn.00409f0c
ret

Function at 0x42513c
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.00407f68
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bcd8
mov edi, eax
cmp edi, 0x104
jbe 0x4250e3
mov eax, edi
add eax, eax
call fcn.00404568
mov esi, eax
jmp 0x4250e5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bcd8
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x425120
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 0x42510a
mov eax, esp
cmp esi, eax
je 0x42512d
mov eax, esi
call fcn.00404584
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 0x425168
cmp bl, 0
je 0x425164
cmp bl, 0x41
jl 0x42515f
cmp bl, 0x5a
jg 0x42515f
or bl, 0x20
xor al, bl
inc esi
jmp 0x425143
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4250a4

Function at 0x425968
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004089a0
add esp, 0x800
pop ebx
ret
Function at 0x44bc8c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44bd2a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44bcee
cmp byte [ebx + 0x10], 0
jne 0x44bcee
cmp byte [ebx + 0x3c], 0
jne 0x44bcee
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44bd0f
lea edx, [ebp - 4]
mov eax, dword [0x4e99d0]
call fcn.0040bc44
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43db84]
call fcn.004237d4
call fcn.00407158
jmp 0x44bd0f
lea edx, [ebp - 8]
mov eax, dword [0x4e99d0]
call fcn.0040bc44
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43db84]
call fcn.004237d4
call fcn.00407158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bd31
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407ac0
ret

Function at 0x44c050
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44c09e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044bbc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44c0b7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44c0c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0044bbc4
dec esi
jne 0x44c0e2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44d5b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ef010
cmp dword [edi], 0
jne 0x44d62c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ef00c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e7960
mov ecx, 2
call fcn.0040470c
mov edx, 0x44d588
lea eax, [esi + 5]
call fcn.0044d5a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044d5a8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x44d601
mov dword [0x4ef00c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x44f3ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x44f43e
test eax, edx
je 0x44f441
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x44f401
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x44f427
add ecx, 4
js 0x44f417
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x44f424
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x44f44d
test edx, edx
jne 0x44f3f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x45f074
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
xor eax, eax
push ebp
push 0x45f0c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x45f0e0
mov eax, dword [ebp - 8]
call fcn.0045efd0
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f0c9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x45f254
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45f387
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x45f35f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00404f7c
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
movzx eax, word [ebx + 0x18]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00407e88
lea eax, [ebp - 0x60]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00408cc0
mov eax, dword [ebp - 0x60]
mov edx, 0x45f3a8
call fcn.00408c88
je 0x45f2f6
push 0x45f3a8
push dword [ebp - 4]
push 0x45f3a8
lea eax, [ebp - 4]
mov edx, 3
call fcn.00408bd8
cmp dword [ebx + 0x14], 0
je 0x45f314
push dword [ebp - 4]
push 0x45f3b8
push dword [ebx + 0x14]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00408bd8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004088f4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x45f355
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0xc], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f369
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f38e
lea eax, [ebp - 0x60]
call fcn.00407a60
lea eax, [ebp - 4]
call fcn.00407a60
ret
Function at 0x45f88c
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov edi, 0x4ef0cc
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x45fa05
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x45f8c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45fa0f
call fcn.0045f074
push esi
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45f8e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45fa0f
xor edx, edx
push ebp
push 0x45f9f4
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x45f9c2
push 0x64
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x45f7f4]
call fcn.00409de8
add esp, 4
push esi
push 0x45f81c
call sub.user32.dll_EnumWindows
mov dword [ebp - 0xc], 0x79
mov eax, dword [edi]
call fcn.00409c34
test eax, eax
je 0x45f9c2
mov eax, dword [edi]
call fcn.00409c34
mov esi, eax
dec esi
test esi, esi
jl 0x45f98a
inc esi
xor ebx, ebx
push 0
push 0
push 0x10
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 0
push 0x11
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 1
push 0x16
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
inc ebx
dec esi
jne 0x45f953
push 0x19
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
push 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x45f9b9
mov byte [ebp - 1], 1
call fcn.0040724c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45fa0f
dec dword [ebp - 0xc]
jne 0x45f933
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f9fb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fffc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov byte [ebp - 1], 7
xor edx, edx
push ebp
push 0x460104
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x4600bf
mov byte [ebp - 1], 5
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x46009b
mov byte [ebp - 1], 0xa
cmp byte [ebp - 6], 1
jne 0x46007b
mov eax, dword [ebp - 0x118]
cmp eax, 2
jb 0x46006c
mov byte [ebp - 1], 0xe
jmp 0x4600fa
cmp eax, 1
jb 0x4600fa
mov byte [ebp - 1], 0xd
jmp 0x4600fa
mov byte [ebp - 1], 0xb
mov eax, dword [ebp - 0x118]
cmp eax, 2
jb 0x460090
mov byte [ebp - 1], 0xf
jmp 0x4600fa
cmp eax, 1
jb 0x4600fa
mov byte [ebp - 1], 0xc
jmp 0x4600fa
cmp eax, 5
jb 0x4600fa
mov byte [ebp - 1], 6
cmp dword [ebp - 0x118], 1
jb 0x4600fa
cmp byte [ebp - 6], 1
jne 0x4600b9
mov byte [ebp - 1], 7
jmp 0x4600fa
mov byte [ebp - 1], 9
jmp 0x4600fa
cmp eax, 1
jne 0x4600f6
mov byte [ebp - 1], 1
cmp dword [ebp - 0x11c], 4
jne 0x4600de
cmp dword [ebp - 0x118], 0xa
jne 0x4600de
mov byte [ebp - 1], 2
cmp dword [ebp - 0x11c], 4
jne 0x4600fa
cmp dword [ebp - 0x118], 0x5a
jne 0x4600fa
mov byte [ebp - 1], 3
jmp 0x4600fa
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46010e
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4622c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46237c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004620b0
test al, al
je 0x46235e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407be8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46235e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004088f4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004088f4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040894c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x462317
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462383
lea eax, [ebp - 0x2c]
call fcn.00407a60
lea eax, [ebp - 4]
call fcn.00407a60
ret
Function at 0x4624b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00461db4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004088f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.00461eb8
test al, al
jne 0x462520
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e98fc]
mov dl, 1
mov eax, dword [0x460b88]
call fcn.004238cc
call fcn.00407158
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46252c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004088f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00461eb8
test al, al
jne 0x46258d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e9bb4]
mov dl, 1
mov eax, dword [0x460b88]
call fcn.004238cc
call fcn.00407158
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00461de4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46264c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407b44
mov eax, dword [ebp - 8]
call fcn.00407b44
xor eax, eax
push ebp
push 0x46275f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x4e96a8]
cmp byte [eax], 0
je 0x4626b2
call fcn.0040beb8
cmp byte [eax + 0x15], 0
je 0x46269f
mov ebx, pe_nt_image_headers32
jmp 0x4626b2
call fcn.0040beb8
cmp byte [eax + 0x14], 0
je 0x4626b2
mov ebx, 0x200
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
or ebx, 0x20006
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004088f4
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x462744
cmp dword [ebp - 8], 0
jne 0x46270d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
jmp 0x462735
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004088f4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462766
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407ac0
ret