joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4086ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4086d9
pop dword [ebp - 0x1c]
mov eax, 0x16b1798b
add eax, 0xe98f0d4e
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x6a61ada
add dword [ebp - 0x2c], 0x47ac2a71
mov dword [ebp - 0x28], 0xe2913aee
sub dword [ebp - 0x28], 0xb05deea9
mov dword [ebp - 0x24], 0x23d3bee7
add dword [ebp - 0x24], 0x28788547
mov dword [ebp - 0x20], 0xb8cb87c6
add dword [ebp - 0x20], 0x4734783a
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xe96eedb3
sub eax, 0xe92e1d5f
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xf6629426
sub dword [ebp - 0x2c], 0x81f02ad0
mov dword [ebp - 0x28], 0xf22bee7f
sub dword [ebp - 0x28], 0xb0bf8d0a
mov dword [ebp - 0x24], 0x9374655d
add dword [ebp - 0x24], 0xcffb070f
mov dword [ebp - 0x20], 0xe339c51d
sub dword [ebp - 0x20], 0xe339c51d
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x35d69
push 0
call eax
mov ecx, 0x3946
xor edx, edx
add edx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x1c]
mov ebx, 0x324835a2
xor dword [ebp - 0x14], 0x6586059c
mov edi, dword [esi]
sub dword [ebp - 0x10], 0x2bfd9693
add edi, ebx
sub dword [ebp - 8], 0x9830f7d3
mov dword [edx], edi
xor dword [ebp - 0x18], 0x6fcd76a
add edx, 4
add esi, 4
loop 0x4087e6
add eax, 0x4751ed0c
sub eax, 0x47511521
mov ebx, eax
add eax, 5
mov ecx, 0x9621debc
add ecx, 0x6a1e2144
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1012475
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10015e0
call fcn.010127c8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10124b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10124b2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10124ca
cmp eax, 0x20b
je 0x10124b7
mov dword [ebp - 0x1c], ebx
jmp 0x10124de
cmp dword [ecx + 0x84], 0xe
jbe 0x10124b2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10124d8
cmp dword [ecx + 0x74], 0xe
jbe 0x10124b2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call section..test
nop
pop ecx
or dword [0x1015010], 0xffffffff
or dword [0x1015014], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101500c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1015008]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1015018], eax
call fcn.010127c2
cmp dword [0x10149d0], ebx
jne 0x1012539
push fcn.010127c2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010127b0
push 0x1001234
push 0x1001230
call sub.msvcrt.dll__initterm
mov eax, dword [0x1015004]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1015000]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100122c
push 0x1001228
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10125cf
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10125a3
cmp al, 0x22
jne 0x1012595
cmp byte [esi], 0x22
jne 0x10125ac
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10125b6
cmp al, 0x20
jbe 0x10125a8
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call section..test
nop
test byte [ebp - 0x4c], 1
je 0x10125da
movzx eax, word [ebp - 0x48]
jmp 0x10125dd
cmp byte [esi], 0x20
jbe 0x10125ac
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10125cf
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10125fa
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101262f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01012801
ret
Function at 0x47da6e
Capabilities:
Check for software breakpoints

Disassembly:
call 0x47da73
pop eax
mov ebx, 0x400000
mov esi, dword [ebx + 0xc0]
lea eax, [ebx + esi]
dec eax
mov cl, byte [eax]
cmp cl, 0xcc
je 0x47da82
sub eax, 3
mov edx, dword [eax]
mov esi, dword [ebx + 0x16c]
add esi, ebx
lea edi, [ebx + 0x1000]
push edi
mov ecx, edx
sub ecx, esi
push ecx
push esi
call fcn.0047d915
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x47db01
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x47dafc
pushal
test eax, 0x80000000
je 0x47dae6
and eax, 0x7fffffff
jmp 0x47daea
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x47dad1
add esi, 0x14
jmp 0x47dab7
pop edx
add ebx, dword [edx + 0x28]
jmp ebx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40203d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [0x40f090]
lea eax, [ebp - 4]
push edi
push eax
push 0x100000
push 0x415ea4
push dword [ebp + 8]
call dword [0x40f08c]
test eax, eax
je 0x402089
cmp word [0x415ea4], 0x5a4d
jne 0x402089
mov ecx, dword [0x415ee0]
cmp dword [ecx + 0x415ea4], 0x4550
je 0x40208e
or eax, 0xffffffff
jmp 0x4020b9
push esi
xor eax, eax
movzx esi, word [ecx + 0x415eaa]
cmp esi, edi
jle 0x4020b8
lea edx, [ecx + 0x415fac]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x4020ad
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x4020a2
pop esi
pop edi
leave
ret
Function at 0x4025c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025db
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402612
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40260e
jmp 0x402600
cmp esi, eax
jae 0x402612
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402600
cmp esi, eax
jb 0x402619
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582c10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [esi], edi
je 0x40483e
cmp ebx, edi
je 0x40483e
cmp dword [ebp + 8], edi
je 0x40483e
lea ecx, [ebp - 0x18]
lea eax, [esi + 4]
push ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
call fcn.00404970
test eax, eax
je 0x4047b1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
push ecx
push edi
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 4], edi
mov eax, dword [esi]
push edi
push ebx
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404809
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00461caa
mov ecx, dword [esi]
add esp, 4
lea edx, [ebp - 0x18]
push edx
mov edi, eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404820
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push ebx
mov dword [edx], edi
call fcn.00404ca0
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], 0x80010080
jmp 0x404809
mov eax, 0x80010001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4054c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edi + 4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, 8
jne 0x405583
mov eax, dword [ebp + 8]
mov ebx, dword [edi + 8]
push eax
lea ecx, [edi + 0x20]
push ecx
mov dword [ebp - 8], ebx
call fcn.00405640
add esp, 8
test al, al
jne 0x405631
cmp dword [edi + 0x18], esi
jbe 0x405631
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x405530
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push eax
push ecx
call fcn.00556d01
add esp, 8
test eax, eax
je 0x40553a
inc esi
add ebx, 0x78
cmp esi, dword [edi + 0x18]
jb 0x405503
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004025a0
mov ecx, dword [ebp - 8]
mov eax, esi
shl eax, 4
sub eax, esi
mov edx, dword [ecx + eax*8 + 0x14]
test edx, edx
jne 0x405550
xor eax, eax
jmp 0x405564
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405555
sub eax, ebx
sar eax, 1
mov ecx, dword [ebp + 0xc]
push eax
push edx
call fcn.004039c0
mov dword [edi + 0x1c], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x40562e
mov edx, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
push edx
lea eax, [edi + 0x3c]
push eax
mov dword [ebp - 8], ebx
call fcn.00405640
add esp, 8
test al, al
jne 0x405631
cmp dword [edi + 0x34], esi
jbe 0x405631
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x405530
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00556d01
add esp, 8
test eax, eax
je 0x4055e7
inc esi
add ebx, 0x18
cmp esi, dword [edi + 0x34]
jb 0x4055b6
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
lea edx, [esi + esi*2]
mov edx, dword [eax + edx*8 + 0x14]
test edx, edx
jne 0x4055f9
xor eax, eax
jmp 0x40560f
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405600
sub eax, ebx
sar eax, 1
mov ecx, dword [ebp + 0xc]
push eax
push edx
call fcn.004039c0
mov dword [edi + 0x38], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40db50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x208
lea eax, [ebp - 0x414]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], 0
call fcn.0055ca80
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0055ca80
add esp, 0x18
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40dc1c
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005589fd
add esp, 8
push 0x5b7dd8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5b7ddc
lea ecx, [ebp - 0x20c]
push ecx
call ebx
push 0x5b7de0
lea edx, [ebp - 0x20c]
push edx
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x5b69a4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
push edx
mov ecx, ebx
call fcn.00403340
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x40eb40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5851c6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5eb770]
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
mov eax, dword [ebp + 8]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x264], eax
xor ecx, ecx
push edi
mov eax, 0x5b69a4
lea esi, [ebp - 0x234]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
call fcn.00401d90
mov dword [ebp - 4], edi
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebx + 0x18]
lea edi, [ebx + 0x14]
jne 0x40ed19
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ecc3
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.005589fd
add esp, 8
push 0x5b7dd8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5b7ddc
lea edx, [ebp - 0x218]
push edx
call esi
push 0x5b7de0
lea eax, [ebp - 0x218]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xfffe
push 8
push eax
mov dword [ebp - 0x260], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x25c], esi
test esi, esi
je 0x40ecc3
lea ecx, [ebp - 0x218]
push ecx
push 0x7fff
push esi
push str.Non_Display_Message
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [esi], 0
mov ebx, esi
je 0x40ecad
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec70
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x234]
call fcn.00401d90
mov ecx, esi
call fcn.0040b0b0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
jne 0x40ec68
mov esi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x260]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x258]
xor eax, eax
mov word [ebp - 0x250], ax
push 7
mov eax, str.MSG_END
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
call fcn.00401d90
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040b0b0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x23c], 8
jb 0x40ed19
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00461cb5
add esp, 4
mov edi, dword [edi]
cmp edi, dword [ebx + 0x18]
je 0x40ed6e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00401b90
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40ed4c
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 0x264]
push edx
push eax
call esi
test eax, eax
je 0x40ed64
add edi, 0x1c
cmp edi, dword [ebx + 0x18]
jne 0x40ed26
jmp 0x40ed6e
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x220], 8
jb 0x40ed86
mov eax, dword [ebp - 0x234]
push eax
call fcn.00461cb5
add esp, 4
mov eax, dword [ebp - 0x254]
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.0055649d
mov esp, ebp
pop ebp
ret 4
Function at 0x40fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x5b8234
xor eax, eax
push edi
push str.SystemCurrentControlSetControlPrintPrinters
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
lea eax, [ebp - 0x624]
xor esi, esi
push 0x5b82b8
push eax
mov dword [ebp - 0x628], esi
mov dword [ebp - 0x62c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x630]
push ecx
push 0x20019
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x624]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x40fd07
lea eax, [ebp - 0x628]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40fdb0
mov edx, dword [ebp - 0x628]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20019
push eax
push edi
push edx
call esi
test eax, eax
je 0x40fcbe
mov eax, dword [ebp - 0x628]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x62c]
lea ecx, [ebp - 0x630]
push ecx
push 0x20019
push 0
push 0x5b8234
push edx
call esi
test eax, eax
je 0x40fd07
mov eax, dword [ebp - 0x62c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x628]
push ecx
call esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x634]
push edx
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x638]
push ecx
push 0
push str.PrinterID
push edx
mov dword [ebp - 0x634], 4
mov dword [ebp - 0x638], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40fd8d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x630]
mov cl, byte [ebp - 8]
mov dword [ebx], eax
push edx
mov byte [ebx + 4], cl
call esi
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x40fd6c
push eax
call esi
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x40fd79
push eax
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x630]
push eax
call esi
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x40fda3
push eax
call esi
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x40fdb0
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x412320
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5850b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0
push str.Tool_GetSpoolerServiceStatus
push 0
lea ecx, [esp + 0x28]
call fcn.0044ca70
add esp, 0xc
mov dword [esp + 0x50], 0
call fcn.0046d2d8
mov ecx, dword [eax + 4]
call fcn.00464015
xor edi, edi
push 0xf003f
push edi
push edi
mov byte [esp + 0x5c], 1
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x41241c
push 4
push str.SPOOLER
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x412400
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x4123eb
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jb 0x4123c0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x18]
jmp 0x412411
mov ecx, dword [esp + 0x28]
push edi
mov dword [esp + 0x18], ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x18]
jmp 0x412411
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x412411
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
push edi
push str.return___08x
lea edx, [esp + 0x24]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x13]
mov byte [esp + 0x50], 0
call fcn.004078f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], 0xffffffff
call fcn.0044cc70
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x412f50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58501b
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5eb770]
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
xor ebx, ebx
push ebx
push str.VDCUDeleteService
push ebx
lea ecx, [ebp - 0x42c]
call fcn.0044ca70
add esp, 0xc
push 0x44
lea eax, [ebp - 0x490]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0055ca80
add esp, 0xc
xor eax, eax
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
call fcn.0055ca80
add esp, 0xc
push 0x208
lea edx, [ebp - 0x420]
push ebx
push edx
mov dword [ebp - 0x424], ebx
call fcn.0055ca80
add esp, 0xc
push str.SOFTWARECanonVDCSETUP
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x424]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x420]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41306c
lea ecx, [ebp - 0x434]
push ecx
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x448]
push eax
push ebx
push str.Path
push ecx
mov dword [ebp - 0x434], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41309c
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.return___08x
lea eax, [ebp - 0x42c]
push 2
push eax
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x413175
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5b7ddc
lea eax, [ebp - 0x218]
xor edx, edx
push eax
mov dword [ebp - 0x490], 0x44
mov dword [ebp - 0x464], 1
mov word [ebp - 0x460], dx
call esi
push str.AuVdc.exe
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x490]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.__remove
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x440]
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x430], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov edi, eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x413147
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
push edi
push str.return___08x
lea ecx, [ebp - 0x42c]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, edi
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.0055649d
mov esp, ebp
pop ebp
ret