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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [eax + 0x14]
mov eax, edi
call fcn.100b8ef0
mov ebx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, ebx
add ecx, 0xffffffff
adc eax, 0xffffffff
xor esi, esi
cmp eax, esi
ja 0x100c5da0
jb 0x100c5d0c
cmp ecx, 0x7ffffffe
ja 0x100c5da0
mov ecx, dword [ebp + 8]
mov word [esp + 0x18], si
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
movsx edx, byte [edi + 0x44]
mov eax, dword [edi + edx*4 + 0x78]
mov ecx, dword [edi + 0x18]
mov eax, dword [eax + 0x3c]
movzx edx, word [edi + 0x20]
sub eax, ecx
cmp edx, eax
jae 0x100c5d36
mov eax, edx
cmp ebx, eax
ja 0x100c5d4b
mov dword [esp + 0x20], ecx
mov word [esp + 0x18], 0x1010
mov dword [esp + 0x1c], ebx
jmp 0x100c5d60
push 1
push esi
lea esi, [esp + 0x18]
mov eax, edi
call fcn.100c0e10
add esp, 8
test eax, eax
jne 0x100c5dc8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
push ecx
push edx
push eax
call fcn.100c5220
mov ecx, dword [ebp + 0x10]
add esp, 0x10
test dword [esp + 0x18], 0x2460
mov dword [ecx], eax
jne 0x100c5d8e
cmp dword [esp + 0x28], 0
je 0x100c5d97
lea eax, [esp + 0x10]
call fcn.100c05a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push 0x10160fd8
push 0x12267
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
mov dword [edx], esi
call fcn.100a5f10
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10111dc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [esp + 0x18]
push 0
push eax
mov ebx, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x10111e5c
push 0xcd
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.GetVersionEx__LPOSVERSIONINFO_osvi_
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.10130e50
add esp, 0x128
ret
mov ecx, dword [esp + 0x18]
cmp ecx, 5
mov edx, dword [esp + 0x1c]
jne 0x10111e73
cmp edx, 2
jne 0x10111e73
lea eax, [edx - 1]
jmp 0x10111e75
xor eax, eax
cmp ecx, 5
mov dword [ebx + 0xc], eax
jne 0x10111e86
cmp edx, 1
jne 0x10111e86
mov eax, edx
jmp 0x10111e88
xor eax, eax
cmp ecx, 6
sbb ecx, ecx
push str.IsWow64Process
add ecx, 1
push str.kernel32
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10111ec9
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [ebx + 4], eax
je 0x10111eea
xor eax, eax
cmp dword [ebx + 0x10], eax
setne al
mov dword [ebx + 0x14], eax
xor eax, eax
cmp dword [ebx + 8], eax
setne al
mov dword [ebx + 0x18], eax
push ebp
call sub.Comn.dll_GetObjectLog
mov ebp, eax
mov edi, dword [ebp]
push 0xda
mov esi, str..green.cpp
add edi, 0xc
call fcn.10111630
push eax
mov eax, dword [edi]
push str._s:__SystemVersion_
push ebp
call eax
add esp, 0x10
call sub.Comn.dll_GetObjectLog
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ebp, eax
mov edi, dword [ebp]
push edx
push 0xdb
add edi, 0xc
call fcn.10111630
add esp, 4
push eax
mov eax, dword [edi]
push str._s:_System_version:__d._d
push ebp
call eax
add esp, 0x14
call sub.Comn.dll_GetObjectLog
mov ecx, dword [ebx + 4]
mov ebp, eax
mov edi, dword [ebp]
push ecx
push 0xdc
add edi, 0xc
call fcn.10111630
mov edx, dword [edi]
add esp, 4
push eax
push str._s:_IsWow64:__d
push ebp
call edx
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x128
ret
Function at 0x10112660
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
sub esp, 0xc04
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc10]
push esi
push edi
xor ebx, ebx
push 0x3fe
lea eax, [esp + 0x416]
push ebx
push eax
mov word [esp + 0x41c], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x822]
push ebx
push ecx
mov word [esp + 0x828], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x2e]
push ebx
push edx
mov word [esp + 0x34], bx
call sub.MSVCR80.dll_memset
lea esi, [ebp + 0x1c]
mov eax, esi
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x101126d7
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
neg edi
jne 0x1011272a
push 0x16a
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str._tcslen_m_tszRoot__0
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x1011285e
lea edx, [esp + 0x410]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x10112735
cmp dword [ebp + 4], ebx
mov ebp, dword [sym.imp.MSVCR80.dll__swprintf]
je 0x10112766
lea ecx, [esp + 0x410]
push ecx
push str._sdriverLoadDrv_x64.exe
lea edx, [esp + 0x818]
push edx
jmp 0x1011277b
lea eax, [esp + 0x410]
push eax
push str._sdriverLoadDrv_Win32.exe
lea ecx, [esp + 0x818]
push ecx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
lea edx, [esp + 0x810]
push edx
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
cmp edi, ebx
jne 0x101127d8
push 0x176
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.GetFileAttributes_tszSrc__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x1011285e
lea ecx, [esp + 0x410]
push ecx
lea edx, [esp + 0x14]
push str._sLoadDrv.exe
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
call fcn.101132c0
lea eax, [esp + 0x10]
push eax
call esi
cmp eax, 0xffffffff
je 0x1011280f
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp edi, ebx
jne 0x10112861
push 0x17f
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebx
push str.CopyFile_tszSrc__tszDes__FALSE_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
mov ecx, dword [esp + 0xc10]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0xc04
ret 4
Function at 0x101132c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x10113318
push 0x2a2
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.dwFileAttrib_INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
test edi, edi
jne 0x10113363
push 0x2a5
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebx
push str.SetFileAttributes_pFile__dwFileAttrib_
push str._s_return_code:_0x_08X___s.
push eax
call edx
mov eax, edi
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x101137a0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x61c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x229]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x230], bl
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x2e]
push ebx
push ecx
mov word [esp + 0x34], bx
call sub.MSVCR80.dll_memset
movzx edx, word [esi + 0x1c]
push edx
lea eax, [esp + 0x38]
push str.._C:
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x24
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10113865
push 0x321
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push edi
push str.hHandle_INVALID_HANDLE_VALUE
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x101138ef
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x400
xor eax, eax
lea edx, [esp + 0x230]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0xc
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 0x2d1400
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101138e1
push ebp
push 0x32f
mov esi, str..green.cpp
call fcn.10111630
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebp
push str.bResult
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
pop ebp
jmp 0x101138e8
mov ebx, dword [esp + 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x624]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x61c
ret
Function at 0x10113d50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlLsa
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10113e28
mov eax, dword [esp + 4]
test eax, eax
je 0x10113e28
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push str.limitblankpassworduse
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10113e28
cmp dword [esp], eax
push edi
je 0x10113e14
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push eax
lea edi, [eax + 1]
mov eax, dword [esp + 0x1c]
push str.bklimitblankpassworduse
push eax
call esi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.limitblankpassworduse
push edx
mov dword [esp + 0x20], 0
call esi
mov eax, dword [esp + 0xc]
pop esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 8]
push eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x10113e30
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlLsa
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10113ed8
mov eax, dword [esp]
test eax, eax
je 0x10113ed8
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push str.bklimitblankpassworduse
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10113ed8
cmp dword [esp + 4], eax
je 0x10113ec5
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.limitblankpassworduse
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push str.bklimitblankpassworduse
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x10113ee0
Capabilities:
Get hostname
Impersonate user

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0xcc], eax
push esi
push 0xc6
lea eax, [esp + 0xe]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x10], 0x64
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10113f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.10130e50
add esp, 0xd0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
call ebp
xor ecx, ecx
mov ch, al
shr eax, 8
or ecx, eax
cmp ecx, 0x500
je 0x10113f71
call fcn.10113d50
push esi
push 0
push 2
push ebx
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
xor ecx, ecx
mov ch, al
shr eax, 8
pop ebp
or ecx, eax
cmp ecx, 0x500
je 0x10113fa4
call fcn.10113e30
mov ecx, dword [esp + 0xd0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10130e50
add esp, 0xd0
ret
Function at 0x10114a30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
push 0x228
lea eax, [esp + 0x18]
push 0
push eax
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, ebx
jne 0x10114aae
push 0x23a
call fcn.10113a20
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.hProcessSnap_INVALID_HANDLE_VALUE
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10114b79
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10114afa
push 0x23d
call fcn.10113a20
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.Process32First_hProcessSnap__pe32_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10114b72
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea eax, [esp + 0x34]
push str.Abspawnhlp.exe
push eax
call esi
add esp, 8
test eax, eax
je 0x10114b24
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10114b00
jmp 0x10114b2d
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x10114b62
push 0x248
call fcn.10113a20
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push edi
push str.ProcessID__1
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10114b72
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x230
ret
Function at 0x1012bbb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1014b208
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.1012a6e0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.1012b2d0
push eax
push esi
call fcn.1012b370
mov edi, eax
lea eax, [esp + 0xc]
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call fcn.1012a9a0
mov esi, eax
call fcn.1012a8b0
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1012e850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1014acf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
and dword [esp + 0x14], 0xfffffe00
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push edi
push esi
mov dword [esp + 0x3c], 1
call fcn.1012e930
test al, al
jne 0x1012e8c8
lea esi, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.1012a8b0
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
mov eax, esi
call fcn.1012f4c0
mov edx, dword [eax]
lea eax, [esp + 0xc]
call fcn.1012a940
mov eax, esi
call fcn.1012f4c0
mov ecx, dword [eax]
mov eax, dword [edi + 4]
sub eax, dword [esi + 0x44]
mov dword [ecx + 0x10], eax
mov eax, esi
call fcn.1012f4c0
mov ecx, dword [eax]
mov eax, dword [edi + 8]
sub eax, dword [esi + 0x44]
lea esi, [esp + 0xc]
mov dword [ecx + 0x14], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.1012a8b0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x10130e50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10177024]
jne 0x10130e5a
repz ret
jmp fcn.101313f2

Function at 0x10131e8f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10177024]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10131dce
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10131ede
cmp dword [ebp - 0x1c], 5
jb 0x10131ef6
jmp 0x10131ef2
cmp dword [ebp - 0x10], 1
jne 0x10131ef6
cmp dword [ebp - 0x1c], 4
ja 0x10131ef2
jne 0x10131ef6
cmp dword [ebp - 0x18], 0
jbe 0x10131ef6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1014cc84
call fcn.10131c64
test eax, eax
jge 0x10131f17
mov byte [0x1018df28], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10130e50
add ebp, 0x78
leave
ret
Function at 0x10132610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov byte [ebp - 0x11], 0
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x60]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x101326b7
mov dword [ebp - 0x64], 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x101326a1
cmp dword [ebp - 0x64], 1
jne 0x101326a1
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101326c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret

Function at 0x101326d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 0x10], SysStringLen
mov dword [ebp - 0xc], 3
mov dword [ebp - 4], 0
mov word [ebp - 0x410], 0
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 0x80
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 3
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10132747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x414]
jmp 0x10132791
push 0
lea ecx, [ebp - 4]
push ecx
push 0x200
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10132785
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
jmp 0x10132791
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x101380c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
mov byte [ebp - 0x208], 0
push 0x207
push 0
lea eax, [ebp - 0x207]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x208
lea edx, [ebp - 0x208]
push edx
push 0x1014cf6b
push 0x1014dafc
push 0x1014db04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10138125
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
call dword [0x1014c530]
mov esp, ebp
pop ebp
ret 8