joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009250
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10018588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ecx + 4]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], ecx
jne 0x1000927c
mov eax, 0x10019280
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x100092b1
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov al, byte [esp + 0xb]
push ebx
push ebp
mov byte [esp + 0x34], al
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov cl, byte [esp + 0x13]
mov dword [esp + 0x5c], edi
mov byte [esp + 0x44], cl
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
lea edx, [esp + 0x14]
mov byte [esp + 0x5c], 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.1000d06a
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x20]
push edi
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x28]
mov byte [edx + ebp], 0
mov byte [esp + 0x28], al
call fcn.10002ea0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call fcn.10003000
test al, al
je 0x10009371
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov byte [ebx + eax], 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 2
push ecx
mov ecx, dword [esp + 0x20]
call fcn.10005d90
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 1
call fcn.10002ea0
push ebp
call fcn.1000cba7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x1000baa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x38
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [0x1014a498]
mov ecx, dword [0x1014d840]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0x1000b450
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
push 0
jne 0x1000bafe
mov eax, dword [0x1014a494]
push str.blah
push 0x1014a54c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
add esp, 0x38
ret
mov ecx, dword [0x1014a498]
mov edx, dword [0x1014a494]
mov eax, dword [0x1014d65c]
push ecx
mov ecx, dword [0x1014d650]
push 0
push edx
mov edx, dword [0x1014d66c]
push eax
mov eax, dword [0x1014d668]
push ecx
mov ecx, dword [0x1014d840]
push edx
push eax
push 0x40000
push 0x1014d5f0
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x1014d824], eax
jne 0x1000bb6c
mov edx, dword [0x1014a494]
push eax
push str.blah
push 0x1014a53c
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
add esp, 0x38
ret
lea ecx, [esp + 4]
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x1014d65c]
mov ecx, dword [0x1014d650]
mov edi, dword [esp + 0x10]
push 6
lea eax, [edx + edx]
mov edx, dword [esp + 0x18]
sub eax, edx
lea edx, [ecx + ecx]
sub edx, edi
push eax
mov eax, dword [0x1014d824]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [0x1014d65c]
mov edx, dword [0x1014d650]
push ecx
push edx
push eax
mov dword [0x1014d818], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x1014d81c], eax
push eax
mov eax, dword [0x1014d818]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x1014d824]
push 1
push ecx
mov dword [0x1014d820], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x1014a494]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x1000b9b0
push 0xfffffffffffffffc
push edx
call esi
mov dword [0x1014d89c], eax
mov eax, dword [0x1014d824]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [0x1014d824]
xor eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call esi
mov eax, dword [0x1014d654]
pop esi
test eax, eax
je 0x1000bc48
mov edx, dword [0x1014d658]
mov eax, dword [0x1014d824]
push edx
push eax
jmp 0x1000bc54
mov ecx, dword [0x1014d824]
push 0xff
push ecx
call fcn.1000ba60
add esp, 8
push 0
call fcn.1000b380
mov edx, dword [0x1014d824]
push 0x1000ba20
push 0x32
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop edi
add esp, 0x38
ret
Function at 0x100010a0
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.10001240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10001164
cmp dword [ebp - 4], 0x50000000
jb 0x100010e1
cmp dword [ebp - 4], 0x80000000
ja 0x100010e1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100010ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10062240
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 0x10001107
jmp 0x10001164
cmp dword [ebp - 0x14], 0x10000
jne 0x1000114a
cmp dword [ebp - 0x18], 0x10000
jb 0x1000114a
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 0x1000113d
mov eax, dword [ebp - 8]
jmp 0x10001166
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000115f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100010ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000122c
cmp dword [ebp - 4], 0x50000000
jb 0x100011ac
cmp dword [ebp - 4], 0x80000000
ja 0x100011ac
mov dword [ebp - 4], 0x80010000
jmp 0x10001185
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10062240
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 0x100011d2
jmp 0x1000122c
cmp dword [ebp - 0x14], 0x10000
jne 0x10001215
cmp dword [ebp - 0x18], 0x10000
jb 0x10001215
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 0x10001208
mov eax, dword [ebp - 8]
jmp 0x1000122e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001227
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001185
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100019a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100019b5
xor eax, eax
jmp 0x10001a2a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100019e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001a25
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001a23
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10001a1f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001a23
xor eax, eax
jmp 0x10001a2a
jmp 0x100019d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1018e39c]
mov dword [ebp - 4], eax
jmp 0x10001c09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001c26
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001c00
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1018e3ac], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x1018e3bc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
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 dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
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
mov edx, dword [ebp - 0xc]
push edx
call fcn.100611dc
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x1018e3bc], 0
call fcn.10001a30
mov ecx, dword [0x1018e3b8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.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
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100611dc
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x1018e3b8], 0
mov dword [0x1018e3ac], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1018e3b0], 0
je 0x10002679
mov eax, dword [0x1018e3b0]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.100608e2
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100611dc
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1018e3b0], eax
mov dword [0x1018e3b4], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1018e3b8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1018e3b8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10002720
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b4090
push 0x10062930
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x100b8560]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
jne 0x1000276a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100027a0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x1000292b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100027d8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1000292b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10002804
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1000292b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
jmp 0x10002827
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100028d6
push str..detour
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x2c]
push eax
call fcn.10073e80
add esp, 8
test eax, eax
jne 0x100028d1
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x10002872
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x10002874
jmp 0x100028d6
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x100028a1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x100028a3
jmp 0x100028d6
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x100028b7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1000292b
jmp 0x1000281e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1000292b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x678
jne 0x10002e31
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x10002e43
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002f8b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f88
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f6c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10061cc0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call fcn.10061cc0
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x10002f49
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f47
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x664
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.10061cc0
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x10002f50
mov dword [ebp - 8], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x100047c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
cmp edi, 5
jbe 0x10004802
lea eax, [edi - 5]
push eax
lea eax, [esi + 5]
push 0x90
push eax
call fcn.10062240
add esp, 0xc
push 0x100bc220
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004820
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x100bc220
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.10061cc0
add esp, 0xc
push 0
push dword [0x100bc220]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret

Function at 0x100064c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.xxxxxxx
push 0x1008d514
call fcn.10008700
add esp, 8
mov dword [0x100bc244], eax
test eax, eax
je 0x10006503
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push 0x100061d0
push dword [0x100bc244]
call fcn.1005ab10
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10010660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089a20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100b8560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100608e2
mov esi, eax
add esp, 4
test esi, esi
je 0x100106b9
push 1
mov dword [ebp - 4], 0
call fcn.1005fad5
add esp, 4
mov dword [esi + 4], eax
jmp 0x100106bb
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.10029190
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
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 dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x100be3a0]
mov ecx, dword [0x100be3a4]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 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 0x100273f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a580
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1018e398]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
test esi, esi
je 0x10027517
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, 0x6c5
nop
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100274e5
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100274e5
cmp byte [eax], 0xfd
jne 0x100274e5
push 0
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.10004010
push 8
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0
call fcn.10004160
push 1
push 0x10
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call fcn.100041d0
cmp word [ebp - 0x128], bx
je 0x100274c2
push 7
call fcn.10027e10
mov eax, 0x10053e90
add eax, 0x195
push 0x195
push eax
call fcn.1000d330
add esp, 0xc
jmp 0x100274d3
push 0
push 0
push 0
push 0x10028370
push 0
push 0
call edi
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
call fcn.100040c0
push esi
call fcn.100450e0
add esp, 4
test al, al
jne 0x10027515
mov eax, dword [0x1018e398]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [0x1018e398]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
test esi, esi
jne 0x10027440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100608cb
mov esp, ebp
pop ebp
ret

Function at 0x1002a1b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x34
lea eax, [edi + 4]
mov edx, eax
nop
mov bl, byte [edx]
lea edx, [edx + 1]
mov ecx, dword [edi]
xor cl, bl
mov byte [edx - 1], cl
sub esi, 1
jne 0x1002a1c0
mov byte [edi + 0x38], 0
pop edi
pop esi
pop ebx
ret
Function at 0x1002a3f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 4
mov dword [ebp - 4], 1
call fcn.100608e2
add esp, 4
test eax, eax
je 0x1002a439
mov dword [eax], 0
jmp 0x1002a43b
xor eax, eax
push 0x10028700
push eax
lea ecx, [ebp - 0x70]
call fcn.1000a180
lea ecx, [ebp - 0x68]
call fcn.10011380
lea ecx, [ebp - 0x50]
call fcn.100111a0
xor eax, eax
mov byte [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi], eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [esi + 4], eax
lea eax, [ebp - 0x70]
push eax
push 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.10028520
lea ecx, [ebp - 0x70]
call fcn.10011c20
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi + 8], xmm0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0xffff
mov dword [esi + 0x2c], 0xffff
mov byte [esi + 0x30], al
mov dword [esi + 0x34], eax
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.100608cb
mov esp, ebp
pop ebp
ret