joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417618
Capabilities:
Get disk information

Disassembly:
mov eax, 0x460b98
call fcn.0043bc08
sub esp, 0x50
push esi
mov esi, ecx
lea eax, [ebp - 0x5c]
push edi
lea ecx, [esi + 4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004035dd
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0
push ecx
mov ecx, eax
call fcn.00401de5
mov eax, dword [eax + 8]
test eax, eax
jne 0x417659
mov eax, 0x466588
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00401257
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401257
cmp edi, 2
je 0x4176a5
cmp edi, 5
je 0x4176a5
cmp edi, 3
je 0x4176a1
cmp edi, 4
je 0x4176a1
cmp edi, 6
je 0x4176a1
mov ecx, esi
call fcn.00417481
dec ax
neg ax
sbb eax, eax
neg eax
jmp 0x4176a7
xor al, al
jmp 0x4176a7
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4191ee
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x460f88
call fcn.0043bc08
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x4192f9
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419237
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push str..debug
call fcn.00419349
pop ecx
test eax, eax
pop ecx
je 0x419263
cmp dword [eax + 0xc], esi
jne 0x419263
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x4192b6
push edi
push str..rdata
call fcn.00419349
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x419289
push edi
push str..text
call fcn.00419349
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4192f9
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4192f9
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x419304
cmp dword [ebp + 8], 0
je 0x419304
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4192fd
xor eax, eax
jmp 0x41933a
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x419323
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x41931d
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x41930e
cmp dword [ebp - 0x10], 0
je 0x419337
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x419337
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419601
Capabilities:
Create directory

Disassembly:
mov eax, 0x460fc0
call fcn.0043bc08
sub esp, 0x3c
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041a60d
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004196c1
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x419638
xor esi, esi
jmp 0x419641
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0041a489
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0041ab47
cmp dword [0x466fe0], eax
je 0x4196a4
lea esi, [eax + 1]
push ebx
push esi
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x466fd0
mov dword [ebp - 0x18], 0x466fc8
call fcn.0041a253
push ebx
mov dword [ebp - 0x2c], vtable.zpath.0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.0041a489
mov dword [ebp - 0x10], edi
jmp 0x419650
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041a692
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41b6bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b6cf
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b703
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00438237
test al, al
jne 0x41b736
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413b1c
lea eax, [ebp - 0x4c]
push 0x46b648
push eax
call fcn.0043c32a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b736
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004137dc
lea eax, [ebp - 0x48]
push 0x46b510
push eax
call fcn.0043c32a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41b73e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b752
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b786
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00438237
test al, al
jne 0x41b7b9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413b1c
lea eax, [ebp - 0x4c]
push 0x46b648
push eax
call fcn.0043c32a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b7b9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004137dc
lea eax, [ebp - 0x48]
push 0x46b510
push eax
call fcn.0043c32a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x41b7c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b7d5
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b809
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00438237
test al, al
jne 0x41b83c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413b1c
lea eax, [ebp - 0x4c]
push 0x46b648
push eax
call fcn.0043c32a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b83c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004137dc
lea eax, [ebp - 0x48]
push 0x46b510
push eax
call fcn.0043c32a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x4200e7
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x461b30
call fcn.0043bc08
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push 0
push eax
mov dword [esi], 0x466594
mov dword [esi + 0x20], 0x46658c
call fcn.00401a4d
lea eax, [ebp - 0x20]
push 0x105
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401746
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00401c5a
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040199b
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x420151
mov eax, 0x466588
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401257
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x420175
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x420191
mov eax, dword [esi + 8]
test eax, eax
jne 0x42018a
mov eax, 0x466588
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
call fcn.00401257
pop esi
ret
Function at 0x424e6f
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x250
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x424ee6
mov eax, dword [esi + 8]
mov ebx, 0x4665fc
test eax, eax
jne 0x424e8e
mov eax, ebx
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x424ee6
mov eax, dword [esi + 8]
mov ecx, ebx
test eax, eax
je 0x424eac
mov ecx, eax
mov eax, dword [esi + 8]
push edi
test eax, eax
mov edi, ebx
je 0x424eb8
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esi + 8]
pop edi
test esi, esi
jne 0x424ed3
mov esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x424ee6
push ebp
call eax
pop esi
pop ebp
pop ebx
add esp, 0x250
ret

Function at 0x425247
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x4252e0
push edi
call fcn.0043d3b5
push edi
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.0043cb80
add esp, 0x10
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4252d7
lea eax, [ebp - 0x3c]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0043cb80
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp + 8]
push eax
push 0x475494
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4252d7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.0043d2cc
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x427871
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4279a1
cmp byte [ebp + 0xc], bl
jne 0x427925
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4279a1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x427997
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0043bfb0
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.0043bfdf
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00428423
push dword [ebp + 0xc]
jmp 0x427986
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4279a1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427994
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
cmp word [esi], 0xfeff
jne 0x427970
lea eax, [esi + 2]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.0043bfdf
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00428423
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4279a3
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x428264
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x4282d3
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x4282b6
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x4282b6
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x4282b6
mov byte [ebp - 1], 1
jmp 0x4282d3
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x4282d3
cmp byte [ebp - 1], bl
jne 0x4282d3
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4282bd
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x429f98
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x429fb4
mov ecx, esi
call fcn.00429fb8
pop esi
ret 4

Function at 0x42ab0a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x462991
call fcn.0043bc08
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ebx, 0x466594
and dword [esi], 0
mov dword [esi + 4], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0xd]
mov edi, 0x46658c
push 0
push eax
mov dword [ebp - 0x14], esi
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401a4d
and dword [ebp - 4], 0
lea ecx, [esi + 0x30]
lea eax, [ebp - 0xe]
push 0
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401a4d
lea ecx, [esi + 0x58]
lea eax, [ebp - 0xd]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401a4d
lea ecx, [esi + 0x80]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401a4d
lea ecx, [esi + 0xa8]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 3
mov dword [ecx], ebx
xor ebx, ebx
push ebx
push eax
mov dword [ecx + 0x20], edi
call fcn.00401a4d
mov eax, dword [ebp + 8]
and byte [esi + 0xd8], bl
mov byte [ebp - 4], 4
lea edi, [eax + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004064c8
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp + 8], eax
call fcn.00401257
cmp dword [ebp + 8], ebx
setne al
mov byte [esi + 0xd9], al
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
push esi
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 6
call fcn.0042ac44
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 7
call dword [eax + 0x2c]
mov al, byte [eax + 0x16]
lea ecx, [esi + 0x154]
push eax
push esi
call fcn.0042ad74
push esi
lea ecx, [esi + 0x1c4]
mov byte [ebp - 4], 8
call fcn.0042aded
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x230], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42b62b
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42b646
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x42caf6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x462c66
call fcn.0043bc08
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x42cb48
lea ecx, [ebp + 8]
call fcn.00419a72
test al, al
je 0x42cb48
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.004016d7
call fcn.0042cdab
add esp, 0x2c
mov bl, al
jmp 0x42ccc5
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x466594
mov dword [ecx + 0x20], 0x46658c
call fcn.00401ac2
call fcn.0042f8a9
add esp, 0x28
cmp eax, 0xffffffff
je 0x42cb95
test bl, 4
je 0x42cb7d
test al, 0x10
je 0x42cb8e
test bl, 8
je 0x42ccc3
test al, 0x10
je 0x42ccc3
mov bl, 1
jmp 0x42ccc5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x42ccd5
cmp esi, 3
je 0x42ccd5
push 1
cmp esi, 5
pop ebx
jne 0x42cc4a
lea ecx, [ebp - 0x100]
call fcn.0042cd1c
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.004016d7
call fcn.0042f7dd
add esp, 0x2c
cmp eax, 0xffffffff
je 0x42cc37
test byte [ebp + 0x30], 4
je 0x42cc05
test byte [ebp - 0x100], 0x10
je 0x42cc16
test byte [ebp + 0x30], 8
je 0x42cc14
test byte [ebp - 0x100], 0x10
jne 0x42cc16
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x42cc23
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0042cd75
jmp 0x42ccc5
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.0042cd75
test byte [ebp + 0x30], 0x20
je 0x42ccc3
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4665b8
mov dword [ebp - 0x1c], 0x4665b0
call fcn.00401ac2
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x466f88
call fcn.00413ac4
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0042ccf2
mov eax, dword [ebp - 0x84]
push 0x46b510
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], vtable.is::file_exception.0
lea eax, [ebp - 0x84]
push eax
call fcn.0043c32a
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401257
mov al, bl
jmp 0x42cce3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401257
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42dd9e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x114], 0x114
and dword [eax], 0
lea eax, [ebp - 0x114]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 1
jne 0x42de19
cmp dword [ebp - 0x10c], 0
je 0x42de11
cmp dword [ebp - 0x10c], 0xa
je 0x42ddfc
cmp dword [ebp - 0x10c], 0x5a
je 0x42de05
xor al, al
mov dword [esi], 0x80
jmp 0x42de8a
call fcn.0042e146
test al, al
je 0x42de09
mov al, 1
jmp 0x42ddf1
mov dword [esi], 0x40
jmp 0x42de73
mov dword [esi], 0x10
jmp 0x42de73
cmp dword [ebp - 0x104], 2
jne 0x42de88
mov eax, dword [ebp - 0x110]
sub eax, 4
je 0x42de80
mov ecx, dword [ebp - 0x10c]
dec eax
je 0x42de43
dec eax
je 0x42de69
xor al, al
mov dword [esi], 0x2000000
jmp 0x42de8a
test ecx, ecx
jne 0x42de4f
mov dword [esi], 0x100000
jmp 0x42de73
cmp ecx, 1
jne 0x42de5c
mov dword [esi], 0x400000
jmp 0x42de73
cmp ecx, 2
jne 0x42de69
mov dword [esi], 0x800000
jmp 0x42de73
test ecx, ecx
jne 0x42de77
mov dword [esi], 0x1000000
mov al, 1
jmp 0x42de8a
cmp ecx, 1
jne 0x42de39
mov al, cl
jmp 0x42de3b
mov dword [esi], 0x10000
jmp 0x42de73
xor al, al
pop esi
leave
ret

Function at 0x42e03b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x478680
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42e06a
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e06a
call eax
jmp 0x42e141
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x42e0b6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x47d330
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42e117
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x42e0eb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42e0ff
cmp esi, ebx
je 0x42e0ff
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x42e11f
cmp dword [ebp - 4], ebx
je 0x42e111
cmp esi, ebx
je 0x42e111
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x42e141
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0043da98
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42e13e
cmp esi, ebx
je 0x42e13e
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42eec3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x463068
call fcn.0043bc08
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0041c61e
mov edi, eax
cmp edi, esi
je 0x42ef0d
cmp dword [ebp - 0x10], esi
je 0x42ef06
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42efaa
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x42ef7e
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042eec3
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x42ef6b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x42ef30
cmp dword [ebp - 0x10], esi
je 0x42ef79
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x42efaa
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42ef91
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x42efa8
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4