joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d50f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x100156af
call fcn.10013e2a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x1000d730
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1000d76c
add esp, 0x10
test eax, eax
js 0x1000d72a
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x1000d5b3
push edi
call fcn.10008238
pop ecx
test al, al
je 0x1000d5b3
mov eax, edi
call fcn.10014020
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d5c5
push edi
lea ecx, [ebp - 0x424]
call fcn.1000d76c
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.1000d76c
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000d72a
push 0x60
push ebx
push eax
call fcn.1000eab1
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1000d61d
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.1000eab1
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x1000d61d
call fcn.10003821
mov ebx, eax
jmp 0x1000d6f9
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1000d644
call fcn.10003821
jmp 0x1000d6ec
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x1000d63a
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x1000d677
mov ebx, 0x8007000e
jmp 0x1000d6ee
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000d76c
jmp 0x1000d69d
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000d670
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.1000d76c
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.1000d76c
mov ebx, eax
test edi, edi
je 0x1000d6f9
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000d712
lea ecx, [ebp - 0x418]
call fcn.1000ccf9
or dword [ebp - 4], 0xffffffff
jmp 0x1000d722
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d718
mov eax, ebx
jmp 0x1000d75e
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000d745
lea ecx, [ebp - 0x418]
call fcn.1000ccf9
or dword [ebp - 4], 0xffffffff
jmp 0x1000d755
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d74b
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.10013d77
ret 0x10
Function at 0x1000f2f0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x10018bc0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f37c
push str.file:__
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f37c
push dword [ebp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f37c
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000f37f
mov eax, dword [ebp - 0x30]
sub eax, 1
je 0x1000f378
dec eax
sub eax, 1
je 0x1000f378
sub eax, 1
jne 0x1000f37f
mov esi, edi
jmp 0x1000f37f
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1000d76c
add esp, 0x10
pop edi
pop esi
leave
ret 0x20
Function at 0x1000147b
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ecx, 0x10036200
push edi
call fcn.100219e3
push 0x10027d98
push dword [ebp + 8]
call fcn.1000c953
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10001570
push 2
xor edi, edi
push edi
push ebx
call fcn.1000cda8
push ebx
call fcn.1000c86c
push edi
mov esi, eax
push edi
push ebx
mov dword [ebp - 8], esi
call fcn.1000cda8
push esi
call fcn.10008e24
push ebx
push esi
push 1
push eax
mov dword [ebp - 0xc], eax
call fcn.1000f2bb
push ebx
mov esi, eax
call fcn.1000ca8f
add esp, 0x34
cmp esi, dword [ebp - 8]
jne 0x10001570
mov esi, dword [ebp - 4]
mov ebx, edi
mov dword [ebp + 8], ebx
push 8
push ebx
call fcn.1000143c
mov ebx, dword [ebp - 4]
shl eax, 0x18
push 8
mov dword [esi], eax
pop edx
test eax, eax
jns 0x10001516
mov ecx, dword [ebx + 0x400]
jmp 0x10001518
mov ecx, edi
add eax, eax
xor eax, ecx
mov dword [esi], eax
sub edx, 1
jne 0x1000150a
push 0x20
push eax
call fcn.1000143c
mov ebx, dword [ebp + 8]
inc ebx
mov dword [esi], eax
add esi, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xff
jle 0x100014f7
mov edx, dword [ebp - 8]
or ebx, 0xffffffff
mov esi, dword [ebp - 0xc]
test edx, edx
je 0x10001563
movzx ecx, byte [edi + esi]
movzx eax, bl
xor ecx, eax
shr ebx, 8
mov eax, dword [ebp - 4]
xor ebx, dword [eax + ecx*4]
inc edi
cmp edi, edx
jb 0x1000154c
push esi
call fcn.10008e1f
not ebx
pop ecx
mov eax, ebx
jmp 0x10001572
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000176d
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10036200
call fcn.100219e3
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x100017bb
mov eax, dword [0x10030d24]
cmp eax, 2
jne 0x100017b9
push esi
push esi
push esi
push 0x100016d6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100016f9
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x100017ad
mov al, 1
pop esi
ret
Function at 0x100017bf
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
mov ecx, 0x10036200
call fcn.100219e3
mov ecx, str.Cheat_Engine_5.0
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.1
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.1.1
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.2
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.3
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.4
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.5
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.6
call fcn.1000176d
mov ecx, str.Cheat_Engine_5.6.1
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.0
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.1
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.2
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.3
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.4
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.5
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.6
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.7
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.8
call fcn.1000176d
mov ecx, str.Cheat_Engine_6.9
call fcn.1000176d
mov ecx, str.Cheat_Engine_7.0
call fcn.1000176d
mov ecx, str.Cheat_Engine_7.1
call fcn.1000176d
mov ecx, str.Cheat_Engine_7.2
call fcn.1000176d
mov ecx, str.Cheat_Engine_7.3
call fcn.1000176d
mov ecx, str.Cheat_Engine_7.4
call fcn.1000176d
mov ecx, str.Cheat_Engine_8.0
call fcn.1000176d
mov ecx, str.Cheat_Engine
call fcn.1000176d
mov ecx, str.WPE_PRO_0_DELAY
call fcn.1000176d
mov ecx, str.WPE_PRO_0
call fcn.1000176d
mov ecx, str.WPePro_0.9a
call fcn.1000176d
mov ecx, str.WPE_PRO_Alpha_0.9a
call fcn.1000176d
mov ecx, str.WPE_PRO_Alpha_1.0a
call fcn.1000176d
mov ecx, str.WPE_PRO
call fcn.1000176d
mov ecx, str.WPE_PRO_Sonic
call fcn.1000176d
mov ecx, str.DLLInjector_v2
call fcn.1000176d
mov ecx, str.DLLInjector_v1
call fcn.1000176d
mov ecx, str.DLLInjector_v3
call fcn.1000176d
mov ecx, str.DLLInjector
call fcn.1000176d
mov ecx, str.processhacker_2
call fcn.1000176d
mov ecx, str.processhacker_2.35
call fcn.1000176d
mov ecx, str.processhacker_2.36
call fcn.1000176d
mov ecx, str.processhacker_2.37
call fcn.1000176d
mov ecx, str.processhacker_2.38
call fcn.1000176d
mov ecx, str.processhacker_2.39
call fcn.1000176d
mov ecx, str.processhacker_2.40
call fcn.1000176d
mov ecx, str.Process_Hacker_3
call fcn.1000176d
mov ecx, str.Process_Hacker_2
call fcn.1000176d
mov ecx, str.Process_Hacker_1
call fcn.1000176d
mov esi, str.ProcessHacker
mov ecx, esi
call fcn.1000176d
mov ecx, str.Process_Hacker
call fcn.1000176d
mov ecx, str.Process_Explore
call fcn.1000176d
mov ecx, str.Epoolsoft
call fcn.1000176d
mov ecx, str.WPePro_1.3
call fcn.1000176d
mov ecx, esi
call fcn.1000176d
mov ecx, str.wSyck_2015_1
call fcn.1000176d
mov ecx, str.DirectUIHWND
call fcn.1000176d
mov ecx, str.DirectULHWND
call fcn.1000176d
mov ecx, str.WPE_ULTRA___WYD.exe
call fcn.1000176d
mov ecx, str.WPE_ULTRA___WYD
call fcn.1000176d
mov ecx, str.WPE_ULTRA
call fcn.1000176d
mov ecx, str.WPEULTRA3
pop esi
jmp fcn.1000176d
Function at 0x10001a22
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x10036200
call fcn.100219e3
xor ebx, ebx
mov dword [ebp - 0x130], 0x128
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x10001aaa
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001a93
test dl, dl
je 0x10001a8f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001a93
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001a73
mov eax, ebx
jmp 0x10001a98
sbb eax, eax
or eax, 1
test eax, eax
je 0x10001ac9
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10001a6b
cmp esi, 0xffffffff
je 0x10001aba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008e11
leave
ret
push dword [ebp - 0x128]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10001ba9
Capabilities:
Create thread

Disassembly:
mov ecx, 0x10036200
call fcn.100219e3
xor eax, eax
push eax
push eax
push eax
push 0x10001b83
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x100039d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x100361da
call fcn.100219e3
mov edi, dword [ebp + 8]
mov eax, edi
and dword [ebp - 4], 0
sub eax, 1
je 0x100039f8
sub eax, 1
je 0x100039f8
push 6
jmp 0x100039fa
push 5
mov ebx, dword [ebp + 0x14]
pop eax
add ebx, eax
mov dword [ebp + 8], eax
push 0x100222a0
push ebx
call fcn.1000925d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003af6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub ecx, eax
sub ecx, dword [ebp + 0xc]
cmp edi, 1
je 0x10003a31
push 2
pop edx
cmp edi, edx
jne 0x10003a34
xor edx, edx
inc edx
dec edi
cmp edi, 0xd
ja case.default.0x10003a3a
jmp dword [edi*4 + 0x10003b00]
mov byte [esi], 0xe9
jmp case.default.0x10003a3a
mov byte [esi], 0xe8
jmp case.default.0x10003a3a
mov word [esi], 0x840f
jmp case.default.0x10003a3a
mov word [esi], 0x850f
jmp case.default.0x10003a3a
mov word [esi], 0x8c0f
jmp case.default.0x10003a3a
mov word [esi], 0x8d0f
jmp case.default.0x10003a3a
mov word [esi], 0x8e0f
jmp case.default.0x10003a3a
mov word [esi], 0x8f0f
jmp case.default.0x10003a3a
mov word [esi], 0x820f
jmp case.default.0x10003a3a
mov word [esi], 0x830f
jmp case.default.0x10003a3a
mov word [esi], 0x860f
jmp case.default.0x10003a3a
mov word [esi], 0x870f
mov dword [edx + esi], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10003aaa
push ecx
add eax, esi
push 0x90
push eax
call fcn.1000a580
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x10003af6
push ebx
push esi
push dword [ebp + 0xc]
call fcn.1000bba0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x10003af6
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call fcn.10008e1f
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10003b5b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
push edi
mov ecx, 0x100361da
call fcn.100219e3
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
push eax
mov dword [ebp + 8], eax
call fcn.1000fb2b
push 0
mov ebx, eax
call fcn.1000f744
push eax
call fcn.1000fad8
push edi
push esi
push ebx
call fcn.1000bba0
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, ecx
mov ecx, dword [ebp - 4]
add esp, 0x18
sub eax, ecx
mov dword [ebx + edi], eax
lea eax, [ebp - 8]
mov edi, dword [ebp + 8]
push eax
push 0x40
push edi
push ecx
call esi
push edi
push ebx
mov ebx, dword [ebp - 4]
push ebx
call fcn.1000bba0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003c07
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 0x100361da
call fcn.100219e3
mov edx, esi
mov ecx, edi
call fcn.10003bdc
mov esi, dword [ebp + 8]
add edi, 5
push esi
call fcn.1000fb2b
pop ecx
mov ebx, eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10003c54
push esi
push 0x90
push ebx
call fcn.1000a580
add esp, 0xc
push esi
push ebx
push edi
call fcn.1000bba0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10004de1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x100361da
call fcn.100219e3
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004e1f
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 0xc
Function at 0x10005cb0
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push 8
push 0x1002cbb8
call fcn.10009a30
mov ecx, 0x10036200
call fcn.100219e3
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10005d7d
sub eax, 1
jne 0x10005d93
lea eax, [ebp + 0xc]
push eax
push 0x40
mov ebx, 0x1effff
push ebx
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10005c5c
mov ecx, eax
call fcn.1000138f
test al, al
je 0x10005d0e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10001ba9
call fcn.10003d6a
mov edx, 0x5d3418
lea ecx, [edx - 0x1b]
call fcn.10003bdc
mov edx, 0x5d3434
lea ecx, [edx - 0x1b]
call fcn.10003bdc
mov edx, 0x5d344c
lea ecx, [edx - 0x17]
call fcn.10003bdc
call fcn.10004cf3
push 2
mov edx, 0x10004529
mov ecx, 0x50c2eb
call fcn.10003c07
push 2
mov edx, 0x10004556
mov ecx, 0x50abb8
call fcn.10003c07
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10005d93
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10005d93
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000c602
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100215a0
mov eax, dword [0x1002e040]
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.100118c8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000c644
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000c7a0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100214f0
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 + 0x1002f3d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10011a97
mov ecx, dword [esi*4 + 0x1002f3d0]
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 0x1000c799
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000c799
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 0x1000c799
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10011a97
add esp, 0x14
test edx, edx
jl 0x1000c799
jg 0x1000c70f
test eax, eax
jb 0x1000c799
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000c799
jl 0x1000c729
cmp dword [ebp - 0x1008], eax
ja 0x1000c799
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000c747
test ebx, ebx
je 0x1000c780
cmp ecx, edi
jae 0x1000c780
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000c761
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000c76d
cmp byte [ecx + 1], 0xa
jne 0x1000c76d
inc ecx
jmp 0x1000c76d
movzx eax, al
movsx eax, byte [eax + 0x1002e228]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000c747
cmp edx, ebx
jne 0x1000c747
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000c79e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008e11
leave
ret

Function at 0x1001036e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100103ad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100103ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100103ad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100103ad
cmp dword [ecx + 0x74], 0xe
jbe 0x100103ad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012208
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 + 0x1002f3d0]
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 0x10012248
cmp byte [ebx], 0xa
jne 0x10012248
or byte [edi + eax + 0x28], 4
jmp 0x1001224d
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 0x1001234c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001232f
inc eax
cmp dl, 0xd
je 0x10012279
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001229f
cmp eax, ecx
jae 0x100122ad
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 0x10012261
jmp 0x1001234c
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 0x1001232a
cmp dword [ebp - 0x10], 0
je 0x1001232a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002f3d0]
test byte [eax + edi + 0x28], 0x48
je 0x10012304
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100122ef
mov byte [esi], dl
jmp 0x10012300
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002f3d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001234c
cmp byte [ebp - 1], 0xa
jne 0x10012313
cmp esi, ebx
jne 0x10012313
mov byte [esi], 0xa
jmp 0x1001234b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10011ab5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001234c
mov byte [esi], 0xd
jmp 0x1001234b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002f3d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012349
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001234c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10012355
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 + 0x1002f3d0]
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 0x1001239b
cmp word [ebx], dx
jne 0x1001239b
or byte [eax + edi + 0x28], 4
jmp 0x100123a0
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 0x10012503
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 0x100124e3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100123e1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10012417
cmp eax, edx
jae 0x10012425
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 0x100123bc
jmp 0x10012503
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 0x100124de
cmp dword [ebp - 0x18], 0
je 0x100124de
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002f3d0]
test byte [eax + edi + 0x28], 0x48
je 0x100124b4
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 0x10012478
mov word [esi], cx
jmp 0x100124af
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002f3d0]
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 + 0x1002f3d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002f3d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10012503
pop eax
cmp word [ebp - 4], ax
jne 0x100124c4
cmp esi, ebx
jne 0x100124c4
mov word [esi], ax
jmp 0x10012500
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10011ab5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10012503
push 0xd
pop eax
jmp 0x100124bf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002f3d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100124fd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10012503
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret