joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ef4d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x100ef4e8
mov edx, dword [esi]
mov ecx, edx
mov dword [esp + 0x20], 0
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ef504
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.1001a860
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x24]
test eax, eax
sete bl
cmp edx, 8
jb 0x100ef572
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100ef568
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ef59b
push edx
push ecx
call fcn.1007306e
add esp, 8
test bl, bl
jne 0x100ef592
cmp dword [esi + 0x14], 8
jb 0x100ef57e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100ef592
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10080da8
int3

Function at 0x100ef9e0
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x10155e7c]
sub esp, 0x620
push esi
mov esi, ecx
test edx, edx
je 0x100efa23
cmp esi, 0x10155e6c
je 0x100efafc
cmp dword [0x10155e80], 8
mov eax, 0x10155e6c
push edx
cmovae eax, dword [0x10155e6c]
push eax
call fcn.1001a860
mov al, 1
pop esi
add esp, 0x620
ret
push 0x20c
lea eax, [esp + 8]
push 0
push eax
call fcn.10077450
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x100efb06
xor eax, eax
push 0x412
push eax
mov word [esp + 0x216], ax
lea eax, [esp + 0x218]
push eax
call fcn.10077450
add esp, 0xc
lea eax, [esp + 0x210]
push 0x208
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x100efad9
test eax, eax
je 0x100efad9
xor ecx, ecx
mov word [esp + eax*2 + 0x210], cx
lea ecx, [esp + 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100efab0
sub ecx, edx
lea eax, [esp + 0x210]
sar ecx, 1
push ecx
mov ecx, esi
push eax
call fcn.1001a860
mov al, 1
pop esi
add esp, 0x620
ret
lea ecx, [esp + 4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100efae0
sub ecx, edx
lea eax, [esp + 4]
sar ecx, 1
push ecx
mov ecx, esi
push eax
call fcn.1001a860
mov al, 1
pop esi
add esp, 0x620
ret
xor al, al
pop esi
add esp, 0x620
ret
Function at 0x100f0700
Capabilities:
Compare security identifiers

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
push edi
push ebx
push ecx
mov edi, edx
call ebp
test eax, eax
jne 0x100f0738
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x100f0731
nop
push ebx
push dword [esi]
call ebp
test eax, eax
jne 0x100f0738
add esi, 4
cmp esi, dword [edi + 4]
jne 0x100f0720
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov dl, 1
sub eax, 0
je 0x100f077b
sub eax, 1
jne 0x100f07a4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x100f07a4
mov esi, dword [esp + 0x18]
nop dword [eax]
test dword [eax], esi
je 0x100f0772
add eax, 4
cmp eax, ecx
jne 0x100f0760
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
ret
pop edi
pop esi
xor dl, dl
pop ebp
mov al, dl
pop ebx
ret
mov ecx, dword [esp + 0x20]
xor dl, dl
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x100f07a4
mov esi, dword [esp + 0x18]
nop
test dword [eax], esi
jne 0x100f07a2
add eax, 4
cmp eax, ecx
jne 0x100f0790
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
ret
mov dl, 1
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
ret
Function at 0x100f0a50
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
xor bl, bl
mov dword [esp + 8], 0
push edi
mov dword [esp + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esp + 0x14], 1
jb 0x100f0a80
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push dword [esp + 0x14]
call fcn.100997d2
mov ecx, dword [esp + 0x14]
mov edi, eax
add ecx, ecx
push ecx
call fcn.100997d2
add esp, 8
mov ebp, eax
test edi, edi
je 0x100f0b1c
test ebp, ebp
je 0x100f0b29
cmp dword [esi + 0x14], 8
jb 0x100f0ac9
mov esi, dword [esi]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x100f0b1c
push edi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push esi
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
test ebp, ebp
je 0x100f0b29
push ebp
call fcn.10080f14
add esp, 4
pop ebp
test edi, edi
je 0x100f0b37
push edi
call fcn.10080f14
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret
Function at 0x100f4200
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
xorps xmm0, xmm0
mov dword [esp], 0x3c
push esi
mov esi, edx
movlpd qword [esp + 8], xmm0
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x100f4294
cmp dword [esp + 0x20], 0x20
seta al
add esp, 0x3c
ret
xor al, al
add esp, 0x3c
ret

Function at 0x100f4470
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x20c
push esi
push edi
push 0x208
lea eax, [esp + 0x10]
mov edi, ecx
push 0
push eax
mov esi, edx
mov dword [esp + 0x14], edi
call fcn.10077450
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
test eax, eax
jne 0x100f44d1
push eax
push 0x10136fb4
mov ecx, edi
mov word [edi], ax
call fcn.1001a860
mov eax, edi
pop edi
pop esi
add esp, 0x20c
ret
xor eax, eax
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f44e0
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1001a860
mov eax, edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x100f4c60
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
mov eax, dword [0x101599f0]
sub esp, 0x138
push edi
mov edi, ecx
test eax, eax
jne 0x100f4ca9
push 0x118
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10077450
add esp, 0xc
mov dword [esp + 0x20], 0x11c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100f4d6c
mov eax, dword [esp + 0x24]
mov dword [0x101599f0], eax
cmp eax, 5
jbe 0x100f4d6c
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100f4cd4
call esi
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x100f4d00
call esi
push eax
push str.LookupPrivilegeValue_error:__u_n
call fcn.10030a20
add esp, 8
jmp 0x100f4d60
mov eax, dword [esp + 0x10]
push 0
push 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 0
push ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100f4d4a
call esi
push eax
push str.AdjustTokenPrivileges_error:__u_n
call fcn.10030a20
add esp, 8
jmp 0x100f4d60
call esi
cmp eax, 0x514
jne 0x100f4d60
push str.The_token_does_not_have_the_specified_privilege.__n
call fcn.10030a20
add esp, 4
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
push dword [esp + 0x140]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
pop edi
add esp, 0x138
ret
Function at 0x100f51b0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp], eax
cmp eax, 1
jne 0x100f5217
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
cmp eax, 1
sete al
add esp, 0x10
ret
Function at 0x100f8cc0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x100f8d35
cmp edi, 1
jl 0x100f8d35
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x28]
push 0x40
xorps xmm0, xmm0
push 0
push eax
movups xmmword [esi], xmm0
call fcn.10077450
push edi
mov edx, ebx
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.10113320
add esp, 0x10
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.10113190
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x100fb9f0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122cb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x10], edx
or ebx, 0x4000000
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x18], esi
push 4
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push esi
mov dword [ebp + 0xc], 0x7d0
call edi
push 4
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 3
push eax
push 3
push esi
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
sub esp, 8
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.100faff0
add esp, 0x18
mov bl, al
test esi, esi
je 0x100fba9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100fd370
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10122e0d
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov ebx, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x100fd3b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push 0x10155e60
push 2
push edi
call esi
push 4
push 0x10155e64
push 3
push edi
call esi
mov eax, dword [0x101599a8]
mov dword [ebp - 0x10], 0x101599a8
test eax, eax
je 0x100fd3ee
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10155e84
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.1001cdf0
mov eax, dword [0x101599a8]
test eax, eax
je 0x100fd412
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
jne 0x100fd426
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x100fd448
push 0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.100e3490
add esp, 4
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x100fd450
mov ebx, dword [ebx]
push 0
push 0x84000000
push 0xffffffffffffffff
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp dword [ebp - 0x10], 0
mov esi, eax
je 0x100fd4b0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100fd49e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100fd494
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fd516
push edx
push ecx
call fcn.1007306e
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x100fd4bf
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x100fd4cd
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100fd503
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fd4f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fd51b
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10080da8
call fcn.10080da8
int3
Function at 0x10107fa0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
je 0x10107fe2
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10107fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10107fe2
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop ecx
ret 4
xor al, al
pop esi
pop ecx
ret 4

Function at 0x10109e40
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x10109e59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esi + 0x2c]
cmp ecx, 0xffffffff
je 0x10109e7b
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x10109e6c
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x2c], 0xffffffff
pop esi
ret

Function at 0x10113550
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ecx]
push ebx
push esi
push edi
test eax, eax
je 0x1011361a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1011361a
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
add dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
cmp ecx, dword [esi + 4]
je 0x1011360d
mov ebx, dword [esi + 0xc]
mov edi, ecx
sub edi, dword [esi + 0x18]
cmp edi, 0x3e8
jbe 0x101135d5
mov eax, ebx
mov dword [esi + 0x18], ecx
sub eax, dword [esi + 0x1c]
xor edx, edx
div edi
mov dword [esi + 0x1c], ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10140ce0]
movsd qword [esi + 0x10], xmm0
mov eax, ecx
movd xmm1, ebx
sub eax, dword [esi]
cvtdq2pd xmm1, xmm1
shr ebx, 0x1f
mov dword [esi + 4], ecx
movd xmm0, eax
addsd xmm1, qword [ebx*8 + 0x10140ce0]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10140ce0]
divsd xmm1, xmm0
movsd qword [esi + 0x20], xmm1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10114350
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123dd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x24]
push 0
call fcn.100e3490
add esp, 4
mov dword [ebp - 4], 0
lea edi, [ebp - 0x24]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebp - 0x14]
add ecx, 0x30
cmp dword [ebp - 0x10], 0x10
mov esi, eax
mov dword [ebp + 0xc], eax
cmovae edi, dword [ebp - 0x24]
test eax, eax
jne 0x101143b9
mov esi, edi
cmp byte [edi], al
je 0x101143b6
nop word [eax + eax]
inc esi
cmp byte [esi], 0
jne 0x101143b0
sub esi, edi
inc esi
push esi
call fcn.1004db30
mov edx, eax
test edi, edi
je 0x101143de
test esi, esi
je 0x101143de
mov ecx, edx
sub edi, edx
nop dword [eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x101143d0
test edx, edx
je 0x1011440b
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x30]
push 0
push edx
push 0
add ecx, 0x30
push 4
call fcn.1004c040
test eax, eax
je 0x1011440b
mov ecx, dword [ebp + 8]
push eax
test ecx, ecx
jne 0x10114406
mov ecx, dword [ebx + 0x30]
call fcn.1004c370
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
cmp edx, 0x10
jb 0x1011443e
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10114434
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011444e
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.10080da8
int3
Function at 0x10114c10
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123e43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x24]
push 0
call fcn.100e3490
add esp, 4
mov dword [ebp - 4], 0
lea edi, [ebp - 0x24]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebp - 0x14]
add ecx, 0x30
cmp dword [ebp - 0x10], 0x10
mov esi, eax
mov dword [ebp + 0xc], eax
cmovae edi, dword [ebp - 0x24]
test eax, eax
jne 0x10114c79
mov esi, edi
cmp byte [edi], al
je 0x10114c76
nop word [eax + eax]
inc esi
cmp byte [esi], 0
jne 0x10114c70
sub esi, edi
inc esi
push esi
call fcn.1004db30
mov edx, eax
test edi, edi
je 0x10114c9e
test esi, esi
je 0x10114c9e
mov ecx, edx
sub edi, edx
nop dword [eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x10114c90
test edx, edx
je 0x10114cd6
mov ecx, dword [ebx + 0x30]
push 0
push dword [ebp + 0xc]
add ecx, 0x30
push 0
push edx
push 1
call fcn.1004c040
mov esi, eax
test esi, esi
je 0x10114cd6
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x10114ccc
call fcn.1004c370
jmp 0x10114cd8
mov ecx, dword [ebx + 0x30]
call fcn.1004c370
jmp 0x10114cd8
xor esi, esi
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x10114d08
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10114cfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10114d1d
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.10080da8
int3
Function at 0x10114d30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123e55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x24]
push 0
call fcn.100e3490
add esp, 4
mov dword [ebp - 4], 0
lea edi, [ebp - 0x24]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebp - 0x14]
add ecx, 0x30
cmp dword [ebp - 0x10], 0x10
mov esi, eax
mov dword [ebp + 8], eax
cmovae edi, dword [ebp - 0x24]
test eax, eax
jne 0x10114d99
mov esi, edi
cmp byte [edi], al
je 0x10114d96
nop word [eax + eax]
inc esi
cmp byte [esi], 0
jne 0x10114d90
sub esi, edi
inc esi
push esi
call fcn.1004db30
mov edx, eax
test edi, edi
je 0x10114dbe
test esi, esi
je 0x10114dbe
mov ecx, edx
sub edi, edx
nop dword [eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x10114db0
test edx, edx
je 0x10114e1a
mov ecx, dword [ebx + 0x30]
push 0
push dword [ebp + 8]
add ecx, 0x30
push 0
push edx
push 1
call fcn.1004c040
mov esi, eax
test esi, esi
je 0x10114e1a
mov ecx, dword [ebx + 0x30]
cmp dword [ecx + 0x18], 0
je 0x10114e01
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x2c], esi
mov dword [ecx + 0x1c], esi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x2c], 0
jmp 0x10114e1c
mov dword [esi + 0x28], 0
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], esi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x2c], 0
jmp 0x10114e1c
xor esi, esi
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x10114e4c
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10114e42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10114e61
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.10080da8
int3
Function at 0x10116330
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10123f19
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
cmp esi, eax
je 0x1011636d
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x10116364
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1001a860
cmp dword [esi + 0x10], 0
je 0x101163ae
mov dword [ebp - 0x20], vtable.KKRt::GMFile.0
mov dword [ebp - 0x1c], 0xffffffff
push ecx
push 3
push 1
push 0xc0000000
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10108120
test al, al
jne 0x101163c2
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x101163ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x1c]
push ebx
cmp esi, 0xffffffff
je 0x10116477
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101163f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101163f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10116477
mov ecx, dword [ebp + 8]
xor eax, eax
add eax, ebx
mov dword [ebp - 0x10], eax
adc ecx, 0
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x20]
lea esi, [eax + 1]
push esi
call fcn.1001bc00
push esi
push 0
push dword [edi + 0x28]
call fcn.10077450
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
push esi
push dword [edi + 0x28]
call fcn.10107ff0
test al, al
je 0x1011646f
xor eax, eax
cmp dword [ebp - 0x14], esi
jne 0x1011646f
cmp eax, dword [ebp - 0x18]
jne 0x1011646f
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x28]
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.10108210
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
call fcn.10108210
mov ecx, dword [ebp - 0xc]
xor al, al
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4020d0
Capabilities:
Manipulate console buffer

Disassembly:
pushal
cmp byte [0x405310], 0
jne 0x4020df
call fcn.004025ff
movzx ax, dl
mov word [0x405ba7], ax
movzx ax, dh
mov word [0x405ba9], ax
push dword [0x405ba7]
push dword [0x406118]
call sub.KERNEL32.dll_SetConsoleCursorPosition
popal
ret