joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x2b
mov al, 0x45
xor al, byte [ebp - 0x10]
mov bl, 0x47
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x4f
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x5f
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 5
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10017e53
movaps xmm0, xmmword [0x100739e0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x2d370b31
mov dword [ebp - 0x14], 0x3b3e3a
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10017e10
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10017e53
test esi, esi
jne 0x10017e3e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x10017e9e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10017ea2
cmp edx, esi
jne 0x10017e87
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x10017ec2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10017ec6
cmp edx, esi
jne 0x10017eab
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10017ee6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10017eea
cmp edx, esi
jne 0x10017ecf
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017f00
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1007a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
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]
test eax, eax
je 0x10017f5c
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x10017f6b
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10017f46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10017f63
push eax
call esi
movaps xmm0, xmmword [str._kQw_VPH_qMW_DA]
xor eax, eax
movups xmmword [ebp - 0x150], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x150]
xor byte [ebp + eax - 0x14f], cl
inc eax
cmp eax, 0xe
jb 0x10017fa0
mov byte [ebp - 0x140], 0x30
mov al, 0x5e
xor al, byte [ebp - 0x140]
mov bl, 0x5c
mov ah, bl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x140]
mov dl, 0x54
mov bh, ah
mov byte [ebp - 0x131], ah
mov dh, dl
mov byte [ebp - 0x136], 0
xor dl, al
mov byte [ebp - 0x141], 0
xor bl, al
mov byte [ebp - 0x13d], dl
xor ah, al
mov byte [ebp - 0x13c], bl
xor dh, al
mov byte [ebp - 0x13b], ah
xor bh, al
mov byte [ebp - 0x139], dh
mov cl, 0x44
mov byte [ebp - 0x138], bh
xor cl, al
mov byte [ebp - 0x136], 0
mov ch, 0x1e
mov byte [ebp - 0x13e], cl
xor ch, al
mov al, byte [ebp - 0x131]
xor al, byte [ebp - 0x140]
mov byte [ebp - 0x137], al
lea eax, [ebp - 0x13f]
push eax
mov byte [ebp - 0x13a], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x14f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.10012a70
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001809f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
js 0x10017f63
cmp dword [ebp - 8], 0
ja 0x10017f63
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bf25
mov esp, ebp
pop ebp
ret
Function at 0x10030fd0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f27d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x1007a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.10030e60
cmp byte [ebp - 0x84], 0
jne 0x10031121
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x10031065
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x1007d3d8
call fcn.10030e60
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.10030e60
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x100310d4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call fcn.1003e0a0
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.10030f10
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1003115d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031153
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031179
push ecx
push edx
call fcn.1003bf86
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003bf25
mov esp, ebp
pop ebp
ret
call fcn.10041254
int3
Function at 0x10031fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1007a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10062580
push 0x64
mov edi, edx
mov esi, ecx
call fcn.1003d046
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1003218d
push 0x64
push 0
push ebx
call fcn.1003e0a0
mov byte [ebx], 1
lea eax, [ebx + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebx + 0x10], xmm0
movq qword [ebx + 0x20], xmm0
mov dword [ebx + 0x28], 0
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 4], 2
mov dword [ebx + 0x30], 0
call fcn.1005be38
add esp, 4
mov dword [0x100b4a74], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10037560
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1007bfdc
mov dword [0x100b066c], eax
call fcn.1005bca7
add esp, 4
test eax, eax
jne 0x100321a8
mov eax, dword [0x1007c008]
cmp eax, 0x7fffffff
je 0x100321af
test edi, edi
je 0x100320a5
movups xmm0, xmmword [edi]
movups xmmword [0x100b063c], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x100320af
xorps xmm0, xmm0
movups xmmword [0x100b063c], xmm0
movq qword [0x100b064c], xmm0
xorps xmm0, xmm0
push 0x1007bfdc
movups xmmword [0x100b0654], xmm0
movq qword [0x100b0664], xmm0
call fcn.1005bcb8
add esp, 4
cmp dword [0x100b0638], 0
jne 0x10032197
mov dword [0x100a04b0], 0x1007d3d0
test esi, esi
je 0x10032118
cmp byte [esi], 0
mov ecx, 0x100a04c0
je 0x10032115
mov edx, 1
sub edx, esi
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x10032115
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x10032102
mov byte [ecx], 0
mov esi, dword [0x100b4a74]
mov al, 1
mov dword [0x100b0638], 0x100a04b0
mov dword [0x100a04b8], 0x10032610
mov dword [0x100a04bc], 0x10032620
xchg byte [esi], al
push 4
call fcn.1003bf33
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10032ab0
push 0
push 0
call fcn.1004a397
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x100321c1
cmp dword [esi + 0x60], 0
jne 0x100321bc
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bf25
mov esp, ebp
pop ebp
ret
mov dword [0x100b4a74], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bf25
mov esp, ebp
pop ebp
ret
push 5
call fcn.1005bc4f
dec eax
push 6
mov dword [0x1007c008], eax
call fcn.1005bc4f
call fcn.1004a4bc
push 6
mov dword [ebp - 0x4c], 0
call fcn.1005bc4f
int3
Function at 0x100331a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100b0638]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.1003db20
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10033272
mov eax, dword [edi]
test eax, eax
je 0x10033221
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10033221
test ebx, ebx
je 0x10033221
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10033221
cmp dword [ebp - 8], esi
je 0x10033272
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10033241
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10033235
cmp eax, 1
jne 0x10033241
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bf25
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bf25
mov esp, ebp
pop ebp
ret 8
Function at 0x10039240
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.10039410
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003931d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1007a010]
jb 0x1003928a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1007a014]
ja 0x1003928a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003925a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1003e0a0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100392af
jmp 0x1003931d
cmp dword [ebp - 0x14], 0x10000
jne 0x10039303
cmp dword [ebp - 0x18], 0x10000
jb 0x10039303
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100392e6
mov eax, dword [ebp - 8]
jmp 0x1003931f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100392f6
xor eax, eax
jmp 0x1003931f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10039318
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10039410
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003925a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10039330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10039440
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10039405
mov edx, dword [ebp - 4]
cmp edx, dword [0x1007a010]
jb 0x10039375
mov eax, dword [ebp - 4]
cmp eax, dword [0x1007a014]
ja 0x10039375
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10039345
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1003e0a0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003939a
jmp 0x10039405
cmp dword [ebp - 0x14], 0x10000
jne 0x100393ee
cmp dword [ebp - 0x18], 0x10000
jb 0x100393ee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100393d1
mov eax, dword [ebp - 8]
jmp 0x10039407
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100393e1
xor eax, eax
jmp 0x10039407
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10039400
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10039440
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10039345
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039470
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.10039860
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1007df9c], 0
jne 0x100394ad
cmp dword [0x1007df98], 0
je 0x100394ad
mov eax, dword [0x1007df98]
mov dword [0x1007df9c], eax
cmp dword [0x1007df9c], 0
je 0x1003952a
mov ecx, dword [0x1007df9c]
cmp dword [ecx + 8], 0
je 0x1003952a
mov edx, dword [0x1007df9c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003952a
mov ecx, dword [0x1007df9c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003952a
mov eax, dword [0x1007df9c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100394f9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10039500
xor eax, eax
jmp 0x10039649
mov ecx, dword [0x1007df9c]
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.1003e0a0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10039649
mov edx, dword [0x1007df98]
mov dword [0x1007df9c], edx
jmp 0x10039546
mov eax, dword [0x1007df9c]
mov ecx, dword [eax + 4]
mov dword [0x1007df9c], ecx
cmp dword [0x1007df9c], 0
je 0x10039586
cmp dword [0x1007df9c], 0
je 0x10039584
mov edx, dword [0x1007df9c]
cmp dword [edx + 8], 0
je 0x10039584
mov eax, dword [0x1007df9c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10039584
mov edx, dword [0x1007df9c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10039584
jmp 0x100394de
jmp 0x10039538
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.10039650
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10039647
mov eax, dword [ebp - 0x18]
mov dword [0x1007df9c], eax
mov ecx, dword [0x1007df9c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1007df9c]
mov dword [edx + 8], 0
mov eax, dword [0x1007df9c]
mov ecx, dword [0x1007df98]
mov dword [eax + 4], ecx
mov edx, dword [0x1007df9c]
mov dword [0x1007df98], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1007df9c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10039617
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10039637
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 0x1003960e
mov eax, dword [0x1007df9c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100394de
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007df98]
mov dword [ebp - 4], eax
jmp 0x1003a3a9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003a3d0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003a3ce
call sub.KERNEL32.dll_GetLastError
jmp 0x1003a3d2
jmp 0x1003a3a0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1007dfa8], eax
je 0x1003a894
mov eax, 0x10dd
jmp 0x1003aa3c
cmp dword [0x1007dfac], 0
je 0x1003a8a7
mov eax, dword [0x1007dfac]
jmp 0x1003aa3c
cmp dword [ebp + 0xc], 0
jne 0x1003a8b7
mov eax, 0x57
jmp 0x1003aa3c
cmp dword [ebp + 8], 0
jne 0x1003a8c7
mov eax, 6
jmp 0x1003aa3c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003a8f0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1007dfac], ecx
mov edx, dword [ebp + 8]
mov dword [0x1007dfb0], edx
mov eax, dword [ebp - 8]
jmp 0x1003aa3c
push 0x18
call fcn.1003bf33
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003a94b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1007dfac], ecx
cmp dword [ebp - 4], 0
je 0x1003a93a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003bf86
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1007dfb0], ecx
mov eax, dword [ebp - 8]
jmp 0x1003aa3c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003a850
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003a850
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1003a98b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003a9a7
mov dword [ebp - 8], 9
cmp dword [0x1007dfa0], 0
je 0x1003a9a2
jmp 0x1003a919
jmp 0x1003a910
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003a9ce
mov dword [ebp - 8], 9
cmp dword [0x1007dfa0], 0
je 0x1003a9c9
jmp 0x1003a919
jmp 0x1003a910
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003a9f9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003a910
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1007dfb8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1007dfb8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003aa50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1007dfa8], eax
je 0x1003aa6d
mov eax, 0x10dd
jmp 0x1003ab50
mov eax, dword [0x1007dfb8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003aaec
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003aac8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003aac8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100398f0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003bf86
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003aa75
mov dword [0x1007dfb8], 0
call fcn.1003a1d0
mov ecx, dword [0x1007dfb4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003ab3a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003bf86
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003ab04
mov dword [0x1007dfb4], 0
mov dword [0x1007dfa8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003b040
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1007dfac], 0
je 0x1003b059
mov eax, dword [0x1007dfac]
jmp 0x1003b0f8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003b06a
xor eax, eax
jmp 0x1003b0f8
push 8
call fcn.1003bf33
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003b0c2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003b0ab
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003bf86
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1007dfac], eax
mov dword [0x1007dfb0], 0
mov eax, dword [ebp - 8]
jmp 0x1003b0f8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003b0da
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003b08a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1007dfb4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1007dfb4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1004633e
Capabilities:
Parse pe header

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