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

Disassembly:
push 0xffffffffffffffff
push 0x13a7b9b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.13a02470
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.139fa520
mov eax, dword [0x13a7fb40]
mov dword [esi + 0x40], eax
push edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 2
call fcn.139ecaa0
lea ecx, [esi + 0x70]
call fcn.139ecd30
lea ecx, [esi + 0x74]
call fcn.139ecd80
push edi
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 5
call fcn.139ece40
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi], 0x13a7fb34
mov dword [esi + 8], 2
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x139ed380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13a7ba7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, ecx
push esi
push 1
lea eax, [ebp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.13a029a0
xor esi, esi
add ebp, 0x30
push 0xffffffffffffffff
push esi
mov ecx, ebp
mov dword [esp + 0x22c], esi
call fcn.139fa590
mov edx, dword [esp + 0x22c]
cmp edx, esi
jne 0x139ed3e8
lea ecx, [esp + 8]
mov dword [esp + 0x224], 0xffffffff
call fcn.13a02a00
jmp 0x139ed483
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3b
push edx
mov edi, edx
call fcn.13a17cee
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x139ed45b
mov esi, ebx
sub esi, edi
sar esi, 1
je 0x139ed447
cmp esi, 0x103
jae 0x139ed447
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.13a178e0
mov eax, dword [ebp + 4]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
push eax
mov word [esp + esi*2 + 0x24], 0
call fcn.139faa40
lea edi, [ebx + 2]
push 0x3b
push edi
call fcn.13a17cee
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x139ed411
cmp word [edi], 0
je 0x139ed46d
mov eax, dword [ebp + 4]
push edi
push eax
mov ecx, ebp
call fcn.139faa40
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.13a02a00
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x139f3260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x139f32ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x139f32ae
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x139f32b3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x139f3299
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x139f32c3
test esi, esi
jne 0x139f32e1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x139f32df
mov byte [eax + esi - 1], 0
jne 0x139f32e8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x139f8a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x139f8a90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x139f8a90
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x139f8a95
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x139f8a7b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x139f8aa2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x13a02f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x13a02f81
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13a02f83
mov esi, edi
test esi, esi
je 0x13a02ff8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13a02fed
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x13a02fed
cmp dword [esp + 0x1c], eax
jbe 0x13a02fbe
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13a02fed
cmp esi, edi
je 0x13a02fdf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x13a02ff8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x13a03150
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x13a031af
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x13a031af
cmp dword [esp + 0xc], 3
jne 0x13a031af
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x13a031af
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x13a031af
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x13a03290
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x13a03304
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13a03304
cmp dword [esp + 0x10], 3
jne 0x13a03304
mov edx, dword [esp + 0x18]
push edx
call fcn.13a17a56
mov edi, eax
add esp, 4
test edi, edi
je 0x13a03304
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13a032fb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.13a17a4b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x13a03310
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x13a7c24f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x13a7fb3c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x13a0337b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13a0337d
mov esi, edi
test esi, esi
je 0x13a03447
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x13a0343c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x13a033bf
cmp eax, 2
je 0x13a033bf
cmp eax, 6
je 0x13a033bf
cmp eax, 7
jne 0x13a0343c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.13a17a56
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x13a03422
lea ecx, [esp + 0x14]
call fcn.139efa80
cmp esi, dword [esp + 0x14]
je 0x13a03417
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.13a17a4b
add esp, 4
jmp 0x13a03459
call fcn.13a17a4b
add esp, 4
lea ecx, [esp + 0x10]
push 0x13aab94c
call fcn.139efa80
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x13a03447
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x13a03459
push eax
lea ecx, [esp + 0x14]
call fcn.139efa80
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.139eedf0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.139ef820
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x13a041c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13a7c318
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x13a04216
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
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 [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13a04219
mov esi, dword [ebp + 8]
test esi, esi
je 0x13a04303
call fcn.13a07650
test eax, eax
je 0x13a0429e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x13a04267
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.13a18fd0
mov edi, esp
test edi, edi
je 0x13a04267
mov eax, dword [ebp + 0x10]
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x13a04269
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.13a178c3
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x13a042f7
cmp esi, dword [ebp + 8]
je 0x13a04297
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x13a04305
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.139ef0c0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x13a042e8
cmp esi, dword [ebp + 8]
je 0x13a042d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.139ef820
mov eax, 1
jmp 0x13a04305
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.139ef820
cmp esi, dword [ebp + 8]
je 0x13a04303
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13a053d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x13a05406
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 0x13a05408
mov esi, dword [ebx]
test esi, esi
je 0x13a05493
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.0x13a05438.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x13a05438.2
jmp dword [eax*4 + 0x13a0549c]
mov edi, 1
jmp case.0x13a05438.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x13a05438.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x13a05438.0
cmp eax, 2
je case.0x13a05438.0
cmp eax, 6
je case.0x13a05438.0
cmp eax, 7
je case.0x13a05438.0
xor edi, edi
jmp case.0x13a05438.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x13a0548b
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 0x13a06f80
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x13aabc38]
sub esp, 0x114
test eax, eax
jne 0x13a070cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x13aabad0
mov dword [0x13aabc38], 1
mov dword [0x13aabad0], 0x94
call esi
mov edx, dword [0x13aabae0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x13a956e8], eax
je 0x13a070a8
push ebx
push 0x13aabb68
mov dword [0x13aabb68], 0x9c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x13aabc2c], eax
call edi
mov dword [0x13aabc30], eax
mov eax, dword [0x13aabc2c]
test eax, eax
push 0x13aabc08
je 0x13a07024
call eax
jmp 0x13a0702a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x13aabb6c]
cmp eax, 6
jae 0x13a07042
cmp eax, 5
jne 0x13a07056
cmp dword [0x13aabb70], 2
jb 0x13a07056
cmp word [0x13aabc08], 9
jne 0x13a07056
mov dword [0x13aabac4], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x13a07074
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x13aabc34], edx
jmp 0x13a0707a
mov edx, dword [0x13aabc34]
test edx, edx
je 0x13a070a8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x13a070a8
mov ecx, dword [esp + 0x14]
mov dword [0x13aabadc], ecx
push 0x13aabad8
push 0x13aabad4
call fcn.13a07470
add esp, 8
call fcn.13a070e0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x13a08300
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13a7fc28
push 0x13a1ad80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x13aabc3c]
xor ebx, ebx
cmp eax, ebx
jne 0x13a08460
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x13a0845b
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x13a91124
lea edx, [ebp - 0x224]
push edx
call fcn.13a177e2
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.13a17a56
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x13a0845b
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x13a08452
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x13a08452
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x13aabc3c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x13a08452
push esi
call fcn.13a17a4b
add esp, 4
mov eax, dword [0x13aabc3c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13a0ab70
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 0x13a0ac43
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.13a17da0
add esp, 8
test eax, eax
je 0x13a0abbc
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x13a0ac3c
mov esi, dword [esp + 0x118]
test esi, esi
je 0x13a0ac3c
lea edx, [esp + 0xc]
test edx, edx
je 0x13a0ac3c
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x13a0ac05
push eax
lea eax, [esp + 0x10]
push eax
push 0x13a91124
push esi
push ebx
call fcn.13a1ae58
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x13a0ac4b
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x13a0ac38
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 0x13a0ac4b
mov esi, 0x57
jmp 0x13a0ac4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x13aabcb0], esi
je 0x13a0ac5c
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 0x13a13100
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x13a1311c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.13a17bf0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.13a17b30
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x13a131a0
cmp byte [esp + 0x10], 0x5c
jne 0x13a131a0
cmp byte [esp + 0x11], 0x5c
jne 0x13a131a0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.13a17b30
add esp, 8
test eax, eax
je 0x13a1321e
inc eax
push 0x5c
push eax
call fcn.13a17b30
add esp, 8
mov esi, eax
test esi, esi
je 0x13a1321e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x13a131e2
test bl, 1
je 0x13a131d1
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x13a13254
cmp ebx, 0xffffffff
je 0x13a131eb
test edi, edi
jne 0x13a131fa
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x13a13254
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.13a17b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x13a131a4
test ebp, ebp
je 0x13a13254
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x13a13249
test al, 0x10
jne 0x13a13254
test al, 1
je 0x13a1323c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x13a13254
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x13a13270
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x13a1328c
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.13a178e0
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.13a17cee
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.13a178c3
add esp, 0x18
cmp eax, 2
jbe 0x13a13311
cmp word [esp + 0x10], di
jne 0x13a13311
cmp word [esp + 0x12], di
jne 0x13a13311
lea eax, [esp + 0x14]
push edi
push eax
call fcn.13a17cee
add esp, 8
test eax, eax
je 0x13a13399
add eax, 2
push edi
push eax
call fcn.13a17cee
add esp, 8
mov esi, eax
test esi, esi
je 0x13a13399
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x13a13359
test bl, 1
je 0x13a13348
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x13a133cf
cmp ebx, 0xffffffff
je 0x13a13362
test edi, edi
jne 0x13a13371
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x13a133cf
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.13a17cee
mov esi, eax
add esp, 8
test esi, esi
jne 0x13a13319
test ebp, ebp
je 0x13a133cf
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x13a133c4
test al, 0x10
jne 0x13a133cf
test al, 1
je 0x13a133b7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x13a133cf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret