joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007e60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10068697], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x10007ed0
cmp dword [0x10074f80], 0
je 0x10007ed0
push dword [0x10069e8c]
call dword [0x10069e90]
add esp, 4
cmp dword [0x10069e8c], 2
jne 0x10007ea9
mov dword [0x10069e8c], 3
cmp eax, 0x4d2
jne 0x10007eb8
cmp edx, 0x1100001
je 0x10007ed0
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10069d84]
test ecx, ecx
jne 0x10008043
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
push 0x10068cc0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007f46
push str.ISteamUser::GetSteamID_____Reading_SteamID_from_ticket_file__r_n
call fcn.100022e0
add esp, 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10007f73
push str.ISteamUser::GetSteamID_____Unable_to_get_ticket_size__r_n
call fcn.100022e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0x4d2
mov ecx, dword [ebp - 4]
mov byte [ebp - 9], 1
xor ecx, ebp
mov eax, dword [ebp - 0xc]
and eax, 0xff100001
or eax, 0x100001
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1002d706
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push esi
call fcn.1002dc76
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov esi, eax
push 0
push esi
call fcn.1002f340
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007fd4
push str.ISteamUser::GetSteamID_____Unable_to_read_ticket_file__r_n
call fcn.100022e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002d719
add esp, 4
jmp 0x10007f46
cmp dword [ebp - 0x14], 0x30
jae 0x10007fe2
push str.ISteamUser::GetSteamID_____Ticket_struct_is_too_big__r_n
nop
jmp 0x10007fb1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
jne 0x1000800d
push str.ISteamUser::GetSteamID_____Ticket_length_is_0__r_n
call fcn.100022e0
add esp, 4
push esi
call fcn.1002d719
add esp, 4
jmp 0x10007f46
mov eax, dword [esi + 8]
test eax, eax
jne 0x1000802f
push str.ISteamUser::GetSteamID_____SteamID_is_0__r_n
call fcn.100022e0
add esp, 4
push esi
call fcn.1002d719
add esp, 4
jmp 0x10007f46
push esi
mov dword [0x10069d84], eax
call fcn.1002d719
mov ecx, dword [0x10069d84]
add esp, 4
mov dword [edi], ecx
jmp 0x10007f4c
Function at 0x10008780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10065040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10065cf0], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x100087cb
mov eax, dword [0x10065ae0]
test eax, eax
je 0x100087cb
cmp eax, 0x3e7
je 0x100087ba
dec eax
mov dword [0x10065ae0], eax
test ebx, ebx
jne 0x100087df
push str.GetStat_int32_Failed_____pchName_is_nullptr__r_n
call fcn.100022e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
nop
test edi, edi
jne 0x100087eb
push str.GetStat_int32_Failed_____pData_is_nullptr__r_n
jmp 0x100087c3
cmp dword [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10069968
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x100088a1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008868
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [eax + eax]
test esi, esi
je 0x100088ec
push dword [edi]
mov edx, ebx
mov ecx, 0x10069968
call fcn.10002080
add esp, 4
test eax, eax
je 0x100088f2
push dword [edi]
push ebx
push str.GetStat_int32_Failed______s______d_r_n
call fcn.100022e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100088d7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100088ec
push 0
mov edx, ebx
mov ecx, 0x10069968
call fcn.10002080
add esp, 4
test eax, eax
jne 0x1000887d
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword ds:[esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
Function at 0x10008a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10065040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10065cf0], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x10008a71
cmp byte [ebp + 8], 0
jne 0x10008a60
mov eax, dword [0x10065ae4]
test eax, eax
je 0x10008a71
cmp eax, 0x3e7
je 0x10008a60
dec eax
mov dword [0x10065ae4], eax
test ebx, ebx
jne 0x10008a89
push str.GetAchievement_Failed_____pchName_is_nullptr__r_n
call fcn.100022e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10008a94
push str.GetAchievement_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x10008a69
cmp byte [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10069a70
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x10008b4b
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008b0e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword ds:[esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10008b99
movzx eax, byte [edi]
mov edx, ebx
push eax
mov ecx, 0x10069a70
call fcn.10002080
add esp, 4
test eax, eax
je 0x10008ba3
movzx eax, byte [edi]
push eax
push ebx
push str.GetAchievement_Failed______s______d_r_n
call fcn.100022e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008b84
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [eax]
test esi, esi
je 0x10008b99
push 0
mov edx, ebx
mov ecx, 0x10069a70
call fcn.10002080
add esp, 4
test eax, eax
jne 0x10008b25
cmp dword [esp + 0x10], 0
setne al
mov byte [edi], al
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
Function at 0x10008de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10065040]
xor eax, esp
mov dword [esp + 0x120], eax
cmp dword [0x10065cf0], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
je 0x10008e34
mov eax, dword [0x10065ae4]
test eax, eax
je 0x10008e34
cmp eax, 0x3e7
je 0x10008e23
dec eax
mov dword [0x10065ae4], eax
test esi, esi
jne 0x10008e4b
push str.GetAchievementAndUnlockTime_Failed_____pchName_is_nullptr__r_n
call fcn.100022e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10008e56
push str.GetAchievementAndUnlockTime_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x10008e2c
test edi, edi
jne 0x10008e62
push str.GetAchievementAndUnlockTime_Failed_____prtTime_is_nullptr__r_n
nop
jmp 0x10008e2c
push esi
push str.GetAchievementAndUnlockTime______s_r_n
call fcn.100022e0
push 0x104
lea eax, [esp + 0x2c]
mov byte [ebx], 0
push 0
push eax
mov dword [edi], 0
call fcn.1002f340
add esp, 0x14
lea eax, [esp + 0x20]
push esi
push str._s_Time
push 0xffffffffffffffff
push 0x104
push eax
call fcn.100013e0
add esp, 0x14
mov byte [esp + 0xf], 0
lea edx, [esp + 0xf]
mov ecx, esi
push 1
call fcn.10008a20
add esp, 4
cmp byte [esp + 0xf], 1
jne 0x10008f50
push esi
push str.GetAchievementAndUnlockTime______s_r_n
call fcn.100022e0
add esp, 8
mov byte [ebx], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 4
push eax
push 0x20019
push 0
push 0x10069a70
push 0x80000001
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008f50
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword ds:[esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10008f50
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov ecx, dword ds:[esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
Function at 0x100280a0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10028218
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
nop dword [eax + eax]
test eax, eax
je 0x10028211
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1002819f
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1002819f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1002819f
mov edx, dword [esi]
test edx, edx
jne 0x10028163
push 0x200
push 8
push dword [0x100753c4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100281c5
lea edi, [esi + 8]
jmp 0x10028192
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10028192
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 8
push dword [0x100753c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1002822b
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10028110
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0x12
je 0x10028211
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10028211
push eax
push ebx
push dword [0x100753c4]
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x100281fb
test ecx, ecx
je 0x100281fb
mov eax, dword [esi]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100281f0
push dword [esi]
push 0
push dword [0x100753c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d706
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x100281c5
Function at 0x10028240
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100280a0
test eax, eax
jne 0x10028273
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x100282ce
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100282c6
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100282bd
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10027f00
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10028286
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100282e0
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x10028366
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10028326
push ebx
mov eax, dword ds:[edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1002831a
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x100282f1
pop ebx
push dword [edi]
push 0
push dword [0x100753c4]
call dword [sym.imp.KERNEL32.dll_HeapSize]
pop esi
cmp eax, 0xffffffff
je 0x10028351
nop dword [eax]
test eax, eax
je 0x10028351
mov ecx, dword [edi]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x10028346
push dword ds:[edi]
push 0
push dword [0x100753c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10028380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x100753f8]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100283e9
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d706
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002840b
mov byte ds:[edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1002842c
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1002842c
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10028426
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1002842c
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002d706
mov esp, ebp
pop ebp
ret
Function at 0x10031292
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004b980
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1003cd32
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100312d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10031430
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004b8d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100678c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003cf41
mov ecx, dword [esi*4 + 0x100678c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10031429
cmp eax, dword [ecx + edi + 0x24]
jne 0x10031429
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10031429
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003cf41
add esp, 0x14
test edx, edx
jl 0x10031429
jg 0x1003139f
test eax, eax
jb 0x10031429
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10031429
jl 0x100313b9
cmp dword [ebp - 0x1008], eax
ja 0x10031429
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100313d7
test ebx, ebx
je 0x10031410
cmp ecx, edi
jae 0x10031410
mov al, byte [ecx]
cmp al, 0xd
jne 0x100313f1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100313fd
cmp byte [ecx + 1], 0xa
jne 0x100313fd
inc ecx
jmp 0x100313fd
movzx eax, al
movsx eax, byte [eax + 0x10065250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100313d7
cmp edx, ebx
jne 0x100313d7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003142e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002d706
leave
ret

Function at 0x1003be43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003be82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003be82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003be82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003be82
cmp dword [ecx + 0x74], 0xe
jbe 0x1003be82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003d6b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100678c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003d6f2
cmp byte [ebx], 0xa
jne 0x1003d6f2
or byte [edi + eax + 0x28], 4
jmp 0x1003d6f7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1003d7f6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003d7d9
inc eax
cmp dl, 0xd
je 0x1003d723
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003d749
cmp eax, ecx
jae 0x1003d757
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1003d70b
jmp 0x1003d7f6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003d7d4
cmp dword [ebp - 0x10], 0
je 0x1003d7d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100678c0]
test byte [eax + edi + 0x28], 0x48
je 0x1003d7ae
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003d799
mov byte [esi], dl
jmp 0x1003d7aa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100678c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003d7f6
cmp byte [ebp - 1], 0xa
jne 0x1003d7bd
cmp esi, ebx
jne 0x1003d7bd
mov byte [esi], 0xa
jmp 0x1003d7f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003cf5f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003d7f6
mov byte [esi], 0xd
jmp 0x1003d7f5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100678c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003d7f3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003d7f6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003d7ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100678c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003d845
cmp word [ebx], dx
jne 0x1003d845
or byte [eax + edi + 0x28], 4
jmp 0x1003d84a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003d9ad
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003d98d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003d88b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003d8c1
cmp eax, edx
jae 0x1003d8cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003d866
jmp 0x1003d9ad
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003d988
cmp dword [ebp - 0x18], 0
je 0x1003d988
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100678c0]
test byte [eax + edi + 0x28], 0x48
je 0x1003d95e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003d922
mov word [esi], cx
jmp 0x1003d959
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100678c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100678c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100678c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003d9ad
pop eax
cmp word [ebp - 4], ax
jne 0x1003d96e
cmp esi, ebx
jne 0x1003d96e
mov word [esi], ax
jmp 0x1003d9aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003cf5f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003d9ad
push 0xd
pop eax
jmp 0x1003d969
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100678c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003d9a7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003d9ad
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret