joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590b9fb0
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 0x590b9fcc
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.5907e1f0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.5907c490
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 0x590ba050
cmp byte [esp + 0x10], 0x5c
jne 0x590ba050
cmp byte [esp + 0x11], 0x5c
jne 0x590ba050
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.5907c490
add esp, 8
test eax, eax
je 0x590ba0ce
inc eax
push 0x5c
push eax
call fcn.5907c490
add esp, 8
mov esi, eax
test esi, esi
je 0x590ba0ce
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 0x590ba092
test bl, 1
je 0x590ba081
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 0x590ba104
cmp ebx, 0xffffffff
je 0x590ba09b
test edi, edi
jne 0x590ba0aa
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x590ba104
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.5907c490
mov esi, eax
add esp, 8
test esi, esi
jne 0x590ba054
test ebp, ebp
je 0x590ba104
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x590ba0f9
test al, 0x10
jne 0x590ba104
test al, 1
je 0x590ba0ec
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 0x590ba104
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 0x590ba120
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 0x590ba13c
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.5907b55d
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.5907e8b7
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.5907c6fd
add esp, 0x18
cmp eax, 2
jbe 0x590ba1c1
cmp word [esp + 0x10], di
jne 0x590ba1c1
cmp word [esp + 0x12], di
jne 0x590ba1c1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.5907e8b7
add esp, 8
test eax, eax
je 0x590ba249
add eax, 2
push edi
push eax
call fcn.5907e8b7
add esp, 8
mov esi, eax
test esi, esi
je 0x590ba249
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 0x590ba209
test bl, 1
je 0x590ba1f8
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 0x590ba27f
cmp ebx, 0xffffffff
je 0x590ba212
test edi, edi
jne 0x590ba221
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x590ba27f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.5907e8b7
mov esi, eax
add esp, 8
test esi, esi
jne 0x590ba1c9
test ebp, ebp
je 0x590ba27f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x590ba274
test al, 0x10
jne 0x590ba27f
test al, 1
je 0x590ba267
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 0x590ba27f
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 0x590ba970
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x154
push ebx
mov ebx, dword [esp + 0x15c]
push ebp
mov ebp, dword [esp + 0x164]
push esi
mov esi, dword [esp + 0x16c]
mov eax, 0x1f3
push esi
sub eax, ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x590ba9b9
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret
push edi
mov dword [esp + 0x10], 1
mov eax, dword [esi]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x590bab21
mov al, byte [esi + 0x2c]
lea edx, [esi + 0x2c]
cmp al, 0x2e
jne 0x590ba9f4
mov al, byte [esi + 0x2d]
test al, al
je 0x590bab49
cmp al, 0x2e
jne 0x590ba9f4
mov al, byte [esi + 0x2e]
test al, al
je 0x590bab49
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
mov dword [esp + 0x1c], ecx
inc ecx
cmp eax, ecx
jb 0x590bab49
add ebp, ebx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 1], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x174]
and ecx, 3
test dl, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x590baa6c
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0
push ebx
call dword [esp + 0x188]
mov edx, dword [esp + 0x174]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x590baad8
test dl, 0x40
jne 0x590baad8
mov esi, dword [esp + 0x1c]
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0
mov byte [esi + ebp - 1], 0x5c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
push eax
mov eax, dword [esp + 0x170]
push ecx
push edx
lea edx, [esp + 0x30]
lea ecx, [esi + eax + 1]
push edx
push ecx
mov byte [esi + ebp], 0x2a
push ebx
mov byte [esi + ebp + 1], 0
call fcn.590ba970
mov edx, dword [esp + 0x18c]
add esp, 0x18
mov dword [esp + 0x10], eax
jmp 0x590baadc
mov esi, dword [esp + 0x1c]
test dl, 0x20
je 0x590bab09
mov eax, dword [esp + 0x10]
test eax, eax
je 0x590bab09
mov edx, dword [esp + 0x17c]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push ebx
mov byte [esi + ebp - 1], 0
call dword [esp + 0x188]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x170]
mov byte [ebp - 1], 0x2a
mov byte [ebp], 0
mov ebp, dword [esp + 0x16c]
jmp 0x590bab49
mov ecx, dword [esp + 0x17c]
lea edx, [esi + 0x2c]
push ecx
push eax
push edx
push ebx
mov byte [ebx + ebp - 2], 0
call dword [esp + 0x188]
mov byte [ebx + ebp - 2], 0x5c
mov dword [esp + 0x10], eax
mov byte [ebx + ebp - 1], 0x2a
mov edi, dword [esp + 0x10]
test edi, edi
je 0x590bab65
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x590ba9c2
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret
Function at 0x590beed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59146cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x590bef2a
push 0x59184af4
call fcn.590c99d0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x6400000
jbe 0x590bef39
push 0x59184ad8
jmp 0x590bef0d
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.5912c500
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
push edi
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp + 8]
je 0x590bef7c
push edi
call fcn.5912c529
add esp, 4
push 0x59184ac8
jmp 0x590bef0d
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.590befb0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x590c1bb0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5914710f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
add esi, 2
call fcn.590a6880
mov eax, dword [edi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.590c3e70
push 0x591959c4
lea ecx, [esp + 0x38]
call fcn.59099c70
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x590c1c68
test esi, esi
je 0x590c1c35
push str._r_n_r_n
lea ecx, [esp + 0x38]
call fcn.5909b060
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.590c85c0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.5909b0c0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.5909a410
inc esi
cmp esi, edi
jl 0x590c1c23
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.59099a10
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.5909a410
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.590a6890
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x590c2390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59147200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.590a6880
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0xc]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.590c3e70
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp ebp, eax
jl 0x590c2404
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.590a6890
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x2c]
push edi
push eax
mov esi, dword [edx + ebp*4]
mov ecx, esi
call fcn.590c93c0
mov edi, dword [esp + 0x34]
push eax
mov ecx, edi
mov byte [esp + 0x2c], 1
call fcn.5909a5a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.5909a410
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x590c244f
push ebp
push str.Data__03d
push edi
call fcn.5909d390
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esi
push edx
mov dword [esp + 0x10], 0
call fcn.590c96d0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
push edx
mov dword [ecx], eax
call fcn.5912c529
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.590a6890
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x590c2510
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59147238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.590a6880
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.590c3e70
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x590c25d5
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.590c78c0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x590c257b
push 0x59184dd0
jmp 0x590c25cd
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.590c96d0
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x590c25fb
mov eax, dword [esp + 8]
push eax
call fcn.5912c529
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x59184dc0
call fcn.590c99d0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.590a6890
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.5912c529
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.590a6890
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x590c6160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914796f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
call fcn.590c4bf0
test eax, eax
jne 0x590c6278
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.590c4bf0
test eax, eax
jne 0x590c6278
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.590c5030
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 1
push ecx
mov ecx, edi
call fcn.590c5030
push eax
lea edx, [esp + 0x18]
push 0x5917286c
push edx
mov byte [esp + 0x34], 2
call fcn.5909ad60
push 0x5918512c
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 3
push eax
call fcn.5909ab80
push esi
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x34], 4
call fcn.5909a9b0
mov esi, dword [esp + 0x30]
push 0x591734f4
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.5909ab80
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 4
call fcn.5909a410
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.5909a410
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.5909a410
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.5909a410
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.5909a410
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.590c5030
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x590c7e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59147b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5914f850]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x5914f850]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x5914f850]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.590c49c0
mov eax, dword [0x5914f850]
mov dword [esi + 0x20], eax
mov ecx, dword [0x5914f850]
mov dword [esi + 0x24], ecx
mov edx, dword [0x5914f850]
mov dword [esi + 0x28], edx
mov eax, dword [0x5914f850]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x5914f850]
mov dword [esi + 0x30], ecx
mov edx, dword [0x5914f850]
mov dword [esi + 0x34], edx
push 0x591959c4
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.5909a690
push 0x591959c4
mov ecx, edi
call fcn.5909a690
push 0x591959c4
mov ecx, ebx
call fcn.5909a690
mov ecx, ebp
call fcn.590c4bb0
push 0x591959c4
lea ecx, [esi + 0x20]
call fcn.5909a690
push 0x591959c4
lea ecx, [esi + 0x24]
call fcn.5909a690
push 0x591959c4
lea ecx, [esi + 0x28]
call fcn.5909a690
push 0x591959c4
lea ecx, [esi + 0x2c]
call fcn.5909a690
push 0x591959c4
lea ecx, [esi + 0x30]
call fcn.5909a690
push 0x591959c4
lea ecx, [esi + 0x34]
call fcn.5909a690
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x590c8340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59147d61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x5914fda0
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x590c838b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x590c8386
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x590c8376
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.590c4370
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x590c83ad
push edi
call fcn.5912c529
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x5914fd9c
call fcn.5909a410
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.5909a410
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.5909a410
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.5909a410
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.5909a410
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.5909a410
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.5909a410
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.590c4a70
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.5909a410
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.5909a410
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.5909a410
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x590c97a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59148018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x590c9815
mov eax, dword [esi + 0x48]
test eax, eax
je 0x590c9815
cmp ecx, eax
ja 0x590c9815
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.5912c500
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x590c99a8
mov ecx, esi
call fcn.590c84a0
cmp eax, 3
je 0x590c9970
cmp eax, 4
je 0x590c9970
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.590c78c0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x590c9865
push 0x59184aa8
call fcn.590c99d0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x590c989e
push 0x59184d80
call fcn.590c99d0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.5912c500
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x590c9908
push 0x59184ac8
call fcn.590c99d0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.5912c529
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.590c6760
add esp, 0x10
test eax, eax
jne 0x590c9950
push 0x59184e30
call fcn.590c99d0
push esi
call fcn.5912c529
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.5912c529
add esp, 4
jmp 0x590c99a8
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.590c85c0
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.590c6570
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.5909a410
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x590ca8f0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x590ca93b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x590ca93b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.5912c500
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.5912c500
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x590ca980
test esi, esi
je 0x590ca991
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x590ca98d
push esi
call fcn.5912c529
add esp, 4
test ebx, ebx
jne 0x590ca9a0
mov edi, dword [edi]
test edi, edi
je 0x590ca9a0
push edi
call fcn.5912c529
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret