joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408fec
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.00407028
xor eax, eax
push ebp
push 0x409211
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40902c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409046
mov eax, dword [ebp - 4]
call fcn.00407604
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408820
cmp word [ebp - 0x21a], 0
je 0x4091fb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409220
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409115
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409220
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409115
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40925c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409115
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40925c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409115
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409290
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409115
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4091fb
xor eax, eax
push ebp
push 0x4091f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408dfc
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 0x409184
mov eax, dword [ebp - 0x10]
call fcn.00403f2c
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.0040765c
jmp 0x4091cf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409304
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4091cf
mov eax, dword [ebp - 0x10]
call fcn.00403f2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409304
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040765c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091fb
cmp dword [ebp - 8], 0
je 0x4091ea
mov eax, dword [ebp - 8]
call fcn.00403f48
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 0x409218
lea eax, [ebp - 4]
call fcn.00406f44
ret
Function at 0x409500
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.00407028
xor eax, eax
push ebp
push 0x4095c0
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.00407698
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004077c8
mov eax, dword [ebx]
call fcn.004093c8
test al, al
jne 0x40959d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407698
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004077c8
mov eax, dword [ebx]
call fcn.004093c8
test al, al
jne 0x40959d
mov eax, ebx
call fcn.00406f44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095c7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406fa4
lea eax, [ebp - 4]
call fcn.00406f44
ret

Function at 0x409c44
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 0x416ce4
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 0x416d1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040709c
jmp 0x416d26
mov eax, ebx
mov edx, esi
call fcn.00407250
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416d30
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 0x416d52
movzx eax, word [esp]
jmp 0x416d54
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417de0
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 0x417f05
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417be8
mov esi, eax
mov eax, dword [0x436c44]
cmp byte [eax], 0
je 0x417ead
mov eax, dword [0x436acc]
call fcn.00404770
call fcn.00404080
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 [0x417db0]
call fcn.00408408
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 0x417f20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417ee9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x436a90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x439c4c]
call fcn.004084c0
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 0x417f0c
lea eax, [ebp - 4]
mov edx, dword [0x417db0]
call fcn.00408414
ret

Function at 0x419580
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.0040734c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00409c24
mov edi, eax
cmp edi, 0x104
jbe 0x419527
mov eax, edi
add eax, eax
call fcn.00403f2c
mov esi, eax
jmp 0x419529
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00409c24
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x419564
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 0x41954e
mov eax, esp
cmp esi, eax
je 0x419571
mov eax, esi
call fcn.00403f48
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 0x4195ac
cmp bl, 0
je 0x4195a8
cmp bl, 0x41
jl 0x4195a3
cmp bl, 0x5a
jg 0x4195a3
or bl, 0x20
xor al, bl
inc esi
jmp 0x419587
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4194e8

Function at 0x419880
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.00407698
add esp, 0x800
pop ebx
ret
Function at 0x41a9dc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, eax
mov eax, edx
dec eax
test eax, eax
jl 0x41a9ed
inc eax
xor byte [ecx], 0xff
inc ecx
dec eax
jne 0x41a9e6
ret
Function at 0x41c3e4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x441f84
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x41c407
mov esi, edi
jmp 0x41c526
mov eax, dword [0x436a8c]
cmp byte [eax], 0
je 0x41c526
mov edx, 0x41c52c
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c435
mov eax, edi
xor edx, edx
call fcn.0041e454
mov esi, edi
jmp 0x41c526
mov edx, 0x41c534
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c45f
push 0xa
push edi
mov eax, dword [0x436c08]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41c526
mov edx, 0x41c54c
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c483
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41c526
mov edx, 0x41c568
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c49f
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41c526
mov edx, 0x41c580
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c4cc
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041b0e4
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41c526
mov edx, 0x41c58c
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c4f9
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041b660
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41c526
mov edx, 0x41c598
mov eax, ebx
call fcn.0041532c
test eax, eax
jne 0x41c526
call fcn.004042ec
mov eax, 0x7fff
call fcn.00404314
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 0x41df08
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 0x41df66
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41df49
mov eax, dword [0x436c2c]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41df6b
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41df66
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41df6b
cmp dword [edi], 0xffffffff
jne 0x41df30
cmp dword [edi], 0xffffffff
je 0x41dfb0
mov eax, dword [0x436608]
inc eax
push eax
mov eax, 0x445f88
mov ecx, 1
mov edx, dword [0x41dec4]
call fcn.00408408
add esp, 4
cmp dword [0x445f88], 0
je 0x41dfae
mov eax, dword [0x445f88]
mov edx, dword [0x436608]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x436608]
mov bl, 1
test bl, bl
jne 0x41dfc1
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c2c]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e13c
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 0x41e1c3
push 0
push 0
push 0x2000
mov eax, dword [0x436a54]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x436bcc]
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 [0x436a54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41e1b5
cmp ebx, dword [edi]
je 0x41e1bb
mov byte [ebp - 1], 0
jmp 0x41e218
cmp esi, 0x4000
ja 0x41e164
test esi, esi
je 0x41e20f
push 0
push 0
push 0x2000
mov eax, dword [0x436a54]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x436bcc]
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 [0x436a54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41e209
cmp esi, dword [edi]
je 0x41e20f
mov byte [ebp - 1], 0
jmp 0x41e218
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 0x41e454
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41e471
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41e4e8
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41e48a
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.0041c3e4
test eax, eax
jne 0x41e4dd
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41e4bb
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 0x41e4e8
mov edx, eax
mov eax, esi
call fcn.0041a714
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x41e638
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffde4
mov esi, edx
cmp word [eax], 0x5c
jne 0x41e65a
cmp word [eax + 2], 0x5c
jne 0x41e65a
mov eax, 0x23bd
jmp 0x41e86c
call fcn.0041e610
mov ebx, eax
mov dword [esp], eax
test eax, eax
jne 0x41e672
mov eax, 8
jmp 0x41e86c
mov eax, ebx
call fcn.0041a704
mov edx, eax
mov eax, edx
cmp eax, 1
jl 0x41e697
cmp word [ebx + eax*2 - 2], 0x20
je 0x41e692
mov word [ebx + eax*2], 0
jmp 0x41e697
dec eax
test eax, eax
jne 0x41e682
lea eax, [esp + 0x10]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
movzx edx, word [esp + 0x10]
mov eax, edx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41e6bf
movzx eax, word [esp + 0x10]
and ax, 0xffdf
mov edi, eax
mov word [esp + 8], 0x3d
movzx eax, word [ebx]
call fcn.0041a81c
test al, al
je 0x41e6f8
cmp word [ebx + 2], 0x3a
jne 0x41e6f8
movzx edx, word [ebx]
mov eax, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x41e6f1
mov eax, edx
and ax, 0xffdf
mov word [esp + 0xa], ax
jmp 0x41e6fd
mov word [esp + 0xa], di
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0
mov word [esp + 0x216], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x104
push ebx
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x41e738
call sub.kernel32.dll_GetLastError_2
jmp 0x41e86c
cmp eax, 0x104
jbe 0x41e749
mov eax, 0xce
jmp 0x41e86c
cmp word [esp + 0x10], 0
je 0x41e759
cmp word [esp + 0x12], 0x3a
je 0x41e763
mov eax, 3
jmp 0x41e86c
cmp dword [esp + 4], 0
jne 0x41e77f
lea eax, [esp + 0x10]
call fcn.0041a704
add eax, eax
lea edx, [esp + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41e7ac
lea eax, [esp + 0x16]
cmp eax, dword [esp + 4]
jae 0x41e7ac
mov eax, dword [esp + 4]
cmp word [eax - 2], 0x5c
jne 0x41e7ac
sub dword [esp + 4], 2
mov eax, dword [esp + 4]
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41e7d3
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41e7d3
cmp eax, 3
je 0x41e7d3
cmp eax, 0x7b
jne 0x41e86c
mov eax, dword [0x436a8c]
cmp byte [eax], 0
je 0x41e7e8
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0041e4f0
cmp esi, 2
je 0x41e814
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41e80d
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x41e86c
mov eax, 3
jmp 0x41e86c
test eax, 0x410
je 0x41e867
test esi, esi
je 0x41e822
dec esi
jne 0x41e830
cmp di, word [esp + 0xa]
jne 0x41e830
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x41e860
lea edx, [esp + 0x10]
lea eax, [esp + 8]
call fcn.0041c694
test eax, eax
jne 0x41e859
mov eax, dword [0x436cd0]
xor edx, edx
call fcn.0041e454
mov eax, dword [esp]
call fcn.0042e258
xor eax, eax
jmp 0x41e86c
mov eax, 8
jmp 0x41e86c
call sub.kernel32.dll_GetLastError_2
jmp 0x41e86c
mov eax, 0x10b
add esp, 0x21c
pop edi
pop esi
pop ebx
ret
Function at 0x41e89c
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.0042fcf8
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 0x41e9de
lea ebx, [esp + 0x258]
mov edx, 0x41e9f0
mov ecx, 4
mov eax, ebx
call fcn.0041538c
test eax, eax
jne 0x41e964
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.0041547c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x41e945
cmp edi, dword [esp + 4]
jae 0x41e945
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 0x41e93e
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41e9e4
xor eax, eax
jmp 0x41e9e4
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41e95d
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41e9e4
xor eax, eax
jmp 0x41e9e4
cmp dword [esp + 4], 0
je 0x41e975
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41e988
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x41e9de
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.0041dfcc
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.0041e050
test esi, esi
jne 0x41e9de
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x41e9ce
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x41e9de
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x41e9de
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x41e9de
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x41e9de
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret
Function at 0x427b6c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbd0
mov esi, edx
mov edi, eax
xor ebx, ebx
test esi, esi
jne 0x427c36
xor esi, esi
push 0x20a
lea eax, [esp + 8]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x427bb0
cmp ebx, 0x103
jne 0x427cd6
xor ebx, ebx
jmp 0x427cd6
cmp word [esp + 4], 0x2e
jne 0x427c1c
mov dword [esp], 0x20a
push esp
lea eax, [esp + 0x212]
push eax
lea eax, [esp + 0xc]
push eax
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x427cd6
lea eax, [esp + 4]
mov dword [esp + 0x418], eax
mov byte [esp + 0x41c], 0xa
lea eax, [esp + 0x20e]
mov dword [esp + 0x420], eax
mov byte [esp + 0x424], 0xa
lea edx, [esp + 0x418]
mov eax, 0x427ce8
mov ecx, 1
call fcn.0041eb58
mov eax, dword [0x436b90]
cmp dword [eax], 0
je 0x427c30
mov ebp, 1
jmp 0x427cd8
inc esi
jmp 0x427b86
xor edx, edx
mov eax, esi
call fcn.0042fb90
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041a6bc
test eax, eax
je 0x427c55
mov word [eax], 0
mov dword [esp], 0x20a
push esp
lea eax, [esp + 0x212]
push eax
push esi
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x427caf
mov dword [esp + 0x418], esi
mov byte [esp + 0x41c], 0xa
lea eax, [esp + 0x20e]
mov dword [esp + 0x420], eax
mov byte [esp + 0x424], 0xa
lea edx, [esp + 0x418]
mov eax, 0x427ce8
mov ecx, 1
call fcn.0041eb58
jmp 0x427cd6
push 0
mov dword [esp + 0x42c], esi
mov byte [esp + 0x430], 0xa
lea ecx, [esp + 0x42c]
mov edx, 1
mov eax, 0x427d04
call fcn.0042f45c
mov ebp, ebx
mov eax, ebp
add esp, 0x430
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427d60
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov ebx, ecx
mov edi, edx
mov esi, eax
test ebx, ebx
je 0x427d76
cmp word [ebx], 0
jne 0x427da3
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x427e00
push 0
mov dword [esp + 4], edi
mov byte [esp + 8], 0xa
lea ecx, [esp + 4]
mov edx, 1
mov eax, 0x427e18
call fcn.0042f45c
jmp 0x427e00
mov eax, ebx
call fcn.0041a704
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x427de2
mov dword [esp + 8], edi
mov byte [esp + 0xc], 0xa
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], 0xa
lea edx, [esp + 8]
mov eax, 0x427e74
mov ecx, 1
call fcn.0041eb58
jmp 0x427e00
push 0
mov dword [esp + 4], edi
mov byte [esp + 8], 0xa
lea ecx, [esp + 4]
mov edx, 1
mov eax, 0x427e90
call fcn.0042f45c
mov eax, esi
add esp, 0x18
pop edi
pop esi
pop ebx
ret