joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052980
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, cl
mov dword [ebp - 4], 0
mov edx, 0x20
mov eax, dword [0x101c3114]
add eax, 0x64
mov dword [0x101c1d68], eax
lea ecx, [eax - 0xc]
call fcn.10002460
mov esi, dword [0x101c30d0]
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 0x18
push eax
push 0x40
push 8
push esi
mov dword [ebp - 0x1c], 0
call edi
movzx eax, bl
mov dword [esi], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push 8
push esi
call edi
mov esi, dword [0x101c30d0]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
add esi, 0x30
mov dword [ebp - 0x1c], 0
push esi
call edi
lea eax, [ebp - 0x1c]
mov byte [esi], 0
push eax
push dword [ebp - 0x18]
push 8
push esi
call edi
mov edx, dword [ebp + 8]
test edx, edx
je 0x10005dce
mov ecx, 0x1c
call fcn.10005ca0
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10005ddf
mov ecx, 0x20
call fcn.10005ca0
mov ecx, 0x18
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xffffffd4
mov dword [0x101c1eb0], eax
call fcn.10002460
mov ecx, 0x3c
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xffffffdc
mov dword [0x101c1eb0], eax
call fcn.10002460
mov ecx, 0x40
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xffffffe0
mov dword [0x101c1eb0], eax
call fcn.10002460
mov ecx, 0x30
call fcn.1002ce70
movzx ecx, al
mov dl, al
mov dword [0x101c30dc], ecx
mov ecx, dword [0x101c1d68]
add ecx, 0xffffffd8
call fcn.100023d0
mov ecx, 0x31
call fcn.1002ce70
movzx ecx, al
mov dl, al
mov dword [0x101c30dc], ecx
mov ecx, dword [0x101c1d68]
add ecx, 0xffffffe4
call fcn.100023d0
mov ecx, 0x51
call fcn.1002ce70
mov ecx, dword [0x101c1d68]
movzx edx, al
mov dword [0x101c30dc], edx
mov dl, al
lea ecx, [ecx - 0x1b]
call fcn.100023d0
mov ecx, 0x1c
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
mov dword [0x101c1eb0], eax
lea ecx, [ecx - 0x18]
call fcn.10002460
mov ecx, 0x20
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xffffffec
mov dword [0x101c1eb0], eax
call fcn.10002460
mov ecx, 0x24
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xfffffff0
mov dword [0x101c1eb0], eax
call fcn.10002460
mov ecx, 0x28
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xfffffff8
mov dword [0x101c1eb0], eax
call fcn.10002460
mov ecx, 0x2c
call fcn.1002ce00
mov ecx, dword [0x101c1d68]
mov edx, eax
add ecx, 0xfffffffc
mov dword [0x101c1eb0], eax
call fcn.10002460
mov eax, dword [0x101c1d68]
sub eax, 0x2c
push eax
call dword [0x101c1e2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret
Function at 0x10006300
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10062408
push 0x10032c40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10065040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
movss dword [ebp - 0x20], xmm0
jmp 0x1000634a
jmp 0x1000635c
jmp 0x1000636e
jmp 0x10006380
wait
mov dword [ebp - 4], 0
jmp 0x1000639a
jmp 0x100063ac
jmp 0x100063be
jmp 0x100063d0
mov dl, 0x42
mov dword [ebp - 0x2c], 0x773a7242
mov dword [ebp - 0x28], 0x76737272
mov word [ebp - 0x24], 0x73
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 8
jae 0x10006400
mov al, byte [ebp + ecx - 0x2b]
xor al, dl
mov byte [ebp + ecx - 0x2b], al
inc ecx
mov dl, byte [ebp - 0x2c]
jmp 0x100063e8
mov byte [ebp - 0x23], 0
lea ecx, [ebp - 0x2b]
call fcn.100062b0
add eax, dword [0x101c30a8]
add eax, dword [0x101c1ea4]
push 0
push eax
movss xmm1, dword [ebp - 0x20]
call fcn.1002cee0
add esp, 8
jmp 0x1000643a
wait
jmp 0x10006446
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000645f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ea70
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x10065040]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x48]
push 0x2c
push eax
push dword [0x101c0b0c]
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [esp + 0x10]
mov ecx, esi
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, edx
sbb eax, dword [esp + 0x1c]
mov dword [edi + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x2c], edx
mov edx, dword [esp + 0x20]
mov dword [edi + 0x10], edx
sub edx, dword [esp + 0x28]
mov dword [edi + 0x14], ecx
sbb ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [edi + 0x20], eax
mov eax, edi
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [edi + 0x28], esi
mov dword [edi + 0x24], 0
mov dword [edi], edx
mov dword [edi + 0xc], 0
pop edi
pop esi
xor ecx, esp
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f8e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [eax]
push 9
call edi
shr ax, 0xf
push 0x75
mov byte [0x101c30c6], al
call edi
shr ax, 0xf
push 0x76
mov byte [0x101c1d43], al
call edi
shr ax, 0xf
push 0x7a
mov byte [0x101c1e96], al
call edi
test ax, ax
jns 0x1000f973
cmp dword [0x10105508], 6
mov byte [0x101c1d9d], 1
jg 0x1000f967
call esi
mov ecx, dword [0x101c3128]
add ecx, 0x1f4
test edx, edx
jb 0x1000f97a
ja 0x1000f958
cmp eax, ecx
jbe 0x1000f97a
call esi
inc dword [0x10105508]
mov dword [0x101c3128], eax
jmp 0x1000f97a
mov dword [0x10105508], 1
jmp 0x1000f97a
mov byte [0x101c1d9d], 0
call esi
mov ecx, dword [0x101c1d50]
add ecx, 0x12c
test edx, edx
jb 0x1000f9db
ja 0x1000f992
cmp eax, ecx
jbe 0x1000f9db
call esi
cmp dword [0x101c1da0], 1
mov dword [0x101c1d50], eax
jne 0x1000f9ce
mov eax, dword [0x101c1dac]
add eax, dword [0x101c2098]
push 0
push eax
call fcn.1002ccc0
add esp, 8
movzx ecx, al
call fcn.10003510
test eax, eax
je 0x1000f9ce
movss xmm0, dword [0x1005c12c]
jmp 0x1000f9d6
movss xmm0, dword [0x1005c128]
call fcn.10006300
call esi
mov ecx, dword [0x101c3130]
add ecx, 0x64
test edx, edx
jb 0x1000fa03
ja 0x1000f9f0
cmp eax, ecx
jbe 0x1000fa03
call esi
mov dword [0x101c3130], eax
mov byte [0x101c1e94], 0
call fcn.1000f750
call esi
mov ecx, dword [0x101c312c]
add ecx, 0x3e8
test edx, edx
jb 0x1000fa27
ja 0x1000fa1b
cmp eax, ecx
jbe 0x1000fa27
call esi
mov dword [0x101c312c], eax
call fcn.10002bd0
push 0xa
call ebx
jmp 0x1000f900
Function at 0x100106b0
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101c1e34]
mov dword [ebp - 0x2f0], eax
mov eax, dword [0x101c3068]
push edi
mov dword [ebp - 0x2fc], eax
mov eax, dword [0x101c308c]
push 0
mov dword [ebp - 0x2f8], eax
mov eax, dword [0x101c3090]
push 4
mov dword [ebp - 0x2f4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x100107f7
push ebx
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001072a
push edi
call ebx
push esi
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x2e0], eax
jne 0x100107dc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x2e4]
cmp ecx, eax
je 0x100107dc
push ecx
push 0
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100107dc
push esi
mov dword [ebp - 0x2d0], 0x10010
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100107d2
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2b8], 0x55
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
lea eax, [ebp - 0x2ec]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10010730
pop esi
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret
Function at 0x1002c2f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052ca0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10065040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1002ec14
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1002e224
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1002c290
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002ccc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10062968
push 0x10032c40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10065040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov bl, byte [edi]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov al, bl
jmp 0x1002cd42
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret

Function at 0x1002cd60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10062988
push 0x10032c40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10065040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edi, word [ebx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov ax, di
jmp 0x1002cde4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret
Function at 0x1002cfd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10062a08
push 0x10032c40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10065040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
wait
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movss xmm0, dword [edi]
movss dword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
wait
mov dword [ebp - 4], 0xfffffffe
movss xmm0, dword [ebp - 0x2c]
jmp 0x1002d05e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret

Function at 0x1002d080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10062a28
push 0x10032c40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10065040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
jmp 0x1002d102
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002eb4c
mov esp, ebp
pop ebp
ret
Function at 0x1002fc00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1002fdb0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002fccd
mov edx, dword [ebp - 4]
cmp edx, dword [0x100650a0]
jb 0x1002fc4a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100650a4]
ja 0x1002fc4a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002fc1a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10033450
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1002fc70
jmp 0x1002fccd
cmp dword [ebp - 0x14], 0x10000
jne 0x1002fcb3
cmp dword [ebp - 0x18], 0x10000
jb 0x1002fcb3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002fca6
mov eax, dword [ebp - 8]
jmp 0x1002fccf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002fcc8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002fdb0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002fc1a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002fce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002fde0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002fda5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100650a0]
jb 0x1002fd25
mov eax, dword [ebp - 4]
cmp eax, dword [0x100650a4]
ja 0x1002fd25
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002fcf5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10033450
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1002fd4b
jmp 0x1002fda5
cmp dword [ebp - 0x14], 0x10000
jne 0x1002fd8e
cmp dword [ebp - 0x18], 0x10000
jb 0x1002fd8e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002fd81
mov eax, dword [ebp - 8]
jmp 0x1002fda7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002fda0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002fde0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002fcf5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002fe10
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10030200
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101c1564], 0
jne 0x1002fe4d
cmp dword [0x101c1560], 0
je 0x1002fe4d
mov eax, dword [0x101c1560]
mov dword [0x101c1564], eax
cmp dword [0x101c1564], 0
je 0x1002feca
mov ecx, dword [0x101c1564]
cmp dword [ecx + 8], 0
je 0x1002feca
mov edx, dword [0x101c1564]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002feca
mov ecx, dword [0x101c1564]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1002feca
mov eax, dword [0x101c1564]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1002fe99
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1002fea0
xor eax, eax
jmp 0x1002ffe9
mov ecx, dword [0x101c1564]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10033450
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1002ffe9
mov edx, dword [0x101c1560]
mov dword [0x101c1564], edx
jmp 0x1002fee6
mov eax, dword [0x101c1564]
mov ecx, dword [eax + 4]
mov dword [0x101c1564], ecx
cmp dword [0x101c1564], 0
je 0x1002ff26
cmp dword [0x101c1564], 0
je 0x1002ff24
mov edx, dword [0x101c1564]
cmp dword [edx + 8], 0
je 0x1002ff24
mov eax, dword [0x101c1564]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1002ff24
mov edx, dword [0x101c1564]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1002ff24
jmp 0x1002fe7e
jmp 0x1002fed8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002fff0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002ffe7
mov eax, dword [ebp - 0x18]
mov dword [0x101c1564], eax
mov ecx, dword [0x101c1564]
mov dword [ecx], 0x52727464
mov edx, dword [0x101c1564]
mov dword [edx + 8], 0
mov eax, dword [0x101c1564]
mov ecx, dword [0x101c1560]
mov dword [eax + 4], ecx
mov edx, dword [0x101c1564]
mov dword [0x101c1560], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101c1564]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1002ffb7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1002ffd7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1002ffae
mov eax, dword [0x101c1564]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1002fe7e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10040958
Capabilities:
Parse pe header

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

Function at 0x10044492
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100582e4
push 0x100582dc
push str.FlsAlloc
push 0x1f
call fcn.1004431a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100444c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10054264]
call esi
jmp 0x100444cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10044510
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100582f4
push 0x100582ec
push str.FlsGetValue
push 0x21
call fcn.1004431a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044547
push dword [ebp + 8]
mov ecx, esi
call dword [0x10054264]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004454f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100582fc
push 0x100582f4
push str.FlsSetValue
push 0x22
call fcn.1004431a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044589
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10054264]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10047202
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 + 0x101c18f8]
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 0x10047242
cmp byte [ebx], 0xa
jne 0x10047242
or byte [edi + eax + 0x28], 4
jmp 0x10047247
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 0x10047346
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10047329
inc eax
cmp dl, 0xd
je 0x10047273
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10047299
cmp eax, ecx
jae 0x100472a7
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 0x1004725b
jmp 0x10047346
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 0x10047324
cmp dword [ebp - 0x10], 0
je 0x10047324
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101c18f8]
test byte [eax + edi + 0x28], 0x48
je 0x100472fe
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100472e9
mov byte [esi], dl
jmp 0x100472fa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101c18f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10047346
cmp byte [ebp - 1], 0xa
jne 0x1004730d
cmp esi, ebx
jne 0x1004730d
mov byte [esi], 0xa
jmp 0x10047345
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10047c51
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10047346
mov byte [esi], 0xd
jmp 0x10047345
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101c18f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10047343
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10047346
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret