joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a3c
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.00406ab8
xor eax, eax
push ebp
push 0x408c61
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408a7c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408a96
mov eax, dword [ebp - 4]
call fcn.00407120
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408270
cmp word [ebp - 0x21a], 0
je 0x408c4b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408b65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408b65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408cac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408b65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408cac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408b65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ce0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408b65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408c4b
xor eax, eax
push ebp
push 0x408c44
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040884c
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 0x408bd4
mov eax, dword [ebp - 0x10]
call fcn.00403980
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.00407178
jmp 0x408c1f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408d54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408c1f
mov eax, dword [ebp - 0x10]
call fcn.00403980
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408d54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407178
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c4b
cmp dword [ebp - 8], 0
je 0x408c3a
mov eax, dword [ebp - 8]
call fcn.0040399c
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 0x408c68
lea eax, [ebp - 4]
call fcn.004069d4
ret
Function at 0x408f50
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.00406ab8
xor eax, eax
push ebp
push 0x409010
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.004071b4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004072e4
mov eax, dword [ebx]
call fcn.00408e18
test al, al
jne 0x408fed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004071b4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004072e4
mov eax, dword [ebx]
call fcn.00408e18
test al, al
jne 0x408fed
mov eax, ebx
call fcn.004069d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409017
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406a34
lea eax, [ebp - 4]
call fcn.004069d4
ret

Function at 0x409668
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 0x415488
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 0x4154c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b2c
jmp 0x4154ca
mov eax, ebx
mov edx, esi
call fcn.00406ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4154d4
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 0x4154f8
movzx eax, word [ebp - 4]
jmp 0x4154fa
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4163f8
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 0x41651d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416200
mov esi, eax
mov eax, dword [0x432138]
cmp byte [eax], 0
je 0x4164c5
mov eax, dword [0x431f20]
call fcn.004041c4
call fcn.00403ad4
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 [0x4163c8]
call fcn.00407e58
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 0x416538
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416501
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x431ee4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x435c4c]
call fcn.00407f10
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 0x416524
lea eax, [ebp - 4]
mov edx, dword [0x4163c8]
call fcn.00407e64
ret

Function at 0x41759c
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 0x4175c8
cmp bl, 0
je 0x4175c4
cmp bl, 0x41
jl 0x4175bf
cmp bl, 0x5a
jg 0x4175bf
or bl, 0x20
xor al, bl
inc esi
jmp 0x4175a3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp fcn.004174f8

Function at 0x4184d0
Capabilities:
Encode data using xor

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

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x43df80
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x419fcf
mov esi, edi
jmp 0x41a0ee
mov eax, dword [0x431ee0]
cmp byte [eax], 0
je 0x41a0ee
mov edx, 0x41a0f4
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x419ffd
mov eax, edi
xor edx, edx
call fcn.0041bfd0
mov esi, edi
jmp 0x41a0ee
mov edx, 0x41a0fc
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x41a027
push 0xa
push edi
mov eax, dword [0x4320f4]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41a0ee
mov edx, 0x41a114
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x41a04b
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41a0ee
mov edx, 0x41a130
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x41a067
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41a0ee
mov edx, 0x41a148
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x41a094
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.00418e68
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41a0ee
mov edx, 0x41a154
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x41a0c1
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.004193e4
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41a0ee
mov edx, 0x41a160
mov eax, ebx
call fcn.00413b28
test eax, eax
jne 0x41a0ee
call fcn.00403d40
mov eax, 0x7fff
call fcn.00403d68
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 0x41ba84
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 0x41bae2
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41bac5
mov eax, dword [0x43211c]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41bae7
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41bae2
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41bae7
cmp dword [edi], 0xffffffff
jne 0x41baac
cmp dword [edi], 0xffffffff
je 0x41bb2c
mov eax, dword [0x43160c]
inc eax
push eax
mov eax, 0x441f84
mov ecx, 1
mov edx, dword [0x41ba40]
call fcn.00407e58
add esp, 4
cmp dword [0x441f84], 0
je 0x41bb2a
mov eax, dword [0x441f84]
mov edx, dword [0x43160c]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x43160c]
mov bl, 1
test bl, bl
jne 0x41bb3d
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x43211c]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41bcb8
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 0x41bd3f
push 0
push 0
push 0x2000
mov eax, dword [0x431e94]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x432088]
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 [0x431e94]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41bd31
cmp ebx, dword [edi]
je 0x41bd37
mov byte [ebp - 1], 0
jmp 0x41bd94
cmp esi, 0x4000
ja 0x41bce0
test esi, esi
je 0x41bd8b
push 0
push 0
push 0x2000
mov eax, dword [0x431e94]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x432088]
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 [0x431e94]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41bd85
cmp esi, dword [edi]
je 0x41bd8b
mov byte [ebp - 1], 0
jmp 0x41bd94
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 0x41bfd0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41bfed
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41c064
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41c006
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.00419fac
test eax, eax
jne 0x41c059
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41c037
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 0x41c064
mov edx, eax
mov eax, esi
call fcn.00418160
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x41c1b4
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 0x41c1d6
cmp word [eax + 2], 0x5c
jne 0x41c1d6
mov eax, 0x23bd
jmp 0x41c3e8
call fcn.0041c18c
mov ebx, eax
mov dword [esp], eax
test eax, eax
jne 0x41c1ee
mov eax, 8
jmp 0x41c3e8
mov eax, ebx
call fcn.00418150
mov edx, eax
mov eax, edx
cmp eax, 1
jl 0x41c213
cmp word [ebx + eax*2 - 2], 0x20
je 0x41c20e
mov word [ebx + eax*2], 0
jmp 0x41c213
dec eax
test eax, eax
jne 0x41c1fe
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 0x41c23b
movzx eax, word [esp + 0x10]
and ax, 0xffdf
mov edi, eax
mov word [esp + 8], 0x3d
movzx eax, word [ebx]
call fcn.00418268
test al, al
je 0x41c274
cmp word [ebx + 2], 0x3a
jne 0x41c274
movzx edx, word [ebx]
mov eax, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x41c26d
mov eax, edx
and ax, 0xffdf
mov word [esp + 0xa], ax
jmp 0x41c279
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 0x41c2b4
call sub.kernel32.dll_GetLastError_2
jmp 0x41c3e8
cmp eax, 0x104
jbe 0x41c2c5
mov eax, 0xce
jmp 0x41c3e8
cmp word [esp + 0x10], 0
je 0x41c2d5
cmp word [esp + 0x12], 0x3a
je 0x41c2df
mov eax, 3
jmp 0x41c3e8
cmp dword [esp + 4], 0
jne 0x41c2fb
lea eax, [esp + 0x10]
call fcn.00418150
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 0x41c328
lea eax, [esp + 0x16]
cmp eax, dword [esp + 4]
jae 0x41c328
mov eax, dword [esp + 4]
cmp word [eax - 2], 0x5c
jne 0x41c328
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 0x41c34f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41c34f
cmp eax, 3
je 0x41c34f
cmp eax, 0x7b
jne 0x41c3e8
mov eax, dword [0x431ee0]
cmp byte [eax], 0
je 0x41c364
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0041c06c
cmp esi, 2
je 0x41c390
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41c389
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x41c3e8
mov eax, 3
jmp 0x41c3e8
test eax, 0x410
je 0x41c3e3
test esi, esi
je 0x41c39e
dec esi
jne 0x41c3ac
cmp di, word [esp + 0xa]
jne 0x41c3ac
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x41c3dc
lea edx, [esp + 0x10]
lea eax, [esp + 8]
call fcn.0041a234
test eax, eax
jne 0x41c3d5
mov eax, dword [0x4321f0]
xor edx, edx
call fcn.0041bfd0
mov eax, dword [esp]
call fcn.0042a180
xor eax, eax
jmp 0x41c3e8
mov eax, 8
jmp 0x41c3e8
call sub.kernel32.dll_GetLastError_2
jmp 0x41c3e8
mov eax, 0x10b
add esp, 0x21c
pop edi
pop esi
pop ebx
ret
Function at 0x41c418
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.0042ba4c
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 0x41c55a
lea ebx, [esp + 0x258]
mov edx, 0x41c56c
mov ecx, 4
mov eax, ebx
call fcn.00413b88
test eax, eax
jne 0x41c4e0
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.00413c7c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x41c4c1
cmp edi, dword [esp + 4]
jae 0x41c4c1
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 0x41c4ba
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41c560
xor eax, eax
jmp 0x41c560
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41c4d9
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41c560
xor eax, eax
jmp 0x41c560
cmp dword [esp + 4], 0
je 0x41c4f1
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41c504
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x41c55a
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.0041bb48
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.0041bbcc
test esi, esi
jne 0x41c55a
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x41c54a
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x41c55a
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x41c55a
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x41c55a
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x41c55a
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret
Function at 0x4244a0
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 0x42464e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x424588
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 0x4244fe
cmp ebx, 0x103
jne 0x424632
xor ebx, ebx
jmp 0x424632
cmp word [ebp - 0x212], 0x2e
jne 0x42456c
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 0x424632
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, 0x424660
mov ecx, 1
call fcn.0041c6d4
mov eax, dword [0x43203c]
cmp dword [eax], 0
je 0x424582
mov dword [ebp - 4], 1
jmp 0x424635
inc esi
jmp 0x4244d2
xor edx, edx
mov eax, esi
call fcn.0042b8e4
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.00418108
test eax, eax
je 0x4245a7
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 0x4245fd
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, 0x424660
mov ecx, 1
call fcn.0041c6d4
jmp 0x424632
push 0
lea edx, [ebp - 0x430]
mov eax, dword [0x432054]
call fcn.004095b4
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x438], esi
mov byte [ebp - 0x434], 0xa
lea ecx, [ebp - 0x438]
mov edx, 1
call fcn.0042b1b0
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424655
lea eax, [ebp - 0x430]
call fcn.004069d4
ret
Function at 0x424670
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 0x424758
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x42469f
cmp word [ebx], 0
jne 0x4246d8
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x424738
push 0
lea edx, [ebp - 4]
mov eax, dword [0x432054]
call fcn.004095b4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.0042b1b0
jmp 0x424738
mov eax, ebx
call fcn.00418150
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x424712
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, 0x424768
mov ecx, 1
call fcn.0041c6d4
jmp 0x424738
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x431f24]
call fcn.004095b4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xa
lea ecx, [ebp - 0xc]
mov edx, 1
call fcn.0042b1b0
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42475f
lea eax, [ebp - 0x20]
call fcn.004069d4
lea eax, [ebp - 4]
call fcn.004069d4
ret
Function at 0x4252b4
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 0x42534f
lea edx, [esp + 4]
mov ecx, 0x40
mov eax, ebx
call fcn.00413808
cmp word [esp + 4], 0x5a4d
jne 0x425349
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00413838
mov edx, esp
mov ecx, 4
mov eax, ebx
call fcn.00413808
cmp dword [esp], 0x4550
jne 0x425349
lea edx, [esp + 0x44]
mov ecx, 0x14
mov eax, ebx
call fcn.00413808
cmp word [esp + 0x54], 0
jbe 0x425349
lea edx, [esp + 0x58]
mov ecx, 0xe0
mov eax, ebx
call fcn.00413808
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 0x4254d8
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.004254b8
inc eax
jne 0x425633
mov eax, edi
call fcn.00406e1c
mov dword [esp], eax
mov eax, dword [0x431f1c]
mov eax, dword [eax]
call fcn.00407c3c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [0x431f1c]
mov ecx, 1
mov edx, dword [0x417f1c]
call fcn.00407e58
add esp, 4
mov eax, dword [esp]
lea eax, [eax + eax*2]
call fcn.00403980
lea esi, [ebx + ebx*2]
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov dword [edx + esi*8], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, edi
call fcn.00413a60
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov dword [eax + esi*8 + 4], ebp
push ebp
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov dword [edx + esi*8 + 8], eax
push 2
push 0
push 0
lea eax, [ebx + ebx*2]
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0xc], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00403980
mov edx, dword [0x431f1c]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0x10], eax
push 0
push 0
push 0
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
push eax
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov edx, dword [eax + esi*8 + 0x10]
mov eax, dword [0x431f1c]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
dec eax
test eax, eax
jl 0x425622
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x42561b
lea eax, [ebx + ebx*2]
mov edx, dword [0x431f1c]
mov edx, dword [edx]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret