joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11e96410
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
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x11e964b4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x11e964ad
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x11e964ad
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x11e964ad
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x11e9648a
lea edx, [esp + 0xc]
push eax
push edx
push 0x12025c58
push ebx
push edi
call fcn.11e69362
add esp, 0x14
xor esi, esi
jmp 0x11e964bc
lea eax, [esp + 0xc]
push eax
call fcn.11e67d05
add esp, 4
cmp ebx, eax
jbe 0x11e964bc
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.11e6749a
add esp, 8
xor esi, esi
jmp 0x11e964bc
mov esi, 0x57
jmp 0x11e964bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x121336c4], esi
je 0x11e964cd
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 0x11e966d0
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 0x11e96800
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 0x11e968d3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.11e682b0
add esp, 8
test eax, eax
je 0x11e9684c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x11e968cc
mov esi, dword [esp + 0x118]
test esi, esi
je 0x11e968cc
lea edx, [esp + 0xc]
test edx, edx
je 0x11e968cc
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x11e96895
push eax
lea eax, [esp + 0x10]
push eax
push 0x120393c0
push esi
push ebx
call fcn.11e69c73
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x11e968db
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x11e968c8
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 0x11e968db
mov esi, 0x57
jmp 0x11e968db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x121336c4], esi
je 0x11e968ec
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 0x11e969f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x11fc0915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x11fd6250]
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 0x11e96b03
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.11e67430
add esp, 8
cmp eax, ebx
je 0x11e96a84
mov word [eax], bx
lea eax, [esp + 0x21c]
test eax, eax
je 0x11e96afc
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x11e96afc
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x11e96acd
lea edx, [esp + 0x14]
push eax
push edx
push 0x12025c58
lea eax, [esp + 0x228]
push 0x104
push eax
call fcn.11e69362
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x11e96b09
lea ecx, [esp + 0x14]
push ecx
call fcn.11e67d05
add esp, 4
cmp eax, 0x104
jae 0x11e96af8
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.11e6749a
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x11e96b09
mov eax, 0x57
jmp 0x11e96b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x121336c4], eax
je 0x11e96b1b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x11e96b2c
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x10]
call fcn.11e7f500
mov esi, dword [esp + 0x434]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.11e7e880
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.11e7f280
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 0x11e96ec0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x11fc0965
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x11fd6250]
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 0x11e96fb9
lea edx, [esp + 0x21c]
test edx, edx
je 0x11e96fb2
lea eax, [esp + 0x14]
test eax, eax
je 0x11e96fb2
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x11e96f83
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x12025c58
lea edx, [esp + 0x228]
push 0x104
push edx
call fcn.11e69362
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x11e96fbf
lea eax, [esp + 0x14]
push eax
call fcn.11e67d05
add esp, 4
cmp eax, 0x104
jae 0x11e96fae
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call fcn.11e6749a
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x11e96fbf
mov eax, 0x57
jmp 0x11e96fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x121336c4], eax
je 0x11e96fd1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x11e96fe2
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.11e7f500
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.11e7e880
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call fcn.11e7f280
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 0x11e97e80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x11fc0a05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
mov eax, dword [0x11fd6250]
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 + 0x426]
mov word [esp + 0x424], 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
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x21c]
push 0x104
push ecx
mov dword [esp + 0x63c], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x11e97f81
lea edx, [esp + 0x21c]
push 0x5c
push edx
call fcn.11e67430
add esp, 8
cmp eax, ebx
je 0x11e97f30
mov word [eax], bx
lea eax, [esp + 0x14]
test eax, eax
je 0x11e97f7a
lea ecx, [esp + 0x21c]
test ecx, ecx
je 0x11e97f7a
lea edx, [esp + 0x21c]
mov esi, 0x7a
push edx
call fcn.11e67d05
add esp, 4
cmp eax, 0x104
jae 0x11e97f76
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.11e6749a
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x11e97f87
mov eax, 0x57
jmp 0x11e97f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, ebx
mov dword [0x121336c4], eax
je 0x11e97fb5
push eax
call edi
mov esi, dword [0x121336c4]
cmp esi, ebx
mov dword [0x121336c4], esi
je 0x11e98051
push esi
call edi
jmp 0x11e98062
push 0x103
lea edx, [esp + 0x18]
push 0x120195b0
push edx
call fcn.11e69b04
lea eax, [esp + 0x430]
add esp, 0xc
test eax, eax
je 0x11e98047
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x11e98047
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x11e98013
lea edx, [esp + 0x14]
push eax
push edx
push 0x12025c58
lea eax, [esp + 0x430]
push 0x104
push eax
call fcn.11e69362
add esp, 0x14
xor esi, esi
jmp 0x11e97f9f
lea ecx, [esp + 0x14]
push ecx
call fcn.11e67d05
add esp, 4
cmp eax, 0x104
jae 0x11e97f9f
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call fcn.11e6749a
add esp, 8
xor esi, esi
jmp 0x11e97f9f
mov esi, 0x57
jmp 0x11e97f9f
lea ecx, [esp + 0x424]
push ecx
lea ecx, [esp + 0x10]
call fcn.11e7f500
mov esi, dword [esp + 0x63c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.11e7e880
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x634], bl
call fcn.11e7f280
mov ecx, dword [esp + 0x62c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x11e98c40
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x208
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebp
jne 0x11e98cb9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push str.CommonFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x11e98d14
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push str.c:program_filescommom_files
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.11e6749a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
add esp, 8
lea ecx, [esp + 0x220]
stosw word es:[edi], ax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [esp + 0x220]
mov word [esp + 0x18], dx
jmp 0x11e98d39
lea eax, [esp + 0x18]
mov word [esp + 0x21e], bp
push eax
call fcn.11e67d05
add esp, 4
dec eax
cmp word [esp + eax*2 + 0x18], 0x5c
lea eax, [esp + eax*2 + 0x18]
jne 0x11e98d39
mov word [eax], bp
mov edi, dword [esp + 0x42c]
push ebx
cmp edi, ebp
je 0x11e98da4
mov ebx, dword [esp + 0x434]
cmp ebx, ebp
je 0x11e98da4
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x11e98da4
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebp
je 0x11e98d81
lea edx, [esp + 0x1c]
push eax
push edx
push 0x12025c58
push ebx
push edi
call fcn.11e69362
add esp, 0x14
xor esi, esi
jmp 0x11e98da9
lea eax, [esp + 0x1c]
push eax
call fcn.11e67d05
add esp, 4
cmp ebx, eax
jbe 0x11e98da9
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.11e6749a
add esp, 8
xor esi, esi
jmp 0x11e98da9
mov esi, 0x57
cmp esi, ebp
mov dword [0x121336c4], esi
pop ebx
je 0x11e98dbb
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebp
pop edi
pop esi
sete al
pop ebp
add esp, 0x41c
ret
Function at 0x11e9b460
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.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x11e9b59a
cmp eax, 0x104
jae 0x11e9b59a
lea ecx, [esp + 4]
push esi
push ecx
call fcn.11e95ac0
add esp, 4
test eax, eax
je 0x11e9b521
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.11e95780
lea ecx, [esp + 0x21c]
push ecx
call fcn.11e67d05
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x11e9b521
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.11e674bf
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x11e9b58c
mov esi, dword [esp + 0x420]
test esi, esi
je 0x11e9b58c
lea ecx, [esp + 8]
test ecx, ecx
je 0x11e9b58c
mov eax, dword [esp + 0x424]
test eax, eax
je 0x11e9b56d
lea edx, [esp + 8]
push eax
push edx
push 0x12025c58
push esi
push edi
call fcn.11e69362
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.11e67d05
add esp, 4
cmp esi, eax
jbe 0x11e9b58c
lea ecx, [esp + 8]
push ecx
push edi
call fcn.11e6749a
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 0x11e9eb00
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 0x11e9eb1c
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.11e68160
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.11e68dc0
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 0x11e9eba0
cmp byte [esp + 0x10], 0x5c
jne 0x11e9eba0
cmp byte [esp + 0x11], 0x5c
jne 0x11e9eba0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.11e68dc0
add esp, 8
test eax, eax
je 0x11e9ec1e
inc eax
push 0x5c
push eax
call fcn.11e68dc0
add esp, 8
mov esi, eax
test esi, esi
je 0x11e9ec1e
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 0x11e9ebe2
test bl, 1
je 0x11e9ebd1
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 0x11e9ec54
cmp ebx, 0xffffffff
je 0x11e9ebeb
test edi, edi
jne 0x11e9ebfa
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x11e9ec54
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.11e68dc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x11e9eba4
test ebp, ebp
je 0x11e9ec54
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x11e9ec49
test al, 0x10
jne 0x11e9ec54
test al, 1
je 0x11e9ec3c
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 0x11e9ec54
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 0x11e9ec70
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 0x11e9ec8c
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.11e674bf
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.11e684ca
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.11e67d05
add esp, 0x18
cmp eax, 2
jbe 0x11e9ed11
cmp word [esp + 0x10], di
jne 0x11e9ed11
cmp word [esp + 0x12], di
jne 0x11e9ed11
lea eax, [esp + 0x14]
push edi
push eax
call fcn.11e684ca
add esp, 8
test eax, eax
je 0x11e9ed99
add eax, 2
push edi
push eax
call fcn.11e684ca
add esp, 8
mov esi, eax
test esi, esi
je 0x11e9ed99
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 0x11e9ed59
test bl, 1
je 0x11e9ed48
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 0x11e9edcf
cmp ebx, 0xffffffff
je 0x11e9ed62
test edi, edi
jne 0x11e9ed71
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x11e9edcf
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.11e684ca
mov esi, eax
add esp, 8
test esi, esi
jne 0x11e9ed19
test ebp, ebp
je 0x11e9edcf
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x11e9edc4
test al, 0x10
jne 0x11e9edcf
test al, 1
je 0x11e9edb7
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 0x11e9edcf
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 0x11e9f1c0
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 0x11e9f1f4
push 0x57
mov dword [0x121336c4], 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 0x11e9f21b
test al, 0x10
jne 0x11e9f38d
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 0x11e9f38d
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.11e674bf
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.11e684ca
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.11e67d05
add esp, 0x18
cmp eax, 2
jbe 0x11e9f2aa
cmp word [esp + 0x10], di
jne 0x11e9f2aa
cmp word [esp + 0x12], di
jne 0x11e9f2aa
lea eax, [esp + 0x14]
push edi
push eax
call fcn.11e684ca
add esp, 8
test eax, eax
je 0x11e9f332
add eax, 2
push edi
push eax
call fcn.11e684ca
add esp, 8
mov esi, eax
test esi, esi
je 0x11e9f332
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 0x11e9f2f2
test bl, 1
je 0x11e9f2e1
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 0x11e9f36a
cmp ebx, 0xffffffff
je 0x11e9f2fb
test edi, edi
jne 0x11e9f30a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x11e9f36a
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.11e684ca
mov esi, eax
add esp, 8
test esi, esi
jne 0x11e9f2b2
test ebp, ebp
je 0x11e9f36a
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x11e9f35b
test al, 0x10
jne 0x11e9f366
test al, 1
je 0x11e9f350
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 0x11e9f36a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x11e9f38d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x121336c4], eax
je 0x11e9f380
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 0x11e9f3a0
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
Function at 0x11e9f7d0
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 0x11e9f819
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 0x11e9f989
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x11e9f855
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x11e9f959
cmp ax, 0x2e
jne 0x11e9f855
cmp word [ebx + 0x30], 0
je 0x11e9f959
push ecx
call fcn.11e67d05
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x11e9f952
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.11e67470
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x11e9f8ae
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 0x11e9f915
test byte [esp + 0x27c], 0x40
jne 0x11e9f915
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.11e9f7d0
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x11e9f945
test edi, edi
je 0x11e9f945
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 0x11e9f971
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x11e9f81f
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 0x11e9f959