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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406aa0
xor eax, eax
push ebp
push 0x40934d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409168
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409182
mov eax, dword [ebp - 4]
call fcn.00407508
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040895c
cmp word [ebp - 0x21a], 0
je 0x409337
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40935c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409251
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40935c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409251
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409398
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409251
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409398
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409251
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409251
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409400
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409337
xor eax, eax
push ebp
push 0x409330
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f38
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092c0
mov eax, dword [ebp - 0x10]
call fcn.00403e9c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407570
jmp 0x40930b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409440
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40930b
mov eax, dword [ebp - 0x10]
call fcn.00403e9c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409440
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409337
cmp dword [ebp - 8], 0
je 0x409326
mov eax, dword [ebp - 8]
call fcn.00403eb8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409354
lea eax, [ebp - 4]
call fcn.004069bc
ret
Function at 0x40963c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406aa0
xor eax, eax
push ebp
push 0x4096fc
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004075ac
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004076f0
mov eax, dword [ebx]
call fcn.00409504
test al, al
jne 0x4096d9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004075ac
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004076f0
mov eax, dword [ebx]
call fcn.00409504
test al, al
jne 0x4096d9
mov eax, ebx
call fcn.004069bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409703
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406a1c
lea eax, [ebp - 4]
call fcn.004069bc
ret

Function at 0x409df8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x413f2c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413f85
test eax, edx
je 0x413f88
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413f43
movzx eax, word [eax]
sub eax, ecx
jmp 0x413f6a
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 0x413f6b
add ecx, 4
js 0x413f5b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413f68
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413f6a
xor eax, eax
ret
test eax, eax
je 0x413f94
test edx, edx
jne 0x413f34
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x414c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x414c9d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x414d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407508
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x414df5
test esi, 0x400
jne 0x414d7c
test esi, 0x10
setne bl
jmp 0x414e25
cmp byte [ebp - 1], 0
je 0x414db7
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.00407508
push eax
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x414e25
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x414e25
test esi, 0x10
je 0x414dc3
mov bl, 1
jmp 0x414e25
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.00407508
push eax
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x414df1
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x414e25
mov bl, 1
jmp 0x414e25
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x414e1f
cmp eax, 3
je 0x414e1f
cmp eax, 0xa1
je 0x414e1f
cmp eax, 0x7b
je 0x414e1f
cmp eax, 0x35
je 0x414e1f
cmp eax, 0x15
je 0x414e1f
cmp eax, 0x43
jne 0x414e23
xor ebx, ebx
jmp 0x414e25
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x418ad0
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 0x418b09
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b14
jmp 0x418b12
mov eax, ebx
mov edx, esi
call fcn.00406d6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418b1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x418b40
movzx eax, word [ebp - 4]
jmp 0x418b42
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x419abc
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 0x419be1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004198c4
mov esi, eax
mov eax, dword [0x459954]
cmp byte [eax], 0
je 0x419b89
mov eax, dword [0x459708]
call fcn.00404704
call fcn.00403ff0
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 [0x419a8c]
call fcn.00408538
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 0x419bfc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419bc5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4596c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45cc4c]
call fcn.004085fc
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 0x419be8
lea eax, [ebp - 4]
mov edx, dword [0x419a8c]
call fcn.00408544
ret

Function at 0x41b130
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41b15c
cmp bl, 0
je 0x41b158
cmp bl, 0x41
jl 0x41b153
cmp bl, 0x5a
jg 0x41b153
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b137
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp fcn.0041b08c
Function at 0x422a20
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x46e49c
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x422a43
mov esi, edi
jmp 0x422b62
mov eax, dword [0x4596c0]
cmp byte [eax], 0
je 0x422b62
mov edx, 0x422b68
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422a71
mov eax, edi
xor edx, edx
call fcn.004247b0
mov esi, edi
jmp 0x422b62
mov edx, 0x422b70
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422a9b
push 0xa
push edi
mov eax, dword [0x45990c]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x422b62
mov edx, 0x422b88
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422abf
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x422b62
mov edx, 0x422ba4
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422adb
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x422b62
mov edx, 0x422bbc
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422b08
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041ea5c
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x422b62
mov edx, 0x422bc8
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422b35
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041efd8
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x422b62
mov edx, 0x422bd4
mov eax, ebx
call fcn.004151f4
test eax, eax
jne 0x422b62
call fcn.0040425c
mov eax, 0x7fff
call fcn.00404284
push 0xa
push edi
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x424264
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [edi], eax
jmp 0x4242c2
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x4242a5
mov eax, dword [0x459938]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x4242c7
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4242c2
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x4242c7
cmp dword [edi], 0xffffffff
jne 0x42428c
cmp dword [edi], 0xffffffff
je 0x42430c
mov eax, dword [0x455744]
inc eax
push eax
mov eax, 0x472734
mov ecx, 1
mov edx, dword [0x424220]
call fcn.00408538
add esp, 4
cmp dword [0x472734], 0
je 0x42430a
mov eax, dword [0x472734]
mov edx, dword [0x455744]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x455744]
mov bl, 1
test bl, bl
jne 0x42431d
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x459938]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424498
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp esi, 0x4000
jbe 0x42451f
push 0
push 0
push 0x2000
mov eax, dword [0x459674]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x459898]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
add dword [ebp - 8], 0x4000
sub esi, 0x4000
push 0
push edi
push ebx
mov eax, dword [0x459674]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x424511
cmp ebx, dword [edi]
je 0x424517
mov byte [ebp - 1], 0
jmp 0x424574
cmp esi, 0x4000
ja 0x4244c0
test esi, esi
je 0x42456b
push 0
push 0
push 0x2000
mov eax, dword [0x459674]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x459898]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
dec esi
push 0
push edi
push esi
mov eax, dword [0x459674]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x424565
cmp esi, dword [edi]
je 0x42456b
mov byte [ebp - 1], 0
jmp 0x424574
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4247b0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x4247cd
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x424844
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x4247e6
mov eax, ebx
and ax, 0xffdf
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
mov eax, esp
call fcn.00422a20
test eax, eax
jne 0x424839
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x424817
mov eax, ebx
and ax, 0xffdf
mov word [esi], ax
add esi, 2
mov word [esi], 0x3a
add esi, 2
mov word [esi], 0x5c
add esi, 2
mov word [esi], 0
mov eax, 1
jmp 0x424844
mov edx, eax
mov eax, esi
call fcn.0041c328
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x424ff0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff994
mov edi, eax
mov eax, edi
call fcn.0042c0cc
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x25c]
push eax
push 0x208
push ebx
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x425132
lea ebx, [esp + 0x258]
mov edx, 0x425144
mov ecx, 4
mov eax, ebx
call fcn.00415254
test eax, eax
jne 0x4250b8
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.00415348
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x425099
cmp edi, dword [esp + 4]
jae 0x425099
mov eax, dword [esp + 4]
movzx ebx, word [eax]
mov eax, dword [esp + 4]
mov word [eax], 0
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov eax, dword [esp + 4]
mov word [eax], bx
cmp esi, 0xffffffff
je 0x425092
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x425138
xor eax, eax
jmp 0x425138
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4250b1
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x425138
xor eax, eax
jmp 0x425138
cmp dword [esp + 4], 0
je 0x4250c9
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x4250dc
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x425132
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.00424328
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.004243ac
test esi, esi
jne 0x425132
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x425122
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x425132
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x425132
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x425132
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x425132
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret
Function at 0x427b9c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x427d4a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x427c84
xor esi, esi
push 0x20a
lea eax, [ebp - 0x212]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x427bfa
cmp ebx, 0x103
jne 0x427d2e
xor ebx, ebx
jmp 0x427d2e
cmp word [ebp - 0x212], 0x2e
jne 0x427c68
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x212]
push eax
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x427d2e
lea eax, [ebp - 0x212]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x428], 0xa
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0xa
lea edx, [ebp - 0x42c]
mov eax, 0x427d5c
mov ecx, 1
call fcn.00425334
mov eax, dword [0x459848]
cmp dword [eax], 0
je 0x427c7e
mov dword [ebp - 4], 1
jmp 0x427d31
inc esi
jmp 0x427bce
xor edx, edx
mov eax, esi
call fcn.0042bf64
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041c2d0
test eax, eax
je 0x427ca3
mov word [eax], 0
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x427cf9
mov dword [ebp - 0x42c], esi
mov byte [ebp - 0x428], 0xa
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0xa
lea edx, [ebp - 0x42c]
mov eax, 0x427d5c
mov ecx, 1
call fcn.00425334
jmp 0x427d2e
push 0
lea edx, [ebp - 0x430]
mov eax, dword [0x459860]
call fcn.00409d44
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x438], esi
mov byte [ebp - 0x434], 0xa
lea ecx, [ebp - 0x438]
mov edx, 1
call fcn.0042b774
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427d51
lea eax, [ebp - 0x430]
call fcn.004069bc
ret
Function at 0x427d6c
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x427e5c
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x427d9b
cmp word [ebx], 0
jne 0x427dd4
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x427e3c
push 0
lea edx, [ebp - 4]
mov eax, dword [0x459860]
call fcn.00409d44
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.0042b774
jmp 0x427e3c
test ebx, ebx
je 0x427de1
mov eax, ebx
call fcn.00406ea8
jmp 0x427de3
xor eax, eax
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x427e16
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xa
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0xa
lea edx, [ebp - 0x1c]
mov eax, 0x427e6c
mov ecx, 1
call fcn.00425334
jmp 0x427e3c
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x45970c]
call fcn.00409d44
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.0042b774
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427e63
lea eax, [ebp - 0x20]
call fcn.004069bc
lea eax, [ebp - 4]
call fcn.004069bc
ret
Function at 0x428a20
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
add esp, 0xfffffec8
xor esi, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
test ebx, ebx
je 0x428abb
lea edx, [esp + 4]
mov ecx, 0x40
mov eax, ebx
call fcn.00414c10
cmp word [esp + 4], 0x5a4d
jne 0x428ab5
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00414ce0
mov edx, esp
mov ecx, 4
mov eax, ebx
call fcn.00414c10
cmp dword [esp], 0x4550
jne 0x428ab5
lea edx, [esp + 0x44]
mov ecx, 0x14
mov eax, ebx
call fcn.00414c10
cmp word [esp + 0x54], 0
jbe 0x428ab5
lea edx, [esp + 0x58]
mov ecx, 0xe0
mov eax, ebx
call fcn.00414c10
movzx esi, word [esp + 0x9c]
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
add esp, 0x138
pop esi
pop ebx
ret

Function at 0x42b5dc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42b6ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov word [ebp - 0xc], 0x3d
movzx eax, word [ebp - 4]
dec eax
add ax, 0x41
mov word [ebp - 0xa], ax
mov word [ebp - 8], 0x3a
mov word [ebp - 6], 0
xor ebx, ebx
lea eax, [ebp - 0xc]
call fcn.00422a20
mov esi, eax
test esi, esi
je 0x42b63e
push esi
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42b6c8
test esi, esi
je 0x42b653
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx eax, word [ebp - 0xa]
mov word [ebp - 0x216], ax
movzx eax, word [ebp - 8]
mov word [ebp - 0x214], ax
mov word [ebp - 0x212], 0x5c
mov word [ebp - 0x210], 0
lea edx, [ebp - 0x216]
lea eax, [ebp - 0xc]
call fcn.00422ca8
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x42b6be
push 0xffffffffffffffff
lea edx, [ebp - 0x21c]
mov eax, dword [0x459658]
call fcn.00409d44
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.0042b774
test esi, esi
je 0x42b6c8
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, dword [0x459a38]
xor edx, edx
call fcn.004247b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b6f4
lea eax, [ebp - 0x21c]
call fcn.004069bc
ret