joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11ee15c0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 1
mov dword [esp + 0x30], 0
call fcn.11ee20d0
add esp, 0x2c
test eax, eax
je 0x11ee16a8
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x11ee1634
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.11f0ebb0
mov edx, dword [0x12135738]
mov ecx, dword [0x1213573c]
add esp, 8
mov dword [0x12134da8], edx
mov edx, dword [0x12135740]
mov dword [0x12134dac], ecx
mov dword [0x12134db0], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x11ee166e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.11ef5070
mov ecx, dword [0x12134fb0]
mov edx, dword [0x12134fb4]
add esp, 8
mov dword [0x12134da8], ecx
mov ecx, dword [0x12134fb8]
mov dword [0x12134dac], edx
mov dword [0x12134db0], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x11ee16ae
call fcn.11f2ad20
mov ecx, dword [0x12135d40]
mov edx, dword [0x12135d44]
add esp, 8
mov dword [0x12134da8], ecx
mov ecx, dword [0x12135d48]
mov dword [0x12134dac], edx
mov dword [0x12134db0], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret

Function at 0x11ee1b30
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x12134fbc]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x11ee1b52
mov eax, dword [0x12135744]
test eax, eax
jne 0x11ee1b52
mov eax, dword [0x12135d4c]
test eax, eax
je 0x11ee1b56
test ebx, ebx
je 0x11ee1b90
mov eax, dword [0x12106c1c]
or esi, 0xffffffff
cmp eax, esi
jne 0x11ee1b90
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x12106c1c], eax
je 0x11ee1b90
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x11ee1b90
mov eax, dword [0x12106c1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x12106c1c], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.11ef5a70
add esp, 0xc
test eax, eax
je 0x11ee1bd3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.11f12150
add esp, 0x10
test eax, eax
je 0x11ee1bd3
push ebx
push esi
push edi
call fcn.11f212d0
add esp, 0xc
test eax, eax
je 0x11ee1bd3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x11ee3b10
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x30], 0
call fcn.11ee20d0
add esp, 0x2c
test eax, eax
je 0x11ee3bf8
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x11ee3b84
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.11f166f0
mov edx, dword [0x12135738]
mov ecx, dword [0x1213573c]
add esp, 8
mov dword [0x12134da8], edx
mov edx, dword [0x12135740]
mov dword [0x12134dac], ecx
mov dword [0x12134db0], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x11ee3bbe
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.11efc240
mov ecx, dword [0x12134fb0]
mov edx, dword [0x12134fb4]
add esp, 8
mov dword [0x12134da8], ecx
mov ecx, dword [0x12134fb8]
mov dword [0x12134dac], edx
mov dword [0x12134db0], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x11ee3bfe
call fcn.11f272d0
mov ecx, dword [0x12135d40]
mov edx, dword [0x12135d44]
add esp, 8
mov dword [0x12134da8], ecx
mov ecx, dword [0x12135d48]
mov dword [0x12134dac], edx
mov dword [0x12134db0], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret
Function at 0x11ee6b40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x11ee6cab
cmp esi, 0xffffffff
je 0x11ee6cab
cmp dword [0x12134db8], ebp
je 0x11ee6cab
mov ecx, dword [0x12134dc0]
cmp ecx, ebp
je 0x11ee6cab
mov eax, dword [0x12134dbc]
cmp eax, ebp
jge 0x11ee6b89
neg eax
cmp ecx, eax
ja 0x11ee6cab
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.11e679bc
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x11ee6ca0
mov ecx, dword [0x12134dc0]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x12134dc0]
mov edi, dword [0x12134dbc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x11ee6c92
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x11ee6c25
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.11f2f1e0
add esp, 0x18
jmp 0x11ee6c37
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x11ee6c92
mov ebx, dword [0x12134d64]
xor edx, edx
test ebx, ebx
jle 0x11ee6c92
mov ebp, dword [0x12134d60]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x11ee6c78
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x11ee6c8a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x11ee6c92
jmp 0x11ee6c5e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.11e679b1
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x11ef3000
Capabilities:
Get file size

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.11ef1560
push eax
call fcn.11ee93d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x11ef3065
mov dword [0x12134fb0], 0xc
mov dword [0x12134fb4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x12134fb8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.11e679bc
mov esi, eax
add esp, 4
test esi, esi
jne 0x11ef30c9
mov dword [0x12134fb0], 0x21
mov dword [0x12134fb4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x12134fb8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x11ef31b3
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x11ef314a
test eax, eax
jne 0x11ef314a
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call fcn.11f2f2e0
add esp, 0x14
test eax, eax
je 0x11ef31c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.11f2fde0
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x11ef31e8
mov dword [0x12134fb0], 0x11
mov dword [0x12134fb4], 0x14cb
jmp 0x11ef31dd
mov dword [0x12134fb0], 0xe
mov dword [0x12134fb4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
push esi
call fcn.11e679b1
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x11ef5070
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x12134fb0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x394]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call fcn.11ef17f0
add esp, 8
test eax, eax
jne 0x11ef50d3
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x11ef50e4
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x11ef6070
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x12134fb0], ebp
call ebx
mov dword [0x12134fb8], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x11ef61ac
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.11efcf60
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x11ef6115
test edi, edi
jne 0x11ef6115
test ebp, ebp
jne 0x11ef6115
test ebx, ebx
jne 0x11ef6115
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x11ef6115
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x11ef61a1
cmp eax, 3
jne 0x11ef61a1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.11f2fd90
add esp, 0xc
test eax, eax
je 0x11ef619d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x11ef6145
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x11ef6150
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x11ef615c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x11ef617b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x11ef618d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x11ef619d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x11ef623d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x11ef623d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x11ef6258
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11ef6236
mov dword [0x12134fb0], 0xd
mov dword [0x12134fb4], 0x29f7
call ebx
mov dword [0x12134fb8], eax
jmp 0x11ef625a
mov edi, 1
jmp 0x11ef625a
mov dword [0x12134fb0], 1
mov dword [0x12134fb4], 0x29ea
call ebx
mov dword [0x12134fb8], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x11ef60be
mov dword [0x12134fb0], 0xf
mov dword [0x12134fb4], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x12134fb8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x11ef6d50
Capabilities:
Timestomp file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11fc50c8
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
mov dword [0x12134fb0], edi
call ebp
mov esi, dword [esp + 0x44]
mov dword [0x12134fb8], eax
cmp esi, edi
je 0x11ef6e83
push esi
call fcn.11e67d05
add esp, 4
test eax, eax
je 0x11ef6e83
mov ebx, dword [esp + 0x48]
cmp ebx, edi
je 0x11ef6e83
push esi
lea ecx, [esp + 0x2c]
call fcn.11f2fc40
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push esi
mov dword [esp + 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x11ef6e05
mov dword [0x12134fb0], 3
mov dword [0x12134fb4], 0x1cfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x28]
mov dword [0x12134fb8], eax
mov dword [esp + 0x3c], ebp
call fcn.11f2fce0
jmp 0x11ef6e9e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x4c]
push eax
push ebx
push esi
call fcn.11ef6ec0
add esp, 0xc
lea ecx, [esp + 0x10]
mov edi, eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], ebp
call fcn.11f2fce0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov dword [0x12134fb0], 1
mov dword [0x12134fb4], 0x1ce7
call ebp
mov dword [0x12134fb8], eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x11ef7430
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.11ef1560
push eax
call fcn.11ee93d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x11ef7495
mov dword [0x12134fb0], 0xc
mov dword [0x12134fb4], 0x1da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x12134fb8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.11e679bc
mov esi, eax
add esp, 4
test esi, esi
jne 0x11ef74f9
mov dword [0x12134fb0], 0x21
mov dword [0x12134fb4], 0x1db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x12134fb8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x11ef75e1
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x11ef757a
test eax, eax
jne 0x11ef757a
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x11ef75f7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.11f2fde0
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x11ef7616
mov dword [0x12134fb0], 0x11
mov dword [0x12134fb4], 0x1dbd
jmp 0x11ef760b
mov dword [0x12134fb0], 0xe
mov dword [0x12134fb4], 0x1dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
push esi
call fcn.11e679b1
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x11ef9310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x12134fb0], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x12134fb8], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
cmp ebp, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
je 0x11ef93c2
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x11ef93c2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x11ef94cc
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11ef93e2
mov dword [0x12134fb0], 0xd
mov dword [0x12134fb4], 0x29f7
call esi
mov dword [0x12134fb8], eax
jmp 0x11ef94cc
mov dword [0x12134fb0], 1
mov dword [0x12134fb4], 0x29ea
call esi
mov dword [0x12134fb8], eax
jmp 0x11ef94cc
mov ecx, 4
mov edi, 0x12106f38
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x11ef93fb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x11ef9420
mov ecx, 4
mov edi, 0x12106f10
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x11ef9418
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x11ef94cc
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x11ef9482
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x11ef94cc
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x2c]
push 0x34
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11ef94a3
mov dword [0x12134fb0], 0xd
mov dword [0x12134fb4], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
jmp 0x11ef94cc
mov dword [0x12134fb0], 1
mov dword [0x12134fb4], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
jmp 0x11ef94cc
mov ecx, dword [esp + 0x400]
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.11efbaf0
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3e0
ret
Function at 0x11efc240
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x12134fb0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x394]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call fcn.11efc380
add esp, 8
test eax, eax
jne 0x11efc2a3
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x11efc2b4
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x11efe520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x11fc5150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x11fd6250]
push esi
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
mov byte [esp + 0x30], 1
call fcn.11efe5d0
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x1c
test eax, eax
je 0x11efe598
mov ecx, dword [esp + 4]
push 0x104
push ecx
push eax
call fcn.11e674bf
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.11e7f280
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.11e7f280
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x11f04340
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e4
push ebx
push ebp
mov ebp, dword [esp + 0x3f0]
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x3fc]
stosw word es:[edi], ax
cmp esi, ebx
stosb byte es:[edi], al
je 0x11f043dd
mov ecx, 0xf8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
test eax, eax
je 0x11f043d0
push 0x10
lea ecx, [esp + 0x18]
push 0x12106ee8
push ecx
call fcn.11e68e80
add esp, 0xc
test eax, eax
je 0x11f043bf
push 0x10
lea edx, [esp + 0x18]
push 0x12106efc
push edx
call fcn.11e68e80
add esp, 0xc
test eax, eax
jne 0x11f043d0
cmp dword [esp + 0x48], ebx
jne 0x11f043d0
cmp dword [esp + 0x70], ebx
jne 0x11f043d0
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x3e4
ret
cmp ebp, 0xffffffff
je 0x11f04452
lea eax, [esp + 0x14]
test eax, eax
je 0x11f04452
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x11f04471
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x14]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x3e0
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11f04387
mov dword [0x12134fb0], 0xd
mov dword [0x12134fb4], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x12134fb8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e4
ret
mov dword [0x12134fb0], 1
mov dword [0x12134fb4], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12134fb8], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e4
ret