joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406260
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81005b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404544
call fcn.00406ec1
push 4
mov dword [esp + 0x18], 0
call fcn.00407d66
mov edi, eax
add esp, 4
test edi, edi
je 0x4062d4
push ebx
call fcn.00406d99
mov dword [edi], eax
call fcn.00406b58
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406e82
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4062c8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406eaa
pop ebx
jmp 0x4062d6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4087d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813520]
jne 0x4087db
repz ret
jmp fcn.0040cf2c
Function at 0x411b72
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aed4
and dword [ebp - 0x14], 0
cmp dword [0x818a94], 0
mov dword [ebp - 0x18], eax
jne 0x411c25
push 0x403944
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411ccd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403938
push ebx
call edi
test eax, eax
je 0x411ccd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403928
push ebx
mov dword [0x818a94], eax
call edi
push eax
call esi
push 0x403914
push ebx
mov dword [0x818a98], eax
call edi
push eax
call esi
push 0x4038f8
push ebx
mov dword [0x818a9c], eax
call edi
push eax
call esi
mov dword [0x818aa4], eax
test eax, eax
je 0x411c25
push 0x4038e0
push ebx
call edi
push eax
call esi
mov dword [0x818aa0], eax
mov eax, dword [0x818aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411c7e
cmp dword [0x818aa4], ecx
je 0x411c7e
push eax
call esi
push dword [0x818aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411c7e
test ebx, ebx
je 0x411c7e
call edi
test eax, eax
je 0x411c75
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411c75
test byte [ebp - 8], 1
jne 0x411c7e
or dword [ebp + 0x10], 0x200000
jmp 0x411cb1
mov eax, dword [0x818a98]
cmp eax, dword [ebp - 0x18]
je 0x411cb1
push eax
call esi
test eax, eax
je 0x411cb1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411cb1
mov eax, dword [0x818a9c]
cmp eax, dword [ebp - 0x18]
je 0x411cb1
push eax
call esi
test eax, eax
je 0x411cb1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x818a94]
call esi
test eax, eax
je 0x411ccd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411ccf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087d1
leave
ret
Function at 0x80ebd0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9d820], 0x37
jne 0x80ec68
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404110
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404148
push 0x4041c0
push 0x4041e8
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9d824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81d884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80eeb0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9d820]
sub esp, 0x574
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x81d884]
cmp eax, ebx
jbe 0x80f098
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80eee6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0xb9d820], 0x1c
jne 0x80eefd
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x814700]
mov eax, dword [0x814704]
mov esi, dword [edi]
mov ebp, dword [0x814708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81470c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80ef3a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0xb9c7a4], ebx
mov eax, dword [esp + 0x18]
add dword [0xb9c7a4], eax
mov edx, dword [0xb9c7a4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0xb9d820], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x80efd4
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0xb9d820], 0x979
mov dword [0xb9c7a8], 0xff6b3619
mov dword [0xb9c7ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x80f01b
push 0
lea eax, [esp + 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xb9d820]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x80f03d
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x80ef38
cmp eax, 0x8d4
jne 0x80f054
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], ecx
cmp dword [0xb9d820], 0x17
jne 0x80f087
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80eee0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x574
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x45259a
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xa0
lcall 0x5472, 0x869a69a6
cmp byte [edx + edx], ah
scasb al, byte es:[edi]
imul ebx, dword [edx + 0x7bf46f], 0
in al, dx
salc
fmul qword [edi]
js 0x4525f7
wait
cmpsb byte [esi], byte es:[edi]
imul edi, dword [edx + 0x364e0364], 0x70fe162a
idiv edi
mov ecx, 0xcc0000ee
push edi
call 0x7747d4d4
add byte [eax], al
sahf
js 0x4525d2
add byte [ebx + eax + 0x34], dl
fbstp tbyte [ebp + 0x4d]
add byte [edx + 0x803580f], dh
jne 0x4525e1
add byte [eax - 0x5e], bl
mov edx, 0xf2d37ccf
insb byte es:[edi], dx
jbe 0x4525ec
add byte [esi - 0x5d9c67cd], dh
imul ebx, dword [edx - 0x4bfc165a], 0xffffffc6
cwde
arpl word [edx - 0x16596595], sp
add esi, dword [esi + eax*8 + 0x3ffc8290]
mov ah, 0xc6
nop
cmp ah, 0x3f
cmpsb byte [esi], byte es:[edi]
imul edi, dword [edx], 0xeb7906b7
add ebx, dword [edx]
xor byte [edx + ebx*4 - 0x5a], cl
imul ebx, dword [edx - 0x5b6b87a4], 0xf9a6dcba
cmpsb byte [esi], byte es:[edi]
imul ebp, esp, 0x7a0af6
add byte [esi], bl
sub al, 0x9a
cmpsb byte [esi], byte es:[edi]
imul ebx, dword [edx + 0x5c4e463c], 0x9a69726a
cmpsb byte [esi], byte es:[edi]
imul edi, dword [eax + ecx*4 - 0x6a], 0x6baec0ac
lcall 0x7f00, 0xeee0d0a6
adc al, byte [ebx]
or eax, 0x289a699f
pop esi
js 0x4525ef
ficom word [edi - 0x3079453a]
je 0x45264f
mov eax, 0x24ff40f
or esp, eax
imul ebx, dword [edx - 0x33f8145a], 0x9cb0c003
dec edi
add cl, byte [ebx]
loopne 0x4526bd
lcall 0xc003, 0xcc07eba6
mov al, 0x9c
nop
cmpsb byte [esi], byte es:[edi]
imul ebx, dword [edx + 0x5c6e82a6], 0xef63384a
out dx, eax
cdq
sub bh, byte [ebx]
add ebx, dword [eax + 0x306403a]
ret 0xdfff
stosd dword es:[edi], eax
clc
add dword [ebx + 0x6d], eax
push edi
outsb dx, byte [esi]
leave
jl 0x45273b
jns 0x45273d
jl 0x452728
in al, dx
cmp ebp, 0xffffffff
arpl word fs:[ecx + 0x6d], bp
popal
outsb dx, byte [esi]
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [eax], al
adc esp, dword [edx + esi*2 + 0x61]
ja 0x4526f4
sbb edi, ebx
iretd
outsd dx, dword [esi]
outsb dx, byte [esi]
add byte [eax], al
mov ah, 0x56
jae 0x452781
arpl word [ecx + ebp*2 + 0x76], si
in eax, 0x4d
arpl word [ebx + 0x68], dx
Function at 0x409310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409416
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094f0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x409409
test ebx, ebx
je 0x409414
mov edx, dword [section..rdata]
mov eax, dword [edx + 0xc]
mov ecx, section..rdata
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.__s_
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406e00
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409414
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40945c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40beb0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4284c8
push 0x416480
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x84f0
call fcn.004207e0
mov eax, dword [0x42a520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
push 6
push 0x4267d4
push esi
call fcn.0041196f
add esp, 0xc
test eax, eax
je 0x40c0ce
call fcn.00409740
xor eax, eax
mov word [ebp - reloc.crtdll.dll_sscanf], ax
push 0x206
push ebx
lea ecx, [ebp - 0x4ae]
push ecx
call fcn.00412510
add esp, 0xc
push 0x104
lea edx, [ebp - 0x4b0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40c0ed
xor eax, eax
mov word [ebp - reloc.crtdll.dll_sscanf], ax
push 0x206
push ebx
lea ecx, [ebp - 0x2a6]
push ecx
call fcn.00412510
add esp, 0xc
lea edx, [ebp - 0x2a8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40c0ed
lea eax, [ebp - 0x2a8]
push eax
push ebx
push ebx
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40c0ed
call fcn.004079c0
test eax, eax
je 0x40c0ed
mov byte [ebp - 0xa0], bl
push 0x80
push ebx
lea edx, [ebp - 0x9f]
push edx
call fcn.00412510
add esp, 0xc
mov dword [ebp - 0x84b4], 0x81
lea edx, [ebp - 0x84b4]
lea eax, [ebp - 0xa0]
call fcn.0040a290
test eax, eax
je 0x40c0ed
lea ecx, [ebp - 0x2a8]
lea edx, [ebp - 0x4b0]
call fcn.0040ba60
test eax, eax
je 0x40c0ed
xor eax, eax
mov word [ebp - reloc.crtdll.dll_sscanf], ax
push 0x7ffe
push ebx
lea ecx, [ebp - 0x84ae]
push ecx
call fcn.00412510
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
push str.__s____help_s_t_S
push 0x4000
lea edx, [ebp - 0x84b0]
push edx
call fcn.00411448
mov dword [ebp - 0x8508], ebx
push reloc.mscms.dll_DisassociateColorProfileFromDeviceW
push ebx
lea eax, [ebp - 0x8504]
push eax
call fcn.00412510
add esp, 0x30
mov dword [ebp - 0x8508], 0x44
xor ecx, ecx
mov word [ebp - reloc.crtdll.dll_sscanf], cx
mov dword [ebp - 0x84dc], 1
mov dword [ebp - 0x84c4], ebx
xor eax, eax
mov dword [ebp - 0x84c0], eax
mov dword [ebp - 0x84bc], eax
mov dword [ebp - 0x84b8], eax
lea edx, [ebp - 0x84c4]
push edx
lea eax, [ebp - 0x8508]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x84b0]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x40c0ed
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040bae0
add esp, 4
jmp 0x40c0ed
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004106c7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f0b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421de8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42b468
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42b4cc
push ecx
mov byte [ebp - 4], 1
call fcn.004097b0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..rdata]
mov eax, dword [edx + 0xc]
mov ecx, section..rdata
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406ea0
add esp, 4
cmp eax, ebx
je 0x40f141
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004069f0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40f1cd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40f1cd
cmp dword [esi - 0xc], ebx
je 0x40f1cd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40f1cd
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040eff0
test eax, eax
jne 0x40f1b1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40f1b1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40f1b4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40f1c2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40f160
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f1ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f210
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40893c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
or ecx, ecx
mov ecx, ecx
call fcn.0040896c
or ecx, ecx
xor dword [ebx], edi
inc ebx
add ecx, ecx
cmp ebx, edx
jne fcn.0040893c
sub ecx, 0xe5f7cc65
sub esi, 0x9bc0b4d
ret
Function at 0x401130
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x313]
push ebx
push ecx
mov dword [ebp - 8], 0xff0ff
mov byte [ebp - 0x314], bl
call sub.MSVCRT.dll_memset
xor edx, edx
add esp, 0x18
mov word [ebp - 0x214], dx
cmp esi, ebx
je 0x4012ce
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x401280
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4012b6
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x40452c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x210]
add esp, 0x10
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401221
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401234
sub eax, edx
push edi
mov edi, eax
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 0x314]
call fcn.00401690
lea edx, [ebp - 0x210]
mov ecx, edx
call fcn.004016d0
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
mov edx, ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
pop edi
jmp 0x4012b6
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push str.softwaremicrosoftwindowscurrentversion_run
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012b6
mov edx, dword [ebp - 4]
push 0x104
push esi
push 1
push ebx
push str.userinit
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4012ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret