joyce8/EMBER2024-capa huggingface dataset:
Function at 0x122c5160
Capabilities:
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.122bb6d0
cmp ebp, ebx
je 0x122c524f
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_RegQueryInfoKeyW]
test eax, eax
jne 0x122c524f
cmp dword [esp + 0x10], ebx
jbe 0x122c524f
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x122c51c5
mov eax, 0x104
mov dword [esp + 0xc], eax
lea eax, [eax + eax + 2]
push eax
call fcn.122ca698
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x122c524f
cmp dword [esp + 0x10], ebx
jbe 0x122c5238
push edi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
push 0
lea ecx, [ecx + ecx + 2]
push 0
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_RegEnumValueW]
test eax, eax
jne 0x122c522e
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.122bbb80
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x122c51e3
pop edi
push esi
call fcn.122ca6a6
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 0x122c5330
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_RegQueryInfoKeyW]
test eax, eax
jne 0x122c54ad
mov eax, dword [esp + 0x10]
test eax, eax
je 0x122c548c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x122c5386
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.122ca698
mov esi, eax
add esp, 4
test esi, esi
je 0x122c54ad
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + 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
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x122c54a4
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_RegOpenKeyExW]
test eax, eax
jne 0x122c54a4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x122c54a4
push ebp
push edi
call fcn.122c5330
add esp, 8
test eax, eax
je 0x122c5499
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x123b7fdc]
test eax, eax
je 0x122c5435
test ebp, ebp
je 0x122c5435
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x122c54a4
jmp 0x122c5441
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x122c54a4
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x122c5483
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
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_RegEnumKeyW]
test eax, eax
jne 0x122c54a4
mov eax, dword [esp + 0x14]
jmp 0x122c53de
push esi
call fcn.122ca6a6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x122c54a4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.122ca6a6
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x122c54c0
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 0x122c5529
mov eax, dword [esp + 0xc]
test eax, eax
je 0x122c54e9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x122c5529
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.122c5330
add esp, 8
test eax, eax
je 0x122c5529
mov eax, dword [0x123b7fdc]
test eax, eax
je 0x122c5516
test edi, edi
je 0x122c5516
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_RegDeleteKeyW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x122c56a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x122c56d6
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_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x122c56d8
mov esi, dword [ebx]
test esi, esi
je 0x122c5763
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_RegQueryValueExW]
test eax, eax
jne case.0x122c5708.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x122c5708.2
jmp dword [eax*4 + 0x122c576c]
mov edi, 1
jmp case.0x122c5708.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x122c5708.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x122c5708.0
cmp eax, 2
je case.0x122c5708.0
cmp eax, 6
je case.0x122c5708.0
cmp eax, 7
je case.0x122c5708.0
xor edi, edi
jmp case.0x122c5708.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x122c575b
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 0x122c5950
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x122c59e5
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x122c599f
call fcn.122ff200
test eax, eax
je 0x122c599f
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x122c598c
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x122c598c
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x122c5998
add edi, ebx
mov ebx, 0x10004
jmp 0x122c59a1
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x122c5ba0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x122c59e5
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x122c59d4
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 0x122c5a10
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x122c5a24
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 0x122c5a70
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 0x122c78b0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x122c78fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x122c78fb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.122ca698
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.122ca698
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x122c7940
test esi, esi
je 0x122c7951
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x122c794d
push esi
call fcn.122ca6a6
add esp, 4
test ebx, ebx
jne 0x122c7960
mov edi, dword [edi]
test edi, edi
je 0x122c7960
push edi
call fcn.122ca6a6
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x122debb0
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 0x122dec70
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.122cac99
add esp, 8
test eax, eax
je 0x122debff
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x122dec69
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x122dec69
lea edx, [esp + 0xc]
test edx, edx
je 0x122dec69
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x122dec46
push eax
lea eax, [esp + 0x10]
push eax
push 0x1239dca0
push ebx
push edi
call fcn.122cb88f
add esp, 0x14
xor esi, esi
jmp 0x122dec78
lea ecx, [esp + 0xc]
push ecx
call fcn.122ca717
add esp, 4
cmp ebx, eax
jbe 0x122dec78
lea edx, [esp + 0xc]
push edx
push edi
call fcn.122cab54
add esp, 8
xor esi, esi
jmp 0x122dec78
mov esi, 0x57
jmp 0x122dec78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x123b847c], esi
je 0x122dec89
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 0x122deca0
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 0x122ded73
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.122cb6d0
add esp, 8
test eax, eax
je 0x122decec
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x122ded6c
mov esi, dword [esp + 0x118]
test esi, esi
je 0x122ded6c
lea edx, [esp + 0xc]
test edx, edx
je 0x122ded6c
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x122ded35
push eax
lea eax, [esp + 0x10]
push eax
push 0x123a1c7c
push esi
push ebx
call fcn.1233d1c0
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x122ded7b
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x122ded68
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 0x122ded7b
mov esi, 0x57
jmp 0x122ded7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x123b847c], esi
je 0x122ded8c
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 0x122deda0
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 0x122dee60
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.122cac99
add esp, 8
test eax, eax
je 0x122dedef
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x122dee59
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x122dee59
lea edx, [esp + 0xc]
test edx, edx
je 0x122dee59
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x122dee36
push eax
lea eax, [esp + 0x10]
push eax
push 0x1239dca0
push ebx
push edi
call fcn.122cb88f
add esp, 0x14
xor esi, esi
jmp 0x122dee68
lea ecx, [esp + 0xc]
push ecx
call fcn.122ca717
add esp, 4
cmp ebx, eax
jbe 0x122dee68
lea edx, [esp + 0xc]
push edx
push edi
call fcn.122cab54
add esp, 8
xor esi, esi
jmp 0x122dee68
mov esi, 0x57
jmp 0x122dee68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x123b847c], esi
je 0x122dee79
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 0x122e3c90
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
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
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x122e3dca
cmp eax, 0x104
jae 0x122e3dca
lea ecx, [esp + 4]
push esi
push ecx
call fcn.122ddf60
add esp, 4
test eax, eax
je 0x122e3d51
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.122ddc20
lea ecx, [esp + 0x21c]
push ecx
call fcn.122ca717
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x122e3d51
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.122ca6b1
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x122e3dbc
mov esi, dword [esp + 0x420]
test esi, esi
je 0x122e3dbc
lea ecx, [esp + 8]
test ecx, ecx
je 0x122e3dbc
mov eax, dword [esp + 0x424]
test eax, eax
je 0x122e3d9d
lea edx, [esp + 8]
push eax
push edx
push 0x1239dca0
push esi
push edi
call fcn.122cb88f
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.122ca717
add esp, 4
cmp esi, eax
jbe 0x122e3dbc
lea ecx, [esp + 8]
push ecx
push edi
call fcn.122cab54
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret
Function at 0x122e6fa0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x122e6fbc
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
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.122cbc30
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.122cc100
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 0x122e7040
cmp byte [esp + 0x10], 0x5c
jne 0x122e7040
cmp byte [esp + 0x11], 0x5c
jne 0x122e7040
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.122cc100
add esp, 8
test eax, eax
je 0x122e70be
inc eax
push 0x5c
push eax
call fcn.122cc100
add esp, 8
mov esi, eax
test esi, esi
je 0x122e70be
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 0x122e7082
test bl, 1
je 0x122e7071
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 0x122e70f4
cmp ebx, 0xffffffff
je 0x122e708b
test edi, edi
jne 0x122e709a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x122e70f4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.122cc100
mov esi, eax
add esp, 8
test esi, esi
jne 0x122e7044
test ebp, ebp
je 0x122e70f4
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x122e70e9
test al, 0x10
jne 0x122e70f4
test al, 1
je 0x122e70dc
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 0x122e70f4
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, 0x104
ret
Function at 0x122e7110
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 0x122e712c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.122ca6b1
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.122ca6ee
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.122ca717
add esp, 0x18
cmp eax, 2
jbe 0x122e71b1
cmp word [esp + 0x10], di
jne 0x122e71b1
cmp word [esp + 0x12], di
jne 0x122e71b1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.122ca6ee
add esp, 8
test eax, eax
je 0x122e7239
add eax, 2
push edi
push eax
call fcn.122ca6ee
add esp, 8
mov esi, eax
test esi, esi
je 0x122e7239
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 0x122e71f9
test bl, 1
je 0x122e71e8
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 0x122e726f
cmp ebx, 0xffffffff
je 0x122e7202
test edi, edi
jne 0x122e7211
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x122e726f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.122ca6ee
mov esi, eax
add esp, 8
test esi, esi
jne 0x122e71b9
test ebp, ebp
je 0x122e726f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x122e7264
test al, 0x10
jne 0x122e726f
test al, 1
je 0x122e7257
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 0x122e726f
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, 0x208
ret
Function at 0x122e7660
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]
push ebp
push esi
test ebx, ebx
push edi
jne 0x122e7694
push 0x57
mov dword [0x123b847c], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x122e76bb
test al, 0x10
jne 0x122e782d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x122e782d
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.122ca6b1
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.122ca6ee
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.122ca717
add esp, 0x18
cmp eax, 2
jbe 0x122e774a
cmp word [esp + 0x10], di
jne 0x122e774a
cmp word [esp + 0x12], di
jne 0x122e774a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.122ca6ee
add esp, 8
test eax, eax
je 0x122e77d2
add eax, 2
push edi
push eax
call fcn.122ca6ee
add esp, 8
mov esi, eax
test esi, esi
je 0x122e77d2
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 0x122e7792
test bl, 1
je 0x122e7781
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 0x122e780a
cmp ebx, 0xffffffff
je 0x122e779b
test edi, edi
jne 0x122e77aa
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x122e780a
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.122ca6ee
mov esi, eax
add esp, 8
test esi, esi
jne 0x122e7752
test ebp, ebp
je 0x122e780a
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x122e77fb
test al, 0x10
jne 0x122e7806
test al, 1
je 0x122e77f0
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x122e780a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x122e782d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x123b847c], eax
je 0x122e7820
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x122e7840
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret