joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18376
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov esi, 0x1d3c8
mov ecx, esi
mov edi, eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp byte [0x1d3d8], 0
je 0x183a2
mov edi, 0xc0000010
jmp 0x183b1
mov dword [0x1d3dc], edi
mov byte [0x1d3d8], 1
xor edi, edi
mov dl, al
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test edi, edi
jne 0x183c4
call fcn.000129ce
mov ecx, dword [ebp + 8]
and dword [ecx + 0x1c], 0
xor dl, dl
mov dword [ecx + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x184aa
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push esi
mov esi, 0x1d3c8
mov ecx, esi
call ebx
mov ecx, dword [0x1d378]
mov dl, al
cmp ecx, 0x1d378
je 0x18518
push edi
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [eax], edi
mov dword [edi + 4], eax
lea edi, [ecx - 0x58]
xor eax, eax
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
test eax, eax
je 0x18509
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
and dword [edi + 0x1c], 0
xor dl, dl
mov ecx, edi
mov dword [edi + 0x18], 0xc0000120
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, esi
call ebx
mov dl, al
mov ecx, dword [0x1d378]
cmp ecx, 0x1d378
jne 0x184ce
pop edi
mov ecx, esi
pop esi
pop ebx
jmp dword [sym.imp.HAL.dll_KfReleaseSpinLock]

Function at 0x18844
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
test esi, esi
je 0x188ac
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0x20
jb 0x188ac
cmp dword [0x1c690], 0
mov ebx, 0x1c678
jne 0x18882
push 0
push 0x640000
push 0x1c690
call fcn.0001869e
test eax, eax
jl 0x1889c
cmp dword [0x1c678], 0
jne 0x188bc
push 0
push 0x40000
push ebx
call fcn.0001869e
test eax, eax
jge 0x188bc
push 0x1c690
call fcn.000187ce
push ebx
call fcn.000187ce
and dword [edi + 0x1c], 0
mov eax, 0xc0000001
mov dword [edi + 0x18], eax
mov esi, eax
jmp 0x188ff
mov eax, dword [0x1c694]
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [0x1c6a0]
mov dword [esi + 8], eax
mov eax, dword [0x1c6a4]
mov dword [esi + 0xc], eax
mov eax, dword [0x1c67c]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0x1c688]
mov dword [esi + 0x18], eax
mov eax, dword [0x1c68c]
mov dword [esi + 0x1c], eax
xor esi, esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], 0x20
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x19088
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ebx, 0x1d338
push edi
mov ecx, ebx
call esi
mov edi, 0x1d3c8
jmp 0x19187
mov ecx, dword [edx]
mov dword [0x1d378], ecx
mov dword [ecx + 4], eax
cmp edx, eax
je 0x19196
add edx, 0xffffffa8
lea ecx, [edx + 0x58]
mov dword [ebp - 0xc], edx
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
xor ecx, ecx
add edx, 0x38
xchg dword [edx], ecx
test ecx, ecx
je 0x19196
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 4]
test byte [eax + 6], 5
mov dword [ebp - 0x10], ecx
je 0x190f3
mov eax, dword [eax + 0xc]
jmp 0x1910b
mov ecx, dword [0x1c024]
or ecx, 0x10
push ecx
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov dword [ebp - 8], eax
test eax, eax
je 0x1915b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 8
jb 0x1915b
push dword [0x1c6a0]
push dword [0x1c698]
call fcn.00018e3a
mov ecx, dword [ebp - 8]
and dword [ecx + 4], 0
mov dl, byte [ebp - 1]
mov dword [ecx], eax
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dl, byte [ebp - 2]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 0xc]
and dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 8
jmp 0x1917b
mov dl, byte [ebp - 1]
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dl, byte [ebp - 2]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], 0xc000009a
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, ebx
call esi
mov ecx, edi
mov byte [ebp - 2], al
call esi
mov byte [ebp - 1], al
mov eax, 0x1d378
mov edx, dword [0x1d378]
cmp edx, eax
jne 0x190ac
mov dl, byte [ebp - 1]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
call esi
mov dl, byte [ebp - 2]
mov ecx, ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x19300
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00019b90
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ebx, 0x1d338
mov ecx, ebx
call esi
mov edi, 0x1d3c8
mov ecx, edi
mov byte [ebp - 2], al
call esi
and dword [0x1d3dc], 0
mov byte [ebp - 1], al
mov byte [0x1d3d8], 0
call fcn.000183e4
mov dl, byte [ebp - 1]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
call esi
mov dl, byte [ebp - 2]
mov ecx, ebx
call esi
call fcn.000184aa
call fcn.00018414
push 0x1c690
call fcn.000187ce
push 0x1c678
call fcn.000187ce
mov ecx, dword [ebp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x19392
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test byte [eax + 6], 5
push edi
je 0x193ac
mov ebx, dword [eax + 0xc]
jmp 0x193c6
mov ecx, dword [0x1c024]
or ecx, 0x10
push ecx
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov ebx, eax
test ebx, ebx
je 0x194aa
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 8
jb 0x194aa
mov edi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, 0x1d338
call edi
mov ecx, 0x1d3c8
mov byte [ebp + 0xf], al
call edi
push dword [0x1c6a0]
mov byte [ebp + 0xb], al
push dword [0x1c698]
call fcn.00018e3a
and dword [ebx + 4], 0
mov dword [ebx], eax
cmp byte [esi + 0x24], 0
mov edi, 0x103
je 0x1942b
xor eax, eax
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
test eax, eax
je 0x1942b
mov dword [ebp - 4], 0xc0000120
jmp 0x19471
mov eax, dword [ebx]
or eax, dword [ebx + 4]
jne 0x1946d
mov edx, 0x1d378
cmp dword [0x1d378], edx
jne 0x1946d
mov eax, dword [esi + 0x60]
or byte [eax + 3], 1
mov dword [esi + 0x18], edi
mov ecx, dword [0x1d37c]
lea eax, [esi + 0x58]
mov dword [eax + 4], ecx
mov dword [eax], edx
mov dword [ecx], eax
mov dword [0x1d37c], eax
mov eax, 0x18528
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
mov dword [ebp - 4], edi
jmp 0x19471
and dword [ebp - 4], 0
mov dl, byte [ebp + 0xb]
mov ebx, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, 0x1d3c8
call ebx
mov dl, byte [ebp + 0xf]
mov ecx, 0x1d338
call ebx
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x194a6
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], 8
mov dword [esi + 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, ebx
jmp 0x194be
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x19a22
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
test byte [eax + 6], 5
je 0x19a43
mov eax, dword [eax + 0xc]
jmp 0x19a59
mov ecx, dword [0x1c024]
or ecx, 0x10
push ecx
push edi
push edi
push 1
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
cmp eax, edi
je 0x19a83
cmp ebx, 8
jb 0x19a83
push dword [eax]
push dword [0x1c680]
call fcn.000198e0
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x19a97
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1e03e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0001e005
pop ebp
jmp fcn.0001a404
Function at 0x484cef
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x484a08
add ebx, 0x7509d376
add ebx, ebx
call fcn.00484d32
sub ebx, 1
mov esi, ebx
add esi, ebx
xor dword [edx], ecx
add ebx, esi
or ebx, esi
add edx, 2
or ebx, esi
sub ebx, 0x82dbb307
sub ebx, 0xa602eabb
cmp edx, eax
jl fcn.00484cef
or esi, esi
ret
Function at 0x401000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [edx]
xor al, 0x42
push ebx
push esi
mov esi, ecx
mov bl, byte [edx + 0xd]
mov cl, byte [edx + 0xe]
xor bl, 0x4d
xor cl, 0x58
mov byte [esi + 0xd], bl
mov byte [esi], al
movzx eax, byte [edx + 1]
xor al, 0x4d
mov byte [esi + 0xe], cl
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
xor al, 0x58
mov cl, byte [edx + 0xf]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
xor al, 0x63
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
xor al, 0x42
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
xor al, 0x4d
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
xor al, 0x58
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
xor al, 0x63
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
xor al, 0x42
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
xor al, 0x4d
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
xor al, 0x58
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
xor al, 0x63
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
xor al, 0x42
xor cl, 0x63
mov byte [esi + 0xc], al
lea eax, [esi + 0xd]
mov byte [esi + 0xf], cl
mov ecx, 4
mov dword [ebp - 8], ecx
mov dh, byte [eax + 2]
mov dl, bl
mov bl, byte [eax + 1]
mov bh, byte [eax - 1]
mov byte [ebp - 2], bl
mov byte [ebp - 1], dh
test cl, 3
jne 0x4010f6
movzx ecx, bl
movzx edx, dl
mov cl, byte [ecx + str.cw]
mov byte [ebp - 3], cl
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
movzx ecx, bh
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 8]
shr ecx, 2
mov bh, byte [ecx + 0x407338]
xor bh, byte [edx + str.cw]
mov dl, byte [ebp - 3]
mov cl, byte [eax - 0xd]
xor cl, bh
mov byte [eax + 3], cl
mov bl, byte [eax - 0xc]
xor bl, dl
lea edx, [eax + 4]
mov byte [edx], bl
mov cl, byte [eax - 0xb]
xor cl, byte [ebp - 2]
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, byte [ebp - 1]
mov byte [eax + 6], cl
mov eax, edx
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x2c
jb 0x4010a3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401140
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
sub edi, esi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x401165
sub ebx, 1
jne 0x401160
mov byte [ebp - 1], 1
nop dword [eax]
mov edi, esi
mov ebx, 4
nop word [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x4011a0
inc edi
sub ebx, 1
jne 0x401190
cmp byte [ebp - 1], 0xa
movzx eax, byte [esi + 5]
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 9]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 9], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xf], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xb], al
mov byte [esi + 7], cl
je 0x4012e0
lea edi, [esi + 2]
lea esi, [edx + 4]
nop word [eax + eax]
mov bh, byte [edi + 1]
lea edi, [edi + 4]
mov al, byte [edi - 6]
mov bl, bh
mov ch, byte [edi - 4]
mov cl, al
mov dl, byte [edi - 5]
xor bl, ch
mov byte [ebp - 2], al
xor cl, dl
mov dh, bl
xor dh, al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
xor dh, dl
imul eax, eax, 0x1b
xor al, cl
mov cl, dl
xor al, byte [ebp - 2]
xor cl, ch
xor al, dh
mov byte [edi - 6], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 2]
xor al, dl
xor cl, bh
xor al, dh
mov byte [edi - 5], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, dh
mov byte [edi - 4], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
xor al, bh
xor al, dh
mov byte [edi - 3], al
sub esi, 1
jne 0x401220
mov ch, byte [ebp - 1]
mov ebx, 4
mov esi, dword [ebp - 0xc]
mov eax, esi
movzx edx, ch
shl edx, 4
add edx, dword [ebp - 8]
mov edi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x4012c6
sub ebx, 1
jne 0x4012c1
inc ch
mov byte [ebp - 1], ch
jmp 0x401180
mov ecx, dword [ebp - 8]
mov edi, 4
add ecx, 0xa0
nop
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [esi], al
inc esi
sub edx, 1
jne 0x4012f5
sub edi, 1
jne 0x4012f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406207
Capabilities:
Parse pe header

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

Disassembly:
push esi
push edi
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x40277a
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
push ebx
push ebp
mov eax, ecx
sub esi, ecx
mov ebp, edi
mov bl, byte [esi + eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x402764
pop ebp
mov byte [edi + ecx], 0
pop ebx
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov byte [eax + ecx], 0
ret 0xc

Function at 0x402790
Capabilities:
Get disk information

Disassembly:
sub esp, 0x68
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0xc
push 0
push 0x407160
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x40715c
push edx
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402810
push 0x407158
push 0x407154
push 0x407150
push 0x40714c
push 0x407148
push 0x407144
lea eax, [esp + 0x24]
push str._s_s_s_s_s_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor ecx, ecx
test eax, eax
je 0x40283c
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x68
ret
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
Function at 0x402ab0
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x26c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00402d20
mov eax, dword [eax + 4]
test eax, eax
jne 0x402ae8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x74]
push 0x407194
push ecx
call ebp
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x402b23
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402b1a
cmp al, 0xff
je 0x402b1a
dec al
mov byte [ecx], al
jmp 0x402b23
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x27c]
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x70]
mov ecx, esi
push eax
push edi
call fcn.00402c50
test eax, eax
je 0x402c40
lea ecx, [esp + 0x70]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x402c40
xor edx, edx
mov ecx, 0x11
mov dword [esp + 0xc], edx
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
mov ecx, 0x40
lea edi, [esp + 0x175]
mov word [esp + 0x5c], ax
mov byte [esp + 0x174], dl
push 0x407190
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
lea ecx, [esp + 0x178]
push eax
push str._s_s
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov dword [esp + 0x28], edx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x174]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402c40
mov eax, dword [esp + 0x280]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xc]
shl edx, 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x26c
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x26c
ret 8
Function at 0x402d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor esi, esi
push eax
push 0x3f5
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x407198
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [esp + 0x420]
mov al, byte [esp + 0x13]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], esi
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x402d88
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x402dbb
mov al, byte [ecx - 1]
test al, al
je 0x402dbb
cmp al, 0xff
je 0x402dbb
cmp ebx, esi
jne 0x402dee
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 4
cmp ebx, esi
jne 0x402dd8
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 4
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x402de4
cmp eax, ebx
jae 0x402df7
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40c
ret 4
Function at 0x403480
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
jle 0x4034e0
mov ebx, dword [esp + 0x14]
xor edi, edi
xor esi, esi
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4034a1
xor eax, eax
jmp 0x4034a9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp edi, eax
jge 0x4034cc
mov ecx, dword [esi + ecx + 4]
test ecx, ecx
jne 0x4034bb
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4034e9
inc edi
add esi, 0x10
jmp 0x403496
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x403492
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x403990
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push edi
push eax
push str.SoftwareASD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
push ecx
stosb byte es:[edi], al
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea edx, [esp + 0xc]
push 0xa
push edx
push eax
call dword [sym.imp.MSVCRT.dll__ltoa]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 4]
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x4071e0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10c
ret

Function at 0x42c005
Capabilities:
Packed with generic packer

Disassembly:
jmp fcn.0042a8d0
jmp section.42vab535