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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [ecx + 4]
mov dword [ebp - 4], 0xc6ef3720
mov dword [ebp + 8], 0x20
mov eax, dword [ecx]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov edi, eax
shr esi, 5
shl edi, 4
xor esi, edi
mov edi, dword [ebp - 4]
shr edi, 0xb
and edi, 3
add esi, eax
mov edi, dword [ebx + edi*4]
add edi, dword [ebp - 4]
add dword [ebp - 4], 0x61c88647
xor esi, edi
sub edx, esi
mov esi, edx
mov edi, edx
shr esi, 5
shl edi, 4
xor esi, edi
mov edi, dword [ebp - 4]
and edi, 3
mov dword [ecx + 4], edx
add esi, edx
mov edi, dword [ebx + edi*4]
add edi, dword [ebp - 4]
xor esi, edi
sub eax, esi
dec dword [ebp + 8]
mov dword [ecx], eax
jne 0x401a5a
pop edi
pop esi
xor ax, ax
pop ebx
leave
ret

Function at 0x401c19
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x8c]
dec eax
je 0x401d04
dec eax
jne 0x401d42
and dword [0x4165b8], 0
cmp dword [ebp - 0x98], 4
ja 0x401c61
push 3
jmp 0x401c84
push 5
pop eax
cmp dword [ebp - 0x98], eax
jne 0x401cca
cmp dword [ebp - 0x94], 0
je 0x401d44
cmp dword [ebp - 0x94], 1
jne 0x401c87
push 7
pop eax
leave
ret
cmp dword [ebp - 0x94], 2
jne 0x401d42
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401cb8
lea ecx, [ebp - 0xc0]
push ecx
call eax
xor eax, eax
cmp word [ebp - 0xc0], 9
sete al
add eax, 8
leave
ret
cmp dword [ebp - 0x98], 6
jne 0x401d42
cmp dword [ebp - 0x94], 0
mov al, byte [ebp - 2]
jne 0x401ced
dec al
neg al
sbb eax, eax
and eax, 2
add eax, 0xa
leave
ret
cmp dword [ebp - 0x94], 1
jne 0x401d42
xor ecx, ecx
cmp al, 1
setne cl
add ecx, 0xb
mov eax, ecx
leave
ret
push 4
mov dword [0x4165b8], 1
pop eax
cmp dword [ebp - 0x98], eax
jb 0x401d42
cmp dword [ebp - 0x94], 0
jne 0x401d29
push 2
jmp 0x401c84
cmp dword [ebp - 0x94], 0xa
je 0x401d44
cmp dword [ebp - 0x94], 0x5a
jne 0x401d42
push 6
jmp 0x401c84
xor eax, eax
leave
ret
Function at 0x4027d7
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0xf4240
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040a150
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 8]
cdq
push edx
push eax
push esi
push ecx
call fcn.0040a110
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jl 0x40284b
jg 0x402849
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jb 0x40284b
jmp 0x40284d
jmp 0x40281b
pop esi
leave
ret 4
Function at 0x402986
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x41316c], esi
push edi
mov dword [ebp - 0x10], esi
jne 0x4029a3
xor ax, ax
jmp 0x402b42
or word [0x416f00], 0xffff
cmp dword [0x413430], esi
mov dword [ebp - 8], esi
jne 0x4029d1
movsx eax, word [ebp + 0xc]
push eax
call fcn.0040691c
cmp ax, si
jl 0x402b42
push 1
pop edi
mov dword [ebp - 0x10], edi
jmp 0x4029d4
push 1
pop edi
mov ax, word [0x416f00]
push eax
mov ax, word [0x416efe]
push eax
call fcn.00402cf5
call fcn.00402d78
cmp dword [0x4165dc], esi
jne 0x402a00
push 0x4d
call fcn.00402b48
mov dword [0x4165dc], eax
push ebx
call fcn.0040327c
test ax, ax
je 0x402b08
mov dword [ebp - 8], esi
call fcn.00402dfd
push esi
push edi
push 0x35
call fcn.00402f65
test eax, eax
jne 0x402a28
or dword [ebp - 8], 0xffffffff
push esi
push esi
call fcn.00403012
push esi
push esi
mov byte [ebp - 1], al
call fcn.00403012
mov bl, al
mov byte [ebp - 2], bl
call fcn.00402ede
cmp byte [0x4165e5], 0x15
mov dword [0x4132d4], edi
jb 0x402b08
call fcn.00402dfd
push esi
push edi
push 0x49
call fcn.00402f65
test eax, eax
jne 0x402a6c
or dword [ebp - 8], 0xffffffff
cmp word [ebp - 8], 0xffff
je 0x402aad
lea esi, [ebp + 8]
mov dword [ebp - 0xc], 4
not bl
mov al, byte [esi]
push edi
xor al, byte [ebp - 1]
push edi
inc esi
add al, bl
push eax
call fcn.00402f65
dec dword [ebp - 0xc]
jne 0x402a7f
push dword [0x4132d4]
push 0
call fcn.00403012
mov bl, al
add bl, byte [ebp - 2]
inc bl
xor bl, byte [ebp - 1]
jmp 0x402ab0
mov bl, byte [ebp + 0xf]
call fcn.00402ede
cmp word [ebp - 8], 0
jne 0x402b06
cmp bl, 1
jne 0x402b06
call fcn.00402dfd
push dword [0x4132d4]
push edi
push 0x4c
call fcn.00402f65
test eax, eax
je 0x402afb
push 8
mov esi, 0x416f08
pop edi
push dword [0x4132d4]
push 0
call fcn.00403012
add al, byte [ebp - 2]
inc al
xor al, byte [ebp - 1]
mov byte [esi], al
inc esi
dec edi
jne 0x402ae0
call fcn.00402ede
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
xor esi, esi
call fcn.00404c5d
call fcn.00402c82
mov ax, word [0x416f00]
push eax
mov ax, word [0x416efe]
push eax
call fcn.00402d35
cmp dword [ebp - 0x10], esi
pop ebx
je 0x402b35
movsx eax, word [ebp + 0xc]
push eax
call fcn.00406b6b
cmp word [ebp - 8], si
jge 0x402b3e
mov dword [ebp - 8], esi
mov ax, word [ebp - 8]
pop edi
pop esi
leave
ret 8
Function at 0x402b48
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x4165bc], 0
push esi
push edi
jne 0x402c67
lea eax, [ebp - 0x94]
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x94]
push 0x4132e4
push eax
call esi
lea eax, [ebp - 0x94]
push str.MATRIX.INI
push eax
call esi
lea eax, [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and dword [0x4165e0], 0
push eax
lea eax, [ebp - 0x40]
push 0x1f
push eax
push 0x4132f0
push str.HiRes
push 0x4132fc
call esi
cmp byte [ebp - 0x40], 0x4e
je 0x402c11
cmp byte [ebp - 0x40], 0x6e
je 0x402c11
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x20]
push 0x1f
push eax
push 0x413304
push str.hrwert
push 0x413310
call esi
lea eax, [ebp - 0x20]
push eax
call fcn.0040a280
pop ecx
mov edi, eax
call fcn.004027bd
test ax, ax
jle 0x402c11
test edi, edi
mov dword [0x4165e0], 1
jne 0x402c0d
push 1
pop edi
mov eax, edi
jmp 0x402c69
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x20]
push 0x1f
push eax
push 0x413318
push str.wert
push str.DELAY
call esi
lea eax, [ebp - 0x20]
push eax
call fcn.0040a280
test eax, eax
pop ecx
jg 0x402c69
mov esi, 0x640
cmp word [ebp + 8], 0x4d
jne 0x402c50
call fcn.0040327c
jmp 0x402c57
push 1
call fcn.00403094
test ax, ax
jne 0x402c6f
add esi, 0x64
cmp esi, 0x1b58
jle 0x402c42
xor eax, eax
pop edi
pop esi
leave
ret 4
call fcn.00404c5d
call fcn.00402c82
lea eax, [esi + esi*2 + 0x3e8]
jmp 0x402c69

Function at 0x402f65
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push 8
pop esi
test byte [esp + 8], 1
je 0x402f77
call fcn.00402f01
jmp 0x402f7c
call fcn.00402e11
call fcn.00402f33
call fcn.00402f33
shr byte [esp + 8], 1
call fcn.00402eaa
dec esi
jne 0x402f69
cmp dword [esp + 0xc], 0
je 0x402fec
push ebx
push edi
call fcn.00402c82
call fcn.00402f33
call fcn.00402c82
cmp dword [esp + 0x18], 0
je 0x402fd6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x32
ja 0x402fd1
call fcn.00402ff3
test eax, eax
jne 0x402fdd
jmp 0x402fbd
push 1
pop ebx
jmp 0x402fdd
call fcn.00402ff3
mov ebx, eax
call fcn.00402eaa
pop edi
test ebx, ebx
pop ebx
je 0x402fec
xor eax, eax
jmp 0x402fef
push 1
pop eax
pop esi
ret 0xc

Function at 0x403012
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
call fcn.00402f01
push 8
xor ebx, ebx
pop esi
call fcn.00402f33
sar ebx, 1
and ebx, 0x7f
call fcn.00402ff3
test eax, eax
je 0x403034
or bl, 0x80
call fcn.00402eaa
dec esi
jne 0x40301e
cmp dword [esp + 0xc], 0
je 0x40304a
call fcn.00402f01
jmp 0x40304f
call fcn.00402e11
call fcn.00402c82
call fcn.00402f33
call fcn.00402c82
cmp dword [esp + 0x10], 0
je 0x403083
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call fcn.00402ff3
test eax, eax
jne 0x403082
call esi
sub eax, edi
cmp eax, 0x32
jb 0x403070
pop edi
call fcn.00402eaa
call fcn.00402f01
mov al, bl
pop esi
pop ebx
ret 8
Function at 0x403588
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov ax, word [0x416f00]
push esi
push edi
push 2
pop edi
xor esi, esi
push edi
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406ccc
test al, 1
jne 0x4035c1
mov ax, word [0x416f00]
push esi
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406ccc
and al, 7
cmp al, 7
jge 0x4035c4
push 1
pop esi
mov ax, word [0x416f00]
push 0
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406ccc
or al, 7
push eax
mov ax, word [0x416f00]
push 0
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406c92
mov ax, word [0x416f00]
push edi
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406ccc
and ax, 0xde
push eax
mov ax, word [0x416f00]
push edi
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406c92
test esi, esi
je 0x40366a
mov ax, word [0x416f00]
push 0
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406ccc
mov word [0x4165d6], ax
mov ax, word [0x416f00]
push edi
push eax
mov ax, word [0x416efe]
push eax
call fcn.00406ccc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [0x4165d4], ax
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x78
jb 0x403661
pop edi
pop esi
ret

Function at 0x4051c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp word [ebp + 0xc], 0
jle 0x4051e7
movsx ecx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [eax]
add dl, byte [ebp + 0x10]
inc dl
xor dl, byte [ebp + 0x14]
mov byte [eax], dl
inc eax
dec ecx
jne 0x4051d7
pop ebp
ret 0x10

Function at 0x405279
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp word [ebp + 0xc], 0
jle 0x40529e
mov cl, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
movsx esi, word [ebp + 0xc]
not cl
mov dl, byte [eax]
xor dl, byte [ebp + 0x14]
add dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x405290
pop esi
pop ebp
ret 0x10

Function at 0x406246
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push esi
push edi
lea eax, [ebp - 0xa4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xa4]
push 0x41347c
push eax
call esi
mov edi, str.IWPORT
lea eax, [ebp - 0xa4]
push edi
push eax
call esi
lea eax, [ebp - 0xa4]
push 0x413490
push eax
call esi
xor esi, esi
lea eax, [ebp - 0xa4]
push esi
push esi
push str.Parallel_arbitrator
push esi
push str.Extended_base
push eax
push 1
push 2
push 1
push 0xf01ff
push edi
push edi
push dword [0x41342c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
cmp edi, esi
jne 0x4062d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4062d9
push 1
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4062e6
Capabilities:
Get common file path
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push edi
mov edi, str.IWPORT
push 0xf01ff
push edi
xor ebx, ebx
push dword [0x41342c]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4063a4
push esi
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x420
push 0x80
neg eax
sbb eax, eax
inc eax
or dword [ebp - 4], eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xac]
push 0x41347c
push eax
call esi
lea eax, [ebp - 0xac]
push edi
push eax
call esi
lea eax, [ebp - 0xac]
push 0x413490
push eax
call esi
push edi
push ebx
push ebx
push str.Parallel_arbitrator
push ebx
lea eax, [ebp - 0xac]
push str.Extended_base
push eax
push 1
push 2
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x4063ab
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [0x41342c], eax
je 0x406403
push esi
push edi
push 0xf01ff
push str.IWPORT
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
je 0x4063f9
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov ebx, eax
call edi
push dword [0x41342c]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0x406469
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [0x4165b8], ebx
lea eax, [ebp - 0x16c]
push 0x4134a0
push eax
je 0x4064d4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x16c]
push str.IWPORT
push eax
call esi
lea eax, [ebp - 0x16c]
push str..VXD
push eax
call esi
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x413420], eax
jmp 0x4065ec
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x16c]
push str.IWPORT
push eax
call esi
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [ebp - 8]
push 0x4134a8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
call esi
push 1
mov edi, 0x80
pop eax
push ebx
push edi
push 3
mov dword [0x413424], eax
mov dword [0x413428], eax
push ebx
push ebx
lea eax, [ebp - 0x16c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x413420], eax
jne 0x4065ec
lea eax, [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x6c]
push 0x41347c
push eax
call esi
lea eax, [ebp - 0x6c]
push str.IWPORT
push eax
call esi
lea eax, [ebp - 0x6c]
push 0x413490
push eax
call esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040a683
pop ecx
test eax, eax
pop ecx
jne 0x4065ec
push 0xf003f
push ebx
push ebx
mov dword [0x413428], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [0x41342c], eax
je 0x4065ec
call fcn.004062e6
test eax, eax
jne 0x4065c3
mov dword [0x413424], ebx
call fcn.00406246
test eax, eax
je 0x4065e0
call fcn.004062e6
test eax, eax
je 0x4065e0
push ebx
push edi
push 3
push ebx
push ebx
lea eax, [ebp - 0x16c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x413420], eax
push dword [0x41342c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40800b
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x101
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test ax, ax
jne 0x40803b
and dword [ebp - 4], 0
and byte [ebp - 0x148], al
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test ax, ax
jne 0x40805c
and dword [ebp - 8], 0
and byte [ebp - 0x18], al
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0040815f
test ax, ax
jle 0x4080f5
mov ecx, dword [ebp + 0xc]
movsx edx, cx
movsx eax, ax
dec edx
cmp eax, edx
jle 0x408088
lea eax, [ecx - 1]
movsx eax, ax
and byte [ebp + eax - 0x34], 0
mov edx, dword [ebp - 4]
lea esi, [ecx - 1]
lea edx, [eax + edx + 1]
cmp edx, esi
jle 0x4080cc
sub ecx, eax
sub ecx, 2
mov dword [ebp - 4], ecx
jns 0x4080a5
xor ecx, ecx
mov dword [ebp - 4], ecx
and byte [ebp + ecx - 0x148], 0
lea eax, [ebp + ecx - 0x148]
cmp ecx, 3
jle 0x4080cc
push 3
add eax, 0xfffffffd
push 0x4134bc
push eax
call fcn.0040a6d0
add esp, 0xc
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jle 0x4080e6
lea eax, [ebp - 0x148]
push 0x4134c0
push eax
call esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x148]
push eax
call esi
jmp 0x40814a
mov esi, dword [ebp + 0xc]
push ebx
lea ebx, [esi - 1]
cmp dword [ebp - 4], ebx
jge 0x408130
cmp dword [ebp - 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jle 0x408122
cmp dword [ebp - 8], 0
jle 0x408122
lea eax, [ebp - 0x148]
push 0x4134c4
push eax
call edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x148]
push eax
call edi
pop edi
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
pop ebx
jle 0x40814a
and byte [ebp + esi - 0x149], 0
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
leave
ret 8
Function at 0x408e55
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 0xa8]
xor edi, edi
push 0x80
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xa8]
push str.SYSTEM32DRIVERS_
push eax
call esi
cmp dword [0x416f10], 9
jne 0x408e9c
push str.IWUSB_X64
jmp 0x408ea1
push str.IWUSB
lea eax, [ebp - 0xa8]
push eax
call esi
lea eax, [ebp - 0xa8]
push str..SYS
push eax
call esi
push str.VERSION.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
call fcn.00401b0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoSizeA
push ebx
call esi
lea ecx, [ebp - 0x10]
mov dword [0x416958], eax
push ecx
lea ecx, [ebp - 0xa8]
push ecx
call eax
cmp eax, edi
mov dword [ebp - 4], eax
je 0x408ff1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push str.GetFileVersionInfoA
push ebx
mov edi, eax
call esi
push edi
lea ecx, [ebp - 0xa8]
push dword [ebp - 4]
mov dword [0x41695c], eax
push dword [ebp - 0x10]
push ecx
call eax
push 0x4136ac
push ebx
call esi
lea ecx, [ebp - 0x28]
mov dword [0x416960], eax
push ecx
lea ecx, [ebp - 0x24]
push ecx
push str.VarFileInfoTranslation
push edi
call eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x10c]
push str.StringFileInfo_04hX_04hXFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.VerQueryValueA
push ebx
call esi
lea ecx, [ebp - 0x28]
mov dword [0x416960], eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push edi
call eax
test eax, eax
jne 0x408f8d
xor edi, edi
jmp 0x408fd8
and byte [ebp - 0x20], 0
and byte [ebp - 0x18], 0
push 1
lea eax, [ebp - 0x20]
push dword [ebp - 0xc]
push eax
call fcn.0040ad70
mov eax, dword [ebp - 0xc]
push 2
add eax, 2
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ad70
lea eax, [ebp - 0x20]
push eax
call fcn.0040a30b
xor edx, edx
mov dh, al
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], edx
call fcn.0040a30b
mov ecx, dword [ebp - 4]
add esp, 0x20
or ecx, eax
mov edi, ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00401b92
mov ax, di
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a683
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a6a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d898
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a6c6
test byte [esp + 8], 2
je 0x40a6c6
call fcn.0040d90b
mov dword [eax], 0xd
call fcn.0040d914
mov dword [eax], 5
jmp 0x40a69f
xor eax, eax
ret
Function at 0x10019b4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10019b59
pop dword [ebp - 0x20]
mov eax, 0x10019b59
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xa3cb93de
add dword [ebp - 0x30], 0xaa86b16d
mov dword [ebp - 0x2c], 0x47d8ce8a
add dword [ebp - 0x2c], 0xea5a7dbb
mov dword [ebp - 0x28], 0xcb178ddd
sub dword [ebp - 0x28], 0x7ecb49af
mov dword [ebp - 0x24], 0x49f514b4
sub dword [ebp - 0x24], 0x49f514b4
lea eax, [ebp - 0x30]
push eax
mov eax, 0xad4f1e0f
add eax, 0x62b33241
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x9f7a2ab6
add dword [ebp - 0x30], 0xd4f83ea0
mov dword [ebp - 0x2c], 0xdcde6c6f
sub dword [ebp - 0x2c], 0x9b720afa
mov dword [ebp - 0x28], 0xd592c1d7
add dword [ebp - 0x28], 0x8ddcaa95
mov dword [ebp - 0x24], 0xcde8eb2
add dword [ebp - 0x24], 0xf321714e
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xc4dbf106
sub eax, 0xb4d9a0b2
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x40574
push 0
call eax
mov ecx, 0x5236
xor edx, edx
add edx, eax
mov ebx, 0xff938d9d
add ebx, 0x106fcc63
add ebx, dword [ebp - 0x20]
mov esi, 0x75cb3919
add esi, 0x940a77e5
sub dword [ebp - 0xc], edx
mov edi, dword [ebx]
sub dword [ebp - 8], esi
xor edi, esi
add dword [ebp - 0x1c], edx
mov dword [edx], edi
add dword [ebp - 8], 0xe904ac4b
add edx, 0x4598f11b
add edx, 0xba670ee9
add ebx, 0xb23fbbd6
add ebx, 0x4dc0442e
loop 0x10019c72
add eax, 0x3b9719b4
add eax, 0xc46a21f7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x38197d1f
add ecx, 0xd7e682e1
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10008c73
Capabilities:
Parse pe header

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