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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10067697], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x10007e10
cmp dword [0x10073f7c], 0
je 0x10007e10
push dword [0x10068d84]
call dword [0x10068e8c]
add esp, 4
cmp dword [0x10068d84], 2
jne 0x10007de9
mov dword [0x10068d84], 3
cmp eax, 0x4d2
jne 0x10007df8
cmp edx, 0x1100001
je 0x10007e10
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.1002cc86
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10068d80]
test ecx, ecx
jne 0x10007f83
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
push 0x10067cc0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007e86
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 0x10007eb3
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.1002cc86
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push esi
call fcn.1002d1f6
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov esi, eax
push 0
push esi
call fcn.1002e8c0
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 0x10007f14
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.1002cc99
add esp, 4
jmp 0x10007e86
cmp dword [ebp - 0x14], 0x30
jae 0x10007f22
push str.ISteamUser::GetSteamID_____Ticket_struct_is_too_big__r_n
nop
jmp 0x10007ef1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
jne 0x10007f4d
push str.ISteamUser::GetSteamID_____Ticket_length_is_0__r_n
call fcn.100022e0
add esp, 4
push esi
call fcn.1002cc99
add esp, 4
jmp 0x10007e86
mov eax, dword [esi + 8]
test eax, eax
jne 0x10007f6f
push str.ISteamUser::GetSteamID_____SteamID_is_0__r_n
call fcn.100022e0
add esp, 4
push esi
call fcn.1002cc99
add esp, 4
jmp 0x10007e86
push esi
mov dword [0x10068d80], eax
call fcn.1002cc99
mov ecx, dword [0x10068d80]
add esp, 4
mov dword [edi], ecx
jmp 0x10007e8c
Function at 0x100086c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10064040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10064cf0], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x1000870b
mov eax, dword [0x10064ae0]
test eax, eax
je 0x1000870b
cmp eax, 0x3e7
je 0x100086fa
dec eax
mov dword [0x10064ae0], eax
test ebx, ebx
jne 0x1000871f
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.1002cc86
mov esp, ebp
pop ebp
ret
nop
test edi, edi
jne 0x1000872b
push str.GetStat_int32_Failed_____pData_is_nullptr__r_n
jmp 0x10008703
cmp dword [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10068968
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x100087e1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100087a8
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 0x1000882c
push dword [edi]
mov edx, ebx
mov ecx, 0x10068968
call fcn.10002080
add esp, 4
test eax, eax
je 0x10008832
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.1002cc86
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008817
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 0x1000882c
push 0
mov edx, ebx
mov ecx, 0x10068968
call fcn.10002080
add esp, 4
test eax, eax
jne 0x100087bd
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.1002cc86
mov esp, ebp
pop ebp
ret
Function at 0x10008960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10064040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10064cf0], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x100089b1
cmp byte [ebp + 8], 0
jne 0x100089a0
mov eax, dword [0x10064ae4]
test eax, eax
je 0x100089b1
cmp eax, 0x3e7
je 0x100089a0
dec eax
mov dword [0x10064ae4], eax
test ebx, ebx
jne 0x100089c9
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.1002cc86
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x100089d4
push str.GetAchievement_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x100089a9
cmp byte [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10068a70
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x10008a8b
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008a4e
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 0x10008ad9
movzx eax, byte [edi]
mov edx, ebx
push eax
mov ecx, 0x10068a70
call fcn.10002080
add esp, 4
test eax, eax
je 0x10008ae3
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.1002cc86
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008ac4
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 0x10008ad9
push 0
mov edx, ebx
mov ecx, 0x10068a70
call fcn.10002080
add esp, 4
test eax, eax
jne 0x10008a65
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.1002cc86
mov esp, ebp
pop ebp
ret
Function at 0x10008d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10064040]
xor eax, esp
mov dword [esp + 0x120], eax
cmp dword [0x10064cf0], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
je 0x10008d74
mov eax, dword [0x10064ae4]
test eax, eax
je 0x10008d74
cmp eax, 0x3e7
je 0x10008d63
dec eax
mov dword [0x10064ae4], eax
test esi, esi
jne 0x10008d8b
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.1002cc86
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10008d96
push str.GetAchievementAndUnlockTime_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x10008d6c
test edi, edi
jne 0x10008da2
push str.GetAchievementAndUnlockTime_Failed_____prtTime_is_nullptr__r_n
nop
jmp 0x10008d6c
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.1002e8c0
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.10008960
add esp, 4
cmp byte [esp + 0xf], 1
jne 0x10008e90
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 0x10068a70
push 0x80000001
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008e90
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 0x10008e90
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.1002cc86
mov esp, ebp
pop ebp
ret
Function at 0x10027620
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10064040]
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 0x10027798
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 0x10027791
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1002771f
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1002771f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1002771f
mov edx, dword [esi]
test edx, edx
jne 0x100276e3
push 0x200
push 8
push dword [0x100743bc]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10027745
lea edi, [esi + 8]
jmp 0x10027712
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10027712
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 8
push dword [0x100743bc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100277ab
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 0x10027690
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0x12
je 0x10027791
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10027791
push eax
push ebx
push dword [0x100743bc]
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1002777b
test ecx, ecx
je 0x1002777b
mov eax, dword [esi]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10027770
push dword [esi]
push 0
push dword [0x100743bc]
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.1002cc86
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10027745
Function at 0x100277c0
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.10027620
test eax, eax
jne 0x100277f3
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x1002784e
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10027846
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 0x1002783d
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10027480
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10027806
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 0x10027860
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x100278e6
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100278a6
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 0x1002789a
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 0x10027871
pop ebx
push dword [edi]
push 0
push dword [0x100743bc]
call dword [sym.imp.KERNEL32.dll_HeapSize]
pop esi
cmp eax, 0xffffffff
je 0x100278d1
nop dword [eax]
test eax, eax
je 0x100278d1
mov ecx, dword [edi]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x100278c6
push dword ds:[edi]
push 0
push dword [0x100743bc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10027900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10064040]
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 [0x100743f0]
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 0x10027969
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cc86
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002798b
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 0x100279ac
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100279ac
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100279a6
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100279ac
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.1002cc86
mov esp, ebp
pop ebp
ret
Function at 0x10030812
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004aef0
mov eax, dword [0x10064040]
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.1003c2b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10030854
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100309b0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004ae40
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 + 0x100668c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003c4c1
mov ecx, dword [esi*4 + 0x100668c0]
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 0x100309a9
cmp eax, dword [ecx + edi + 0x24]
jne 0x100309a9
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 0x100309a9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003c4c1
add esp, 0x14
test edx, edx
jl 0x100309a9
jg 0x1003091f
test eax, eax
jb 0x100309a9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100309a9
jl 0x10030939
cmp dword [ebp - 0x1008], eax
ja 0x100309a9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10030957
test ebx, ebx
je 0x10030990
cmp ecx, edi
jae 0x10030990
mov al, byte [ecx]
cmp al, 0xd
jne 0x10030971
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003097d
cmp byte [ecx + 1], 0xa
jne 0x1003097d
inc ecx
jmp 0x1003097d
movzx eax, al
movsx eax, byte [eax + 0x10064250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10030957
cmp edx, ebx
jne 0x10030957
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100309ae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002cc86
leave
ret

Function at 0x1003b3c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003b402
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003b402
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b402
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003b402
cmp dword [ecx + 0x74], 0xe
jbe 0x1003b402
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003cc32
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 + 0x100668c0]
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 0x1003cc72
cmp byte [ebx], 0xa
jne 0x1003cc72
or byte [edi + eax + 0x28], 4
jmp 0x1003cc77
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 0x1003cd76
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003cd59
inc eax
cmp dl, 0xd
je 0x1003cca3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003ccc9
cmp eax, ecx
jae 0x1003ccd7
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 0x1003cc8b
jmp 0x1003cd76
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 0x1003cd54
cmp dword [ebp - 0x10], 0
je 0x1003cd54
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100668c0]
test byte [eax + edi + 0x28], 0x48
je 0x1003cd2e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003cd19
mov byte [esi], dl
jmp 0x1003cd2a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100668c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003cd76
cmp byte [ebp - 1], 0xa
jne 0x1003cd3d
cmp esi, ebx
jne 0x1003cd3d
mov byte [esi], 0xa
jmp 0x1003cd75
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003c4df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003cd76
mov byte [esi], 0xd
jmp 0x1003cd75
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100668c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003cd73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003cd76
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003cd7f
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 + 0x100668c0]
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 0x1003cdc5
cmp word [ebx], dx
jne 0x1003cdc5
or byte [eax + edi + 0x28], 4
jmp 0x1003cdca
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 0x1003cf2d
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 0x1003cf0d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003ce0b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003ce41
cmp eax, edx
jae 0x1003ce4f
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 0x1003cde6
jmp 0x1003cf2d
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 0x1003cf08
cmp dword [ebp - 0x18], 0
je 0x1003cf08
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100668c0]
test byte [eax + edi + 0x28], 0x48
je 0x1003cede
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 0x1003cea2
mov word [esi], cx
jmp 0x1003ced9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100668c0]
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 + 0x100668c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100668c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003cf2d
pop eax
cmp word [ebp - 4], ax
jne 0x1003ceee
cmp esi, ebx
jne 0x1003ceee
mov word [esi], ax
jmp 0x1003cf2a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003c4df
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003cf2d
push 0xd
pop eax
jmp 0x1003cee9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100668c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003cf27
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003cf2d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret