joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13a50600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13a9da98
push 0x13a37dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x13a50634
mov ebx, 0x10000
jmp 0x13a5063a
add ebx, 0x10000
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or edi, 0xffffffff
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x13a506e8
cmp dword [ebp - 0x28], 0x1000
jne 0x13a50700
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x13a50700
test ah, 1
jne 0x13a50700
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x40
jbe 0x13a506fd
cmp word [ebx], 0x5a4d
jne 0x13a506fd
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x40], esi
mov ecx, esi
sub ecx, ebx
add ecx, 4
cmp ecx, eax
jb 0x13a506b8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x13a506fd
cmp dword [esi], 0x4550
mov dword [ebp - 4], edi
jne 0x13a50700
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + edx]
jmp 0x13a50649
Function at 0x13a50910
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13a9dab8
push 0x13a37dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x13a50950
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x13a50964
push 0xc1
jmp 0x13a50a58
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x13a5097e
push 0xbf
jmp 0x13a50a58
mov cx, word [eax + 0x14]
cmp cx, di
je 0x13a50a53
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x13a50a53
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.tdetour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x13a509dd
test dl, dl
je 0x13a509d9
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x13a509dd
add ecx, 2
add esi, 2
test dl, dl
jne 0x13a509b9
xor ecx, ecx
jmp 0x13a509e2
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x13a50a3e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x13a50a53
mov edx, dword [eax + 0x10]
test edx, edx
je 0x13a50a53
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x13a50a53
cmp dword [esi + 4], 0x727444
jne 0x13a50a53
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x13a50a1a
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x13a5099b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x13a50ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13a9dad8
push 0x13a37dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
test eax, eax
mov esi, 0x10000
je 0x13a50cd8
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x13a50d18
mov eax, dword [ebp - 0x2c]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x13a50d18
mov edx, dword [ebp - 0x38]
add eax, edx
cmp eax, esi
jae 0x13a50d2d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x28], 0x1000
jne 0x13a50dee
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x13a50dee
test ah, 1
jne 0x13a50dee
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x13a50d7a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x13a50cea
cmp word [ebp - 0x78], 0x5a4d
jne 0x13a50da8
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x13a50da8
cmp eax, 0x40
jb 0x13a50da8
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x13a50db9
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x13a50cea
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
mov dword [ebp - 4], ebx
jne 0x13a50dee
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x13a50cea
Function at 0x13a526e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13a9dae8
push 0x13a37dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x13a52718
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x13a527a6
cmp dword [ebp - 0x28], 0x1000
jne 0x13a52763
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x13a52763
test ah, 1
jne 0x13a52763
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x13a5276e
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x13a5272d
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x13a52763
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x13a529c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13a9db08
push 0x13a37dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x13a52a00
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x13a52a14
push 0xc1
jmp 0x13a52b08
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x13a52a2e
push 0xbf
jmp 0x13a52b08
mov cx, word [eax + 0x14]
cmp cx, di
je 0x13a52b03
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x13a52b03
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.tdetour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x13a52a8d
test dl, dl
je 0x13a52a89
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x13a52a8d
add ecx, 2
add esi, 2
test dl, dl
jne 0x13a52a69
xor ecx, ecx
jmp 0x13a52a92
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x13a52aee
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x13a52b03
mov edx, dword [eax + 0x10]
test edx, edx
je 0x13a52b03
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x13a52b03
cmp dword [esi + 4], 0x727444
jne 0x13a52b03
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x13a52aca
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x13a52a4b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x13a55280
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 0x13a552cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x13a552cb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.13a35db6
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.13a35db6
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x13a55310
test esi, esi
je 0x13a55321
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 0x13a5531d
push esi
call fcn.13a35dab
add esp, 4
test ebx, ebx
jne 0x13a55330
mov edi, dword [edi]
test edi, edi
je 0x13a55330
push edi
call fcn.13a35dab
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x13a62940
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13a9ac80
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.13a1a3b0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.13a1a3b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x13ac94f8]
test eax, eax
je 0x13a629f8
cmp ebp, eax
jne 0x13a629f8
mov eax, dword [0x13ac94fc]
test eax, eax
je 0x13a629f8
cmp ebx, eax
jb 0x13a629f8
add eax, 0x493e0
cmp eax, ebx
jb 0x13a629f8
mov ebp, dword [0x13ac9500]
push 1
inc ebp
push 0x13ac9418
lea ecx, [esp + 0x18]
mov dword [0x13ac9500], ebp
call fcn.13a227c0
push 0x13ac9448
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.13a1a590
push 0x13ac9438
mov ecx, edi
call fcn.13a1a590
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x13a62a6e
push edi
push esi
mov dword [0x13ac9500], 0
call fcn.13a62d70
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x13ac9418
call fcn.13a227c0
push 0xffffffffffffffff
push 0
mov ecx, 0x13ac9448
mov dword [esp + 0x38], 1
mov dword [0x13ac94f8], ebp
mov dword [0x13ac94fc], ebx
call fcn.13a1a3b0
push esi
mov ecx, 0x13ac9448
call fcn.13a1a590
push 0xffffffffffffffff
push 0
mov ecx, 0x13ac9438
call fcn.13a1a3b0
push edi
mov ecx, 0x13ac9438
call fcn.13a1a590
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.13a22820
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x13a62d70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x13a9ace6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.13a1a3b0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.13a1a3b0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x13a62ea9
mov edx, dword [0x13ab8e68]
mov cx, word [0x13ab8e6c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.13a14220
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.13a1a950
mov edx, dword [0x13a9cb24]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.13a14c40
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.13a1a950
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.13a149c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.13a149c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x13a62dcb
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x13a677f0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x13a67885
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x13a6783f
call fcn.13a25a40
test eax, eax
je 0x13a6783f
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x13a6782c
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x13a6782c
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x13a67838
add edi, ebx
mov ebx, 0x10004
jmp 0x13a67841
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x13a67a40
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x13a67885
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x13a67874
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 0x13a678b3
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x13a678c4
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 0x13a67910
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 0x13a67bc2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push 0x80000000
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x13a67c52
cmp eax, ebx
je 0x13a67c52
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x13a67c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x13a67e05
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x13a67f57
xor edx, edx
cmp eax, edx
je 0x13a67f57
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x13a67e3a
cmp eax, ecx
jb 0x13a67e3a
xor ecx, ecx
jmp 0x13a67e3f
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x13a67e59
jg 0x13a67f57
cmp eax, dword [esi + 8]
ja 0x13a67f57
cmp ecx, edx
jne 0x13a67e73
cmp eax, dword [esi + 0x42c]
ja 0x13a67e73
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x13a67eb8
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x13a67e93
cmp edi, edx
jb 0x13a67e93
xor edx, edx
jmp 0x13a67e98
mov edx, 1
cmp ecx, ebx
ja 0x13a67eb8
cmp dword [esp + 0x14], edx
jg 0x13a67eb8
jl 0x13a67ea8
cmp eax, edi
ja 0x13a67eb8
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.13a67f70
test eax, eax
je 0x13a67f57
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x13a67f06
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x7fffffff
push ecx
call edi
cmp eax, 0xffffffff
je 0x13a67f47
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x13a67f47
jmp 0x13a67f16
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x13a67f47
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x13a67f47
cmp dword [edi], ebp
jne 0x13a67f47
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x13a683a0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13a9b0b8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x13a683d2
call fcn.13a55d00
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x13a683e3
mov ecx, 0x80000000
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x13a68438
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x13a6841e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x13a68564
cmp dword [esp + 0x18], ebx
jne 0x13a68438
cmp dword [esp + 0x14], ebx
je 0x13a68564
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x13a68449
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.13a0ec10
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x13a6848f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x13a6848f
call fcn.13a25a00
test eax, eax
je 0x13a6848f
push str.Global_
lea ecx, [esp + 0x14]
call fcn.13a0f8a0
push ebx
lea ecx, [esp + 0x14]
call fcn.13a102b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
je 0x13a6853e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x13a684cb
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x13a6853e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x13a68519
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x13a6851c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x13a68514
mov dword [esi + 0x10], ebx
jmp 0x13a6851c
mov dword [esi + 0x10], ecx
jmp 0x13a6851c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.13a0f640
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.13a0f640
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret