joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e5d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007b054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10038856
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100374ea
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100208a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x10020930
mov eax, dword [0x10080d20]
mov ecx, dword [0x10080d24]
cmp eax, ecx
je 0x100208dc
cmp dword [eax], esi
je 0x100208d4
add eax, 4
cmp eax, ecx
jne 0x100208c7
jmp 0x100208dc
cmp eax, ecx
jne 0x100209ac
cmp ecx, dword [0x10080d28]
je 0x100208ef
mov dword [ecx], esi
add dword [0x10080d24], 4
jmp 0x10020901
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, 0x10080d20
call fcn.10020080
mov esi, dword [ebp - 4]
mov eax, dword [0x10080d18]
cmp eax, dword [0x10080d1c]
je 0x1002091c
mov dword [eax], esi
add dword [0x10080d18], 4
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x10080d14
push eax
call fcn.10020080
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10080d20]
mov eax, ecx
mov edx, dword [0x10080d24]
cmp eax, edx
je 0x100209ac
cmp dword [eax], esi
je 0x10020952
add eax, 4
cmp eax, edx
jne 0x10020942
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, edx
je 0x100209ac
cmp ecx, edx
je 0x1002096b
nop word [eax + eax]
cmp dword [ecx], esi
je 0x1002096b
add ecx, 4
cmp ecx, edx
jne 0x10020960
lea eax, [ecx + 4]
sub edx, eax
push edx
push eax
push ecx
call fcn.1003a240
sub dword [0x10080d24], 4
add esp, 0xc
mov eax, dword [0x10080d0c]
cmp eax, dword [0x10080d10]
je 0x1002099d
mov dword [eax], esi
add dword [0x10080d0c], 4
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x10080d08
push eax
call fcn.10020080
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xec]
push edi
lea edi, [esi + 0xc8]
test ecx, ecx
je 0x10022939
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x24], 0
mov ecx, dword [esi + 0xc4]
lea edi, [esi + 0xa0]
test ecx, ecx
je 0x1002295e
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x24], 0
mov ecx, dword [esi + 0x9c]
lea edi, [esi + 0x78]
test ecx, ecx
je 0x10022980
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x24], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x100229cc
mov ecx, dword [esi + 0x70]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x100229ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022aeb
mov eax, edx
push ecx
push eax
call fcn.1003899b
mov dword [esi + 0x68], 0
add esp, 8
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10022a18
mov ecx, dword [esi + 0x64]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x100229f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022aeb
mov eax, edx
push ecx
push eax
call fcn.1003899b
mov dword [esi + 0x5c], 0
add esp, 8
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10022a64
mov ecx, dword [esi + 0x58]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x10022a45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022aeb
mov eax, edx
push ecx
push eax
call fcn.1003899b
mov dword [esi + 0x50], 0
add esp, 8
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x10
jb 0x10022a94
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x10022a8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022aeb
mov eax, edx
push ecx
push eax
call fcn.1003899b
add esp, 8
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x10
jb 0x10022ad6
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x10022acc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022aeb
mov eax, edx
push ecx
push eax
call fcn.1003899b
add esp, 8
pop edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
pop esi
ret
call fcn.10045bb9
int3
Function at 0x10022e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1007b054]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0xc], edi
call fcn.100232a0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov dword [edi + 0xf0], eax
lea eax, [edi + 0x78]
push eax
mov byte [edi + 0x74], 1
mov dword [esp + 0x14], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CheckBox__AEXXZPAV3__std__X__V_std__.0
mov dword [esp + 0x18], 0x10022f60
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], ecx
call fcn.10022d60
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10022ef1
mov edx, dword [ecx]
lea eax, [esp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
movzx eax, byte [esp + 0xb]
lea ecx, [edi + 0xa0]
mov byte [esp + 0x18], al
movzx eax, byte [esp + 0xb]
mov byte [esp + 0x19], al
lea eax, [esp + 0x10]
push ecx
mov ecx, eax
mov dword [esp + 0x14], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CheckBox__AEXMM_ZPAV3_ABU___Ph__00_2_ABU___Ph__01_2__std__XMM_std__.0
mov dword [esp + 0x18], 0x10022fb0
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
call fcn.10022d60
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10022f47
mov esi, dword [ecx]
lea eax, [esp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1003863a
mov esp, ebp
pop ebp
ret 4
Function at 0x10025540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060d1a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1007b054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5c
mov dword [ebp - 4], 1
call fcn.10038856
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x5c
push 0
push esi
call fcn.1003a7d0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
lea ebx, [esi + 0x18]
mov dword [esi + 0x14], 0
push 5
push str.Title
mov dword [ebx], 0
push ebx
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx + 0x10], 5
call fcn.1003a240
add esp, 0x1c
mov byte [ebx + 5], 0
lea edi, [esi + 0x30]
mov dword [edi], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x10], 4
mov eax, dword [str.Desc]
mov dword [edi], eax
lea eax, [ebp + 8]
mov byte [edi + 4], 0
mov dword [esi + 0x48], 0x43c80000
mov dword [esi + 0x4c], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0xf
mov dword [ebp - 0x10], esi
cmp ebx, eax
je 0x10025636
cmp dword [ebp + 0x1c], 0x10
mov ecx, ebx
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.10008990
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x10025650
cmp dword [ebp + 0x34], 0x10
mov ecx, edi
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.10008990
push 0x1007bc20
mov eax, 0x43e110
mov ecx, esi
call eax
mov eax, dword [0x10080d4c]
cmp eax, dword [0x10080d50]
je 0x10025676
mov dword [eax], esi
add dword [0x10080d4c], 4
jmp 0x10025683
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.10026100
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [0x10080cd8], esi
cmp edx, 0x10
jb 0x100256b9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100256af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002570f
push edx
push ecx
call fcn.1003899b
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x100256fb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100256f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002570f
push edx
push ecx
call fcn.1003899b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10045bb9
int3
Function at 0x100283e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], 0
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmovne esi, edi
test esi, esi
jne 0x10028409
mov byte [ebp - 8], 0
jmp 0x10028429
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp - 4]
setne byte [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.1003a240
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x10028453
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10028460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x10028487
xor bl, bl
jmp 0x100284ac
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.1003a240
add esp, 0xc
test bl, bl
je 0x100284d5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100284e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x1002852e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 1]
movzx eax, cl
sub eax, 0xe8
je 0x100285b1
sub eax, 1
je 0x100285b1
sub eax, 0x16
jne 0x100285a2
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.1002a660
add esp, 4
cmp al, 0x15
je 0x1002855b
cmp al, 0x25
jne 0x100285a2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10028595
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.1002a610
add esp, 4
add eax, 4
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.100284e0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe9
test eax, eax
je 0x1002863a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1002867a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028690
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.100284e0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x100286ea
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1002872a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a610
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov esi, dword [esi]
test eax, eax
je 0x1002a656
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002a660
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x1002a6a7
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10036b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x401000
call fcn.10036d60
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10029bb0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10036bde
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x10036bf0
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10036d80
cmp eax, 0x16197be9
jne 0x10036c0b
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10036d80
cmp eax, 0x94bf
jne 0x10036c26
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10036d80
cmp eax, 0x94bf
jne 0x10036c41
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10036d80
cmp eax, 0x94bf
jne 0x10036c5c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10036d80
cmp eax, 0x3539f633
jne 0x10036c77
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10036d80
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x10036d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.10036d60
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10029bb0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10036dd9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100499bf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100499fe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100499fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100499fe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100499fe
cmp dword [ecx + 0x74], 0xe
jbe 0x100499fe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1004e7ea
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004e76c
Function at 0x10050831
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100679f8
push 0x100679f0
push str.FlsAlloc
push 0x1f
call fcn.10050679
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10050865
push dword [ebp + 8]
mov ecx, esi
call dword [0x10063184]
call esi
jmp 0x1005086b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100508af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10067a08
push 0x10067a00
push str.FlsGetValue
push 0x21
call fcn.10050679
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100508e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10063184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100508ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10067a10
push 0x10067a08
push str.FlsSetValue
push 0x22
call fcn.10050679
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10050928
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10063184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005118e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10039930
mov eax, dword [0x1007b054]
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.1004d37b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100511d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005132c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005cc80
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 + 0x10080878]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10051fb0
mov ecx, dword [esi*4 + 0x10080878]
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 0x10051325
cmp eax, dword [ecx + edi + 0x24]
jne 0x10051325
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 0x10051325
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10051fb0
add esp, 0x14
test edx, edx
jl 0x10051325
jg 0x1005129b
test eax, eax
jb 0x10051325
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10051325
jl 0x100512b5
cmp dword [ebp - 0x1008], eax
ja 0x10051325
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100512d3
test ebx, ebx
je 0x1005130c
cmp ecx, edi
jae 0x1005130c
mov al, byte [ecx]
cmp al, 0xd
jne 0x100512ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100512f9
cmp byte [ecx + 1], 0xa
jne 0x100512f9
inc ecx
jmp 0x100512f9
movzx eax, al
movsx eax, byte [eax + 0x1007b2f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100512d3
cmp edx, ebx
jne 0x100512d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005132a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003863a
leave
ret