joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x5821fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x469d2a
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x469d20
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x469c0a
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x469c0a
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x469c1d
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x469cf7
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x469ceb
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x469ce2
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x469c70
mov dword [esp + 0xc], ecx
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x469cb3
mov eax, 1
cmp eax, ecx
ja 0x469ca7
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
sub ecx, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.0046d610
lea esi, [ecx + 7]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x469cdd
movzx edi, byte [eax + ebx]
xchg edi, eax
mov byte [esp + 0xb], al
xchg edi, eax
and edi, 0x7f
mov ecx, esi
shl edi, cl
inc eax
or edx, edi
movzx edi, byte [esp + 0xb]
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x469cac
mov ecx, dword [esp + 0xc]
jmp 0x469c75
call fcn.0046d5b0
xor eax, eax
mov ecx, eax
call fcn.0046d5a0
call fcn.0046d610
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jbe 0x469d1b
movzx esi, byte [eax + edx]
mov edi, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
inc eax
or ebx, esi
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x469cf0
mov ecx, dword [esp + 0x18]
jmp 0x469c22
call fcn.0046d5b0
xor eax, eax
mov ecx, eax
call fcn.0046d5a0
nop
call fcn.0046c120
jmp fcn.00469bb0
Function at 0x46b3d0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x5821fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x46b46b
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x5821fc]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0046d707
lea ecx, [0x4577d0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.0046c030
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.0046c120
jmp fcn.0046b3d0
Function at 0x46d3d0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x582440]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x46bb5b
je 0x46bbae
cmp ebx, 0x20
jbe 0x46bbb4
cmp ebx, 0x40
jbe 0x46bbfa
jmp 0x46bc9b
test ebx, ebx
je 0x46bba4
add eax, 0x10
test ax, 0xff0
je 0x46bb90
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4e3760]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4e3860]
jmp 0x46bb78
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x46bb78
pxor xmm1, xmmword [0x582450]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x582450]
pxor xmm2, xmmword [0x582460]
pxor xmm3, xmmword [0x582470]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x582450]
pxor xmm2, xmmword [0x582460]
pxor xmm3, xmmword [0x582470]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46bcfa
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x5820e8], 0
je 0x46d3ea
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x46bb20
jmp fcn.00408280
Function at 0x46d3f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [0x5821fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4030fc
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00408280
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.0046c120
jmp 0x4030c0
cmp byte [0x5820e8], 0
je 0x46d40b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x46bb20
jmp 0x4030c0

Function at 0x46e260
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x46e27a
mov ecx, 0x14
jmp 0x46e283
shl ecx, 2
add ecx, 0xe10
mov dword [0x5821fc], ecx
ret
Function at 0x477570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x5821fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x47766a
sub esp, 0x20
mov ecx, dword [esp + 0x24]
test byte [ecx], al
mov edx, dword [esp + 0x28]
mov ebx, edx
and edx, 0x7f
shl edx, 5
add ecx, edx
mov dword [esp + 0x1c], ecx
xor eax, eax
jmp 0x4775b0
mov ebp, dword [esp + 0x14]
inc ebp
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, ebp
cmp eax, 4
jge 0x4775e9
mov dword [esp + 0x14], eax
lea edx, [ecx + eax*8]
mov dword [esp], edx
call fcn.00471a50
mov eax, dword [esp + 0x28]
cmp dword [esp + 4], eax
sete cl
mov edx, dword [esp + 0x2c]
cmp dword [esp + 8], edx
sete bl
and ebx, ecx
test bl, bl
je 0x4775a3
mov byte [esp + 0x30], 1
add esp, 0x20
ret
xor eax, eax
mov edx, 0x84222325
jmp 0x4775f3
inc eax
cmp eax, 4
jge 0x477609
mov dword [esp + 0x18], eax
lea ebp, [ecx + eax*8]
mov esi, dword [ebp]
mov ebp, dword [ebp + 4]
xor edi, edi
jmp 0x477663
and edx, 3
lea eax, [ecx + edx*8]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.00471a80
mov byte [esp + 0x30], 0
add esp, 0x20
ret
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
and esi, 0xff
xor edx, esi
mov esi, dword [esp + 0xc]
shr esi, 8
shl ebp, 0x18
mov eax, edx
mov ebx, 0x1b3
mul ebx
inc edi
or esi, ebp
mov ebp, dword [esp + 0x10]
shr ebp, 8
mov ebx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x18]
cmp edi, 8
jl 0x47762c
jmp 0x4775f2
call fcn.0046c120
jmp fcn.00477570
Function at 0x48a670
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5821fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x48a85a
sub esp, 0x48
mov eax, dword [0x55f71c]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 2]
movzx ebx, word [ecx + 8]
movzx ebp, word [ecx + 0xa]
movzx esi, word [ecx + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call fcn.00487380
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0046dbee
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0046dbee
call fcn.00486340
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call fcn.00460720
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
mov eax, ebp
sar ebp, 0x1f
add eax, edx
sar eax, 0x10
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x48a747
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x48a761
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x48a7d8
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x48a7ae
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x48a7aa
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x48a7a3
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x48a7b0
mov ebx, 0x1d
jmp 0x48a7ce
mov ebp, eax
jmp 0x48a7b0
mov ebp, eax
cmp ebp, 0xd
jae 0x48a84d
lea eax, [ebp - 1]
lea edx, [0x55b680]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x48a843
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x48a7d8
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x48a80a
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x48a812
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
mov dword [esp + 0x54], eax
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
add esp, 0x48
ret
mov ecx, 0xd
call fcn.0046d5a0
mov eax, ebp
mov ecx, 0xd
call fcn.0046d5a0
nop
call fcn.0046c120
jmp fcn.0048a670
Function at 0x4014a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402110
test esi, esi
jne 0x4014da
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004021fc
jmp 0x4014f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004013b8
mov edi, eax
test esi, esi
je 0x4014f8
cmp dword [ebx], 0
je 0x4014f8
dec esi
jmp 0x4014e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x405428
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4054b3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.00405388
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040539c
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x4054c8
call fcn.004023ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054ba
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00402134
ret

Function at 0x4054cc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00405388
add esp, 0x108
pop ebx
ret

Function at 0x4054f4
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00402374
add esp, 0x1008
pop ebx
ret
Function at 0x40552c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00402588
mov eax, dword [ebp - 8]
call fcn.00402588
mov eax, dword [ebp + 0xc]
call fcn.00402588
xor eax, eax
push ebp
push 0x40560e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00402164
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00402598
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4055eb
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402598
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4055e2
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.004026c4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00402598
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.004026c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405615
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402134
lea eax, [ebp + 0xc]
call fcn.00402110
ret

Function at 0x405704
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetWindowTextA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00402374
add esp, 0x100
pop ebx
ret

Function at 0x405f98
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402110
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00403b90
test eax, eax
je 0x405fed
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x405fe4
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00402374
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x40600e
mov eax, dword [ebx]
call fcn.004023a0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x40600e
mov eax, ebx
mov edx, 0x406020
call fcn.004023a8
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x406cc4
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x406d1b
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x40e8e0]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x40e8e0]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x40e8e0]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x40e8e0]
add esi, 4
loop 0x406cd9
mov ecx, edi
and ecx, 3
jecxz 0x406d33
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x40e8e0]
loop 0x406d22
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret

