joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42df47
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00422156
and dword [ebp - 0x14], 0
cmp dword [0x45520c], 0
mov dword [ebp - 0x18], eax
jne 0x42dffa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42e0a2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x443154
push ebx
call edi
test eax, eax
je 0x42e0a2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x443144
push ebx
mov dword [0x45520c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x455210], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x455214], eax
call edi
push eax
call esi
mov dword [0x45521c], eax
test eax, eax
je 0x42dffa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x455218], eax
mov eax, dword [0x455218]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42e053
cmp dword [0x45521c], ecx
je 0x42e053
push eax
call esi
push dword [0x45521c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42e053
test ebx, ebx
je 0x42e053
call edi
test eax, eax
je 0x42e04a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42e04a
test byte [ebp - 8], 1
jne 0x42e053
or dword [ebp + 0x10], 0x200000
jmp 0x42e086
mov eax, dword [0x455210]
cmp eax, dword [ebp - 0x18]
je 0x42e086
push eax
call esi
test eax, eax
je 0x42e086
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42e086
mov eax, dword [0x455214]
cmp eax, dword [ebp - 0x18]
je 0x42e086
push eax
call esi
test eax, eax
je 0x42e086
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45520c]
call esi
test eax, eax
je 0x42e0a2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42e0a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419e3b
leave
ret

