joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458a60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5abc48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x458a90
lea esi, [edi + 4]
jmp 0x458a92
xor esi, esi
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0xc], esi
call edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 8]
mov dword [esp + 0x28], 0
call fcn.00459260
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 8]
call fcn.00458dc0
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4

Function at 0x459c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3dd9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], 0
push 9
xor eax, eax
push 0x5d7724
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00401d20
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x34]
mov dword [esp + 0x5c], 1
call fcn.0040eb80
push edi
mov ecx, eax
mov byte [esp + 0x60], 2
call fcn.00410ad0
add esp, 8
mov esi, 8
mov byte [esp + 0x58], 1
mov dword [esp + 0xc], 1
cmp dword [esp + 0x44], esi
jb 0x459d12
mov edx, dword [esp + 0x30]
push edx
call fcn.00548a36
add esp, 4
xor eax, eax
mov byte [esp + 0x58], al
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp dword [esp + 0x28], esi
jb 0x459d40
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00548a36
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret 4
Function at 0x459d70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5b78e9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
add ecx, 4
lea edi, [esp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], 0
call fcn.00473580
mov edi, 1
mov dword [esp + 0x44], edi
mov ecx, dword [eax]
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x459de4
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401d20
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459e23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00410ad0
add esp, 4
mov byte [esp + 0x44], 0
cmp dword [esp + 0x30], 8
mov dword [esp + 0x10], edi
jb 0x459e4d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00548a36
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00548a41
add esp, 0x38
ret 4
Function at 0x45af90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5aed42
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.ime_goopy::components::PluginManager.0
push 0x30
mov dword [esi + 0xc], ebx
call fcn.00548a50
add esp, 4
cmp eax, ebx
je 0x45b0f8
mov dword [esi + 8], eax
mov dword [eax], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 8]
mov dword [eax + 8], eax
mov eax, dword [esi + 8]
mov byte [eax + 0x2c], 1
mov ecx, dword [esi + 8]
mov byte [ecx + 0x2d], 1
mov byte [esp + 0x1c], 2
push 0x34
mov dword [esi + 0x1c], ebx
call fcn.00548a50
add esp, 4
cmp eax, ebx
je 0x45b0de
mov dword [esi + 0x18], eax
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x18]
mov byte [edx + 0x30], 1
mov eax, dword [esi + 0x18]
mov byte [eax + 0x31], 1
mov byte [esp + 0x1c], 4
push 0x30
mov dword [esi + 0x2c], ebx
call fcn.00548a50
add esp, 4
cmp eax, ebx
je 0x45b0c4
mov dword [esi + 0x28], eax
mov dword [eax], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x28]
mov byte [ecx + 0x2c], 1
mov edx, dword [esi + 0x28]
mov byte [edx + 0x2d], 1
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 7
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409870
mov ecx, dword [esp + 0x2c]
push 0x7d0
lea edx, [esi + 0x64]
push edx
mov dword [esi + 0x60], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x7c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 5
call fcn.00404df0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.00404df0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00404df0
int3
Function at 0x45ee80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b5720
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, dword [esp + 0x84]
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov edi, edx
mov dword [esp + 0x18], ebx
call fcn.00410bc0
add esp, 4
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x45eee5
lea ecx, [esp + 0x1c]
mov eax, dword [edi + 0x60]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test al, al
je 0x45f045
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x45f045
sub eax, 2
je 0x45efef
sub eax, 2
je 0x45efaf
mov ebp, 0xf
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea eax, [esp + 0x38]
mov ebx, esi
mov byte [esp + 0x7c], 1
call fcn.004e9d20
mov ecx, dword [esp + 0x38]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jae 0x45ef54
lea ecx, [esp + 0x38]
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x45ef63
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov edi, dword [edi + 0x60]
push edx
push ecx
push 3
push 0
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x4c], esi
jb 0x45ef97
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00548a36
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov ebp, 8
jmp 0x45f026
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x54]
push edx
call fcn.00410bc0
add esp, 4
cmp dword [eax + 0x14], ebp
jb 0x45efc6
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x45efd4
lea ecx, [esp + 0x1c]
mov edi, dword [edi + 0x60]
push ecx
push edi
mov esi, eax
call fcn.004030c0
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.00404e90
cmp esi, ebx
jmp 0x45f023
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x45f003
lea edx, [esp + 0x1c]
mov eax, dword [edi + 0x60]
push ebp
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push 0xb
push ebx
push edx
mov edx, dword [eax]
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x30], ebp
jb 0x45f041
mov eax, dword [esp + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov al, bl
jmp 0x45f062
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x30], ebp
jb 0x45f060
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00548a36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00548a41
add esp, 0x6c
ret 4
Function at 0x45f3f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b56e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov esi, edx
mov dword [esp + 0x18], ebx
call fcn.00410bc0
add esp, 4
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0x45f44d
lea ecx, [esp + 0x34]
mov eax, dword [esi + 0x60]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x5c], 1
cmp dword [edi + 0xc], ebx
je 0x45f529
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test al, al
je 0x45f529
lea eax, [esp + 0x18]
mov ebx, edi
call fcn.004e9d20
test al, al
je 0x45f527
mov ecx, dword [esp + 0x18]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jae 0x45f4af
lea ecx, [esp + 0x18]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x45f4be
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x28]
mov esi, dword [esi + 0x60]
push edx
push ecx
push 3
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x2c], edi
jb 0x45f4f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00548a36
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jb 0x45f523
mov edx, dword [esp + 0x34]
push edx
call fcn.00548a36
add esp, 4
mov al, bl
jmp 0x45f56f
xor ebx, ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x2c], 0x10
jb 0x45f541
mov eax, dword [esp + 0x18]
push eax
call fcn.00548a36
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x45f56d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00548a36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret 4
Function at 0x45f590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bee60
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
lea edx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
call fcn.00410bc0
mov edi, 8
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x45f5fe
mov eax, dword [eax]
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x14]
push edx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x45f62c
cmp dword [esp + 0x18], 3
jne 0x45f62c
mov byte [esp + 0x13], bl
cmp dword [esp + 0x14], ebx
jne 0x45f631
mov byte [esp + 0x13], 1
cmp dword [esp + 0x70], edi
jb 0x45f644
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x45f6e1
mov edx, dword [esp + 0x14]
push edx
call fcn.00547a7c
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x8c], ebx
call fcn.00410bc0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x45f681
mov eax, dword [eax]
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x14]
push edx
push edi
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x45f6ae
mov eax, dword [esp + 0x18]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
cmp eax, ebx
setne byte [esp + 0x13]
cmp dword [esp + 0x70], 8
jb 0x45f6c7
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x13], bl
je 0x45f6e8
push edi
mov dword [esp + 0x8c], 0xffffffff
call fcn.00549081
add esp, 4
xor al, al
jmp 0x45f78b
lea edx, [esp + 0x44]
mov dword [esp + 0x2c], vtable.ipc::proto::VariableArray.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 4
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x14]
push eax
lea esi, [esp + 0x30]
mov ecx, edi
call fcn.004e9aa0
add esp, 4
test al, al
je 0x45f765
mov ecx, esi
mov esi, dword [esp + 0x20]
cmp ecx, esi
je 0x45f751
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00421c90
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x13]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push edx
call fcn.0045fd30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], bl
call fcn.004214b0
push edi
mov dword [esp + 0x8c], 0xffffffff
call fcn.00549081
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4
Function at 0x4622f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5bba0b
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00409870
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [ecx], vtable.ipc::proto::Variable.0
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0x24]
mov byte [esp + 0x14], 2
fldz
fstp qword [ecx + 0x18]
mov dword [ecx + 0x30], ebx
mov dword [ecx + 8], ebx
mov byte [ecx + 0xc], bl
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x20], 0x625620
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x34], ebx
call fcn.00421130
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x46a320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bc0fa
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dl, byte [ecx + 0x10]
mov ecx, dword [ecx]
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov dword [esp + 0x20], esi
call edx
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], 1
mov dword [esi + 8], ebx
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x38], 2
cmp dword [esi + 8], 7
jne 0x46a3c9
push esi
lea ecx, [esp + 0x13]
call fcn.00485ae0
cmp eax, ebx
je 0x46a3c9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 1
mov byte [esp + 0x38], bl
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00548a41
add esp, 0x30
ret 0x10

Function at 0x46a610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], esi
call eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0x14], al
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x46a6b2
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x46a6b2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10
Function at 0x471e60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x14], esi
call eax
cdq
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x471f0a
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x471f0a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10
Function at 0x4722f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5b55e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x18], 0
cmp dword [esi + 0x14], 8
jb 0x472338
mov ebx, dword [esi]
jmp 0x47233a
mov ebx, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call ebp
cmp eax, 0xffffffff
je 0x472352
shr al, 4
and al, 1
jmp 0x472434
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00472520
mov dword [esp + 0x44], 2
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
jb 0x472373
mov eax, dword [esi]
jmp 0x472375
mov eax, esi
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
call fcn.0040fc20
test eax, eax
jne 0x4723aa
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x4723a3
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00548a36
add esp, 4
xor al, al
jmp 0x472434
lea edx, [esp + 0x1c]
push edx
call fcn.004722f0
add esp, 4
test al, al
jne 0x4723db
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x4723a3
mov eax, dword [esp + 0x1c]
push eax
call fcn.00548a36
add esp, 4
xor al, al
jmp 0x472434
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x472421
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47240c
cmp dword [esi + 0x14], 8
jb 0x4723fd
mov esi, dword [esi]
push esi
call ebp
cmp eax, 0xffffffff
je 0x47240c
shr eax, 4
and al, 1
jne 0x472421
lea esi, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.004724f0
xor al, al
jmp 0x472434
lea esi, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.004724f0
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00548a41
add esp, 0x34
ret

Function at 0x4728e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b76b3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [esp + 0x10]
call fcn.004c0e10
mov esi, eax
push 0x58
mov dword [esp + 0x3c], 0
call fcn.00548a50
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x472942
push eax
call fcn.00472df0
jmp 0x472944
xor eax, eax
push 0xffffffffffffffff
push 0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0x3c]
push esi
mov dword [0x63d7c8], eax
call fcn.00409870
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x472977
mov eax, dword [esp + 0x10]
push eax
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00548a41
add esp, 0x30
ret