Function at 0x4075a4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x407555
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x407573
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4075d1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
add byte [eax], ah
add byte [eax], ah
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4075b8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4075c1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4075cb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4075ad
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x407537
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40761e
dec eax
je 0x407615
sub eax, 3
je 0x40760c
mov dword [ebp - 4], 0x40
jmp 0x40763b
mov dword [ebp - 4], 4
jmp 0x407621
mov dword [ebp - 4], 0x20
jmp 0x407621
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40766d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4075ed
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00406e7e
cmp eax, 0xff2ca6d7
jne 0x407678
push 1
push esi
call edi
mov eax, esi
jmp 0x407679
rcr byte [edi + 0x5e], 0x5b
Function at 0x40b418
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ebp
push 0x40b4dc
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
push edx
push eax
mov eax, dword [0x40e674]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x40e674]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
jbe 0x40b4c0
push ebx
mov eax, dword [0x40e674]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
jbe 0x40b4ba
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b4b3
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x40b3fc]
call fcn.00403328
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.00403b3c
push 0x30000
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_CreateIconFromResource
mov dword [ebp - 4], eax
mov eax, edi
call fcn.00403b4c
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4e3
lea eax, [ebp - 0xc]
mov edx, dword [0x40b3fc]
call fcn.00403334
ret
Function at 0x429a74
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dword [esi], eax
lea edi, [esi + 4]
xor eax, eax
lea ebx, [esi + 0x124]
mov ebp, 0x11c
mov byte [esi + 0x120], al
push ebp
push eax
push edi
mov dword [ebx], eax
call fcn.006678b0
mov ecx, dword [esi]
add esp, 0xc
cmp cl, 5
jb 0x429ac2
push edi
mov dword [edi], ebp
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov ecx, dword [esi]
test eax, eax
setne al
mov byte [esi + 0x120], al
cmp cl, 6
jb 0x429aea
push str.GetProductInfo
push 0x6cdffc
call fcn.00455fd1
test eax, eax
je 0x429aea
movzx ecx, byte [esi + 1]
push ebx
push 0
push 0
push ecx
movzx ecx, byte [esi]
push ecx
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x42abd7
Capabilities:
Create directory

Disassembly:
mov eax, 0x6a765d
call fcn.00664608
sub esp, 0x38
cmp dword [ebp + 8], 0
je 0x42acb1
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x42acb1
push edi
lea eax, [ebp - 0x14]
mov edi, 0x7bb3c8
push eax
mov ecx, edi
call fcn.0042a2bd
mov eax, dword [ebp - 0x14]
add eax, 0x34
setne byte [ebp - 0xd]
test eax, eax
je 0x42ac1e
call fcn.0046bca7
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push 0x6ced1c
push eax
call fcn.0046665e
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
jb 0x42ac40
mov eax, dword [ebp - 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00466765
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
jb 0x42ac65
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00455877
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
call fcn.0042a2bd
mov ecx, dword [ebp + 0x14]
call fcn.0047de40
push 1
push dword [ebp + 8]
call fcn.004513a7
lea ecx, [ebp - 0x2c]
call fcn.00427afc
lea ecx, [ebp - 0x44]
call fcn.00427afc
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
pop edi
je 0x42acb1
call fcn.0046bce8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x10