joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004e50
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ba28
push 0x1001bd80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x10004eef
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x10004eef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx], 0x4550
jne 0x10004eef
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x10004ee3
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x88]
mov dword [ebp - 0x20], eax
jmp 0x10004eef
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x78]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
jmp 0x10004f08
cmp dword [ebp - 0x20], 0
je 0x10004fcd
mov dword [ebp - 0x2c], 0
jmp 0x10004f24
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x14]
jae 0x10004fcd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jne 0x10004fc8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.10004db0
test eax, eax
je 0x10004fc6
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + ecx*4]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x38]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004fb5
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 4
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10004fc6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.10004db0
jmp 0x10004fcd
jmp 0x10004f1b
mov dword [ebp - 4], 0xffffffff
jmp 0x10004ff9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10005020
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x10005129
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x10005129
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x10005129
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x50]
jae 0x10005129
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
je 0x10005129
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x10005129
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x10005129
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 0x50]
jae 0x10005129
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x10]
je 0x10005129
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x1000511b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0xc]
jne 0x10005110
lea edx, [ebp - 0x18]
push edx
push 0x40
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005110
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x100050cc
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov dword [ebp - 0x10], ecx
jmp 0x1000508d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005380
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.10006b80
test eax, eax
je 0x10005396
xor eax, eax
jmp 0x10005435
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x10005432
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10005428
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10005d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004baa0
push 0x1001bd80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.10006c10
test eax, eax
jne 0x10005dc5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10005dc5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x10005dc5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x10005df1
mov eax, dword [ebp - 0x1c]
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 0x10006190
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x10038684
push 0x10038678
call fcn.10003e20
add esp, 0x10
push 1
lea eax, [ebp - 0x110]
push eax
call fcn.10003e00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006230
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10006220
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x114], 1
jmp 0x10006226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret 4
Function at 0x100064a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bab0
push 0x1001bd80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x100065af
mov byte [ebp - 0x3d], 0
cmp dword [ebp + 0xc], 0
jne 0x100064f5
mov byte [ebp - 0x3d], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 0
push 0xc
call fcn.10006e80
mov dword [ebp - 0x20], eax
cmp dword [0x10056e34], 0
je 0x10006520
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x10006520
mov ecx, dword [0x10056e34]
mov dword [ebp - 0x20], ecx
push 0x1c
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x1000657d
cmp dword [ebp - 0x2c], 0x10000
jne 0x10006560
push 0x40
push 0x2000
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
jmp 0x1000657d
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x38]
jne 0x10006575
mov eax, dword [ebp - 0x20]
sub eax, 0x10000
mov dword [ebp - 0x20], eax
jmp 0x1000657b
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
jmp 0x10006520
cmp dword [ebp - 0x1c], 0
je 0x10006593
movzx edx, byte [ebp - 0x3d]
test edx, edx
je 0x10006593
mov eax, dword [ebp - 0x1c]
mov dword [0x10056e34], eax
push 0x40
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x100065db
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10006770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10056e44]
mov dword [ebp - 8], eax
mov ecx, dword [0x10056e4c]
mov dword [ebp - 4], ecx
mov dword [0x10056e44], 0
mov dword [0x10056e4c], 0
cmp dword [ebp - 8], 0
je 0x100067d6
lea edx, [ebp - 0xc]
push edx
push 0x40
push 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100067d6
mov ecx, dword [ebp - 8]
mov edx, dword [0x10056e48]
mov dword [ecx], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x10006810
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10006810
mov edx, dword [ebp - 4]
mov eax, dword [0x10056e50]
mov dword [edx], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [0x10056e58], 0
mov esp, ebp
pop ebp
ret
Function at 0x10008d70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [0x10056eac], 0
je 0x10008d8b
cmp dword [0x10056eb0], 0
jne 0x10008dde
push 1
push 0x10038b7c
call fcn.100063f0
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 8]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008ddc
mov edx, dword [0x10056ea8]
sub edx, dword [ebp - 8]
sub edx, 0xe
mov eax, dword [ebp - 8]
mov dword [eax + 0xa], edx
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10008de8
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x10056eb0]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8
Function at 0x10011a70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10055674]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x410], eax
movzx eax, word [ebp + 8]
push esi
push edi
cmp eax, dword [0x1005806c]
jb 0x10011b5e
push 0x200
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.1001c680
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x200
push 0
push eax
call fcn.1001c680
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push 0x200
push eax
call fcn.10010300
add esp, 0x18
lea edi, [ebp - 0x20c]
push 0xa
push edi
call fcn.1001bba0
mov esi, eax
add esp, 8
test esi, esi
je 0x10011b08
mov byte [esi], 0
inc esi
cmp byte [0x10057f68], 0
jne 0x10011b1b
mov ecx, str.SPSUnknown
call fcn.10011c80
push edi
push dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push dword [ebp + 0x10]
push ebx
push 0x10057f68
push str.__s:_s:_d___s___s_n
push 0xffffffffffffffff
push 0x200
push eax
call fcn.10010340
add esp, 0x24
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
mov eax, esi
cmove eax, edi
mov edi, eax
jne 0x10011af3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret

Function at 0x10011b70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x10055674]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x810], eax
movzx eax, word [ebp + 8]
push esi
push edi
cmp eax, dword [0x1005806c]
jb 0x10011c63
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.1001c680
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.1001c680
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x40c]
push 0xffffffffffffffff
push 0x200
push eax
call fcn.10010240
add esp, 0x18
lea edi, [ebp - 0x40c]
push 0xa
push edi
call fcn.1001bad1
mov esi, eax
add esp, 8
test esi, esi
je 0x10011c0c
xor eax, eax
mov word [esi], ax
add esi, 2
cmp word [0x10057d60], 0
jne 0x10011c20
mov ecx, str.SPSUnknown
call fcn.10011c80
push edi
push dword [ebp - 0x810]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x10]
push ebx
push 0x10057d60
push str.__s:_S:_d___s___s_n
push 0xffffffffffffffff
push 0x200
push eax
call fcn.10010280
add esp, 0x24
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
mov eax, esi
cmove eax, edi
mov edi, eax
jne 0x10011bf3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret
Function at 0x10012000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x10055674]
xor eax, esp
mov dword [esp + 0x810], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
mov eax, dword [ebp + 0x14]
push 0x800
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1001c680
add edi, 4
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10012058
mov eax, dword [edi]
push eax
push 0x400
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x3ff
je 0x100120be
cmp eax, 0x3fe
je 0x100120be
lea edx, [esp + 0x18]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10012087
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.100114e0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x14], 8
jb 0x100120c6
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10026cf6
push edi
mov edi, dword [esp + 0x10]
mov edx, 0x10046e8c
mov ecx, edx
test edi, edi
cmovne ecx, edi
test ebx, ebx
push ecx
cmovne edx, ebx
push edx
push esi
push dword [eax]
push str.fail_to_GetPrivateProfileStringW__errno_d__LE_lu__section_s__key_s__ini_path_s
push str.ERROR
push 0x5f
push str.lilib::INIWrapper::read_str_raw
push 0x28
call fcn.10011b70
mov ecx, dword [esp + 0x844]
add esp, 0x28
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10014ec0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036b70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10055674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.SPSLangResource.0
xor eax, eax
mov dword [ecx], 0
push eax
push 0x10046cec
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.100114e0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], vtable.lilib::INIWrapper.0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
lea ebx, [eax + 2]
mov dword [esi + 0x34], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10014f40
sub eax, ebx
lea ecx, [esi + 0x20]
sar eax, 1
push eax
push dword [ebp + 8]
call fcn.100114e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10015050
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10055674]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jne 0x100150b2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
lea ecx, [esi + 4]
and eax, 0x3ff
push 2
cmp eax, 0x12
je 0x100150a8
push 0x10047ebc
jmp 0x100150ad
push 0x10047eb4
call fcn.100114e0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea ecx, [esi + 0x1c]
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x100150de
mov eax, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x10046cec
push ebx
push eax
call fcn.10012000
mov bl, al
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x1001510c
cmp dword [ebp - 0x18], 8
mov edx, eax
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, edi
push edx
call fcn.100114e0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10015142
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015138
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015162
push edx
push ecx
call fcn.1001aa24
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 0xc
call fcn.1002637a
int3
Function at 0x10017270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10055674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100172e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 4]
mov dword [esi + 8], eax
push str.__p__WriteFile_fail._LE_lu
push 0x100463e4
push 0x4b
push str.lirpc::RPCPipe::write
push 0x28
call fcn.10011a70
add esp, 0x1c
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 8], edi
je 0x10017326
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [esi + 8], eax
push edi
push dword [esi + 4]
push str.__p__WriteFile_fail._buf_len_u__written_bytes_lu
push 0x100463e4
push 0x53
push str.lirpc::RPCPipe::write
push 0x28
call fcn.10011a70
add esp, 0x20
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 8
Function at 0x10017340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10055674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebx + 4]
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x100173dd
nop dword [eax + eax]
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x1001743d
test esi, esi
je 0x10017439
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0xc]
sbb edx, dword [ebp - 0x10]
test edx, edx
ja 0x1001740c
jb 0x100173bc
cmp eax, 0x7d0
ja 0x1001740c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0x14]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x10017390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
cmp eax, 0x6d
jne 0x10017456
push ecx
push str.__p__disconnected
push 0x100463e4
push 0x79
push str.lirpc::RPCPipe::read
push 0x28
call fcn.10011a70
add esp, 0x18
jmp 0x10017473
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [ebp - 8]
push edi
push dword [ebx + 4]
push str.__p__read_zero_bytes__ret_d__read_bytes_lu__buf_len_u__LE_lu
push 0x100463e4
push 0x69
push str.lirpc::RPCPipe::read
push 0x28
call fcn.10011a70
mov ecx, dword [ebp - 8]
add esp, 0x28
test edi, edi
je 0x100173dd
cmp ecx, esi
jne 0x100173dd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 8
push eax
push ecx
push str.__p__ReadFile_failed__GLE_lu
push 0x100463e4
push 0x7d
push str.lirpc::RPCPipe::read
push 0x28
call fcn.10011a70
add esp, 0x1c
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a6c7
mov esp, ebp
pop ebp
ret 8

Function at 0x1002997c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f71c
push 0x1003f714
push str.FlsAlloc
push 0x1e
call fcn.1002983d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100299b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10038208]
call esi
jmp 0x100299b6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100299fa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f72c
push 0x1003f724
push str.FlsGetValue
push 0x20
call fcn.1002983d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10029a31
push dword [ebp + 8]
mov ecx, esi
call dword [0x10038208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]