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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591594a8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x590b7536
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 0x590b7539
mov esi, dword [ebp + 8]
test esi, esi
je 0x590b7623
call fcn.590bc630
test eax, eax
je 0x590b75be
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x590b7587
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.5908b730
mov edi, esp
test edi, edi
je 0x590b7587
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 0x590b7589
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.5908992e
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 0x590b7617
cmp esi, dword [ebp + 8]
je 0x590b75b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x590b7625
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.590a1b80
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 0x590b7608
cmp esi, dword [ebp + 8]
je 0x590b75f2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.590a22e0
mov eax, 1
jmp 0x590b7625
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.590a22e0
cmp esi, dword [ebp + 8]
je 0x590b7623
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 0x590b7f40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x14]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.590ac370
cmp ebp, ebx
je 0x590b8018
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x590b8018
cmp dword [esp + 0x10], ebx
jbe 0x590b8018
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x590b7fa6
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.5913e1e0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x590b8018
cmp dword [esp + 0x10], ebx
jbe 0x590b8001
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
push eax
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x590b7ff7
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.590ac810
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x590b7fbd
pop edi
push esi
call fcn.5913e209
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x590b8350
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x590b84c8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x590b84a7
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x590b83a6
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.5913e1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x590b84c8
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x590b84bf
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x590b84bf
mov edi, dword [esp + 0x20]
test edi, edi
je 0x590b84bf
push ebp
push edi
call fcn.590b8350
add esp, 8
test eax, eax
je 0x590b84b4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x591b2d80]
test eax, eax
je 0x590b8451
test ebp, ebp
je 0x590b8451
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x590b84bf
jmp 0x590b845d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x590b84bf
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x590b849e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x590b84bf
mov eax, dword [esp + 0x14]
jmp 0x590b83fa
push esi
call fcn.5913e209
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x590b84bf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.5913e209
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x590b84e0
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 0x590b8549
mov eax, dword [esp + 0xc]
test eax, eax
je 0x590b8509
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x590b8549
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.590b8350
add esp, 8
test eax, eax
je 0x590b8549
mov eax, dword [0x591b2d80]
test eax, eax
je 0x590b8536
test edi, edi
je 0x590b8536
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x590b86c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x590b86f6
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 0x590b86f8
mov esi, dword [ebx]
test esi, esi
je 0x590b8783
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.0x590b8728.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x590b8728.2
jmp dword [eax*4 + 0x590b878c]
mov edi, 1
jmp case.0x590b8728.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x590b8728.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x590b8728.0
cmp eax, 2
je case.0x590b8728.0
cmp eax, 6
je case.0x590b8728.0
cmp eax, 7
je case.0x590b8728.0
xor edi, edi
jmp case.0x590b8728.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x590b877b
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 0x590b8970
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x590b8a05
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x590b89bf
call fcn.590bc6c0
test eax, eax
je 0x590b89bf
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x590b89ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x590b89ac
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x590b89b8
add edi, ebx
mov ebx, 0x10004
jmp 0x590b89c1
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x590b8bc0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x590b8a05
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x590b89f4
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 0x590b8a30
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x590b8a44
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 0x590b8a90
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 0x590bb350
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x591b2ef8]
test eax, eax
jne 0x590bb40e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x591b2d98
mov dword [0x591b2ef8], 1
mov dword [0x591b2d98], 0x94
call esi
mov edx, dword [0x591b2da8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x5919d2b8], eax
je 0x590bb402
push 0x591b2e30
mov dword [0x591b2e30], 0x9c
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x591b2ef4], eax
push 0x591b2ed0
je 0x590bb3d0
call eax
jmp 0x590bb3d6
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x591b2e34]
cmp eax, 6
jae 0x590bb3ee
cmp eax, 5
jne 0x590bb402
cmp dword [0x591b2e38], 2
jb 0x590bb402
cmp word [0x591b2ed0], 9
jne 0x590bb402
mov dword [0x591b2d8c], 1
call fcn.590bb420
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x590bba60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591639b0
push 0x59091bdc
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 [0x591b2efc]
xor ebx, ebx
cmp eax, ebx
jne 0x590bbbc0
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 0x590bbbbb
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 0x591878fc
lea edx, [ebp - 0x224]
push edx
call fcn.59089600
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.59119aae
mov dword [ebp - 0x120], eax
push eax
call fcn.5913e1e0
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x590bbbbb
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.59119a9c
test eax, eax
je 0x590bbbb2
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call fcn.59119a8a
test eax, eax
je 0x590bbbb2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x591b2efc], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x590bbbb2
push esi
call fcn.5913e209
add esp, 4
mov eax, dword [0x591b2efc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x590bbf60
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x591b3078]
sub esp, 0x114
test eax, eax
jne 0x590bc0ad
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x591b2f10
mov dword [0x591b3078], 1
mov dword [0x591b2f10], 0x94
call esi
mov edx, dword [0x591b2f20]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x5919d368], eax
je 0x590bc088
push ebx
push 0x591b2fa8
mov dword [0x591b2fa8], 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 [0x591b306c], eax
call edi
mov dword [0x591b3070], eax
mov eax, dword [0x591b306c]
test eax, eax
push 0x591b3048
je 0x590bc004
call eax
jmp 0x590bc00a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x591b2fac]
cmp eax, 6
jae 0x590bc022
cmp eax, 5
jne 0x590bc036
cmp dword [0x591b2fb0], 2
jb 0x590bc036
cmp word [0x591b3048], 9
jne 0x590bc036
mov dword [0x591b2f04], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x590bc054
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x591b3074], edx
jmp 0x590bc05a
mov edx, dword [0x591b3074]
test edx, edx
je 0x590bc088
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 0x590bc088
mov ecx, dword [esp + 0x14]
mov dword [0x591b2f1c], ecx
push 0x591b2f18
push 0x591b2f14
call fcn.590bc450
add esp, 8
call fcn.590bc0c0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x590bd2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591639c0
push 0x59091bdc
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 [0x591b307c]
xor ebx, ebx
cmp eax, ebx
jne 0x590bd440
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 0x590bd43b
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 0x591878fc
lea edx, [ebp - 0x224]
push edx
call fcn.59089600
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.59119aae
mov dword [ebp - 0x120], eax
push eax
call fcn.5913e1e0
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x590bd43b
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.59119a9c
test eax, eax
je 0x590bd432
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call fcn.59119a8a
test eax, eax
je 0x590bd432
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x591b307c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x590bd432
push esi
call fcn.5913e209
add esp, 4
mov eax, dword [0x591b307c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x590c7c90
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x348
test edx, edx
jne 0x590c7cb9
push 0x57
mov dword [0x591b30f0], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x348
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
push 0x59190c64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 0x591878fc
lea eax, [esp + 0x158]
push 0x207
push eax
mov dword [0x591b30f0], 0
xor ebp, ebp
call fcn.5908986e
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x590c7d88
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, 1
cmp byte [esp + 0x38], 0x2e
jne 0x590c7d73
mov al, byte [esp + 0x39]
test al, al
je 0x590c7d54
cmp al, 0x2e
jne 0x590c7d73
mov al, byte [esp + 0x3a]
test al, al
jne 0x590c7d73
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x590c7d39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x348
ret
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x348
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x591b30f0], eax
je 0x590c7d9e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x348
ret
Function at 0x590c80e0
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 0x590c80fc
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.5908b460
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.59089670
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 0x590c8180
cmp byte [esp + 0x10], 0x5c
jne 0x590c8180
cmp byte [esp + 0x11], 0x5c
jne 0x590c8180
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.59089670
add esp, 8
test eax, eax
je 0x590c81fe
inc eax
push 0x5c
push eax
call fcn.59089670
add esp, 8
mov esi, eax
test esi, esi
je 0x590c81fe
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 0x590c81c2
test bl, 1
je 0x590c81b1
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 0x590c8234
cmp ebx, 0xffffffff
je 0x590c81cb
test edi, edi
jne 0x590c81da
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x590c8234
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.59089670
mov esi, eax
add esp, 8
test esi, esi
jne 0x590c8184
test ebp, ebp
je 0x590c8234
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x590c8229
test al, 0x10
jne 0x590c8234
test al, 1
je 0x590c821c
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 0x590c8234
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 0x590c8250
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 0x590c826c
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.5908873d
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.5908b148
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.5908992e
add esp, 0x18
cmp eax, 2
jbe 0x590c82f1
cmp word [esp + 0x10], di
jne 0x590c82f1
cmp word [esp + 0x12], di
jne 0x590c82f1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.5908b148
add esp, 8
test eax, eax
je 0x590c8379
add eax, 2
push edi
push eax
call fcn.5908b148
add esp, 8
mov esi, eax
test esi, esi
je 0x590c8379
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 0x590c8339
test bl, 1
je 0x590c8328
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 0x590c83af
cmp ebx, 0xffffffff
je 0x590c8342
test edi, edi
jne 0x590c8351
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x590c83af
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.5908b148
mov esi, eax
add esp, 8
test esi, esi
jne 0x590c82f9
test ebp, ebp
je 0x590c83af
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x590c83a4
test al, 0x10
jne 0x590c83af
test al, 1
je 0x590c8397
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 0x590c83af
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