joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428418
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 0x4284e2
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 0x42845c
cmp ebx, 0x103
jne 0x428582
xor ebx, ebx
jmp 0x428582
cmp word [esp + 4], 0x2e
jne 0x4284c8
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 0x428582
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, 0x428594
mov ecx, 1
call fcn.0041f3f8
mov eax, dword [0x436bc4]
cmp dword [eax], 0
je 0x4284dc
mov ebp, 1
jmp 0x428584
inc esi
jmp 0x428432
xor edx, edx
mov eax, esi
call fcn.00430508
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041af54
test eax, eax
je 0x428501
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 0x42855b
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, 0x428594
mov ecx, 1
call fcn.0041f3f8
jmp 0x428582
push 0
mov dword [esp + 0x42c], esi
mov byte [esp + 0x430], 0xa
lea ecx, [esp + 0x42c]
mov edx, 1
mov eax, 0x4285b0
call fcn.0042fdd4
mov ebp, ebx
mov eax, ebp
add esp, 0x430
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42860c
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 0x428622
cmp word [ebx], 0
jne 0x42864f
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x4286ac
push 0
mov dword [esp + 4], edi
mov byte [esp + 8], 0xa
lea ecx, [esp + 4]
mov edx, 1
mov eax, 0x4286c4
call fcn.0042fdd4
jmp 0x4286ac
mov eax, ebx
call fcn.0041af9c
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x42868e
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, 0x428720
mov ecx, 1
call fcn.0041f3f8
jmp 0x4286ac
push 0
mov dword [esp + 4], edi
mov byte [esp + 8], 0xa
lea ecx, [esp + 4]
mov edx, 1
mov eax, 0x42873c
call fcn.0042fdd4
mov eax, esi
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x428988
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbc4
mov esi, edx
mov edi, eax
xor ebx, ebx
test esi, esi
jne 0x428ac4
xor esi, esi
push 0x20a
lea eax, [esp + 0x14]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x4289cc
cmp ebx, 0x103
jne 0x428c25
xor ebx, ebx
jmp 0x428c25
cmp word [esp + 0x10], 0x2e
je 0x428aaa
lea eax, [esp + 0x10]
call fcn.0041af9c
mov dword [esp + 8], eax
mov edx, 0x428c34
lea eax, [esp + 0x10]
call fcn.0041afc0
mov edx, 0x428c5c
lea eax, [esp + 0x21a]
call fcn.0041afac
push esp
lea eax, [esp + 0x14]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
jne 0x428a57
mov eax, dword [esp + 8]
mov word [esp + eax*2 + 0x10], 0
mov dword [esp + 4], 0x20a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x21e]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x428c9c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
jne 0x428aaa
mov eax, dword [esp + 4]
shr eax, 1
mov word [esp + eax*2 + 0x218], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x424], eax
mov byte [esp + 0x428], 0xa
lea eax, [esp + 0x21a]
mov dword [esp + 0x42c], eax
mov byte [esp + 0x430], 0xa
lea edx, [esp + 0x424]
mov eax, 0x428ca0
mov ecx, 1
call fcn.0041f3f8
mov eax, dword [0x436bc4]
cmp dword [eax], 0
je 0x428abe
mov ebp, 1
jmp 0x428c27
inc esi
jmp 0x4289a2
cmp word [esi], 0x2e
jne 0x428afb
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 1
mov eax, 0x428cbc
call fcn.0042fdd4
mov ebp, 0x7b
jmp 0x428c27
xor edx, edx
mov eax, esi
call fcn.00430508
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041af54
test eax, eax
je 0x428b1a
mov word [eax], 0
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 0x428d40
lea eax, [esp + 0x14]
call fcn.0041b058
push esp
lea eax, [esp + 0x14]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
je 0x428b80
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 1
mov eax, 0x428cbc
call fcn.0042fdd4
mov ebp, ebx
jmp 0x428c27
mov dword [esp + 4], 0x20a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x21e]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x428c9c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x428bfe
mov eax, dword [esp + 4]
shr eax, 1
mov word [esp + eax*2 + 0x218], 0
mov dword [esp + 0x424], esi
mov byte [esp + 0x428], 0xa
lea eax, [esp + 0x21a]
mov dword [esp + 0x42c], eax
mov byte [esp + 0x430], 0xa
lea edx, [esp + 0x424]
mov eax, 0x428ca0
mov ecx, 1
call fcn.0041f3f8
jmp 0x428c25
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 1
mov eax, 0x428cbc
call fcn.0042fdd4
mov ebp, ebx
mov eax, ebp
add esp, 0x43c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x428d6c
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdc4
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 0x428fb0
lea eax, [esp + 0x1c]
call fcn.0041b058
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyW
mov edi, eax
test edi, edi
je 0x428ea7
cmp dword [esp + 8], 0
je 0x428dda
mov eax, dword [esp + 8]
cmp word [eax], 0
jne 0x428e0e
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x428fe8
call fcn.0042fdd4
mov dword [esp + 0xc], edi
jmp 0x428fa0
lea ebx, [esp + 0x18]
jmp 0x428e17
add ebx, 2
movzx esi, word [ebx]
test si, si
je 0x428e25
cmp si, 0x5c
jne 0x428e14
movzx ebp, word [ebx]
mov word [ebx], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x2000000
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
je 0x428e8d
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x428fe8
call fcn.0042fdd4
mov dword [esp + 0xc], edi
jmp 0x428fa0
test bp, bp
je 0x428ea7
mov word [ebx], bp
add ebx, 2
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x428e17
cmp dword [esp + 8], 0
je 0x428eb8
mov eax, dword [esp + 8]
cmp word [eax], 0
jne 0x428efe
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edi, eax
test edi, edi
je 0x428f92
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x428fe8
call fcn.0042fdd4
jmp 0x428f92
mov eax, dword [esp + 8]
call fcn.0041af9c
inc eax
add eax, eax
push eax
mov eax, dword [esp + 0xc]
push eax
push 2
push 0
push 0x42906c
mov eax, dword [esp + 0x24]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
test edi, edi
jne 0x428f67
mov eax, dword [esp + 4]
mov dword [esp + 0x22c], eax
mov byte [esp + 0x230], 0xa
mov eax, dword [esp + 8]
mov dword [esp + 0x234], eax
mov byte [esp + 0x238], 0xa
lea edx, [esp + 0x22c]
mov eax, 0x429070
mov ecx, 1
call fcn.0041f3f8
jmp 0x428f92
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x42908c
call fcn.0042fdd4
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xc]
add esp, 0x23c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42939c
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 0x429437
lea edx, [esp + 4]
mov ecx, 0x40
mov eax, ebx
call fcn.0041536c
cmp word [esp + 4], 0x5a4d
jne 0x429431
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00415398
mov edx, esp
mov ecx, 4
mov eax, ebx
call fcn.0041536c
cmp dword [esp], 0x4550
jne 0x429431
lea edx, [esp + 0x44]
mov ecx, 0x14
mov eax, ebx
call fcn.0041536c
cmp word [esp + 0x54], 0
jbe 0x429431
lea edx, [esp + 0x58]
mov ecx, 0xe0
mov eax, ebx
call fcn.0041536c
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 0x4295c4
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], edx
mov edi, eax
mov ebp, dword [0x436af8]
mov eax, edi
call fcn.004295a4
inc eax
jne 0x4296ce
mov eax, edi
call fcn.0040748c
mov dword [esp + 4], eax
mov eax, dword [ebp]
test eax, eax
je 0x4295fb
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, ebp
mov ecx, 1
mov edx, dword [0x41ad68]
call fcn.00408524
add esp, 4
mov eax, dword [esp + 4]
lea eax, [eax + eax*2]
call fcn.0040404c
lea esi, [ebx + ebx*2]
mov edx, dword [ebp]
mov dword [edx + esi*8], eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8]
mov edx, edi
call fcn.004155a4
mov eax, dword [ebp]
mov edx, dword [esp]
mov dword [eax + esi*8 + 4], edx
mov eax, dword [esp]
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edi, eax
mov eax, dword [ebp]
mov dword [eax + esi*8 + 8], edi
push 2
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [ebp]
mov dword [edx + esi*8 + 0xc], eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0xc]
call fcn.0040404c
mov edx, dword [ebp]
mov dword [edx + esi*8 + 0x10], eax
push 0
push 0
push 0
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0xc]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [ebp]
mov eax, dword [eax + esi*8 + 0x10]
call fcn.0041b274
mov eax, dword [ebp]
xor edx, edx
mov dword [eax + esi*8 + 0x14], edx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42b43c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041af9c
mov edi, eax
xor eax, eax
mov ebx, dword [ebp + 8]
jmp 0x42b46e
inc eax
jmp 0x42b468
add ebx, 2
cmp word [ebx], 0
jne 0x42b465
cmp word [ebx], 0
jne 0x42b462
sub ebx, dword [ebp + 8]
sar ebx, 1
jns 0x42b47e
adc ebx, 0
inc ebx
add ebx, edi
mov edx, ebx
add edx, edx
imul edx, eax
mov eax, edx
call fcn.0042eb58
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x42b4ca
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0041aed0
mov eax, edi
add eax, eax
add eax, esi
mov edx, ebx
call fcn.0041afac
mov eax, edi
add eax, eax
add esi, eax
jmp 0x42b4c1
add ebx, 2
add esi, 2
cmp word [ebx], 0
jne 0x42b4bb
add esi, 2
cmp word [ebx], 0
jne 0x42b49a
mov word [esi], 0
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042c21c
mov ebx, eax
mov eax, dword [ebp - 8]
mov word [eax], 0x2a
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
mov eax, dword [ebp - 8]
mov word [eax], 0
cmp esi, 0xffffffff
je 0x42b5ae
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.0041afac
test byte [ebp - 0x260], 0x10
je 0x42b593
mov edx, 0x42b5bc
lea eax, [ebp - 0x234]
call fcn.00415634
test eax, eax
je 0x42b593
mov edx, 0x42b5c0
lea eax, [ebp - 0x234]
call fcn.00415634
test eax, eax
je 0x42b593
mov eax, dword [ebp - 8]
call fcn.0041b0a0
mov ebx, eax
add ebx, 2
mov word [ebx], 0x5c
add ebx, 2
mov word [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042b43c
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42b51f
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d374
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [0x436a84]
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x436a84]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x42d3c9
xor eax, eax
jmp 0x42d46f
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x42d3d8
xor eax, eax
jmp 0x42d46f
mov edi, dword [ebp + 8]
mov edi, dword [edi]
mov esi, edi
test esi, esi
jbe 0x42d42f
cmp esi, 3
jb 0x42d429
cmp byte [ebx], 0xa
jne 0x42d3f5
lea eax, [ebx + 1]
cmp byte [eax], 0xd
je 0x42d402
cmp byte [ebx], 0xd
jne 0x42d429
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x42d429
lea eax, [ebx + 2]
mov byte [eax], 0
mov eax, dword [0x436a84]
mov edi, ebx
sub edi, eax
add edi, 2
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
jmp 0x42d42f
dec esi
inc ebx
test esi, esi
ja 0x42d3e3
mov eax, dword [0x436c00]
mov eax, dword [eax]
call fcn.004294f0
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push edi
mov edx, dword [0x436a84]
push edx
test eax, eax
setne al
and eax, 0x7f
push eax
mov eax, dword [0x436c00]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42d6d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x42d944
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x44f948], 0x44f930
push 0x44f930
call sub.kernel32.dll_InitializeCriticalSection_1
call fcn.0042e80c
push 0xffffffffffffffff
push 0x42d6a4
call sub.kernel32.dll_SetConsoleCtrlHandler
call fcn.00430c00
call fcn.0041cc5c
call fcn.0042dc18
lea eax, [ebp - 0x20]
call fcn.0041ae68
push dword [ebp - 0x20]
push 0x42d960
lea eax, [ebp - 0x24]
mov edx, dword [0x436bfc]
mov edx, dword [edx]
call fcn.00407788
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040797c
mov eax, dword [ebp - 0x1c]
call fcn.00407730
mov edx, eax
mov eax, dword [0x436ba8]
call fcn.0041afac
mov eax, dword [0x436ba8]
call fcn.0041af9c
mov ecx, eax
mov edx, dword [0x436ba8]
mov eax, dword [0x436ba8]
call fcn.00420d8c
mov eax, 0x44f6ec
xor edx, edx
call fcn.0041ecf4
call fcn.0042e4c4
mov eax, dword [0x436ba8]
call fcn.0042ded8
mov ebx, eax
cmp word [0x44f6ec], 0x5c
jne 0x42d7fc
cmp word [0x44f6ee], 0x5c
jne 0x42d7fc
cmp byte [0x4369aa], 0
jne 0x42d7fc
push 0
mov dword [ebp - 0x2c], 0x44f6ec
mov byte [ebp - 0x28], 0xa
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, 0x42d978
call fcn.0042fdd4
push 0x105
push 0x44f6ec
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, 0x44f6ec
mov dl, 1
call fcn.0041f118
call sub.kernel32.dll_GetConsoleOutputCP_1
mov dword [0x44f90c], eax
push 0x44f8f8
mov eax, dword [0x44f90c]
push eax
call sub.kernel32.dll_GetCPInfo
call fcn.0041b36c
mov eax, 0x20c
call fcn.0040404c
mov dword [0x44f928], eax
mov eax, 0x20c
call fcn.0040404c
mov dword [0x44f92c], eax
cmp dword [0x44f928], 0
je 0x42d86b
cmp dword [0x44f92c], 0
je 0x42d86b
push 0x104
mov eax, dword [0x44f92c]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov edx, dword [0x44f92c]
mov eax, dword [0x44f928]
call fcn.0041afac
cmp byte [0x4369a9], 0
jne 0x42d8c1
mov eax, 1
call fcn.0041ec90
test eax, eax
je 0x42d8c1
cmp word [0x4369c8], 0
je 0x42d8ab
lea eax, [ebp - 0x16]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x42d8ab
movzx eax, word [ebp - 0xe]
mov word [0x4369c8], ax
cmp word [0x4369c8], 0
je 0x42d8c1
movzx eax, word [0x4369c8]
call fcn.00424678
test ebx, ebx
jne 0x42d90c
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, 0x42da60
call fcn.0042fd5c
cmp byte [0x4369c2], 0
je 0x42d8f2
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, 0x42db14
call fcn.0042fd5c
jmp 0x42d90c
cmp byte [0x4369c0], 0
je 0x42d90c
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, 0x42db88
call fcn.0042fd5c
push 0x42dbd8
push 0x42dbfc
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a930
mov edx, dword [0x436c80]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d94b
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004070d0
ret
Function at 0x42dc18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa8
lea edi, [esp + 8]
mov dword [esp + 0xc], 0x80000002
mov dword [esp + 0x10], 0x80000001
cmp byte [0x4369c2], 0
je 0x42dc43
mov byte [0x4369c0], 1
mov ebp, 2
lea esi, [esp + 0xc]
push esp
push 0x42dde8
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x42ddd2
xor eax, eax
mov dword [edi], eax
lea ebx, [esp + 0x18]
mov dword [esp + 4], 0x40
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42de34
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42dcb5
cmp dword [edi], 4
jne 0x42dca0
cmp dword [ebx], 0
setne al
mov byte [0x4369aa], al
jmp 0x42dcb5
cmp dword [edi], 1
jne 0x42dcb5
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x4369aa], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42de54
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42dcf8
cmp dword [edi], 4
jne 0x42dce3
cmp dword [ebx], 0
setne al
mov byte [0x4369c0], al
jmp 0x42dcf8
cmp dword [edi], 1
jne 0x42dcf8
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x4369c0], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42de78
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42dd3b
cmp dword [edi], 4
jne 0x42dd26
cmp dword [ebx], 0
setne al
mov byte [0x4369c1], al
jmp 0x42dd3b
cmp dword [edi], 1
jne 0x42dd3b
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x4369c1], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42de9c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42dd82
cmp dword [edi], 4
jne 0x42dd67
movzx eax, word [ebx]
mov word [0x4369c8], ax
jmp 0x42dd82
cmp dword [edi], 1
jne 0x42dd82
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x4369c8], ax
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42deb8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42ddc9
cmp dword [edi], 4
jne 0x42ddae
movzx eax, word [ebx]
mov word [0x4369ca], ax
jmp 0x42ddc9
cmp dword [edi], 1
jne 0x42ddc9
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x4369ca], ax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esi, 4
dec ebp
jne 0x42dc4c
mov al, 1
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42fc2c
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdec
xor edi, edi
mov word [esp], 0x3d
dec eax
add ax, 0x41
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
xor ebx, ebx
mov eax, esp
call fcn.0041cc84
mov esi, eax
test esi, esi
je 0x42fc70
push esi
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42fcdb
test esi, esi
je 0x42fc81
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx eax, word [esp + 2]
mov word [esp + 8], ax
movzx eax, word [esp + 4]
mov word [esp + 0xa], ax
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea edx, [esp + 8]
mov eax, esp
call fcn.0041cf34
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x42fcd1
push 0xffffffffffffffff
lea ecx, [esp + 0x218]
xor edx, edx
mov eax, 0x42fd00
call fcn.0042fdd4
test esi, esi
je 0x42fcdb
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, dword [0x436d0c]
xor edx, edx
call fcn.0041ecf4
add esp, 0x214
pop edi
pop esi
pop ebx
ret