joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022060
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 0x100220f0
mov eax, dword [0x10084e68]
mov ecx, dword [0x10084e6c]
cmp eax, ecx
je 0x1002209c
cmp dword [eax], esi
je 0x10022094
add eax, 4
cmp eax, ecx
jne 0x10022087
jmp 0x1002209c
cmp eax, ecx
jne 0x1002216c
cmp ecx, dword [0x10084e70]
je 0x100220af
mov dword [ecx], esi
add dword [0x10084e6c], 4
jmp 0x100220c1
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, 0x10084e68
call fcn.100214b0
mov esi, dword [ebp - 4]
mov eax, dword [0x10084e60]
cmp eax, dword [0x10084e64]
je 0x100220dc
mov dword [eax], esi
add dword [0x10084e60], 4
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x10084e5c
push eax
call fcn.100214b0
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10084e68]
mov eax, ecx
mov edx, dword [0x10084e6c]
cmp eax, edx
je 0x1002216c
cmp dword [eax], esi
je 0x10022112
add eax, 4
cmp eax, edx
jne 0x10022102
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, edx
je 0x1002216c
cmp ecx, edx
je 0x1002212b
nop word [eax + eax]
cmp dword [ecx], esi
je 0x1002212b
add ecx, 4
cmp ecx, edx
jne 0x10022120
lea eax, [ecx + 4]
sub edx, eax
push edx
push eax
push ecx
call fcn.1003cc30
sub dword [0x10084e6c], 4
add esp, 0xc
mov eax, dword [0x10084e54]
cmp eax, dword [0x10084e58]
je 0x1002215d
mov dword [eax], esi
add dword [0x10084e54], 4
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x10084e50
push eax
call fcn.100214b0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100250e0
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 0x10025109
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 0x1002512e
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 0x10025150
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 0x1002519c
mov ecx, dword [esi + 0x70]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x1002517d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100252bb
mov eax, edx
push ecx
push eax
call fcn.1003b38b
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 0x100251e8
mov ecx, dword [esi + 0x64]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x100251c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100252bb
mov eax, edx
push ecx
push eax
call fcn.1003b38b
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 0x10025234
mov ecx, dword [esi + 0x58]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x10025215
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100252bb
mov eax, edx
push ecx
push eax
call fcn.1003b38b
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 0x10025264
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x1002525a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100252bb
mov eax, edx
push ecx
push eax
call fcn.1003b38b
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 0x100252a6
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x1002529c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100252bb
mov eax, edx
push ecx
push eax
call fcn.1003b38b
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.100485a9
int3
Function at 0x10025650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1007f054]
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.10025a70
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], 0x10025730
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], ecx
call fcn.10025530
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x100256c1
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], 0x10025780
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
call fcn.10025530
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10025717
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.1003b02a
mov esp, ebp
pop ebp
ret 4
Function at 0x10027d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063c9a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1007f054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5c
mov dword [ebp - 4], 1
call fcn.1003b246
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x5c
push 0
push esi
call fcn.1003d1c0
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.1003cc30
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 0x10027e06
cmp dword [ebp + 0x1c], 0x10
mov ecx, ebx
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.10009770
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x10027e20
cmp dword [ebp + 0x34], 0x10
mov ecx, edi
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.10009770
push 0x1007fc20
mov eax, 0x43e110
mov ecx, esi
call eax
mov eax, dword [0x10084ed8]
cmp eax, dword [0x10084edc]
je 0x10027e46
mov dword [eax], esi
add dword [0x10084ed8], 4
jmp 0x10027e53
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.100288d0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [0x10084e18], esi
cmp edx, 0x10
jb 0x10027e89
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10027e7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10027edf
push edx
push ecx
call fcn.1003b38b
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 0x10027ecb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10027ec1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10027edf
push edx
push ecx
call fcn.1003b38b
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.100485a9
int3
Function at 0x1002ae10
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 0x1002ae39
mov byte [ebp - 8], 0
jmp 0x1002ae59
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.1003cc30
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x1002ae83
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 0x1002ae90
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 0x1002aeb7
xor bl, bl
jmp 0x1002aedc
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.1003cc30
add esp, 0xc
test bl, bl
je 0x1002af05
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 0x1002af10
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 0x1002af5e
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 0x1002afe1
sub eax, 1
je 0x1002afe1
sub eax, 0x16
jne 0x1002afd2
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.1002cf60
add esp, 4
cmp al, 0x15
je 0x1002af8b
cmp al, 0x25
jne 0x1002afd2
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 0x1002afc5
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.1002cf10
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 0x1002b010
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.1002af10
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 0x1002b06a
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 0x1002b0aa
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 0x1002b0c0
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.1002af10
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 0x1002b11a
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 0x1002b15a
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 0x1002cf10
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 0x1002cf56
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 0x1002cf60
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 0x1002cfa7
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 0x10039570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x401000
call fcn.10039750
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1002c4b0
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 0x100395ce
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 0x100395e0
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10039770
cmp eax, 0x16197be9
jne 0x100395fb
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10039770
cmp eax, 0x94bf
jne 0x10039616
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10039770
cmp eax, 0x94bf
jne 0x10039631
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10039770
cmp eax, 0x94bf
jne 0x1003964c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10039770
cmp eax, 0x3539f633
jne 0x10039667
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10039770
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 0x10039770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.10039750
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1002c4b0
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 0x100397c9
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 0x1004c3af
Capabilities:
Parse pe header

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

Function at 0x100511da
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005115c
Function at 0x10053224
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006ba08
push 0x1006ba00
push str.FlsAlloc
push 0x1f
call fcn.1005306c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10053258
push dword [ebp + 8]
mov ecx, esi
call dword [0x10067184]
call esi
jmp 0x1005325e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100532a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006ba18
push 0x1006ba10
push str.FlsGetValue
push 0x21
call fcn.1005306c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100532d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10067184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100532e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006ba20
push 0x1006ba18
push str.FlsSetValue
push 0x22
call fcn.1005306c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005331b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10067184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10053b81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003c320
mov eax, dword [0x1007f054]
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.1004fd6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10053bc3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10053d1f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005f670
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 + 0x100849b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100549a3
mov ecx, dword [esi*4 + 0x100849b8]
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 0x10053d18
cmp eax, dword [ecx + edi + 0x24]
jne 0x10053d18
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 0x10053d18
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100549a3
add esp, 0x14
test edx, edx
jl 0x10053d18
jg 0x10053c8e
test eax, eax
jb 0x10053d18
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10053d18
jl 0x10053ca8
cmp dword [ebp - 0x1008], eax
ja 0x10053d18
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10053cc6
test ebx, ebx
je 0x10053cff
cmp ecx, edi
jae 0x10053cff
mov al, byte [ecx]
cmp al, 0xd
jne 0x10053ce0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10053cec
cmp byte [ecx + 1], 0xa
jne 0x10053cec
inc ecx
jmp 0x10053cec
movzx eax, al
movsx eax, byte [eax + 0x1007f2f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10053cc6
cmp edx, ebx
jne 0x10053cc6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10053d1d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003b02a
leave
ret
Function at 0x10053e3b
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 + 0x100849b8]
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 0x10053e7b
cmp byte [ebx], 0xa
jne 0x10053e7b
or byte [edi + eax + 0x28], 4
jmp 0x10053e80
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 0x10053f7f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10053f62
inc eax
cmp dl, 0xd
je 0x10053eac
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10053ed2
cmp eax, ecx
jae 0x10053ee0
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 0x10053e94
jmp 0x10053f7f
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 0x10053f5d
cmp dword [ebp - 0x10], 0
je 0x10053f5d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100849b8]
test byte [eax + edi + 0x28], 0x48
je 0x10053f37
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10053f22
mov byte [esi], dl
jmp 0x10053f33
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100849b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10053f7f
cmp byte [ebp - 1], 0xa
jne 0x10053f46
cmp esi, ebx
jne 0x10053f46
mov byte [esi], 0xa
jmp 0x10053f7e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100549c1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10053f7f
mov byte [esi], 0xd
jmp 0x10053f7e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100849b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10053f7c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10053f7f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret