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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x12f5840c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, eax
mov dword [esp + 0x10], esi
jmp 0x12f58416
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x12f58558
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], 1
mov eax, dword [ebp + 4]
test eax, eax
jle 0x12f58462
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.12f58570
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
lea edx, [ecx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.12f41ea0
mov eax, dword [ebp + 4]
inc edi
cmp edi, eax
jl 0x12f58433
mov eax, dword [esp + 0x20]
push eax
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x12f58558
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
jle 0x12f58503
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.12f58570
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.12f41ea0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
inc eax
mov dword [esp + 0x28], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jl 0x12f584a2
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push 7
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x12f58540
cmp esi, dword [esp + 0x1c]
je 0x12f5852a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.12f5bf80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call fcn.12f5bf80
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
je 0x12f58558
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x12f58b80
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x14]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.12f4bf30
cmp ebp, ebx
je 0x12f58c58
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x12f58c58
cmp dword [esp + 0x10], ebx
jbe 0x12f58c58
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x12f58be6
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.12f5bf8b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x12f58c58
cmp dword [esp + 0x10], ebx
jbe 0x12f58c41
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
push eax
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x12f58c37
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c3d0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x12f58bfd
pop edi
push esi
call fcn.12f5bf80
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x12f58dc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x18]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.12f4bf30
cmp ebp, ebx
je 0x12f58eab
push ebx
push ebx
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x12f58eab
cmp dword [esp + 0x10], ebx
jbe 0x12f58eab
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x12f58e25
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.12f5bf8b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x12f58eab
cmp dword [esp + 0x10], ebx
jbe 0x12f58e94
push edi
mov eax, dword [esp + 0x10]
mov edi, esi
push 0
push 0
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push esi
inc eax
push ebx
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x12f58e8a
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c3d0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x12f58e40
pop edi
push esi
call fcn.12f5bf80
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x12f58f90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x12f59108
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12f590e7
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x12f58fe6
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.12f5bf8b
mov esi, eax
add esp, 4
test esi, esi
je 0x12f59108
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x12f590ff
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x12f590ff
mov edi, dword [esp + 0x20]
test edi, edi
je 0x12f590ff
push ebp
push edi
call fcn.12f58f90
add esp, 8
test eax, eax
je 0x12f590f4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x131c87e0]
test eax, eax
je 0x12f59091
test ebp, ebp
je 0x12f59091
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x12f590ff
jmp 0x12f5909d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x12f590ff
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x12f590de
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x12f590ff
mov eax, dword [esp + 0x14]
jmp 0x12f5903a
push esi
call fcn.12f5bf80
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x12f590ff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.12f5bf80
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x12f59120
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x12f59189
mov eax, dword [esp + 0xc]
test eax, eax
je 0x12f59149
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x12f59189
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.12f58f90
add esp, 8
test eax, eax
je 0x12f59189
mov eax, dword [0x131c87e0]
test eax, eax
je 0x12f59176
test edi, edi
je 0x12f59176
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x12f59300
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x12f59336
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x12f59338
mov esi, dword [ebx]
test esi, esi
je 0x12f593c3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x12f59368.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x12f59368.2
jmp dword [eax*4 + 0x12f593cc]
mov edi, 1
jmp case.0x12f59368.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x12f59368.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x12f59368.0
cmp eax, 2
je case.0x12f59368.0
cmp eax, 6
je case.0x12f59368.0
cmp eax, 7
je case.0x12f59368.0
xor edi, edi
jmp case.0x12f59368.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x12f593bb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x12f595b0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x12f59645
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x12f595ff
call fcn.12f9c570
test eax, eax
je 0x12f595ff
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x12f595ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x12f595ec
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x12f595f8
add edi, ebx
mov ebx, 0x10004
jmp 0x12f59601
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x12f59800
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x12f59645
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x12f59634
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x12f59670
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x12f59684
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x12f596d0
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x12f730e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1307e2c0
push 0x12f5e0fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x12f73172
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x12f7316b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x12f7316b
cmp word [eax + 0x14], dx
je 0x12f7316b
cmp dword [ebp + 0xc], edx
je 0x12f73145
cmp word [eax + 4], 0x14c
jne 0x12f7316b
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x12f73260
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x12f732ad
mov edi, dword [esp + 0x18]
test edi, edi
je 0x12f732ad
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x12f732ad
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x12f732a5
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x12f732b4
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x12f73296
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x12f73b80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1307e2d0
push 0x12f5e0fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.12f73300
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x12f73c33
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x12f73c2c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x12f743c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1306ec0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1307d258]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x1307d258]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x1307d258]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.12f55290
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x1307e2ec
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.12f42100
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x12f74463
push eax
mov ecx, ebp
call fcn.12f42100
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x12f74481
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.12f42100
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x12f7a2a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [esp + 4]
pop edi
add esp, 0x208
ret

Function at 0x12f7a2e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x12f7a3b3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.12f5e630
add esp, 8
test eax, eax
je 0x12f7a32c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x12f7a3ac
mov esi, dword [esp + 0x118]
test esi, esi
je 0x12f7a3ac
lea edx, [esp + 0xc]
test edx, edx
je 0x12f7a3ac
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x12f7a375
push eax
lea eax, [esp + 0x10]
push eax
push 0x130c4bec
push esi
push ebx
call fcn.12f5d86f
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x12f7a3bb
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x12f7a3a8
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x12f7a3bb
mov esi, 0x57
jmp 0x12f7a3bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x131c8c28], esi
je 0x12f7a3cc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret
Function at 0x12f7a3e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x12f7a4b3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.12f5e630
add esp, 8
test eax, eax
je 0x12f7a42c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x12f7a4ac
mov esi, dword [esp + 0x118]
test esi, esi
je 0x12f7a4ac
lea edx, [esp + 0xc]
test edx, edx
je 0x12f7a4ac
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x12f7a475
push eax
lea eax, [esp + 0x10]
push eax
push 0x130c4bec
push esi
push ebx
call fcn.12f5d86f
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x12f7a4bb
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x12f7a4a8
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x12f7a4bb
mov esi, 0x57
jmp 0x12f7a4bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x131c8c28], esi
je 0x12f7a4cc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret

Function at 0x12f7a4e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x12f7a5a0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.12f5c8b4
add esp, 8
test eax, eax
je 0x12f7a52f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x12f7a599
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x12f7a599
lea edx, [esp + 0xc]
test edx, edx
je 0x12f7a599
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x12f7a576
push eax
lea eax, [esp + 0x10]
push eax
push 0x130c4e18
push ebx
push edi
call fcn.12f5d8c0
add esp, 0x14
xor esi, esi
jmp 0x12f7a5a8
lea ecx, [esp + 0xc]
push ecx
call fcn.12f5c44d
add esp, 4
cmp ebx, eax
jbe 0x12f7a5a8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.12f5c88f
add esp, 8
xor esi, esi
jmp 0x12f7a5a8
mov esi, 0x57
jmp 0x12f7a5a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x131c8c28], esi
je 0x12f7a5b9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x12f7a820
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x12f7a8dd
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x12f7a8d6
mov esi, dword [esp + 0x118]
test esi, esi
je 0x12f7a8d6
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x12f7a8d6
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x12f7a89f
lea edx, [esp + 0xc]
push eax
push edx
push 0x130c4bec
push esi
push ebx
call fcn.12f5d86f
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x12f7a8e5
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x12f7a8d2
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x12f7a8e5
mov esi, 0x57
jmp 0x12f7a8e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x131c8c28], esi
je 0x12f7a8f6
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret

Function at 0x12f7aa00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x12f7aaa4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x12f7aa9d
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x12f7aa9d
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x12f7aa9d
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x12f7aa7a
lea edx, [esp + 0xc]
push eax
push edx
push 0x130c4e18
push ebx
push edi
call fcn.12f5d8c0
add esp, 0x14
xor esi, esi
jmp 0x12f7aaac
lea eax, [esp + 0xc]
push eax
call fcn.12f5c44d
add esp, 4
cmp ebx, eax
jbe 0x12f7aaac
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.12f5c88f
add esp, 8
xor esi, esi
jmp 0x12f7aaac
mov esi, 0x57
jmp 0x12f7aaac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x131c8c28], esi
je 0x12f7aabd
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret