joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x410414
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x410423
pop dword [ebp - 0x48]
mov eax, 0x56375bab
sub eax, 0x55f65788
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x3e4b197c
sub dword [ebp - 0x58], 0xeff8d431
mov dword [ebp - 0x54], 0x6615f1c7
add dword [ebp - 0x54], 0xcc1d5a7e
mov dword [ebp - 0x50], 0xfe1e51df
add dword [ebp - 0x50], 0x4e2df24f
mov dword [ebp - 0x4c], 0x748940d3
add dword [ebp - 0x4c], 0x8b76bf2d
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf1596db0
add dword [ebp - 0x58], 0x8318fba6
mov dword [ebp - 0x54], 0x31b3c5f3
add dword [ebp - 0x54], 0xfb89b82
mov dword [ebp - 0x50], 0xb6c5f898
add dword [ebp - 0x50], 0xaca973d4
mov dword [ebp - 0x4c], 0x9058d2ff
add dword [ebp - 0x4c], 0x6fa72d01
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x41c36
push 0
call eax
mov ecx, 0x78e0741b
sub ecx, 0x78e01c03
mov edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x48]
mov esi, 0x4dbf303e
add esi, 0x61038f06
xor dword [ebp - 0xc], 0x46726fa4
mov edx, dword [ebx]
sub dword [ebp - 0x40], 0x523a885f
sub edx, esi
xor dword [ebp - 0x3c], esi
mov dword [edi], edx
xor dword [ebp - 0x38], 0x65c8e0e
add edi, 0xc09253e0
sub edi, 0xc09253dc
add ebx, 4
loop 0x410535
add eax, 0x15333
xor ebx, ebx
add ebx, eax
add eax, 0xd88b9df
add eax, 0xf2774626
mov ecx, 0xff3401b4
add ecx, 0x10bfe4c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402550
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x402583
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.004023b0
add esp, 0x14
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
push eax
call fcn.00404610
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4025d5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + edi*4]
push eax
push ebx
push esi
call fcn.004023b0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40dec4], eax
mov dword [0x40dec0], ebx
jmp 0x4025dd
push 0xfffffffffffffffc
call fcn.00402770
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4025f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 4], eax
test eax, eax
je 0x40267c
mov eax, dword [ebp - 4]
xor edx, edx
cmp byte [eax], 0
je 0x402629
or ecx, 0xffffffff
inc ecx
cmp byte [eax + ecx], 0
jne 0x402613
inc ecx
cmp byte [eax], 0x3d
je 0x402622
add edx, ecx
add eax, ecx
cmp byte [eax], 0
jne 0x402610
inc edx
push edx
call fcn.00404610
pop ecx
mov dword [0x40dec8], eax
test eax, eax
je 0x40268f
mov edx, eax
mov eax, dword [ebp - 4]
mov esi, eax
cmp byte [esi], 0
je 0x40266e
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x402649
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x402667
xor ecx, ecx
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40265a
add edx, edi
add esi, edi
cmp byte [esi], 0
jne 0x402646
mov byte [edx], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x402697
push 1
push 1
call fcn.00404670
add esp, 8
mov dword [0x40dec8], eax
jmp 0x402697
push 0xfffffffffffffffc
call fcn.00402770
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x808], edx
xor edi, edi
mov dword [ebp - 0x80c], 0
cmp esi, dword [ebp - 0x808]
jae 0x404a21
lea eax, [ebp - 0x804]
cmp byte [esi], 0xa
jne 0x40499d
add dword [ebp - 0x80c], 1
mov byte [eax], 0xd
inc eax
inc eax
inc esi
mov dl, byte [esi - 1]
mov byte [eax - 1], dl
lea edx, [ebp - 5]
cmp eax, edx
jae 0x4049b4
cmp esi, dword [ebp - 0x808]
jb 0x40498d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.00407ef0
pop ecx
test al, al
je 0x4049f6
push dword [ebp + 0xc]
call fcn.00407e80
pop ecx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call fcn.00408070
add esp, 0xc
test al, al
je 0x404a25
add edi, ebx
inc esi
cmp esi, dword [ebp - 0x808]
jb 0x404987
jmp 0x404a21
push dword [ebp + 0xc]
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404a2c
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, ebx
jae 0x4049eb
xor esi, esi
jmp 0x404a34
mov esi, 0x1d
jmp 0x404a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x80c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x808], 0
xor edi, edi
cmp esi, dword [ebp - 0x80c]
jae 0x404b27
lea eax, [ebp - 0x804]
cmp word [esi], 0xa
jne 0x404aae
add edi, 2
mov word [eax], 0xd
add eax, 2
add eax, 2
add esi, 2
mov dx, word [esi - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x404acb
cmp esi, dword [ebp - 0x80c]
jb 0x404a9d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.00407ef0
pop ecx
test al, al
je 0x404b41
push dword [ebp + 0xc]
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, ebx
shr edx, 1
push edx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x404b33
shl dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add dword [ebp - 0x808], eax
cmp eax, ebx
jb 0x404b27
add esi, 2
cmp esi, dword [ebp - 0x80c]
jb 0x404a97
mov dword [ebp - 0x810], 0
jmp 0x404b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
jmp 0x404b6f
push dword [ebp + 0xc]
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x808]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x810]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0x404c52
lea eax, [ebp - 0x404]
cmp word [ebx], 0xa
jne 0x404be9
mov word [eax], 0xd
add eax, 2
add eax, 2
add ebx, 2
mov dx, word [ebx - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x404c06
cmp ebx, dword [ebp - 0xc0c]
jb 0x404bdb
push 0
push 0
push 0x800
lea edx, [ebp - 0xc04]
push edx
lea edx, [ebp - 0x404]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x404c5e
lea esi, [ebp + eax - 0xc04]
lea eax, [ebp - 0xc04]
cmp esi, eax
jbe 0x404cb7
lea edi, [ebp - 0xc04]
jmp 0x404c90
mov dword [ebp - 0xc10], 0
jmp 0x404c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0x404cfa
push dword [ebp + 0xc]
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404cd6
add edi, dword [ebp - 4]
cmp edi, esi
jb 0x404c90
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0x404bd5
jmp 0x404c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, edi
cmp ebx, dword [ebp - 0xc]
jae 0x405f11
cmp byte [ebx], 0x1a
je 0x405ebc
cmp byte [ebx], 0xd
jne 0x405e1f
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0xc]
jae 0x405e2c
cmp byte [ebx + 1], 0xa
jne 0x405e1f
mov byte [edi], 0xa
inc edi
add ebx, 2
jmp 0x405f08
inc edi
inc ebx
mov al, byte [ebx - 1]
mov byte [edi - 1], al
jmp 0x405f08
inc ebx
push esi
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 8]
push edx
push 1
lea edx, [ebp - 1]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f2d
cmp dword [ebp - 8], 0
je 0x405f2d
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x48
je 0x405eac
cmp byte [ebp - 1], 0xa
je 0x405eb7
mov byte [edi], 0xd
inc edi
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
mov cl, byte [ebp - 1]
mov byte [eax + edx + 6], cl
jmp 0x405f08
inc edi
jmp 0x405f08
cmp byte [ebp - 1], 0xa
jne 0x405f18
cmp edi, dword [ebp + 0xc]
jne 0x405f18
mov byte [edi], 0xa
jmp 0x405ea9
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x40
jne 0x405f00
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
or byte [eax + edx + 4], 2
jmp 0x405f11
inc edi
mov al, byte [ebx]
mov byte [edi - 1], al
jmp 0x405f11
cmp ebx, dword [ebp - 0xc]
jb 0x405df7
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x405f35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.00408160
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x405f08
mov byte [edi], 0xd
jmp 0x405ea9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, edi
cmp ebx, dword [ebp - 0xc]
jae 0x4060c4
cmp word [ebx], 0x1a
je 0x40606b
cmp word [ebx], 0xd
jne 0x405f96
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x405fa9
cmp word [ebx + 2], 0xa
jne 0x405f96
mov word [edi], 0xa
add edi, 2
add ebx, 4
jmp 0x4060bb
add edi, 2
add ebx, 2
mov ax, word [ebx - 2]
mov word [edi - 2], ax
jmp 0x4060bb
add ebx, 2
push esi
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 8]
push edx
push 2
lea edx, [ebp - 2]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4060e4
cmp dword [ebp - 8], 0
je 0x4060e4
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x48
je 0x406058
cmp word [ebp - 2], 0xa
je 0x406064
mov word [edi], 0xd
add edi, 2
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
mov cl, byte [ebp - 2]
mov byte [eax + edx + 6], cl
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
movzx ecx, word [ebp - 2]
sar ecx, 8
mov byte [eax + edx + 7], cl
jmp 0x4060bb
add edi, 2
jmp 0x4060bb
cmp word [ebp - 2], 0xa
jne 0x4060cb
cmp edi, dword [ebp + 0xc]
jne 0x4060cb
mov word [edi], 0xa
jmp 0x406053
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x40
jne 0x4060af
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
or byte [eax + edx + 4], 2
jmp 0x4060c4
add edi, 2
mov ax, word [ebx]
mov word [edi - 2], ax
jmp 0x4060c4
cmp ebx, dword [ebp - 0xc]
jb 0x405f67
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x4060ee
push 1
push 0xffffffffffffffff
push 0xfffffffe
push esi
call fcn.00408160
add esp, 0x10
cmp word [ebp - 2], 0xa
je 0x4060bb
mov word [edi], 0xd
jmp 0x406053
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4061e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, esi
shr eax, 4
and eax, 0xffffffc
mov eax, dword [eax + 0x40df80]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx + 4], 0x48
jne 0x40621d
mov dword [ebp - 8], 0
jmp 0x406231
push ebx
push edi
push esi
call fcn.00406180
add esp, 0xc
mov edx, eax
mov dword [ebp - 8], edx
add edi, eax
sub ebx, eax
push esi
call fcn.00407e80
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406253
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40625b
mov edx, dword [ebp - 4]
add dword [ebp - 8], edx
xor eax, eax
mov edx, dword [ebp - 8]
xchg edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401199
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011c0
cmp esi, eax
jb 0x4011da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4013c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x40140e
cmp dword [esp + 8], 0
jne 0x40140e
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00425494
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00425494
add esp, 0x118
ret

