joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008dcc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x1008dcf1
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10027b40
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1008de04
nop word [eax + eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x1008dd84
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1008ddf7
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x1008ddbe
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x1008ddb6
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x1008ddf7
mov edi, eax
cmp dword [ebp - 4], eax
je 0x1008ddd4
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x1008de0d
cmp dword [ebp - 4], eax
jne 0x1008ddc5
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x1008dd30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x1008ddf7

Function at 0x1008ef80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1008efab
push 0
push 0
push 0
push 0x10024ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1008efab
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x100994a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf1ab
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100cd00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100f57b0]
mov dword [ebp - 0x38], ecx
test al, 1
jne 0x10099608
or eax, 1
mov dword [0x100f57b0], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x100c42b0]
pxor xmm0, xmmword [0x100c40f0]
mov dword [ebp - 0x20], 0xc9d9aac9
mov dword [ebp - 0x1c], 0xd8c9afd9
mov dword [ebp - 0x18], 0xdfd1c9d8
mov byte [ebp - 0x14], 0xe9
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x30], 0xe9
inc eax
cmp eax, 0x1d
jb 0x10099530
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10099560
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.1001d170
mov byte [ebp - 4], 1
mov edx, dword [0x100f07d4]
test edx, edx
je 0x10099589
mov edx, dword [edx + 0x50]
jmp 0x1009958b
xor edx, edx
mov eax, dword [0x100f07cc]
test eax, eax
je 0x10099599
mov eax, dword [eax + 0x18]
jmp 0x1009959b
xor eax, eax
lea ecx, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.100176f0
mov eax, dword [ebp - 0x34]
add esp, 8
test eax, eax
je 0x100995c2
mov ecx, dword [eax + 1]
test ecx, ecx
jne 0x100995bd
xor eax, eax
jmp 0x100995c2
add eax, 5
add eax, ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
mov dword [0x100f57b4], eax
cmp edx, 0x10
jb 0x10099601
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100995f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100995f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100b7374
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [0x100f57b4], 0
je 0x10099626
push 0
mov ecx, dword [ebp - 0x38]
movss xmm1, dword [ebx + 0xc]
movss xmm2, dword [ebx + 8]
call dword [0x100f57b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100a49f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100a4b81
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100a4b81
mov eax, dword [0x100f088c]
cmp dword [eax + 0x174], 0xffffffff
je 0x100a4b81
mov eax, dword [0x100f0b00]
add eax, 0xffffff91
xor eax, 0xc9912438
cmp dword [eax + ebx], 0
mov eax, dword [0x100f0ac8]
setle cl
add eax, 0xffffff9f
xor eax, 0xc991242a
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x100f0abc]
add eax, 0xffffffa2
xor eax, 0xc9912427
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x100f0ac0]
add eax, 0xffffffa1
xor eax, 0xc9912428
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x100f0ac4]
lea eax, [ecx - 0x60]
xor eax, 0xc9912429
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100a4ade
lea eax, [ecx - 0x60]
xor eax, 0xc9912429
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100a4ad6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100a4aca
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100a4ac7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x100f0ac4]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100a4a93
lea eax, [ecx - 0x60]
xor eax, 0xc9912429
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x100f08a0]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100a4b72
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x100a4b36
xor edx, edx
test ecx, ecx
je 0x100a4b5c
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100a4b43
cmp edi, 0x79705c5e
je 0x100a4b67
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100a4b72
mov ecx, dword [ebp - 4]
jmp 0x100a4b20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100a4b74
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x100f0974]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100aa5d0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf8dd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100f088c]
mov edi, dword [esi + 0x174]
test edi, edi
setg byte [ebp - 0x14]
cmp dword [0x100df670], 4
jne 0x100aa639
mov edx, dword [esi + 0x4cb0]
add edx, dword [esi + 0x4cac]
mov ecx, dword [0x100f0834]
push edx
push dword [esi + 0x4cb4]
mov eax, dword [ecx]
push dword [ebp - 0x14]
push edi
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x100f57cc], 0
jne 0x100aa779
movaps xmm0, xmmword [0x100c3fc0]
xor eax, eax
movaps xmm2, xmmword [0x100c42b0]
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x34], 0xaaaf
movaps xmm0, xmmword [0x100c3de0]
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x32], 0xe9
nop
movups xmm0, xmmword [ebp + eax - 0x54]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x54], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100aa670
cmp eax, 0x23
jae 0x100aa69b
nop
xor byte [ebp + eax - 0x54], 0xe9
inc eax
cmp eax, 0x23
jb 0x100aa690
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100aa6c0
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.1001d170
mov dword [ebp - 4], 0
mov edx, dword [0x100f07e0]
test edx, edx
je 0x100aa6ec
mov edx, dword [edx + 0x50]
jmp 0x100aa6ee
xor edx, edx
mov eax, dword [0x100f07d8]
test eax, eax
je 0x100aa6fc
mov eax, dword [eax + 0x18]
jmp 0x100aa6fe
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.1003c930
mov edi, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x1c]
inc edi
cmp edx, 0x10
jb 0x100aa748
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100aa73e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100aa73e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100b7374
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x14], 0
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x100f57cc], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b6ef9
mov esp, ebp
pop ebp
ret
Function at 0x401c8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x40eab8
lea eax, [ebp - 4]
xor edi, edi
push 0x411b68
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0040271b
xor ecx, ecx
cmp eax, edi
sete cl
push 0x40eac0
push ecx
call fcn.00401bf3
push 2
push edi
push dword [ebp - 4]
call fcn.00403863
push dword [ebp - 4]
call fcn.0040356e
cdq
mov dword [ebp - 0x18], eax
add eax, 0xfffffefc
add esp, 0x24
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x401cef
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00403863
push dword [ebp - 4]
push 0x104
push 1
push ebx
call fcn.0040328a
push ebx
mov esi, eax
call fcn.00401c4c
add esp, 0x20
cmp eax, edi
je 0x401d31
mov esi, eax
sub eax, ebx
add eax, dword [ebp - 8]
push 5
cdq
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov esi, edx
jmp 0x401daf
mov esi, 0x4100000
push esi
call fcn.00402cf8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfbf00000
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x401d52
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00403863
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 0xc]
call fcn.0040328a
push dword [ebp - 0xc]
mov esi, eax
call fcn.00401c4c
mov esi, eax
xor eax, eax
cmp esi, edi
setne al
push 0x40eadc
mov dword [ebp - 0x14], esi
push eax
call fcn.00401bf3
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
push 5
add eax, dword [ebp - 8]
pop ecx
push dword [ebp - 0xc]
cdq
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov esi, edx
call fcn.00402a74
add esp, 0x2c
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
push 0
sub dword [ebp - 0x18], ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
sbb esi, 0
call fcn.00403863
push dword [ebp - 4]
mov edi, 0x104
push edi
push 1
push ebx
call fcn.0040328a
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
mov esi, 0x40eb00
neg eax
push esi
push eax
call fcn.00401bf3
mov cx, word [ebx]
mov eax, 0x40eb1c
add esp, 0x24
cmp cx, word [eax]
jne 0x401e02
mov dword [ebp - 0x10], ebx
jmp 0x401e56
mov eax, dword [ebp - 0x18]
add eax, 0xfffffefc
jns 0x401e0e
xor eax, eax
push 0
push eax
push dword [ebp - 4]
call fcn.00403863
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0040328a
mov edi, eax
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
push esi
push eax
call fcn.00401bf3
add esp, 0x24
lea eax, [edi + ebx - 1]
jmp 0x401e4d
mov dx, word [eax]
mov ecx, 0x40eb1c
cmp dx, word [ecx]
je 0x401e53
dec eax
cmp eax, ebx
jae 0x401e3f
jmp 0x401e56
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.00403b21
mov eax, dword [ebp - 0x10]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1007d4c
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1007e08
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1007dc9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1007dc9
mov dword [ebp - 8], esi
push ebx
lea eax, [ebp + 8]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 3
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ebx
push 3
push dword [ebp - 4]
call esi
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 4
Function at 0x100f497
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10151ca
call fcn.01011388
sub esp, 0x2c
push ebx
push esi
push edi
push 0x1004fd4
sub esp, 0x40
mov dword [ebp - 0x18], esp
mov edi, ecx
mov ecx, esp
xor esi, esi
push esi
push 0x800000
push 0x366
push 0x1004f2c
push 0x1004ea0
mov dword [ebp - 0x1c], edi
call fcn.01007e91
lea ecx, [ebp - 0x38]
call fcn.01007fe5
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
mov dword [ebp - 4], esi
jne 0x100f4f4
mov dword [ebp + 8], 0x8000ffff
jmp 0x100f5fc
cmp dword [0x1017044], esi
je 0x100f52e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x100f522
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
mov dword [0x101706c], 1
jne 0x100f528
mov dword [0x101706c], esi
mov dword [0x1017044], esi
cmp dword [0x101706c], esi
push esi
je 0x100f571
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x100f611
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100f5ed
call esi
jmp 0x100f5f9
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x100f55a
push eax
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x100f5aa
mov dword [ebp + 8], 0x8007000e
jmp 0x100f5fc
push esi
push esi
push dword [ebp - 0x14]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call edi
push eax
call ebx
cmp eax, esi
jne 0x100f5c4
push dword [ebp - 0x10]
jmp 0x100f5e1
push esi
lea ecx, [ebp - 0x18]
push ecx
dec eax
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push dword [ebp - 0x10]
jne 0x100f60a
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x100f55a
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
push 0x1015504
lea eax, [ebp + 8]
push eax
call sub.msvcrt.dll__CxxThrowException
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.01008075
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x10110c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101704c]
jne 0x10110da
test ecx, 0xffff0000
jne 0x10110da
ret
jmp fcn.010110e4
Function at 0x101176b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x10117d6
cmp dword [ebp - 4], 2
jbe 0x10117c2
cmp dword [ebp - 4], 7
jne 0x10117d6
mov ecx, dword [edi]
test cl, 1
jne 0x10117d6
shr ecx, 1
cmp ecx, 2
jb 0x10117d6
cmp esi, ebx
je 0x10117d9
cmp word [esi + ecx*2 - 2], bx
jne 0x10117d6
cmp word [esi + ecx*2 - 4], bx
jmp 0x10117d4
mov ecx, dword [edi]
test cl, 1
jne 0x10117d6
cmp esi, ebx
je 0x10117d9
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x10117d9
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1011a3a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x1011a53
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 4], 0xffffffff
je 0x1011a79
push edi
push 0
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x54]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x1011f00
Capabilities:
Get file size
Persist via application shimming
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
call fcn.010118a2
xor ebx, ebx
cmp dword [esi], ebx
je 0x101207d
mov eax, dword [ebp + 0x14]
test dword [esi + 0x24], eax
je 0x101207d
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x1011f3b
mov dword [esi + 0x48], 0x1005e50
jmp 0x1011f72
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [edi + eax*2 - 2]
xor ecx, ecx
cmp eax, edi
jbe 0x1011f6f
cmp ecx, 3
jge 0x1011f63
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1011f5e
cmp eax, edi
ja 0x1011f52
inc ecx
cmp eax, edi
ja 0x1011f4d
cmp eax, edi
jbe 0x1011f6f
add eax, 2
mov dword [esi + 0x48], eax
jmp 0x1011f72
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x1c]
inc edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x40], eax
je 0x1012079
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x1011f9c
mov eax, 0x1001ea4
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1011fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005db8
jmp 0x1012070
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edi
push ebx
push 2
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x101200a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005cf0
jmp 0x1012070
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x101203f
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x101203f
push ebx
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp + 0x16]
push eax
push dword [esi + 4]
mov byte [ebp + 0x16], 0xff
mov byte [ebp + 0x17], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1012079
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005c28
push esi
call fcn.01011d27
add esp, 0xc
mov dword [esi + 0x3c], edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x18
Function at 0x1024000
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x19624670], dl
nop
nop
mov ecx, 0x158e69d
nop
push 0x1024020
pop edi
push 0x598
pop edx
xor dword [edx + edi], ecx
mov ecx, 0x158e69d
nop
push 0x1024020
pop edi
push 0x598
pop edx
xor dword [edx + edi], ecx
nop
sub edx, 2
sub edx, 2
nop
nop
jne 0x1024014
nop
nop
jne 0x1023fc1
pop ecx
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add byte [edi + esi*8 + 0x59], dl
add dword [ebp + 0x47015aea], ebx
neg dword [edx + 1]
popfd
push esi
pop edx
add dword [ebp - 0x22fea71a], ebx
neg byte [eax]
pop ss
mov ebx, dword [ecx]
out 0x8a, eax
pop ecx
add byte [ecx], dl
mov al, 0x59
add dword [0xe501598b], edx
mov bl, byte [ecx + 1]
fucom st(2)
pop eax
add dword [0xe501598b], edx
mov bl, byte [ecx + 1]
popfd
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [ebp - 0x62fea71a], ebx
out 0x58, al
add dword [eax], eax
add byte [eax], al
add dh, dl
sub dword [edx], 0x6f
clc
mov ch, byte [ebx + 0x33]
mov bl, 0x82
xor al, 0x6d
popfd
mov eax, dword [0x83c9753d]
xor eax, 0x2c87cd71
imul ebx, esp, 0xe9641fe6
mov dl, 0x3d
insb byte es:[edi], dx
in eax, dx
mov al, byte [0xa8f86d31]
cmp dword [eax + edi*8 - 0x59], ebp
pop eax
inc edx
out dx, eax
cmp dword [ecx], 0x75
clc
mov al, byte [0xa7f86d31]
pop eax
push ebx
clc
xchg dword [edi + eax*2], edi
hlt