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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x80c], edi
mov word [ebp - 0x404], ax
call fcn.0049eae0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x802]
push eax
mov word [ebp - 0x804], dx
call fcn.0049eae0
mov eax, 4
add esp, 0x18
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x808], 0
mov dword [edi], 0xffffffff
xor eax, eax
movzx ecx, word [eax + str.LangID]
mov word [ebp + eax - 0x804], cx
add eax, 2
test cx, cx
jne 0x40b340
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x40b360
lea eax, [esi + 0x1008]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b380
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b396
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
jmp 0x40b3c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b3c0
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x404]
mov dword [edi], edx
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40b3e0
mov ecx, dword [0x4d3364]
mov dword [eax], ecx
mov ecx, dword [0x4d3368]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3370]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d3374]
lea edi, [ebp - 0x404]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b421
mov eax, ebx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b433
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b450
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x808]
push edx
push 1
mov ecx, eax
push 0
lea eax, [ebp - 0x404]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x40b4bb
mov edx, dword [ebp - 0x80c]
lea ecx, [ebp - 0x810]
push ecx
push edx
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x814]
push eax
push 0
lea ecx, [ebp - 0x804]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x80c]
mov eax, dword [ecx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 8
Function at 0x40b4e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x402]
push ecx
mov word [ebp - 0x404], ax
call fcn.0049eae0
add esp, 0xc
mov dword [ebp - 0x40c], 0
mov byte [ebp - 0x405], 0
xor eax, eax
jmp 0x40b530
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x40b530
lea eax, [esi + 0x1008]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b550
push edi
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40b570
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b570
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b595
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x404]
mov dword [edi], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40b5b2
mov ecx, dword [0x4d3364]
mov dword [eax], ecx
mov ecx, dword [0x4d3368]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3370]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d3374]
lea edi, [ebp - 0x404]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b5f3
mov eax, ebx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b605
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40b620
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b620
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x40c]
push edx
push 0xf003f
mov ecx, eax
push 0
lea eax, [ebp - 0x404]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x40b679
mov ecx, dword [ebp - 0x40c]
push str.LangID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov bl, 1
test eax, eax
je 0x40b67f
mov bl, byte [ebp - 0x405]
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
Function at 0x40b6a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3fe
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x402]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x404], ax
call fcn.0049eae0
push 0x3fe
lea eax, [ebp - 0x802]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x804], dx
call fcn.0049eae0
add esp, 0x18
mov dword [ebp - 0x808], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x810], 0x200
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
cmp esi, ebx
je 0x40b8db
lea ecx, [ebp - 0x81c]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x804]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x40b8db
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
cmp cx, bx
jne 0x40b750
lea eax, [edi + 0x1008]
mov dword [ebp - 0x814], eax
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b775
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40b790
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40b790
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x808]
push ecx
push 0xf003f
push ebx
lea edx, [ebp - 0x404]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40b828
lea eax, [ebp - 0x404]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40b7e0
mov ecx, dword [0x4d3364]
mov edx, dword [0x4d3368]
mov dword [eax], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 4], edx
mov edx, dword [0x4d3370]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3374]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x404]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x808]
push edx
push eax
call edi
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, dword [ebp - 0x808]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x804]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x40b8c3
xor eax, eax
jmp 0x40b860
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
cmp cx, bx
jne 0x40b860
lea edx, [ebp - 0x80c]
push edx
push 0xf003f
push ebx
lea eax, [ebp - 0x404]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40b8c3
mov eax, dword [ebp - 0x814]
lea edx, [ebp - 0x404]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40b8a4
mov edx, dword [ebp - 0x80c]
lea ecx, [ebp - 0x404]
push ecx
push edx
call edi
mov eax, dword [ebp - 0x808]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x80c]
push ecx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
Function at 0x40b8f0
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.004a1410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x176e
push eax
lea ecx, [ebp - 0x1772]
push ecx
mov dword [ebp - 0x2ee8], 0
mov dword [ebp - 0x2ef0], 0xbb8
mov word [ebp - 0x1774], ax
call fcn.0049eae0
xor edx, edx
push 0x176e
push edx
lea eax, [ebp - 0x2ee2]
push eax
mov word [ebp - 0x2ee4], dx
call fcn.0049eae0
add esp, 0x18
lea ecx, [ebp - 0x2ee8]
push ecx
push 0xf003f
push 0
push str.SystemCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2eec], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b9d8
lea edx, [ebp - 0x2ef0]
push edx
mov edx, dword [ebp - 0x2ee8]
lea eax, [ebp - 0x1774]
push eax
lea ecx, [ebp - 0x2eec]
push ecx
push 0
push str.Path
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b9d8
push 0xbb8
lea eax, [ebp - 0x2ee4]
push eax
lea ecx, [ebp - 0x1774]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x2ee4]
push edx
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x2ee8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret
Function at 0x40ba00
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1788
call fcn.004a1410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x176e
lea ecx, [ebp - 0x1772]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x1780], edi
mov word [ebp - 0x1774], ax
call fcn.0049eae0
add esp, 0xc
mov byte [ebp - 0x1775], 0
mov dword [ebp - 0x1784], edi
cmp esi, edi
je 0x40bba8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ba60
sub eax, edx
sar eax, 1
je 0x40bba8
push 0x5c
push esi
call fcn.004a1462
mov edi, eax
add esp, 8
mov dword [ebp - 0x177c], eax
test edi, edi
je 0x40ba95
add edi, 2
mov dword [ebp - 0x177c], edi
lea edx, [ebp - 0x1774]
mov eax, esi
sub edx, esi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40baa0
test ebx, ebx
je 0x40bb38
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bac0
sub eax, edx
sar eax, 1
je 0x40bb38
lea edi, [ebp - 0x1774]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40bae0
mov edx, dword [0x4d29fc]
mov eax, ebx
mov dword [edi], edx
mov edx, eax
jmp 0x40bb00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb00
lea edi, [ebp - 0x1774]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40bb16
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x177c]
lea eax, [ebp - 0x1784]
push eax
lea ecx, [ebp - 0x1780]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bba8
lea eax, [ebp - 0x1774]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb70
mov ecx, dword [ebp - 0x1780]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x1774]
push eax
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40bba8
mov byte [ebp - 0x1775], 1
mov edx, dword [ebp - 0x1780]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1775]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 8

Function at 0x40bbd0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x40bbe0
pop ebp
jmp fcn.00430670
pop ebp
ret 4
Function at 0x40c250
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x402]
push ecx
mov byte [ebp - 0x405], 0
mov word [ebp - 0x404], ax
call fcn.0049eae0
add esp, 0xc
mov dword [ebp - 0x40c], 0
xor eax, eax
jmp 0x40c2a0
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x40c2a0
lea eax, [esi + 0x1008]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c2c0
push edi
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40c2e0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c2e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c305
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x404]
mov dword [edi], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40c322
mov ecx, dword [0x4d3364]
mov dword [eax], ecx
mov ecx, dword [0x4d3368]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3370]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d3374]
lea edi, [ebp - 0x404]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c363
mov eax, ebx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c375
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40c390
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c390
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x40c]
push edx
push 0xf003f
mov ecx, eax
push 0
lea eax, [ebp - 0x404]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x40c3e9
mov ecx, dword [ebp - 0x40c]
push str.BackwardsCompatibleToVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov bl, 1
test eax, eax
je 0x40c3ef
mov bl, byte [ebp - 0x405]
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
Function at 0x40c410
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
mov esi, ecx
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x410], esi
mov byte [ebp - 0x405], 0
mov word [ebp - 0x404], ax
call fcn.0049eae0
add esp, 0xc
push ebx
mov ecx, esi
mov dword [ebp - 0x40c], 0
call fcn.0040c250
push ebx
mov ecx, esi
call fcn.0040b4e0
xor eax, eax
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
test cx, cx
jne 0x40c471
lea eax, [esi + 0x1008]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c490
push edi
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40c4b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c4b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c4d5
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x404]
mov dword [edi], edx
add eax, 0xfffffffe
pop edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40c4f3
mov ecx, dword [0x4d3364]
mov edx, dword [0x4d3368]
mov dword [eax], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 4], edx
mov edx, dword [0x4d3370]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3374]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x40c]
push edx
push 0xf003f
mov dword [eax + 0x10], ecx
push 0
lea eax, [ebp - 0x404]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c587
lea edx, [ebp - 0x404]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c560
mov edx, dword [ebp - 0x40c]
lea ecx, [ebp - 0x404]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
jmp 0x40c58d
mov bl, byte [ebp - 0x405]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
push eax
call fcn.0040b6a0
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
Function at 0x4115c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cad7b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f6cdc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004c936e
push 4
mov dword [ebp - 4], 0
call fcn.0049eef7
mov edi, eax
add esp, 4
test edi, edi
je 0x411640
call fcn.004c8bdc
mov dword [edi], eax
call fcn.004c891d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004c8786
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411636
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004c87ae
jmp 0x411642
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fcf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbca1
mov eax, dword fs:[0]
push eax
mov eax, 0x6e04
call fcn.004a1410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x6e10]
mov byte [ebp - 0x6df1], 0
call fcn.00404370
mov dword [ebp - 4], 0
test esi, esi
je 0x42fe9e
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fd50
sub eax, edx
sar eax, 1
je 0x42fe9e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x42fe9e
lea ecx, [ebp - 0x6df0]
call fcn.00432b90
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x80e]
push ecx
mov byte [ebp - 4], 1
mov word [ebp - 0x810], ax
call fcn.0049eae0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x40e]
push eax
mov word [ebp - 0x410], dx
call fcn.0049eae0
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [ebp - 0x810]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42fdd0
lea edx, [ebp - 0x410]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42fdf0
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x6e10]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x6df0]
call fcn.00432240
test eax, eax
jne 0x42fe8f
lea edx, [ebp - 0x6df0]
push edx
lea ecx, [ebp - 0x5db0]
call fcn.0042db00
lea eax, [ebp - 0x6e10]
push eax
lea ecx, [ebp - 0x5db0]
mov byte [ebp - 4], 2
call fcn.0042faa0
mov byte [ebp - 0x6df1], al
test al, al
je 0x42fe80
lea ecx, [ebp - 0x5db0]
push ecx
mov ecx, edi
call fcn.0042c730
lea edx, [ebp - 0x5db0]
push edx
mov ecx, edi
call fcn.0040a900
lea ecx, [ebp - 0x5db0]
mov byte [ebp - 4], 1
call fcn.0042ef90
lea ecx, [ebp - 0x6df0]
mov byte [ebp - 4], 0
call fcn.00432c80
lea ecx, [ebp - 0x6e10]
mov dword [ebp - 4], 0xffffffff
call fcn.00404390
mov al, byte [ebp - 0x6df1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
Function at 0x430670
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x804]
xor edi, edi
mov dword [ebp - 0x808], ebx
mov eax, ebx
sub edx, ebx
jmp 0x4306a0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4306a0
lea eax, [ebp - 0x404]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call esi
test eax, eax
je 0x4306ee
lea ecx, [ebp - 0x404]
push ecx
mov bl, 1
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4306f3
sub eax, edx
sar eax, 1
je 0x43078c
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call esi
push 0
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4307a1
call ebx
cmp eax, 3
jne 0x430783
lea eax, [ebp - 0x804]
inc edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430740
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x806], 0x5c
lea eax, [ebp + eax*2 - 0x806]
jne 0x430766
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x804]
push 0x5c
push edx
call fcn.004a1462
add esp, 8
test eax, eax
je 0x43078c
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x430714
cmp eax, 5
je 0x43078c
test eax, eax
je 0x430714
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
mov al, 1
test edi, edi
je 0x43078e
lea esi, [ebp - 0x404]
sub esi, dword [ebp - 0x808]
lea ebx, [edi - 1]
jmp 0x4307c0
mov eax, dword [ebp - 0x808]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x4307c6
test ebx, ebx
jle 0x430834
mov edi, ebx
jmp 0x4307e0
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4307f0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x406], 0x5c
lea eax, [ebp + eax*2 - 0x406]
jne 0x430816
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x404]
push 0x5c
push eax
call fcn.004a1462
add esp, 8
test eax, eax
je 0x430831
xor ecx, ecx
mov word [eax + 2], cx
dec edi
jne 0x4307e0
push 0
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43078c
dec ebx
lea eax, [ebx + 1]
test eax, eax
jne 0x4307c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4