Function at 0x401430
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x401468
mov eax, 1
cmp dword [esp + 8], eax
je 0x40146a
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00425494
add esp, 0x118
ret

Function at 0x401fd0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call edi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
lea ecx, [esi + 8]
push ecx
push 3
push 0
push str.Policy
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov edx, dword [esp + 0x10]
push 0x10
add esi, 0xc
push esi
push 3
push 0
push str.PrivateHash
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402320
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x144
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
mov esi, dword [esp + 0x14c]
push edi
push 0x3c
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004254b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x48]
push ecx
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], str.remove.exe
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 8]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x40]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
call fcn.00425494
add esp, 0x144
ret
Function at 0x4023e0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebp, 1
xor ebx, ebx
call fcn.00401350
test eax, eax
je 0x402426
cmp dword [esp + 0x24], ebx
je 0x402426
push str.Disable_64_system_redirection_r_n
push 0x44f378
call fcn.00409510
lea eax, [esp + 0x18]
push eax
call fcn.00401380
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ebx, eax
push 0x20106
jmp 0x402430
lea edx, [esp + 0xc]
push edx
push 0x20006
mov esi, dword [esp + 0x28]
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4024cf
test ebx, ebx
je 0x402461
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf013f
jmp 0x402472
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4024cf
test ebx, ebx
je 0x4024b2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004013a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Register_operation_fail__error_code__0x_08X_r_n
push 0x44f378
call fcn.00409510
add esp, 0xc
push str.Failed_to_create_reg_key._r_n
push 0x44f378
call fcn.00409510
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
mov esi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, 1
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40250e
push esi
push edi
push str.Success_set_key___s_to___s_._r_n
push 0x44f378
call fcn.00409510
add esp, 0x10
jmp 0x402523
push edi
push str.Set_key____s__Failed_._r_n
push 0x44f378
call fcn.00409510
add esp, 0xc
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop edi
je 0x40254f
push str.Revert_64_system_redirection_r_n
push 0x44f378
call fcn.00409510
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004013a0
add esp, 0xc
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x4028c0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x30c], eax
push 0x104
lea eax, [esp + 4]
push 0
push eax
call fcn.004254b0
push str.DllInit_r_n
push 0x44f378
call fcn.00409510
add esp, 0x14
push 0x104
lea ecx, [esp + 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402930
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
jne 0x402957
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402948
sub eax, edx
mov byte [esp + eax - 1], cl
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.0042589b
push str.DevInst.dll
lea eax, [esp + 0x114]
push 0x104
push eax
call fcn.004256c0
push str.MyDIT_GenClassCoInst.dll
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004256c0
push str.MyDIT_GenClassCoInst.dll
lea edx, [esp + 0x230]
push 0x104
push edx
call fcn.004256c0
add esp, 0x30
push 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x104]
push edx
call fcn.00401480
lea eax, [esp + 4]
push eax
call fcn.00401480
add esp, 8
lea ecx, [esp + 0x104]
push ecx
mov ecx, 0x44eac8
call fcn.00405470
test eax, eax
jne 0x402a8d
lea edx, [esp]
push edx
mov ecx, 0x44eaac
call fcn.00405700
test eax, eax
jne 0x402a56
lea eax, [esp + 0x104]
push eax
push str.Load___s__OK___r_n
push 0x44f378
call fcn.00409510
lea ecx, [esp + 0xc]
push ecx
push str.Load___s__OK___r_n
push 0x44f378
call fcn.00409510
add esp, 0x18
mov al, 1
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00425494
add esp, 0x310
ret
lea edx, [esp]
push edx
push str.Load___s__ERROR___r_n
push 0x44f378
call fcn.00409510
add esp, 0xc
mov ecx, 0x44eac8
call fcn.00405360
xor al, al
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00425494
add esp, 0x310
ret
lea eax, [esp + 0x104]
push eax
push str.Load___s__ERROR___r_n
push 0x44f378
call fcn.00409510
mov ecx, dword [esp + 0x318]
add esp, 0xc
xor ecx, esp
xor al, al
call fcn.00425494
add esp, 0x310
ret
Function at 0x405700
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x405712
mov eax, 1
pop esi
ret 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x40572e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DITGCCOI_GetVersion
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x40575a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00405680
mov eax, edi
pop edi
pop esi
ret 4
mov ecx, esi
call fcn.004053d0
shr eax, 0x10
cmp eax, 1
jne 0x4057a8
mov ecx, dword [esi + 0x18]
push str.DITGCCOI_EnableLogFile
push ecx
call edi
mov edx, dword [esi + 0x18]
push str.DITGCCOI_DisableLogFile
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.DITGCCOI_Register
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.DITGCCOI_Deregister
push ecx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4