Function at 0x4337d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, 0x10624dd3
mul ecx
mov eax, dword [ebp + 8]
shr edx, 6
mov dword [ebp - 0x11c], edx
imul edx, edx, 0x3e8
sub ecx, edx
lea edx, [ebp - 0x11c]
push edx
push 0
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax]
push 0
lea eax, [ebp - 0x114]
push eax
push 0
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x433847
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419e3b
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419e3b
mov esp, ebp
pop ebp
ret 4
Function at 0x433c20
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x433c40
xor esi, esi
jmp 0x433c81
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x433c7d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0041f400
mov esi, esp
test esi, esi
je 0x433c7d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x433c7f
xor eax, eax
mov esi, eax
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x18], eax
push 0x7b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x18], cx
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x433cc8
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x433cf4
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0x10
lea edx, [ebp - 0x18]
push edx
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x24]
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419e3b
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x433cdf
Function at 0x434460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041be80
mov edx, dword [edi + 0x18]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov eax, dword [edi + 0x1c]
lea edx, [ebp - 0x218]
push edx
push ebx
mov dword [ebp - 0x214], eax
mov eax, dword [edi]
push 0x44b
lea ecx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 5
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, dword [esi + 0xb4]
pop ebx
cmp ecx, dword [esi + 0xb8]
je 0x434571
mov eax, dword [ecx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00419e3b
mov esp, ebp
pop ebp
ret
Function at 0x4368cc
Capabilities:
Get common file path

Disassembly:
push 0xc44
mov eax, 0x43b8cb
call fcn.0041fdb5
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0xc50], eax
cmp esi, edi
je 0x436937
cmp word [esi], di
je 0x436937
push edi
push esi
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
jne 0x436937
mov dword [ebp - 0xc4c], edi
call fcn.0040e12c
test al, al
je 0x436937
push esi
call fcn.0041bcb2
pop ecx
test eax, eax
je 0x436937
push 0xc8
call ebx
inc dword [ebp - 0xc4c]
cmp dword [ebp - 0xc4c], 0x3e8
jl 0x43690a
mov eax, dword [ebp - 0xc50]
cmp eax, edi
je 0x43698c
cmp word [eax], di
je 0x43698c
push edi
push eax
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
jne 0x43698c
mov dword [ebp - 0xc4c], edi
mov esi, dword [ebp - 0xc50]
call fcn.0040e12c
test al, al
je 0x43698c
push esi
call fcn.0041bcb2
pop ecx
test eax, eax
je 0x43698c
push 0xc8
call ebx
inc dword [ebp - 0xc4c]
cmp dword [ebp - 0xc4c], 0x3e8
jl 0x436959
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc1c], edi
mov word [ebp - 0xc2c], cx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc34], eax
xor eax, eax
mov dword [ebp - 0xc38], edi
mov word [ebp - 0xc48], ax
lea eax, [ebp - 0xc48]
push eax
push dword [ebp - 0xc50]
lea ecx, [ebp - 0xc2c]
mov byte [ebp - 4], 1
call fcn.0040c156
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.0041be80
add esp, 0x14
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x7fe
mov word [ebp - 0xc10], ax
lea eax, [ebp - 0xc0e]
push edi
push eax
call fcn.0041be80
add esp, 0xc
push 0x400
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp dword [ebp - 0xc1c], edi
je 0x436aad
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x436a5c
lea eax, [ebp - 0xc2c]
lea ecx, [ebp - 0xc10]
push ecx
push eax
call fcn.0041a6e0
pop ecx
pop ecx
test eax, eax
je 0x436aad
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x436a84
lea eax, [ebp - 0xc2c]
push edi
push eax
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
jne 0x436aad
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x436aa6
lea eax, [ebp - 0xc2c]
push eax
call fcn.0041bc82
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0xc48]
call fcn.0040211c
push 1
lea esi, [ebp - 0xc2c]
call fcn.0040211c
call fcn.0041fe38
ret 4
Function at 0x436cc9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, 0x4565c0
cmp dword [0x4565d0], edi
jne 0x436df8
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x436d0c
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401f96
cmp dword [0x4565d4], 8
mov eax, dword [0x4565c0]
jae 0x436d36
mov eax, esi
push edi
push eax
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
je 0x436d56
xor eax, eax
mov ecx, 0x443268
call fcn.00401f96
mov ecx, esi
call fcn.0040e235
cmp dword [0x4565d0], edi
je 0x436d7b
cmp dword [0x4565d4], 8
mov eax, dword [0x4565c0]
jae 0x436d6e
mov eax, esi
push edi
push eax
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
je 0x436d8d
push str.TEMP
call fcn.0041bc08
pop ecx
push eax
push esi
call fcn.00402011
cmp dword [0x4565d0], edi
je 0x436db2
cmp dword [0x4565d4], 8
mov eax, dword [0x4565c0]
jae 0x436da5
mov eax, esi
push edi
push eax
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
je 0x436dc4
push 0x4475c8
call fcn.0041bc08
pop ecx
push eax
push esi
call fcn.00402011
cmp dword [0x4565d0], edi
je 0x436de9
cmp dword [0x4565d4], 8
mov eax, dword [0x4565c0]
jae 0x436ddc
mov eax, esi
push edi
push eax
call fcn.0041b8f5
pop ecx
pop ecx
test eax, eax
je 0x436df8
push 0xffffffffffffffff
push edi
mov eax, 0x456588
mov ecx, esi
call fcn.00401d19
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419e3b
leave
ret
Function at 0x43740b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bc68
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x44e234]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x44e234]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040a6f9
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
call fcn.0040a631
xor ebx, ebx
mov dword [esp + 0x460], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x437472
mov eax, dword [eax]
jmp 0x437474
xor eax, eax
push eax
lea esi, [esp + 0x34]
call fcn.00406ae4
lea edi, [esp + 0x2c]
call fcn.00401a09
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x460], 3
push dword [esp + 0x28]
lea ecx, [esp + 0x1c]
call fcn.0040fce4
pop ecx
cmp eax, 1
jle 0x437548
xor eax, eax
push 0x3fe
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.0041be80
mov esi, dword [esp + 0x24]
add esp, 0xc
jmp 0x43753c
push 0x200
lea eax, [esp + 0x50]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x437506
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437530
cmp dx, bx
je 0x43752c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437530
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x43750a
xor eax, eax
jmp 0x437535
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x437544
add esi, 4
cmp esi, dword [esp + 0x1c]
jne 0x4374e5
jmp 0x43755f
mov eax, dword [esi]
jmp 0x43755b
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x43755f
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], ebx
je 0x43756f
push dword [esp + 0x18]
call fcn.00419e30
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0040211c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00419e3b
mov esp, ebp
pop ebp
ret

Function at 0x437676
Capabilities:
Create thread

Disassembly:
push esi
call fcn.0041ae9c
mov esi, eax
xor eax, eax
cmp dword [0x4567dc], eax
jne 0x4376c0
cmp word [0x45685a], 3
jne 0x4376a3
test byte [0x456868], 1
je 0x4376a3
cmp byte [0x456699], al
je 0x4376c0
push 0x4567e4
push eax
push 0x456850
push 0x406dbb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4567e8], eax
mov eax, esi
pop esi
ret
Function at 0x4376c4
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x43bd2a
call fcn.0041fdb5
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
push 0x401
push 0x456588
mov dword [ebp - 4], ebx
call fcn.00437651
call fcn.00436e08
mov esi, eax
cmp esi, ebx
je 0x43772a
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x43770c
lea eax, [ebp - 0x2c]
push esi
push 1
push dword [ebp - 0x1c]
push eax
call fcn.0041b71b
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
push esi
inc bl
call fcn.0041b802
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00406aa9
mov al, bl
call fcn.0041fe38
ret

Function at 0x43773e
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x43bd57
call fcn.0041fdb5
and dword [ebp - 0x1c], 0
mov bl, 1
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0x3fc
push 0x456588
call fcn.00437651
call fcn.00436e94
mov esi, eax
test esi, esi
je 0x4377c7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x437789
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [0x446a63]
jne 0x4377be
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x43779f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push esi
push 1
add ecx, 0xfffffffc
push ecx
add eax, 4
push eax
call fcn.0041b71b
add esp, 0x10
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
push esi
call fcn.0041b802
pop ecx
jmp 0x4377c9
xor bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00406aa9
mov al, bl
call fcn.0041fe38
ret
Function at 0x437e81
Capabilities:
Create thread

Disassembly:
push 0x64
mov eax, 0x43bf74
call fcn.0041fdeb
xor ebx, ebx
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x456588
push 0x402940
push ebx
push ebx
mov dword [0x4567e0], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], ebx
call fcn.00439800
or dword [ebp - 4], 0xffffffff
mov dword [0x4567e0], eax
jmp 0x437ece
cmp dword [ebp - 0x50], ebx
je 0x437eeb
push ebx
push ebx
push 0x502
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4567e0], ebx
jne 0x437faa
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 2
cmp byte [0x45669b], bl
push str.KRglXTx2gH3c24R6o3JfvDqdFO9DgW9GgOnUdF
lea ebx, [ebp - 0x4c]
je 0x437f4c
mov ecx, str.FY_izZbA2i5Uge3Hw_PzSVtCqR01pMBk_FJsF6ZxyR3ZTkoZSgTNqAREIIqufCgs8Wbr468wrhj3h5LHfzZoEvizA5WBjWXvxrmfNQiwlmgQMTkwuhOLsRtGday_pkqXYHuV3
call fcn.0040df10
pop ecx
mov esi, eax
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00407efb
push 0
push 1
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004020ce
mov esi, edi
call fcn.00410b80
jmp 0x437f75
mov ecx, str.gbbqE3svfLcyUk3bNyrX4_MkGzsMd1MUZ5vNukEb9Mxb5HkegYFmsZRQtJI5gUSsrElb2D
call fcn.0040df10
pop ecx
mov esi, eax
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00407efb
push 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004020ce
lea eax, [ebp - 0x30]
lea esi, [ebp - 0x70]
call fcn.0040915d
mov eax, esi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00419f8f
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
push 0x449294
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0x446e2c
call fcn.0041f219
call fcn.0041fe47
ret
Function at 0x40107a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00401f23
test al, al
je 0x4010d2
push esi
push edi
push 6
mov esi, 0x40505c
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push str.KERNEL32.DLL
movsb byte es:[edi], byte [esi]
call fcn.0040390d
mov esi, eax
xor eax, eax
xor byte [ebp + eax - 0x1c], 0x4f
inc eax
cmp eax, 0x16
jl 0x4010a7
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4010c6
push 1
push 0
call eax
push esi
call fcn.004038c8
pop edi
xor eax, eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x4010d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0xd
mov esi, 0x405078
pop ecx
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebp - 8], 2
xor eax, eax
xor byte [ebp + eax - 0x40], 0x4f
inc eax
cmp eax, 0x36
jl 0x4010f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
push 0x80000002
call fcn.004036fc
test eax, eax
jne 0x40114d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x4053d4]
push dword [ebp - 4]
call fcn.00403741
push dword [ebp - 4]
call fcn.004036e5
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4013d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
push ebx
push esi
push edi
mov esi, str._s_system32sA
lea edi, [ebp - 0x10]
lea eax, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x78
push eax
movsd dword es:[edi], dword [esi]
call fcn.004038f6
lea eax, [ebp - 0x164]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
inc byte [ebp - 0x10]
sub dword [ebp - 4], 0x410001
push 0x405110
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x564]
push eax
call esi
lea eax, [ebp - 0x164]
push str.vckbpa.dat
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x964]
push eax
call esi
mov ebx, 0x405e38
lea eax, [ebp - 0x564]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x28
mov edi, 0x405a38
test eax, eax
je 0x401552
lea eax, [ebp - 0x564]
push 0x80
push eax
call sub.KERNEL32.dll_SetFileAttributesA
lea eax, [ebp - 0x564]
push 0
push eax
push ebx
call fcn.0040389a
test eax, eax
je 0x401552
lea eax, [ebp - 0x964]
push eax
call fcn.00401ef6
pop ecx
lea eax, [ebp - 0x564]
mov ecx, dword [0x406984]
push eax
call fcn.0040330e
push 1
push 0xff
push 0x406338
call fcn.00401e56
pop ecx
pop ecx
mov ecx, dword [0x406984]
push eax
push 0x405100
call fcn.00403389
push 1
push 0x21
push 0x40687c
call fcn.00401ec2
pop ecx
pop ecx
mov ecx, dword [0x406984]
push eax
push str.TIME
call fcn.00403389
call fcn.00401f23
test al, al
je 0x401502
mov ecx, dword [0x406984]
lea eax, [ebp - 0x964]
push eax
call fcn.0040325c
mov ecx, dword [0x406984]
lea eax, [ebp - 0x564]
push eax
call fcn.0040325c
lea eax, [ebp - 0x564]
push ebx
push eax
push str._s__d___s_
push edi
call esi
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], 0x101
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push edi
push ebx
call fcn.00403883
lea eax, [ebp - 0x564]
push eax
push str._s__v
push edi
call esi
movzx eax, byte [ebp + 8]
push eax
push dword [0x4053d0]
push dword [0x4053cc]
push dword [0x4053d4]
push edi
call fcn.00401203
add esp, 0x20
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push edi
push 0x4050dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402632
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp + 0xc]
sub eax, 0x60
push edi
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [esi]
mov dword [ebp + 8], eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40262f
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 0x60
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
dec eax
je 0x40262c
mov cl, byte [eax + edi - 1]
xor byte [eax + edi], cl
jmp 0x402620
xor byte [edi], 0x28
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x402635
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x405338
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x402686
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [ebp + 8]
push 0x406980
call fcn.00403677
add esp, 0x1c
push 1
pop eax
pop esi
pop ebp
ret

Function at 0x402733
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4027e2
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40279b
lea eax, [ebp - 0x104]
push str.services.exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x402795
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x40276d
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4027dc
cmp dword [ebp - 0x110], edi
je 0x4027c7
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x4027d6
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x4027a8
mov ebx, dword [ebp - 0x120]
push esi
call sub.KERNEL32.dll_CloseHandle
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret