joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59021fa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5913c4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x591949a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x188], esi
call fcn.59094760
mov eax, dword [esp + 0x198]
mov bl, 1
push 0x591949a0
push eax
mov byte [esp + 0x18c], bl
call fcn.5907de59
add esp, 8
test eax, eax
jne 0x59022029
lea ecx, [esp + 0x18]
push ecx
call fcn.5900d0d0
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 2
call fcn.59095210
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], bl
call fcn.59095090
jmp 0x5902203a
lea edx, [esp + 0x198]
lea ecx, [esp + 0x10]
push edx
call fcn.59095210
push str.ContentBuf.mtmp
lea ecx, [esp + 0x14]
call fcn.59095ca0
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x590221dd
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x18c]
mov byte [esp + 0x184], 3
mov bl, 5
test byte [esp + 0x3c], 0x10
jne 0x590221ba
lea edx, [esp + 0x68]
lea ecx, [esp + 0x1c]
push edx
call fcn.59094760
push 0x591949a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 4
call fcn.59094760
mov eax, dword [esp + 0x198]
push 0x591949a0
push eax
mov byte [esp + 0x18c], bl
call fcn.5907de59
add esp, 8
test eax, eax
jne 0x59022125
lea ecx, [esp + 0x20]
push ecx
call fcn.5900d0d0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 6
call fcn.59095210
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], bl
call fcn.59095090
jmp 0x59022136
lea edx, [esp + 0x198]
lea ecx, [esp + 0x14]
push edx
call fcn.59095210
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.59095d00
push edi
push ebp
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.59094660
mov byte [esp + 0x190], bl
call fcn.590203e0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x24]
push eax
call fcn.59099b10
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x18c], 8
call fcn.590a03a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], bl
call fcn.5909a410
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 4
call fcn.59095090
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 3
call fcn.59095090
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x590220a5
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 0
call fcn.59095090
lea ecx, [esp + 0x198]
mov dword [esp + 0x184], 0xffffffff
call fcn.59095090
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x178
ret
Function at 0x5904db00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59142678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0x5914a8f8
lea edi, [esi + 0x1b8]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1d0]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x5904db5e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5904db5e
mov ebp, dword [esp + 0x3c]
cmp ebp, 2
je 0x5904db83
cmp ebp, 1
je 0x5904db83
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
lea eax, [esi + 0xe8]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.590a72b0
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x12c]
lea ecx, [esi + 0x128]
push edx
push eax
mov byte [esp + 0x34], 1
call fcn.5909f5c0
mov eax, dword [0x5914f850]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x5904dbd1
push eax
lea ecx, [esp + 0x10]
call fcn.5909a690
mov eax, dword [esi + 0x14c]
lea ecx, [esi + 0x148]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.590a03a0
mov eax, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
push ebp
push eax
call fcn.590a6690
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.5909a410
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.590a7310
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x59050230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59142a67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
call dword [0x59190db4]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
call fcn.590af440
add esp, 8
mov dword [esp + 0x28], 1
call fcn.59001210
push eax
lea ecx, [esp + 8]
call fcn.59094760
push 0x59172380
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.59095ca0
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.59095d00
push 0x59177d14
lea ecx, [esp + 8]
call fcn.59095ca0
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.59094660
mov dword [esp + 0x1c], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 1
call fcn.59095090
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.59095090
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x59050d10
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x59142bf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d0
push ebx
push ebp
push esi
mov esi, 1
push edi
mov ebx, ecx
xor edi, edi
push esi
push 0x59195898
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.590a72b0
mov eax, dword [0x591958bc]
mov dword [esp + 0x8e8], edi
cmp eax, edi
jle 0x59050f09
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8e8], ebp
call fcn.590a7310
push esi
push 0x59195898
lea ecx, [esp + 0x24]
call fcn.590a72b0
mov edx, dword [0x591958b8]
mov eax, dword [0x591958bc]
mov dword [esp + 0x8e8], esi
mov ecx, 0x22e
mov esi, edx
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax - 1]
test ecx, ecx
je 0x59050dc5
mov eax, ecx
shl eax, 5
sub eax, ecx
lea ecx, [eax + eax*8]
lea eax, [edx + 0x8b8]
shl ecx, 3
push ecx
push eax
push edx
call fcn.5907ce30
add esp, 0xc
mov eax, dword [0x591958bc]
dec eax
test eax, eax
mov dword [0x591958bc], eax
jg 0x59050ddc
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8e8], ebp
call fcn.590a7310
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x59195990
call fcn.59094660
sub esp, 0x8b8
mov ecx, 0x22e
lea esi, [esp + 0x8e4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x11a4], ebp
call fcn.59050f90
mov ecx, dword [0x59195990]
push 0x591949a0
push ecx
call fcn.5907de59
add esp, 8
test eax, eax
je 0x59050f20
mov edx, dword [0x59195990]
push edx
call fcn.590b9b60
add esp, 4
test eax, eax
je 0x59050f20
mov eax, dword [0x59195990]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call esi
mov ecx, dword [0x59195990]
mov edi, 0x59172724
xor eax, eax
mov edx, dword [ecx - 8]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
mov ecx, 0x59195990
push edx
lea edx, [esp + 0x18]
push edx
call fcn.590976b0
mov eax, dword [0x59194a20]
mov ebx, 3
test eax, eax
mov dword [esp + 0x8e8], ebx
je 0x59050ee1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.59099b10
mov ecx, dword [eax]
mov byte [esp + 0x8e8], 4
push ecx
push str.AnalysBufferData_strLeave:_s
push str.winncap
push ebp
push 0x591949b4
call fcn.59078030
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x8e8], bl
call fcn.5909a410
mov edx, dword [esp + 0x14]
push edx
call esi
push 0x591949a0
mov ecx, 0x59195990
call fcn.590952f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x8e8], ebp
call fcn.59095090
jmp 0x59050f20
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x8e8], ebp
call fcn.590a7310
mov eax, dword [0x59194a20]
test eax, eax
je 0x59050f4e
mov eax, dword [0x59195874]
mov ecx, dword [0x59195884]
push eax
push ecx
push str.AnalysBufferData___d__d_
push str.Combine
push ebp
push 0x591949b4
call fcn.59078030
add esp, 0x18
mov eax, dword [0x59195884]
test eax, eax
jg 0x59050f60
mov eax, dword [0x59195874]
test eax, eax
jle 0x59050f65
call fcn.59023680
mov ecx, dword [esp + 0x8e0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8dc
ret
Function at 0x59056130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914331a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
mov edx, eax
mov ebx, dword [esp + 0x18]
shl edx, 4
add edx, eax
mov eax, dword [ecx]
push ebp
push esi
mov ecx, dword [eax + edx*4]
lea ebp, [eax + edx*4]
push edi
mov dword [ebx], ecx
lea esi, [ebp + 4]
lea edi, [ebx + 4]
mov ecx, 6
lea edx, [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x14], 0
call fcn.59099a10
lea eax, [ebp + 0x20]
mov esi, 1
push eax
lea ecx, [ebx + 0x20]
mov dword [esp + 0x20], esi
call fcn.59099a10
lea ecx, [ebp + 0x24]
mov byte [esp + 0x1c], 2
push ecx
lea ecx, [ebx + 0x24]
call fcn.59099a10
lea edx, [ebp + 0x28]
lea ecx, [ebx + 0x28]
push edx
mov byte [esp + 0x20], 3
call fcn.59099a10
lea eax, [ebp + 0x2c]
lea ecx, [ebx + 0x2c]
push eax
mov byte [esp + 0x20], 4
call fcn.59099a10
lea ecx, [ebp + 0x30]
mov byte [esp + 0x1c], 5
push ecx
lea ecx, [ebx + 0x30]
call fcn.59099a10
lea edx, [ebp + 0x34]
lea ecx, [ebx + 0x34]
push edx
mov byte [esp + 0x20], 6
call fcn.59099a10
lea eax, [ebp + 0x38]
lea ecx, [ebx + 0x38]
push eax
mov byte [esp + 0x20], 7
call fcn.59099a10
lea ecx, [ebp + 0x3c]
mov byte [esp + 0x1c], 8
push ecx
lea ecx, [ebx + 0x3c]
call fcn.59094660
mov edx, dword [ebp + 0x40]
mov byte [esp + 0x1c], 9
mov dword [ebx + 0x40], edx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10], esi
pop edi
mov eax, ebx
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x590594c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x591437fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8e0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea eax, [ebx + 0x1c]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.590a72b0
mov ebp, dword [esp + 0x900]
mov edx, dword [esp + 0x904]
sub esp, 0x10
mov eax, dword [esp + 0x918]
mov ecx, esp
xor edi, edi
mov dword [esp + 0x908], edi
mov dword [esp + 0x20], 1
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x91c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, ebx
call fcn.59058d60
mov esi, eax
cmp esi, edi
jne 0x5905960c
mov edx, dword [esp + 0x90c]
mov ecx, 0x233
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x904]
mov ecx, dword [esp + 0x908]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x910]
mov ecx, 0x22e
lea esi, [esp + 0x914]
lea edi, [esp + 0x38]
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 4]
test edx, edx
jne 0x590595ba
push 0x8d8
call fcn.5912c500
mov edx, eax
add esp, 4
test edx, edx
je 0x59059648
jmp 0x590595c6
mov eax, dword [ebx + 0x14]
mov ecx, dword [edx]
dec eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x14], eax
mov dword [edx + 4], 0
mov dword [edx], esi
mov ecx, dword [ebx + 0x10]
lea ebp, [edx + 8]
inc ecx
xor eax, eax
mov dword [ebx + 0x10], ecx
mov ecx, 0x234
mov edi, ebp
test edx, edx
rep stosd dword es:[edi], eax
je 0x59059648
mov ecx, 0x234
lea esi, [esp + 0x20]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x59059604
mov dword [eax + 4], edx
mov dword [ebx + 4], edx
jmp 0x59059648
mov dword [ebx + 8], edx
mov dword [ebx + 4], edx
jmp 0x59059648
mov edx, dword [esp + 0x910]
mov dword [esp + 0x10], edi
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x11ac]
mov edx, dword [esp + 0x11b4]
mov dword [esi], eax
mov eax, dword [esp + 0x938]
mov dword [esi + 0x3c], eax
push ecx
add esi, 0x18
push edx
push esi
call fcn.59066440
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x8f8], 0xffffffff
call fcn.590a7310
mov ecx, dword [esp + 0x8f0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8ec
ret 0x8cc
Function at 0x5905b700
Capabilities:
Get session user name

Disassembly:
sub esp, 0x64
xor eax, eax
push ebx
mov ebx, dword [esp + 0x70]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.590adaf0
test eax, eax
je 0x5905b7c4
push 0x41
push 0
push 1
push str.default
call dword [0x59190d18]
mov esi, eax
test esi, esi
jne 0x5905b74f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x5905b860
push esi
call dword [0x59190cf4]
push esi
call dword [0x59190d24]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jb 0x5905b796
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x84], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x5905b842
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jb 0x5905b814
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x5905b854
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x5905cdc0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59143828
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
test ebp, ebp
je 0x5905cf3e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5905cf3e
push ebp
lea ecx, [esp + 0x10]
call fcn.59094760
push 3
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.59096170
push 2
push 0x59178970
push ebp
mov esi, eax
call fcn.5907e9de
add esp, 0xc
test eax, eax
jne 0x5905ce3d
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.59096170
mov esi, eax
push 0x591949a0
lea ecx, [esp + 0x28]
call fcn.59094760
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp esi, ebp
mov byte [esp + 0x1c], 1
je 0x5905cebe
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.590976b0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call fcn.59095210
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.59095090
mov ecx, dword [esp + 0x24]
push ecx
call edi
cmp eax, ebp
jne 0x5905cea7
mov edx, dword [esp + 0x24]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5905cf23
jmp 0x5905ceab
test al, 0x10
je 0x5905cf23
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.59096170
mov esi, eax
cmp esi, ebp
jne 0x5905ce5d
mov esi, dword [esp + 0xc]
call fcn.590cb350
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x28]
mov edx, ecx
or edx, 0x10
cmp eax, edx
je 0x5905cef1
mov eax, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.59095090
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.59095090
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.59095090
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.59095090
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5905f500
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59143a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
test ebx, ebx
jne 0x5905f52c
test ebp, ebp
jbe 0x5905f5de
mov eax, dword [esp + 0x24]
push esi
lea edx, [esp + 0x20]
push eax
push edx
call fcn.59061cd0
mov eax, dword [esp + 0x20]
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5905f591
push 2
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esp + 0x10], eax
push 0
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push esi
mov ecx, 0x59195ac0
call fcn.5905ecc0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.59095090
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x59062d80
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59143ecf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 8], 0
call fcn.59062710
add esp, 4
test eax, eax
jne 0x59062dda
mov esi, dword [esp + 0x18]
push 0x591959c4
mov ecx, esi
call fcn.59099c70
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [0x5914f850]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0x10], 1
dec ecx
jne 0x59062e3a
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x30]
mov esi, dword [eax + 4]
push ecx
push edx
push ecx
push esi
mov esi, dword [eax + 0x34]
push esi
mov esi, dword [eax + 0x2c]
push esi
push edx
mov edx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
push edx
mov edx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x1c]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
push edx
push eax
push ecx
lea ecx, [esp + 0x5c]
push str.SELECT__s__s__s__s__s__s__s__s__s__s__s__s_FROM__s_WHERE__s____1_OR__s____2_ORDER_BY__s_DESC
push ecx
call fcn.5909d390
add esp, 0x48
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.59099a10
lea ecx, [esp + 0x1c]
mov dword [esp + 4], 1
mov byte [esp + 0x10], 0
call fcn.5909a410
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x59062e80
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59143eff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 8], 0
call fcn.59062710
add esp, 4
test eax, eax
jne 0x59062eda
mov esi, dword [esp + 0x18]
push 0x591959c4
mov ecx, esi
call fcn.59099c70
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [0x5914f850]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0x10], 1
dec ecx
jne 0x59062f17
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 0x34]
push ecx
push ecx
push edx
push edx
mov edx, dword [eax + 4]
push esi
push esi
push edx
push ecx
lea eax, [esp + 0x3c]
push str.SELECT__s_FROM__s_WHERE____s______AND__s___1__OR___s______AND__s___2___AND__s____3_ORDER_BY__s_DESC
push eax
call fcn.5909d390
add esp, 0x28
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.59099a10
lea ecx, [esp + 0x1c]
mov dword [esp + 4], 1
mov byte [esp + 0x10], 0
call fcn.5909a410
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x59062fb0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59143f2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5914f850]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 1
push esi
call fcn.59062f50
mov ecx, esi
add esp, 4
dec ecx
jne 0x59063012
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push str.SELECT__s_FROM__s_WHERE__s___1
push ecx
call fcn.5909d390
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.59099a10
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.5909a410
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x59063190
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59143f7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 1
mov dword [esp + 0xc], 0
call fcn.59063170
add esp, 4
test eax, eax
jne 0x590631e9
mov esi, dword [esp + 0x1c]
push 0x591959c4
mov ecx, esi
call fcn.59099c70
mov dword [esp + 8], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [0x5914f850]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 1
dec ecx
jne 0x59063228
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
lea eax, [esp + 0x18]
push str.SELECT__s__s__s_FROM__s_WHERE__s___1
push eax
call fcn.5909d390
add esp, 0x1c
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.59099a10
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x14], 0
call fcn.5909a410
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret