joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 4], 0
mov word [ebp - 0x210], ax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0x208
test esi, esi
je 0x404093
test edi, edi
je 0x404093
test ebx, ebx
je 0x404093
mov edx, dword [esi]
mov ecx, dword [edx + 0x20]
lea eax, [ebp - 4]
push eax
push 0x40a3b0
push 0x40a3d0
push edi
push esi
mov dword [ebx], 0
call ecx
test eax, eax
js 0x404098
cmp dword [ebp - 4], 0
je 0x404093
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0x2000
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
test esi, esi
js 0x40407d
push 0
lea edx, [ebp - 0x210]
push edx
push eax
mov eax, dword [ecx + 0x78]
call eax
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
jns 0x40408a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebx], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404300
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x201
lea eax, [ebp - 0x204]
push 0
push eax
mov dword [ebp - 0x208], 0
call sub.msvcrt.dll_memset
mov edx, dword [esi + 0xe4]
add esp, 0xc
push 0
push 0xaa
lea ecx, [esi + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xaa
je 0x40434e
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xe4]
push 0
push 0x205
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x205
jne 0x404348
cmp dword [ebp - 0x208], 0x18273645
jne 0x404348
cmp byte [ebp - 0x204], 1
jne 0x40440a
push 0x427ac0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 0x203], 0
je 0x4043ff
lea eax, [ebp - 0x203]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4043a6
sub eax, edx
lea edx, [ebp - 0x203]
call fcn.00401410
xor ecx, ecx
lea esp, [esp]
mov dl, byte [ebp + ecx - 0x203]
mov byte [ecx + 0x428030], dl
inc ecx
test dl, dl
jne 0x4043c0
cmp eax, dword [0x42802c]
je 0x4043ff
mov edx, dword [0x428230]
push 0
push edx
push 0x4042f0
mov dword [0x42802c], eax
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [0x428234]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x427ac0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4044f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
push edi
mov esi, eax
mov edi, ecx
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
je 0x40453c
cmp eax, 0xffffffff
jne 0x40452a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x404532
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40452e
sub esi, eax
add edi, eax
test esi, esi
jne 0x404500
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x404a90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x404aa0
mov edi, dword [ebp + 8]
add edi, 0x2c
mov esi, 1
mov byte [edi], 0xff
mov ebx, esi
mov eax, dword [ebp + 0xc]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x404aed
cmp eax, 0xffffffff
jne 0x404ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x404aef
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
jmp 0x404ae7
sub esi, eax
add edi, eax
test esi, esi
jne 0x404ab0
jmp 0x404aef
xor ebx, ebx
mov edi, ebx
cmp ebx, 1
jne 0x404b14
mov eax, dword [ebp + 8]
add eax, 0x2c
mov al, byte [eax]
cmp al, 4
je 0x404b14
cmp al, 5
je 0x404b14
cmp al, 0x47
je 0x404b14
cmp al, 0x50
je 0x404b14
cmp al, 0x43
je 0x404b14
xor edi, edi
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2c], 1
jne 0x404c12
push 1
push 0x1006
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, 6
add esp, 8
mov dword [ebp - 4], eax
mov edi, eax
lea ebx, [esi - 5]
mov edi, edi
mov ecx, dword [ebp + 0xc]
push 0
push esi
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x404b7d
cmp eax, 0xffffffff
jne 0x404b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x404b7f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
jmp 0x404b77
sub esi, eax
add edi, eax
test esi, esi
jne 0x404b40
jmp 0x404b7f
xor ebx, ebx
mov edi, ebx
test ebx, ebx
je 0x404c12
mov esi, dword [ebp - 4]
mov eax, dword [esi]
cmp eax, 2
jbe 0x404c2a
add eax, 0x1006
push eax
push esi
call dword [sym.imp.msvcrt.dll_realloc]
mov edx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [esi]
sub eax, 2
lea ecx, [esi + 6]
push edx
call fcn.004044f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404c08
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + 0xf8], 0
jne 0x404c79
push 0x427aa8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x428028]
push edx
mov dword [0x428024], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x427aa8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov byte [eax + 0x2c], 0
jmp 0x404aa0
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2c], 0
je 0x404aa0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + 0xf8], 0
jne 0x404c79
push 0x427aa8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x428024]
test eax, eax
je 0x404c57
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov edx, dword [0x428028]
push edx
mov dword [0x428024], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x427aa8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 8]
add esp, 4
mov byte [eax + 0x2c], 0
jmp 0x404aa0
Function at 0x405050
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
movzx ecx, word [eax + 2]
push edi
push ecx
mov edi, edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x2710
mov dword [ebp - 0xc], 0x3e8
mov dword [ebp - 8], 0x493e0
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_htons]
push 1
push 0x30
call dword [sym.imp.msvcrt.dll_calloc]
add esp, 8
push 0
push 0
mov esi, eax
lea edx, [ebp - 4]
push edx
push 0
or eax, 0xffffffff
push 0
push 0xc
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push ebx
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 0xc], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4050d6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1006
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4050cd
mov edx, dword [edi + 0xcc]
push ebx
push esi
call edx
test eax, eax
je 0x4050cd
mov dword [esi + 0x18], ebx
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x427bda], 0xa
jae 0x405125
push 0x10
push esi
push 0x404c90
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x40513e
lea eax, [esi + 0x24]
push eax
push 0
push esi
push 0x404c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
je 0x405156
mov eax, dword [edi + 4]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [edi + 4], esi
mov edi, 1
jmp 0x405158
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x405168
call fcn.00404450
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053b0
Capabilities:
Create tcp socket
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 1
push 0xfc
mov esi, eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 4]
mov dword [ebx + 0xd4], edx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xf8], ecx
mov ecx, dword [esi + 8]
add esp, 8
lea eax, [ebx + 8]
mov dword [ebx + 0xdc], ecx
push eax
mov dword [ebx + 0xe0], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 0xe4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0xe8], eax
test eax, eax
jne 0x40542e
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebx + 0x20]
mov ecx, 0x2a
rep movsd dword es:[edi], dword [esi]
push 6
push 1
push 2
movsw word es:[edi], word [esi]
mov dword [ebx + 0xcc], fcn.00404a90
mov dword [ebx + 0xd0], 0x404a20
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0xe4], eax
pop edi
cmp eax, 0xffffffff
je 0x405428
lea ecx, [ebx + 0xf4]
push ecx
push 0
push ebx
push 0x405180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xf0], eax
test eax, eax
je 0x405428
mov edx, dword [ebp + 8]
pop esi
mov dword [edx], ebx
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x405520
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call sub.msvcrt.dll_memset
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x420]
push ecx
mov eax, 0x89a5d1c3
call fcn.00401600
add esp, 0x1c
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405594
mov eax, dword [0x40a8c8]
mov dword [edi], eax
lea eax, [ebp - 0x420]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4055b0
lea edi, [ebp - 0x210]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4055c6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405600
mov edx, dword [0x40a8c8]
mov ebx, dword [ebp + 8]
mov dword [edi], edx
lea eax, [ebp - 0x210]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405623
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405637
sub esi, ecx
sar esi, 1
lea edi, [esi + 6]
cmp esi, edi
jae 0x405673
mov ebx, dword [sym.imp.msvcrt.dll_rand]
call ebx
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp + 8]
mov byte [eax + esi*2 + 1], 0
inc esi
add dl, 0x30
mov byte [eax + esi*2 - 2], dl
cmp esi, edi
jb 0x405653
mov ebx, eax
lea eax, [ebx - 2]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405676
mov edx, dword [str..exe]
mov dword [eax], edx
mov ecx, dword [0x423e54]
mov dword [eax + 4], ecx
mov dx, word [0x423e58]
pop edi
pop esi
mov word [eax + 8], dx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056b0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea ecx, [ebp - 0x43e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x440], ax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x22e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x230], dx
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x440]
push ecx
mov eax, 0x89a5d1c3
call fcn.00401600
add esp, 0x1c
lea edx, [ebp - 0x230]
push edx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebp - 0x230]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x405723
mov eax, dword [0x40a8c8]
mov dword [edi], eax
lea eax, [ebp - 0x440]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405740
lea edi, [ebp - 0x230]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x405756
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x230]
mov edx, 0x614
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], dx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4057b0
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x272]
push ecx
mov dword [ebp - 8], 0
mov word [ebp - 0x274], ax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
add esp, 0xc
push edx
call fcn.00401d10
mov edi, eax
add esp, 4
test edi, edi
je 0x405894
mov esi, dword [ebp - 8]
test esi, esi
je 0x405894
lea eax, [ebp - 0x274]
push eax
call fcn.00405520
add esp, 4
push edi
push esi
lea eax, [ebp - 0x274]
call fcn.00402cd0
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
push 0x44
lea ecx, [ebp - 0x64]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
push ecx
push edx
push edx
push 0x4000000
push edx
push edx
push edx
push edx
mov word [ebp - 0x34], dx
lea edx, [ebp - 0x274]
push edx
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405887
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40589c
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.msvcrt.dll__wcsdup]
add esp, 4
push 0
push 0
push eax
push 0x4054e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405ff0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push esi
push 0x98
lea eax, [ebp - 0xbc]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0xc0]
push ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0xbc]
cmp eax, 0xa
jne 0x40607d
cmp dword [ebp - 0xb8], 0
jne 0x406153
cmp byte [ebp - 0x26], 1
setne al
add al, 0xe
mov byte [0x427bda], al
jmp 0x406153
cmp eax, 6
jne 0x4060e0
mov eax, dword [ebp - 0xb8]
cmp eax, 3
jne 0x40609c
cmp byte [ebp - 0x26], 1
setne cl
add cl, 0xc
jmp 0x40614d
cmp eax, 2
jne 0x4060b6
cmp byte [ebp - 0x26], 1
setne dl
add dl, 0xa
mov byte [0x427bda], dl
jmp 0x406153
mov ecx, 1
cmp eax, ecx
jne 0x4060d1
cmp byte [ebp - 0x26], cl
setne al
add al, 8
mov byte [0x427bda], al
jmp 0x406153
test eax, eax
jne 0x406153
cmp byte [ebp - 0x26], cl
setne cl
add cl, 6
jmp 0x40614d
cmp eax, 5
jne 0x406153
mov eax, dword [ebp - 0xb8]
cmp eax, 2
jne 0x406140
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
je 0x406107
mov byte [0x427bda], 5
jmp 0x406153
test dword [ebp - 0x28], 0x8000
je 0x406119
mov byte [0x427bda], 4
jmp 0x406153
push 0x59
call esi
test eax, eax
jne 0x40612a
mov byte [0x427bda], 3
jmp 0x406153
cmp byte [ebp - 0x26], 1
jne 0x406153
cmp word [ebp - 0x24], 9
jne 0x406158
mov byte [0x427bda], 2
jmp 0x406153
mov ecx, 1
cmp eax, ecx
je 0x406137
test eax, eax
jne 0x406153
mov byte [0x427bda], cl
cmp word [ebp - 0x24], 9
setne dl
dec dl
and dl, 0x20
add dl, 0x20
mov byte [0x426008], dl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406870
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
push 0x22c
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x22c], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x22c]
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esp, [esp]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x4068f5
lea ecx, [ebp - 0x22c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4068c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x224]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40691e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406bd0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x801c
call fcn.00409290
push ebx
push esi
push edi
xor ebx, ebx
push 0x7ffc
mov esi, ecx
lea ecx, [ebp - 0x8016]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 4], ebx
mov word [ebp - 0x8018], ax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
mov eax, edx
or esi, 0xf003f
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 0x18], 0x3fff
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406c47
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x406c3e
lea eax, [esi + 0xa]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
mov edi, eax
push edi
push 0
push 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x8018]
push eax
push 0
push ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x406d4d
push edi
lea eax, [ebp - 0x8018]
call fcn.00406930
add esp, 4
test eax, eax
je 0x406cf3
push 1
push 0x8010
call dword [sym.imp.msvcrt.dll_calloc]
lea ecx, [ebp - 0x8018]
mov esi, ecx
mov edx, eax
add esp, 8
sub edx, esi
lea esi, [edx + 8]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x406cd4
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push edi
inc ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x7ffe
lea ecx, [ebp - 0x8018]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push edi
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x8018]
push edx
push ebx
push eax
mov dword [ebp - 0x18], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x406ca2
mov ebx, dword [sym.imp.msvcrt.dll_free]
test edi, edi
je 0x406d5d
push edi
call ebx
add esp, 4
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
cmp edi, ecx
je 0x406d90
mov esi, edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edi, dword [edi]
mov dword [ecx], eax
lea edx, [esi + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call ebx
lea ecx, [ebp - 0xc]
add esp, 4
cmp edi, ecx
jne 0x406d67
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406db0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov ecx, 0x200
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov ecx, 0x100
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x200
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x100
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov ecx, 0x200
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov ecx, 0x100
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x200
call fcn.00406bd0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x100
call fcn.00406bd0
add esp, 0x40
mov esp, ebp
pop ebp
ret

Function at 0x406e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x226]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 4], ebx
mov word [ebp - 0x228], ax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x436]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x438], dx
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x228]
push ecx
mov eax, 0xdeadbeef
call fcn.00401600
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x438]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf013f
push ebx
push ebx
push ebx
lea edx, [ebp - 0x438]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406f01
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push ebx
push 0x40a8e0
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
or esi, 0xffffffff
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406f37
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x406f47
push eax
call edi
cmp esi, 4
jne 0x406f68
cmp dword [ebp - 0xc], esi
jne 0x406f68
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
push ecx
call edi
xor eax, eax
cmp esi, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
xor esi, esi
call edi
xor eax, eax
cmp esi, ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret