joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4556c8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x468c], 0
jne 0x4556e7
mov eax, 1
jmp 0x4557a0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x468c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x45570d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x5df
jge 0x45572c
mov eax, dword [ebp - 4]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax + 0x4694], 0
jmp 0x455704
mov dword [ebp - 4], 0
jmp 0x45573e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x4690]
jge 0x45579b
push 0x7d0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45577c
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], 0
jmp 0x455735
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x46ff67
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ae850
cmp edx, dword [eax]
je 0x46ff89
add eax, 8
inc ecx
cmp eax, 0x4ae8e0
jl 0x46ff7a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ae850]
jne 0x4700b7
mov eax, dword [0x4e4364]
cmp eax, 1
je 0x470091
test eax, eax
jne 0x46ffba
cmp dword [0x4ad758], 1
je 0x470091
cmp edx, 0xfc
je 0x4700b7
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46fff1
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00465350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00465470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x470034
lea eax, [ebp - 0x1a4]
push eax
call fcn.00465470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x497078
push edi
call fcn.004669d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00465350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00465360
lea eax, [ebp - 0xa0]
push 0x497058
push eax
call fcn.00465360
push dword [esi + 0x4ae854]
lea eax, [ebp - 0xa0]
push eax
call fcn.00465360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0047281a
add esp, 0x2c
pop edi
jmp 0x4700b7
lea eax, [ebp + 8]
lea esi, [esi + 0x4ae854]
push 0
push eax
push dword [esi]
call fcn.00465470
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x479880
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00465440
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x47994b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x47994b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4798fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x479909
or bh, 8
and edi, 0x8000000
je 0x479924
mov eax, dword [0x4e5f7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x47994b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x479d4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x479d6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x479d8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x47e77d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47e7b5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048146b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00481443
jmp 0x47e7c1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x47fdd7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47fe19
call fcn.004873cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47fe19
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47fe10
xor eax, eax
jmp 0x47fe21
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047fe27
pop edi
pop esi
pop ebx
ret 4

Function at 0x48841a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x488448
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488466
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00488380
jmp 0x488466
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488466
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00488380
test edi, edi
mov eax, edi
jne 0x488450
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x488933
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4889e3
mov ecx, 0x4e42c0
call fcn.00488507
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4889c1
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x48899f
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48899f
push ebx
push edi
push eax
call fcn.004821a6
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0048114d
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x402110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042e693

Function at 0x402ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x402bdf
test eax, 0xffff0000
jne 0x402bdf
push ebx
push edi
movzx edi, ax
push edi
call fcn.0042fa52
mov ebx, eax
test ebx, ebx
je 0x402bdb
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402bdb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402bdb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402bda
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402b69
cmp esi, ecx
jae 0x402bda
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402b53
cmp esi, ecx
jae 0x402bda
movzx eax, word [esi]
test ax, ax
je 0x402bda
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402be7
mov ebx, dword [ebp - 4]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x402bb2
push edi
mov ecx, ebx
call fcn.00403540
mov edx, dword [ebx]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402be7
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
int3
Function at 0x404ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0042fa52
mov ebx, eax
test ebx, ebx
jne 0x404f00
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x404fe7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404fe7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404fe7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x404f68
cmp esi, ecx
jae 0x404fe7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x404f52
cmp esi, ecx
jae 0x404fe7
movzx eax, word [esi]
test ax, ax
je 0x404fe7
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x404ff2
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x404fb1
push edi
mov ecx, ebx
call fcn.00403540
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x404ff2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
int3

Function at 0x406e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x406e6f
test edx, edx
je 0x406e6f
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x406e6f
push esi
xor esi, esi
nop dword [eax]
mov cl, byte [esi + ebx]
mov eax, edx
sar eax, 8
xor al, cl
mov byte [esi + ebx], al
inc esi
movzx eax, cl
add eax, edx
imul edx, eax, 0xce6d
add edx, 0x58bf
cmp esi, edi
jb 0x406e40
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4086b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x669bfd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x71cf78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40870f
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
lea ecx, [eax - 0x10]
mov edi, dword [eax - 0xc]
jle 0x40872f
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.00402c10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
add dword [ecx + 0xc], 0xffffffff
mov esi, 0xffffffff
mov eax, dword [ecx + 0xc]
push edi
cmove eax, esi
mov dword [ecx + 0xc], eax
push dword [ebp + 8]
push 1
push 0
push str.Path
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408772
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4099d0
Capabilities:
Accept command line arguments
Check mutex on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x669d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.zhuzaiRxjhIce
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409a30
push 0
push 0
push 0x69093c
call fcn.00433532
jmp 0x409b7c
test esi, esi
je 0x409a3b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call fcn.004401fa
add esp, 4
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x409b0f
cmp dword [ebp - 0x210], 3
jl 0x409b0f
push dword [esi + 4]
lea ecx, [ebp - 0x218]
call fcn.00409830
push dword [esi + 8]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
call fcn.00409830
push dword [ebp - 0x218]
call fcn.0062e5d6
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x409ac1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x214]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409aed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409b0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x2c0]
call fcn.00408cb0
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], 1
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0042ea2f
cmp eax, 1
jne 0x409b71
mov eax, dword [0x690954]
mov dword [ebp - 0x1f4], eax
mov al, byte [0x690958]
mov byte [ebp - 0x1f0], al
lea eax, [ebp - 0x20c]
push eax
push 2
mov dword [ebp - 0x204], 0x80
mov dword [ebp - 0x200], 7
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
lea ecx, [ebp - 0x2c0]
call fcn.00409170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006026e7
mov esp, ebp
pop ebp
ret
Function at 0x40b9a0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Kernel32.dll
mov dword [ebp - 0x44], 0x56ec8b55
mov dword [ebp - 0x40], 0x6a0875ff
mov dword [ebp - 0x3c], 0xffff6800
mov dword [ebp - 0x38], 0x15ff001f
mov dword [ebp - 0x34], 0x152000
mov dword [ebp - 0x30], 0xf685f08b
mov dword [ebp - 0x2c], 0xff6a1f74
mov dword [ebp - 0x28], 0x815ff56
mov dword [ebp - 0x24], 0x56001520
mov dword [ebp - 0x20], 0x200415ff
mov dword [ebp - 0x1c], 0xff6a0015
mov dword [ebp - 0x18], 0x202c15ff
mov dword [ebp - 0x14], 0xff500015
mov dword [ebp - 0x10], 0x15202815
mov dword [ebp - 0xc], 0x5ec03300
mov dword [ebp - 8], 0x4c25d
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x40bb7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x691290
push ebx
call esi
push 0x69129c
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x6912b0
push ebx
mov dword [ebp - 0x54], eax
call esi
push 0x6912bc
push ebx
mov dword [ebp - 0x50], eax
call esi
push 0x6912d0
push ebx
mov dword [ebp - 0x4c], eax
call esi
mov dword [ebp - 0x48], eax
xor eax, eax
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x58], 0
je 0x40bb7d
inc eax
cmp eax, 5
jb 0x40ba80
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
push 0x14
push 0
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40bb7d
push 0
push 0x14
lea eax, [ebp - 0x58]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40bb6e
push 0x40
lea eax, [esi + 4]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x25], eax
add eax, 4
push 0x1000
mov dword [ebp - 0x1e], eax
add eax, 4
push 0x40
mov dword [ebp - 0x16], eax
add eax, 4
push 0
push edi
mov dword [ebp - 0xf], eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x40bb6e
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40bb3f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40bb3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006026e7
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006026e7
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006026e7
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a343
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], esi
push eax
push esi
xor ebx, ebx
call sub.KERNEL32.dll_Process32First
or edi, 0xffffffff
test eax, eax
je 0x40bd69
lea ecx, [ebp + 8]
call fcn.0040ddc0
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40bd44
call fcn.00423a7b
test eax, eax
je 0x40bdb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x13c]
call fcn.00402ad0
test al, al
jne 0x40bc73
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc57
sub eax, edx
lea ecx, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00408790
mov esi, dword [ebp - 0x13c]
mov byte [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40bda8
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40bcab
push edi
lea ecx, [ebp - 0x13c]
call fcn.00403540
mov esi, dword [ebp - 0x13c]
lea eax, [edi + 1]
push eax
push esi
call fcn.0062f64a
push eax
call fcn.0040b820
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40bda8
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bdb2
push eax
push esi
call fcn.0062c5cc
add esp, 8
test eax, eax
jne 0x40bce8
inc ebx
push dword [esi - 8]
push esi
call fcn.0062ef98
add esp, 8
test eax, eax
js 0x40bda8
cmp eax, dword [esi - 8]
jg 0x40bda8
mov dword [esi - 0xc], eax
or edi, 0xffffffff
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bd2a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x140]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bc17
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.0062ef98
add esp, 8
test eax, eax
js 0x40bda8
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40bda8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40bd88
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006026e7
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3