joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ded80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x63c888
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
push 0
mov edi, ecx
push esi
push 0x66fea8
lea ecx, [edi + 0x64]
call fcn.004021b0
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push eax
push esi
push str._s.cdb2
lea ecx, [esp + 0x18]
call fcn.004021b0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5dedfd
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.005e3140
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061807e
add esp, 0x1c
ret 8

Function at 0x5df440
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x65ff28
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.00421370
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x10]
call fcn.00402500
mov byte [esp + 0x5c], 1
xor ebp, ebp
cmp dword [esi + 0x60], ebp
jle 0x5df4f8
lea esp, [esp]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.005dee40
test al, al
je 0x5df4f2
mov edi, dword [esp + 0x1c]
mov eax, edi
test edi, edi
jne 0x5df4c6
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5df4d0
sub eax, edx
sar eax, 1
je 0x5df4f2
mov eax, edi
test edi, edi
jne 0x5df4eb
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5df4a0
lea ecx, [esi + 0x70]
call fcn.005ddf30
lea ecx, [esi + 0x50]
call fcn.005de2d0
cmp byte [esp + 0x64], 0
mov dword [esi + 0x60], 0
je 0x5df52a
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x5df520
lea eax, [esi + 0x68]
push 0
push eax
mov ecx, esi
call fcn.005ded80
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5df54f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004213f0
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0061807e
add esp, 0x50
ret 4
Function at 0x5df580
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x65ff70
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
call fcn.00421370
xor ebx, ebx
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x6c], 1
xor ebp, ebp
cmp dword [esi + 0x60], ebx
jle 0x5df629
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.005dee40
test al, al
je 0x5df623
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp edi, ebx
jne 0x5df5fe
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5df601
sub eax, edx
sar eax, 1
je 0x5df623
mov eax, edi
cmp edi, ebx
jne 0x5df61c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [esi + 0x60]
jl 0x5df5d8
lea ecx, [esi + 0x70]
call fcn.005ddf30
lea ecx, [esi + 0x50]
call fcn.005de2d0
lea ecx, [esi + 8]
mov dword [esi + 0x60], ebx
call fcn.005e3040
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], dx
mov byte [esp + 0x6c], 2
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x5df662
lea eax, [esi + 0x68]
push ebx
push eax
push str._s.cdb2
lea ecx, [esp + 0x28]
call fcn.004021b0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x5df67e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x1c]
call fcn.00401210
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5df6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004213f0
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0061807e
add esp, 0x5c
ret
Function at 0x5dfca0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x65ffee
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.0061b017
add esp, 0x24
test eax, eax
jne 0x5dfdd3
test byte [0x7568cc], 1
jne 0x5dfd51
or dword [0x7568cc], 1
mov dword [esp + 0x48], eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x7568c8], eax
test eax, eax
je 0x5dfd3f
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7568c4], eax
mov dword [0x7568c0], 1
test eax, eax
jne 0x5dfd49
mov dword [0x7568c0], 0
mov dword [esp + 0x48], 0xffffffff
or esi, 0xffffffff
or edi, esi
cmp dword [0x7568c0], 0
je 0x5dfd87
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call dword [0x7568c4]
test eax, eax
je 0x5dfdba
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x5dfdba
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5dfdba
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x58]
jg 0x5dfdd3
jl 0x5dfdc8
cmp esi, dword [esp + 0x54]
ja 0x5dfdd3
and esi, edi
cmp esi, 0xffffffff
je 0x5dfdd3
xor al, al
jmp 0x5dfdd5
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0061807e
add esp, 0x40
ret
Function at 0x5e12e0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.006197b0
push 0xffffffffffffffff
push 0x6600f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x1900c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005dfc90
mov ecx, esi
call fcn.005e0fb0
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e1435
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [ebp + 4], ax
mov byte [ebp - 4], 1
add esi, 0xb8
push ebx
push edi
mov ecx, esi
call fcn.0043b810
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e137e
lea eax, [ebp + 4]
push 0x6b139c
push eax
call fcn.005d90f0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x5e149d
push 0x67bb3c
push edi
mov ecx, esi
call fcn.0043b810
push eax
call fcn.0061ad4d
add esp, 8
mov esi, eax
test esi, esi
jne 0x5e13d0
push ebx
call fcn.005d8dc0
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e1496
lea eax, [ebp + 4]
jmp 0x5e1496
push esi
call fcn.0062031c
add esp, 4
test eax, eax
jne 0x5e1478
push esi
push 0x19000
push 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.0061d068
mov edi, eax
push esi
call fcn.00620350
add esp, 0x14
test eax, eax
je 0x5e145a
push ebx
call fcn.005d8dc0
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e1414
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0061aa27
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1900c]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5e1470
push edi
lea edx, [ebp + 0xc]
push edx
push ebx
call fcn.005d8be0
add esp, 0xc
cmp eax, edi
jne 0x5e1401
mov edi, dword [ebp - 0x18]
jmp 0x5e13d0
push ebx
call fcn.005d8dc0
push esi
call fcn.0061aa27
add esp, 8
push edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xb8
call fcn.0043b810
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x14]
jmp 0x5e1338
Function at 0x5e14e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.006197b0
push 0xffffffffffffffff
push 0x660128
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x1900c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005e0fb0
xor edi, edi
mov dword [ebp - 0x14], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e15ee
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [ebp + 4], ax
mov byte [ebp - 4], 1
add esi, 0xb8
push ebx
push edi
mov ecx, esi
call fcn.0043b810
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e1577
lea eax, [ebp + 4]
push 0x67bb3c
push eax
call fcn.005d90f0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x5e15b8
call fcn.0061d894
push edi
mov ecx, esi
call fcn.0043b810
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e15dd
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00401210
inc edi
mov esi, dword [ebp - 0x18]
jmp 0x5e1531
push 0x6734ac
push edi
mov ecx, esi
call fcn.0043b810
push eax
call fcn.0061ad4d
add esp, 8
mov edi, eax
test edi, edi
jne 0x5e1613
push ebx
call fcn.005d8dc0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1900c]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005d8d30
add esp, 4
test eax, eax
jne 0x5e16d9
push 0x19000
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.005d9110
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e165c
push edi
call fcn.0061aa27
push ebx
call fcn.005d8dc0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
or eax, esi
jmp 0x5e15ee
test esi, esi
jle 0x5e1613
push edi
push esi
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.0061ac05
add esp, 0x10
cmp eax, esi
je 0x5e1613
call fcn.0061d894
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x2800]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xb8
call fcn.0043b810
push eax
call fcn.005dfca0
add esp, 0xc
test al, al
mov esi, 0x755f
je 0x5e16ae
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.005d8dc0
push edi
call fcn.0061aa27
add esp, 8
test esi, esi
jne 0x5e16c6
mov esi, 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, esi
jmp 0x5e15ee
push ebx
call fcn.005d8dc0
push edi
call fcn.0061aa27
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne 0x5e16f2
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov edi, dword [ebp - 0x14]
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x18]
jmp 0x5e1531
Function at 0x5e1760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63c888
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
push 0
mov esi, ecx
push edi
push 0x66fea8
lea ecx, [esi + 0xac]
call fcn.004021b0
cmp byte [esp + 0x30], 0
je 0x5e17bb
mov ecx, esi
call fcn.005e14e0
test eax, eax
jne 0x5e1813
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push eax
push edi
push str._s.pdb
lea ecx, [esp + 0x18]
call fcn.004021b0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5e17f2
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [esi + 0x50]
call fcn.005e3140
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061807e
add esp, 0x1c
ret 8

Function at 0x5e18d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x64c8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005dfc90
mov ecx, esi
call fcn.005e0fb0
xor ebp, ebp
cmp dword [esi + 0xbc], ebp
jle 0x5e199e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi]
add eax, edi
test ecx, ecx
jne 0x5e1938
lea ecx, [eax + 4]
push ecx
call ebx
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], ax
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, edx
jne 0x5e1962
lea ecx, [eax + 4]
push edx
push ecx
push str._s.z
lea ecx, [esp + 0x20]
call fcn.004021b0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5e197e
lea eax, [esp + 0x18]
push eax
call ebx
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401210
inc ebp
add edi, 0xc
cmp ebp, dword [esi + 0xbc]
jl 0x5e1926
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061807e
add esp, 0x1c
ret
Function at 0x5e2e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x5e2eb9
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x24]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8

Function at 0x5e2ee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov bl, byte [esp + 0x20]
push esi
mov esi, ecx
test bl, bl
je 0x5e2ef9
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x5e2f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e2f46
test bl, bl
je 0x5e2f3c
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e2f2e
test bl, bl
je 0x5e2f73
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
Function at 0x5e2f80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
cmp eax, dword [esp + 0x14]
push esi
mov esi, ecx
jg 0x5e3020
push ebx
push ebp
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x20]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x5e2fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e2fec
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
or edx, eax
pop esi
add esp, 8
ret 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
je 0x5e2fd7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 8
ret 0x14
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.005e2e50
pop esi
add esp, 8
ret 0x14

Function at 0x5e3080
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x5e30d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e30d7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x5e30c7
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
Function at 0x5e3140
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005e3040
mov ebp, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
cmp byte [esp + 0x18], al
push 0
setne al
push 0
lea eax, [eax + eax + 2]
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x5e318a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
jne 0x5e31bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.005e3040
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp byte [esp + 0x18], 0
je 0x5e3211
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp eax, 0xffffffff
jne 0x5e31f2
cmp dword [esi + 0xc], 0
jne 0x5e31f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x5e31ab
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.0061cd30
add dword [esi + 8], eax
pop edi
adc dword [esi + 0xc], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x5ed788
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x660583
call fcn.00620978
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5ed7ad
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x5ed7f3
lea ecx, [ebp - 0x10]
call fcn.00402500
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005ec4a0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011f0
mov eax, esi
call fcn.00620a50
ret 8

Function at 0x5ee53a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.005f4aa9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5ee573
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.005ee18b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x5ee5d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x5ee5f5
cmp dword [edi + 0x54], 0
jne 0x5ee5f5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.005f4aa9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.005ee592
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5f40bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x5f4103
call fcn.005f4aa9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5f4103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5f411f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.005f3c36
mov esi, eax
test edi, edi
je 0x5f411d
test ebx, ebx
je 0x5f411d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4