joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11395500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x11395537
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1139553a
mov esi, dword [ebp + 8]
test esi, esi
je 0x113956ed
call fcn.113938d0
test eax, eax
je 0x113955e5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x113956e1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x11395589
cmp eax, 2
je 0x11395589
cmp eax, 6
je 0x11395589
cmp eax, 7
jne 0x113956e1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.114ef26e
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
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 ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x113956cc
mov ecx, dword [ebp + 0x18]
call fcn.1137e660
cmp esi, dword [ebp + 8]
je 0x113956b6
jmp 0x113956af
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x113955f1
mov dword [ebp + 0x10], eax
jmp 0x11395626
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.11365ad0
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x113956e1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x11395660
cmp eax, 2
je 0x11395660
cmp eax, 6
je 0x11395660
cmp eax, 7
jne 0x113956e1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.114ef26e
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x113956cc
mov ecx, dword [ebp + 0x18]
call fcn.1137e730
cmp esi, dword [ebp + 8]
je 0x113956b6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.114ef297
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.114ef297
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x1159f65c
call fcn.1137e660
cmp esi, dword [ebp + 8]
je 0x113956ed
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x11396100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1150caf8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x11396156
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1139615b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x1139624a
call fcn.113938d0
test eax, eax
je 0x113961aa
mov edi, dword [ebp + 0x18]
push edi
call fcn.11363fc6
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1139623f
cmp esi, ebx
je 0x113961a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1139624c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x113961b5
xor edi, edi
jmp 0x113961ea
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.11365ad0
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.113783e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x11396230
cmp esi, ebx
je 0x1139621a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.11378bf0
mov eax, 1
jmp 0x1139624c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.11378bf0
cmp esi, ebx
je 0x1139624a
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 0x11397230
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x11397266
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 0x11397268
mov esi, dword [ebx]
test esi, esi
je 0x113972f3
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.0x11397298.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x11397298.2
jmp dword [eax*4 + 0x113972fc]
mov edi, 1
jmp case.0x11397298.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x11397298.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x11397298.0
cmp eax, 2
je case.0x11397298.0
cmp eax, 6
je case.0x11397298.0
cmp eax, 7
je case.0x11397298.0
xor edi, edi
jmp case.0x11397298.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x113972eb
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 0x11399430
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 0x113994f0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.11363f37
add esp, 8
test eax, eax
je 0x1139947f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x113994e9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x113994e9
lea edx, [esp + 0xc]
test edx, edx
je 0x113994e9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x113994c6
push eax
lea eax, [esp + 0x10]
push eax
push 0x115674b0
push ebx
push edi
call fcn.113644a6
add esp, 0x14
xor esi, esi
jmp 0x113994f8
lea ecx, [esp + 0xc]
push ecx
call fcn.11363fc6
add esp, 4
cmp ebx, eax
jbe 0x113994f8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.11363fa1
add esp, 8
xor esi, esi
jmp 0x113994f8
mov esi, 0x57
jmp 0x113994f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x115a38a8], esi
je 0x11399509
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 0x11399620
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 0x113996e0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.11363f37
add esp, 8
test eax, eax
je 0x1139966f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x113996d9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x113996d9
lea edx, [esp + 0xc]
test edx, edx
je 0x113996d9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x113996b6
push eax
lea eax, [esp + 0x10]
push eax
push 0x115674b0
push ebx
push edi
call fcn.113644a6
add esp, 0x14
xor esi, esi
jmp 0x113996e8
lea ecx, [esp + 0xc]
push ecx
call fcn.11363fc6
add esp, 4
cmp ebx, eax
jbe 0x113996e8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.11363fa1
add esp, 8
xor esi, esi
jmp 0x113996e8
mov esi, 0x57
jmp 0x113996e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x115a38a8], esi
je 0x113996f9
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 0x11399710
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1150ccf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x1157c63c]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x434], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x11399823
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.11363f37
add esp, 8
cmp eax, ebx
je 0x113997a4
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x1139981c
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x1139981c
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x113997ed
lea edx, [esp + 0x14]
push eax
push edx
push 0x115674b0
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.113644a6
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x11399829
lea ecx, [esp + 0x14]
push ecx
call fcn.11363fc6
add esp, 4
cmp eax, 0x104
jae 0x11399818
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.11363fa1
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x11399829
mov eax, 0x57
jmp 0x11399829
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x115a38a8], eax
je 0x1139983b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1139984c
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.114ea146
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.114e9d1c
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.114e9faf
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret

Function at 0x11399950
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 0x113999f4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x113999ed
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x113999ed
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x113999ed
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x113999ca
lea edx, [esp + 0xc]
push eax
push edx
push 0x115674b0
push ebx
push edi
call fcn.113644a6
add esp, 0x14
xor esi, esi
jmp 0x113999fc
lea eax, [esp + 0xc]
push eax
call fcn.11363fc6
add esp, 4
cmp ebx, eax
jbe 0x113999fc
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.11363fa1
add esp, 8
xor esi, esi
jmp 0x113999fc
mov esi, 0x57
jmp 0x113999fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x115a38a8], esi
je 0x11399a0d
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 0x11399b10
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 0x11399bb4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x11399bad
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x11399bad
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x11399bad
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x11399b8a
lea edx, [esp + 0xc]
push eax
push edx
push 0x115674b0
push ebx
push edi
call fcn.113644a6
add esp, 0x14
xor esi, esi
jmp 0x11399bbc
lea eax, [esp + 0xc]
push eax
call fcn.11363fc6
add esp, 4
cmp ebx, eax
jbe 0x11399bbc
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.11363fa1
add esp, 8
xor esi, esi
jmp 0x11399bbc
mov esi, 0x57
jmp 0x11399bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x115a38a8], esi
je 0x11399bcd
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 0x1139f830
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x1139f851
push 0x57
mov dword [0x115a38a8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x1139f882
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1139f882
test al, 0x10
jne 0x1139f882
test al, 1
je 0x1139f84c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x1139f8f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x1139f911
push 0x57
mov dword [0x115a38a8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x1139f942
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1139f942
test al, 0x10
jne 0x1139f942
test al, 1
je 0x1139f90c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x113a1820
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 0x113a183c
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.113652f0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.11365430
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 0x113a18c0
cmp byte [esp + 0x10], 0x5c
jne 0x113a18c0
cmp byte [esp + 0x11], 0x5c
jne 0x113a18c0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.11365430
add esp, 8
test eax, eax
je 0x113a193e
inc eax
push 0x5c
push eax
call fcn.11365430
add esp, 8
mov esi, eax
test esi, esi
je 0x113a193e
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 0x113a1902
test bl, 1
je 0x113a18f1
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 0x113a1974
cmp ebx, 0xffffffff
je 0x113a190b
test edi, edi
jne 0x113a191a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x113a1974
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.11365430
mov esi, eax
add esp, 8
test esi, esi
jne 0x113a18c4
test ebp, ebp
je 0x113a1974
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x113a1969
test al, 0x10
jne 0x113a1974
test al, 1
je 0x113a195c
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 0x113a1974
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 0x113a1990
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 0x113a19ac
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.11363fe3
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.11365570
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.11363fc6
add esp, 0x18
cmp eax, 2
jbe 0x113a1a31
cmp word [esp + 0x10], di
jne 0x113a1a31
cmp word [esp + 0x12], di
jne 0x113a1a31
lea eax, [esp + 0x14]
push edi
push eax
call fcn.11365570
add esp, 8
test eax, eax
je 0x113a1ab9
add eax, 2
push edi
push eax
call fcn.11365570
add esp, 8
mov esi, eax
test esi, esi
je 0x113a1ab9
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 0x113a1a79
test bl, 1
je 0x113a1a68
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 0x113a1aef
cmp ebx, 0xffffffff
je 0x113a1a82
test edi, edi
jne 0x113a1a91
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x113a1aef
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.11365570
mov esi, eax
add esp, 8
test esi, esi
jne 0x113a1a39
test ebp, ebp
je 0x113a1aef
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x113a1ae4
test al, 0x10
jne 0x113a1aef
test al, 1
je 0x113a1ad7
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 0x113a1aef
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 0x113a24f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x113a2539
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x113a26a9
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x113a2575
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x113a2679
cmp ax, 0x2e
jne 0x113a2575
cmp word [ebx + 0x30], 0
je 0x113a2679
push ecx
call fcn.11363fc6
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x113a2672
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.11363f77
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x113a25ce
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x113a2635
test byte [esp + 0x27c], 0x40
jne 0x113a2635
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.113a24f0
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x113a2665
test edi, edi
je 0x113a2665
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x113a2691
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x113a253f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x113a2679
Function at 0x113a3530
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x113a354f
push 0x57
mov dword [0x115a38a8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x113a3480
push 0x20
push esi
call fcn.113a23f0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x113a3595
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x115a38a8], eax
je 0x113a3595
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret