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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x100084eb
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], 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.100071f0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x100084be
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x10008444
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100084b1
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1000847e
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x10008476
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x100084b1
cmp ebx, edx
je 0x1000848e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x100084c7
cmp ebx, edx
jne 0x10008482
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0xc]
mov eax, ecx
cmp ecx, esi
jne 0x100083f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x100084b1
push str.invalid_hash_bucket_count
call fcn.10008cdd
int3
Function at 0x10008730
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015265
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1001e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10008500
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100087c3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 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 8
cmp dword [edi + 8], 0xccccccc
je 0x1000891b
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x10], 0
call fcn.10008d4e
movq xmm0, qword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
movq qword [esi + 8], xmm0
mov ecx, dword [ebx + 8]
mov dword [esi + 0x10], ecx
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1001b3c0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1001b3c0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100088bd
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.10012850
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10014bb0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1000889f
cmp ebx, 0x200
jae 0x1000889d
shl ebx, 3
cmp ebx, ecx
jae 0x1000889f
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10008390
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10008500
mov edx, dword [eax]
jmp 0x100088c0
mov edx, dword [ebp - 0x20]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x100088eb
mov dword [ecx + eax*8], esi
jmp 0x100088fa
cmp edi, edx
jne 0x100088f4
mov dword [ecx + eax*8], esi
jmp 0x100088fe
cmp dword [ecx + eax*8 + 4], ebx
jne 0x100088fe
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10008cdd
int3
Function at 0x1000c517
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000f1c9
push ebx
push esi
call fcn.1000f0f5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000f089
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000f176
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f1c8
push edi
push eax
call fcn.1000dada
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000f196
call fcn.1000dbd1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f1c7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000f089
add esp, 0x20
test eax, eax
jne 0x1000f1b5
push edi
call fcn.1000dbd1
jmp 0x1000f1bd
push ebx
call fcn.1000dbd1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000f436
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017a30
push 0x10017a28
push str.FlsAlloc
push 0x1f
call fcn.1000f352
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f46a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016128]
call esi
jmp 0x1000f470
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f4b4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017a40
push 0x10017a38
push str.FlsGetValue
push 0x21
call fcn.1000f352
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f4eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000f4f3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017a48
push 0x10017a40
push str.FlsSetValue
push 0x22
call fcn.1000f352
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f52d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10016128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014a00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10014a2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10014a2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a308]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov eax, dword [0x41a314]
add dword [ebp - 8], 0x23f
mov esi, dword [0x41a310]
push 0x20
mov dword [ebp - 0x20], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, esi
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x8598a8], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x8598a4]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x8598a8], 0x3eb
mov dword [0x8598a4], eax
mov eax, dword [0x859330]
cmove eax, dword [ebp - 0x1c]
mov dword [0x859330], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [0x8598a0], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x8598a8], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_petopanoz_fonoso_culowisuvekocamoc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4013e4
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x81403c], esi
jne 0x40d6c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81403c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81404c], eax
test eax, eax
je 0x40d6c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814048], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d700
push 4
pop eax
jmp 0x40d7a8
cmp dword [ebp - 0x14], esi
je 0x40d700
push dword [0x81403c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6e5
mov eax, dword [0x814048]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d75e
cmp dword [0x81404c], edi
je 0x40d75e
push eax
call ebx
push dword [0x81404c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d75e
test eax, eax
je 0x40d75e
call ecx
test eax, eax
je 0x40d753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d753
test byte [ebp - 8], 1
jne 0x40d75e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d78e
mov eax, dword [0x814040]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
call eax
mov esi, eax
test esi, esi
je 0x40d78b
mov eax, dword [0x814044]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81403c]
call ebx
test eax, eax
je 0x40d7a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040400d
mov esp, ebp
pop ebp
ret
Function at 0x74d67118
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [0x7545103c]
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x30]
cmp byte [edx + 2], 0
mov ecx, 0xdeadbeef
jne 0x74d671bb
test eax, eax
je 0x74d67156
mov edx, dword [eax + 0x60]
sub edx, dword [eax + 0x64]
cmp edx, 0x2000
jb 0x74d671bb
mov edx, dword [ebp + 8]
cmp edx, ecx
jne 0x74d67164
test eax, eax
je 0x74d671bb
mov edx, dword [eax + 0x64]
mov dword [0x7545b134], edx
cmp dword [ebp + 0xc], ecx
jne 0x74d671c4
test eax, eax
je 0x74d6a988
mov eax, dword [eax + 0x64]
mov dword [0x7545b138], eax
add eax, 8
cmp eax, 8
jb 0x74d6a990
mov eax, dword [ebp + 0x10]
mov dword [0x7545b13c], 0x75458fd4
test eax, eax
je 0x74d671a1
mov dword [0x7545b13c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x7545b140], 0x75458faf
test eax, eax
je 0x74d671b7
mov dword [0x7545b140], eax
pop ebp
ret 0x10
and dword [0x7545b134], 0
jmp 0x74d6716a
mov eax, dword [ebp + 0xc]
jmp 0x74d6717a
Function at 0x74d7ea8f
Capabilities:
Encode data using xor

Disassembly:
add byte [eax - 0x50], dl
inc esi
mov dh, byte [eax - 0x4f]
inc esi
mov cl, byte [edx]
inc byte [edi]
invalid
Function at 0x40107c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push dword [esi + 8]
mov dword [ebp - 8], eax
mov dword [esi + 4], ebx
call edi
lea eax, [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea eax, [ebp - 0x50]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403e60
lea eax, [ebp - 0x4e]
push 2
push eax
lea eax, [ebp + 0xa]
push eax
call fcn.00403e60
add esp, 0x18
push dword [ebp - 0xc]
call fcn.0040121d
cmp word [ebp + 0xa], ax
je 0x40110b
mov ecx, dword [ebp - 8]
and dword [esi], 0
push 1
mov dword [esi + 0xc], ecx
pop eax
mov dword [esi + 4], eax
jmp 0x401216
push 2
push 0
push 0xfffffffffffffffa
mov dword [esi], 1
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 2
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea eax, [ebp - 0x50]
push 2
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00403e60
add esp, 0xc
push 2
push 0
push 0xfffffffffffffff6
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea ecx, [ebp - 0x50]
lea eax, [esi + 0xc]
push 4
push ecx
push eax
call fcn.00403e60
add esp, 0xc
push 0xfffffffffffffff2
pop eax
push 2
push 0
push eax
mov dword [ebp - 0x10], eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea ecx, [ebp - 0x50]
lea eax, [esi + 0x18]
push 4
push ecx
push eax
call fcn.00403e60
mov ecx, dword [esi + 0x18]
add esp, 0xc
test ecx, ecx
jbe 0x4011cd
mov eax, dword [ebp - 8]
push 0xfffffffffffffff2
sub eax, ecx
sub eax, 0xe
mov dword [esi + 0x1c], eax
pop eax
sub eax, ecx
jmp 0x4011d0
mov eax, dword [ebp - 0x10]
push 2
add eax, 0xfffffffc
push 0
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
jne 0x4011f6
xor eax, eax
jmp 0x401216
lea eax, [ebp - 0x50]
lea edi, [esi + 0x10]
push 4
push eax
push edi
call fcn.00403e60
add esp, 0xc
cmp dword [edi], 0
jbe 0x401213
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40127d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
mov edi, reloc.WS2_32.dll_bind
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012af
lea eax, [esp + 0x10]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40132d
mov esi, str.MSWDM.EXE
push esi
call fcn.004041a0
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push esi
push 1
mov ebp, 0x40d068
push 0
push ebp
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x40132d
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40130b
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40132d
push esi
call fcn.004041a0
pop ecx
push eax
push esi
push 1
push 0
push ebp
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40132d
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4013d3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov esi, 0x100
xor edi, edi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040150d
push edi
push 2
push 2
push edi
push 1
lea eax, [ebp - 0x104]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401428
xor eax, eax
jmp 0x40148e
push ebx
push dword [0x40e454]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push edi
push edi
push edi
mov ebx, eax
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push dword [0x40e454]
push ebx
push dword [0x40e450]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401484
lea eax, [ebp - 4]
push edi
push eax
push dword [0x40e454]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401484
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40150d
Capabilities:
Get common file path

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.mswdm.exe
push dword [esp + 8]
call fcn.00404360
push dword [esp + 0xc]
call fcn.004042a4
add esp, 0xc
ret 8
Function at 0x4015c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x100
push esi
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x200]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x40171f
push ebx
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00403e00
push ebx
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.00403e00
add esp, 0x18
lea eax, [ebp - 0x400]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
push esi
lea eax, [ebp - 0x400]
push str.device
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
sub esp, 0x28
mov esi, 0x40e448
lea eax, [ebp - 0x100]
push 0xa
pop ecx
mov edi, esp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401f75
xor edi, edi
push ebx
lea eax, [ebp - 0x300]
push edi
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040150d
push 0x400
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.00403e00
lea eax, [ebp - 0x800]
push str.__r_
push eax
call fcn.00404360
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00404360
mov esi, 0x40d0b8
lea eax, [ebp - 0x800]
push esi
push eax
call fcn.00404360
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00404360
lea eax, [ebp - 0x800]
push 0x40d0b4
push eax
call fcn.00404360
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.00404360
lea eax, [ebp - 0x800]
push esi
push eax
call fcn.00404360
add esp, 0x44
lea eax, [ebp - 0x800]
push edi
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00403a14
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x401728
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, 0x128
push edi
call fcn.004044ec
pop ecx
mov esi, eax
push 0
push 2
mov dword [esi], edi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebp, dword [esp + 0x14]
mov dword [esp + 0xc], eax
push ebp
call fcn.004042a4
pop ecx
push esi
push dword [esp + 0x10]
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4017be
push ebx
lea ebx, [esi + 0x24]
push ebx
call fcn.004042a4
push ebp
call fcn.004041a0
mov edi, ebx
push ebx
sub edi, eax
call fcn.004041a0
push ebp
add edi, eax
call fcn.004041a0
push eax
push ebp
push edi
call fcn.00404440
add esp, 0x1c
test eax, eax
jne 0x4017ac
push dword [esi + 8]
push eax
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
je 0x4017ac
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push dword [esp + 0x14]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401766
push 1
pop eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 4