joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dd05
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, SysReAllocString
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x47dd35
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x47dd5b
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x47dd5e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x47dd4e
jmp 0x47dd50

Function at 0x48414f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00453db7
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x48420a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call edi
push str.GetThemeColor
push dword [esi + 0x48]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x48]
mov dword [esi + 0x58], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x48]
mov dword [esi + 0x5c], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x48]
mov dword [esi + 0x60], eax
call edi
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.004892f3
jmp 0x48421f
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
pop edi
mov eax, esi
pop esi
ret
Function at 0x49485b
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x52a8d4
call fcn.005058aa
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.005038f0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x4949a3
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x49499b
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004ed4a8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
call fcn.0044d1fc
push str.advancedsystemrepairpro.exe
lea esi, [ebp - 0x244]
call fcn.004e02f8
cmp eax, 0xffffffff
je 0x49497a
push dword [ebp - 0x238]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x254], edi
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x49496b
push 0x5590e4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x49494c
lea ecx, [ebp - 0x248]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [ebp - 0x248], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea esi, [ebp - 0x260]
call fcn.004df7aa
push ebx
push edi
call dword [eax + 8]
cmp eax, ebx
je 0x49496b
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x49497a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x244]
call fcn.0047510a
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4948c5
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4949b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.0050592d
ret
Function at 0x495456
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x495470
call fcn.004fa6c5
call fcn.004f9139
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x495490
xor eax, eax
jmp 0x4955ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x495489
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x495489
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004650cd
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x49546b
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x4954ed
mov ecx, edi
call fcn.004af845
jmp 0x4954f2
call fcn.00499488
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x495504
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x49551f
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x495597
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x49556e
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x495561
test eax, eax
jbe 0x495561
push eax
mov ecx, 0x578ff4
call fcn.0049d30f
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x495538
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x495597
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.004406fd
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x499259
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52aa8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], esi
cmp dword [ebp + 0xc], esi
je 0x499298
mov ecx, dword [ebp + 0xc]
jmp 0x4992ad
lea eax, [esp + 0x18]
push eax
call fcn.004dbb73
pop ecx
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
call fcn.004ed4a8
mov dword [esp + 0x30], 2
test byte [esp + 0x10], bl
je 0x4992d3
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x18]
call fcn.0047510a
cmp byte [ebp + 8], 0
je 0x49937e
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004afb6f
pop ecx
pop ecx
test al, al
jne 0x499389
lea eax, [esp + 0x20]
push eax
mov ecx, 0x5597c4
call fcn.004ed4a8
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.004eb601
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
push str.___minimize
push ecx
mov esi, eax
call fcn.004c3234
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.0047510a
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.0047510a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push ebx
push 0x5590e4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.0047510a
jmp 0x4993ab
push dword [ebp + 0xc]
push esi
call fcn.004afb6f
pop ecx
pop ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, 0x5590e4
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push esi
push SysReAllocString
call ebx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0047510a
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499b64
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x525e40
call fcn.005058aa
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004eabe7
push 0x15c
call fcn.004650cd
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x499ba8
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.0041750c
jmp 0x499baa
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.0043f363
call fcn.004f9139
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x499d4a
cmp dword [edi + 4], ebx
jle 0x499d4a
lea ecx, [ebp - 0x21c]
call fcn.004cbfe8
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x499d2e
lea ecx, [ebp - 0x220]
call fcn.004cbfe8
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x499c7f
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.0046fe58
add esp, 0xc
jmp 0x499cb1
jge 0x499c9f
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.0046fe58
add esp, 0x10
jmp 0x499cb1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004eac8d
push 0x15c
call fcn.004650cd
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x499cd5
mov ecx, eax
call fcn.0043f332
mov esi, eax
jmp 0x499cd7
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00415953
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.0043f363
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004e1877
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004e1877
inc ebx
cmp ebx, dword [edi + 4]
jl 0x499c18
call fcn.0050592d
ret
Function at 0x4a26a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0x20
push ebx
mov ebx, ecx
jne 0x4a26f1
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, 0x17
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.0048023c
mov ecx, ebx
call fcn.00439a2d
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x4a2747
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x4a270c
cmp dword [ebp + 0xc], 0x79
je 0x4a2707
cmp dword [ebp + 0xc], 0x12
jne 0x4a2747
xor eax, eax
inc eax
jmp 0x4a2747
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
movzx edi, ax
shr edi, 0xf
push 0x10
and edi, 1
call esi
mov esi, dword [ebp + 0xc]
shr eax, 0xf
and eax, 1
cmp esi, 0x12
je 0x4a274c
cmp esi, 0x79
je 0x4a274c
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x5815bc], 0
jne 0x4a2743
test byte [ebx + 0x2f4], 2
jne 0x4a2743
cmp esi, 0x12
je 0x4a2770
cmp esi, 0x79
jne 0x4a2743
test edi, edi
jne 0x4a2743
test eax, eax
jne 0x4a2743
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004a7774
cmp eax, ebx
jne 0x4a2793
test dword [ebp + 0x10], 0x40000000
jne 0x4a2793
cmp esi, 0x79
jne 0x4a27a1
mov ecx, dword [ebp + 8]
jmp 0x4a279a
cmp esi, 0x79
jne 0x4a27a1
mov ecx, ebx
call fcn.0043d5ab
jmp 0x4a27bc
cmp dword [ebx + 0x2a0], 0
jge 0x4a27bc
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x4a2745
Function at 0x4a5c6e
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x5240ae
call fcn.005058aa
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004cbfe8
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x4a5c9c
push 0x54638c
jmp 0x4a5cdf
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.005038f0
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x4a5cce
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004a0bdc
lea ecx, [ebp - 0x7c]
call fcn.0040609d
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x4a5d30
push edi
lea ecx, [ebp - 0x7c]
call fcn.004440aa
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x4a5d16
inc edi
cmp edi, dword [esi - 0xc]
jl 0x4a5cf7
jmp 0x4a5d30
movzx eax, bx
push eax
call fcn.005087bf
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.0044e74a
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.004cd6ab
cmp dword [ebp + 0x10], 0
jne 0x4a5d4c
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.0046a9d2
lea ecx, [esi - 0x10]
call fcn.004e1877
call fcn.0050592d
ret 0xc
Function at 0x4acbbb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0x90]
call fcn.004899ee
lea edi, [esi + 0x4d8]
push 5
mov ecx, edi
call fcn.004899ee
lea esi, [ebp - 0xc]
call fcn.004758f5
push ebx
push 0x19
push 0x77
push dword [edi + 0x20]
call dword [eax + 8]
mov eax, dword [edi + 0x20]
push ebx
push ebx
push eax
push 0x41d874
push ebx
push ebx
call fcn.005036a0
add esp, 0x18
lea esi, [ebp - 0xc]
mov dword [edi + 0x74], eax
call fcn.004758f5
push ebx
push 0x1388
push 0x75
push dword [edi + 0x20]
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bae83
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x5288b7
call fcn.00505841
mov dword [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0x5589ac
xor ebx, ebx
push 1
push ebx
push 0x5589dc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4baf25
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x4baee3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x4baef5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x5589ec
push eax
call dword [ecx]
test eax, eax
jl 0x4baf25
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4baf25
mov ecx, dword [eax]
push 1
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0047510a
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0047510a
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.0047510a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0047510a
call fcn.00505919
ret
Function at 0x4bd0c5
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x10
mov eax, 0x52a7b2
call fcn.00505841
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push 0x23
push edi
mov dword [ebp - 0x10], esi
call fcn.004c4500
pop ecx
pop ecx
mov dword [ebp - 4], esi
xor ebx, ebx
push 0x94
lea eax, [ebp - 0x1c]
inc ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0042e388
mov esi, eax
mov dword [ebp - 4], ebx
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.0042e388
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.004eb601
pop ecx
pop ecx
mov byte [ebp - 4], 3
push edi
call fcn.004875fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0047510a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0047510a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0047510a
push dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x4bd170
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.004a871c
pop ecx
push 0x95
lea eax, [ebp - 0x14]
push eax
call fcn.0042e388
mov esi, eax
mov dword [ebp - 4], 4
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.0042e388
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
call fcn.004eb601
pop ecx
pop ecx
mov byte [ebp - 4], 6
push edi
call fcn.004875fc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.0047510a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0047510a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0047510a
push dword [edi]
call ebx
test eax, eax
jne 0x4bd1f0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.004a871c
pop ecx
mov eax, edi
call fcn.00505919
ret
Function at 0x4c2f90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x528faa
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5837a8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5837a8
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebp
push esi
push 0xfde9
mov dword [esp + 0x38], 1
call ebx
cmp eax, 1
jle 0x4c30b8
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.004e0230
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor edi, edi
push edi
push edi
push eax
push ecx
push 0xffffffffffffffff
push ebp
push edi
push 0xfde9
call ebx
cmp eax, 1
jle 0x4c3070
mov edx, dword [esi]
mov byte [edx + eax - 1], 0
mov ebx, dword [esi]
cmp ebx, edi
jne 0x4c3058
xor eax, eax
push eax
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, ebx
call fcn.0048ed39
jmp 0x4c3074
push ebx
call fcn.00503f80
add esp, 4
push eax
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, ebx
call fcn.0048ed39
jmp 0x4c3074
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
add dword [esi + 8], 0xffffffff
jne 0x4c30a2
cmp dword [esi + 4], edi
je 0x4c3095
mov eax, dword [esi]
push edi
push eax
call fcn.00503cd5
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
push esi
call fcn.004406fd
add esp, 4
mov dword [esp + 0x14], edi
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4c3f46
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x52a71b
call fcn.00505841
mov edi, dword [ebp + 8]
push edi
call fcn.004634f7
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00427fed
pop ecx
mov byte [ebp - 4], 1
call fcn.0048e838
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0047510a
push dword [edi]
mov byte [ebp - 0xd], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c3f91
mov byte [ebp - 0xd], 1
mov eax, dword [edi]
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4c3fb2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], bl
je 0x4c3fe5
push dword [edi]
call fcn.004a871c
pop ecx
push ebx
call fcn.00503784
pop ecx
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, 0x55a508
call fcn.004ed4a8
mov byte [ebp - 4], 2
push edi
mov byte [ebp - 4], bl
call fcn.00486172
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.00505919
ret 4