joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410667
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x452531], 0
jne 0x4106ca
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x4106ba
jne 0x4106b6
cmp dword [ebp - 0x74], 0x55f0
jb 0x4106b6
call fcn.00410470
test al, al
je 0x4106ba
xor al, al
jmp 0x4106bc
mov al, 1
mov byte [0x452530], al
mov byte [0x452531], 1
jmp 0x4106cf
mov al, byte [0x452530]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004230d5
add ebp, 0x98
leave
ret

Function at 0x4148bf
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov edx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edx + 0x18]
mov dword [esp + 0xc], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x414942
mov ecx, dword [ebp + 8]
mov eax, ecx
add ecx, 0x10
mov dword [ebp + 8], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0xc]
dec ecx
movups xmm1, xmmword [eax]
pxor xmm1, xmm3
test ecx, ecx
jle 0x41491f
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x41490f
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x414932
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x4148e0
pop edi
movups xmmword [edx + 8], xmm2
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41494e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x34
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x28]
sub esi, 6
mov dword [esp + 0x1c], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.004247c0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x4149da
cmp ebx, dword [ebp + 4]
jg 0x414b3e
cmp edi, esi
jge 0x4149c7
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4149c3
mov esi, dword [esp + 0x14]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x4149a3
mov ebp, dword [esp + 0x14]
cmp edx, 4
jne 0x4149cd
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x41498e
cmp ebx, dword [ebp + 4]
jg 0x414b3e
mov edi, 0x4423f0
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov al, byte [edi]
inc edi
xor al, cl
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], al
cmp esi, 8
je 0x414a6b
cmp esi, 1
jle 0x414a5f
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414a4d
sub dword [esp + 0x10], 1
jne 0x414a4a
xor edi, edi
test esi, esi
jle 0x414b31
jmp 0x414ae9
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414a7a
sub dword [esp + 0x10], 1
jne 0x414a77
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 3
mov al, byte [eax + str.cw]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414ad7
sub dword [esp + 0x10], 1
jne 0x414ad4
cmp ebx, dword [ebp + 4]
jg 0x414b34
cmp edi, esi
jge 0x414b1e
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x414b1a
mov esi, dword [esp + 0x14]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x414afa
mov ebp, dword [esp + 0x14]
cmp edx, 4
jne 0x414b24
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x414ae9
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x4149e8
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004230d5
add esp, 0x34
ret 4
Function at 0x414b53
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x414c0c
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x452130]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x451930]
xor dl, byte [esi + eax*4 + 0x451530]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x451d30]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x414b96
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x414b8b
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.004247c0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x414b82
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.004230d5
add esp, 0x24
ret
Function at 0x414c38
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x44f430], cl
inc ecx
cmp ecx, ebp
jl 0x414c45
mov bl, byte [edi + str.cw]
mov dl, 2
mov cl, bl
mov byte [edi*4 + 0x450131], bl
mov byte [edi*4 + 0x450130], bl
mov byte [edi*4 + 0x44fd33], bl
mov byte [edi*4 + 0x44fd30], bl
mov byte [edi*4 + 0x44f933], bl
mov byte [edi*4 + 0x44f932], bl
mov byte [edi*4 + 0x44f532], bl
mov byte [edi*4 + 0x44f531], bl
call fcn.00414c1d
mov dl, 3
mov byte [edi*4 + 0x450133], al
mov cl, bl
mov byte [edi*4 + 0x44fd32], al
mov byte [edi*4 + 0x44f931], al
mov byte [edi*4 + 0x44f530], al
call fcn.00414c1d
mov bl, byte [edi + 0x44f430]
mov dl, 0xb
mov cl, bl
mov byte [edi*4 + 0x450132], al
mov byte [edi*4 + 0x44fd31], al
mov byte [edi*4 + 0x44f930], al
mov byte [edi*4 + 0x44f533], al
call fcn.00414c1d
movzx esi, bl
mov dl, 9
mov cl, bl
mov byte [edi*4 + 0x451132], al
mov byte [edi*4 + 0x450d31], al
mov byte [edi*4 + 0x450930], al
mov byte [edi*4 + 0x450533], al
mov byte [esi*4 + 0x452132], al
mov byte [esi*4 + 0x451d31], al
mov byte [esi*4 + 0x451930], al
mov byte [esi*4 + 0x451533], al
call fcn.00414c1d
mov dl, 0xd
mov byte [edi*4 + 0x451130], al
mov cl, bl
mov byte [edi*4 + 0x450d33], al
mov byte [edi*4 + 0x450932], al
mov byte [edi*4 + 0x450531], al
mov byte [esi*4 + 0x452130], al
mov byte [esi*4 + 0x451d33], al
mov byte [esi*4 + 0x451932], al
mov byte [esi*4 + 0x451531], al
call fcn.00414c1d
mov dl, 0xe
mov byte [edi*4 + 0x451131], al
mov cl, bl
mov byte [edi*4 + 0x450d30], al
mov byte [edi*4 + 0x450933], al
mov byte [edi*4 + 0x450532], al
mov byte [esi*4 + 0x452131], al
mov byte [esi*4 + 0x451d30], al
mov byte [esi*4 + 0x451933], al
mov byte [esi*4 + 0x451532], al
call fcn.00414c1d
mov byte [edi*4 + 0x451133], al
mov byte [edi*4 + 0x450d32], al
mov byte [edi*4 + 0x450931], al
mov byte [edi*4 + 0x450530], al
inc edi
mov byte [esi*4 + 0x452133], al
mov byte [esi*4 + 0x451d32], al
mov byte [esi*4 + 0x451931], al
mov byte [esi*4 + 0x451530], al
cmp edi, ebp
jl 0x414c57
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x415021
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [0x44a868]
mov ebx, ecx
push edi
mov edi, edx
test esi, esi
jne 0x415049
mov ecx, 0x44a860
call fcn.00414e32
mov esi, dword [0x44a868]
movzx ecx, byte [ebp + 0xc]
mov eax, edi
and eax, 0xfffffff0
cmp byte [ebp + 8], 0
je 0x41508f
test esi, esi
je 0x4150b1
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x43c270]
call esi
test eax, eax
jne 0x4150d3
push str.CryptProtectMemory_failed
mov esi, 0x44a850
push esi
call fcn.00409f5c
pop ecx
pop ecx
call fcn.0040a1e6
push 2
mov ecx, esi
call fcn.0040a119
jmp 0x4150d3
mov esi, dword [0x44a86c]
test esi, esi
je 0x4150b1
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x43c270]
call esi
test eax, eax
jne 0x4150d3
push str.CryptUnprotectMemory_failed
jmp 0x415072
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0xc], eax
test edi, edi
je 0x4150d3
add al, 0x4b
lea ecx, [edx + ebx]
add al, dl
xor byte [ecx], al
inc edx
mov eax, dword [esp + 0xc]
cmp edx, edi
jb 0x4150c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41596c
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret

Function at 0x415c0f
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x415c4f
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x13c
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x30], edi
lea ecx, [edi + 0x28]
add ecx, esi
call fcn.0040fc18
mov dword [esp + esi + 0x48], eax
add esi, 4
cmp esi, 0x40
jb 0x415c6f
push 0x30
lea ebx, [esp + 0x84]
pop ebp
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub ebp, 1
jne 0x415c8f
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
mov ebp, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, ebp
rol eax, 7
mov dword [esp + 0x40], esi
mov esi, ebp
ror esi, 0xb
xor esi, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, ebp
mov edx, dword [esp + 0x1c]
mov ecx, ebp
ror eax, 6
not ecx
and ecx, dword [esp + 0x10]
xor esi, eax
mov eax, edx
mov dword [esp + 0x1c], ebp
and eax, ebp
mov dword [esp + 0x3c], ebp
xor ecx, eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add esi, ecx
add esi, dword [ebx + 0x442500]
add esi, dword [esp + ebx + 0x48]
add ebx, 4
add esi, dword [esp + 0x24]
mov dword [esp + 0x24], eax
add ebp, esi
mov dword [esp + 0x10], edx
mov eax, edi
rol eax, 0xa
mov edx, edi
ror edx, 0xd
xor edx, eax
mov dword [esp + 0x20], edi
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x18]
mov ecx, eax
and eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x14]
and ecx, edi
xor ecx, eax
mov eax, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea edi, [edx + esi]
mov esi, dword [esp + 0x1c]
mov edx, eax
cmp ebx, 0x100
jb 0x415d06
mov eax, dword [esp + 0x2c]
add eax, edi
mov edi, dword [esp + 0x30]
add dword [edi + 4], ecx
mov ecx, dword [esp + 0x34]
add dword [edi + 8], ecx
mov ecx, dword [esp + 0x38]
add dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x3c]
add dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x40]
add dword [edi + 0x18], ecx
add dword [edi + 0x10], ebp
mov ecx, dword [esp + 0x44]
add dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x148]
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004230d5
add esp, 0x13c
ret
Function at 0x415e79
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
push 0x38
pop edi
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x20]
and edx, 0x3f
mov ebp, dword [esi + 0x24]
shld ebp, ebx, 3
shl ebx, 3
mov byte [edx + esi + 0x28], 0x80
inc edx
cmp edx, edi
je 0x415edc
jbe 0x415ec9
push 0x40
pop ecx
cmp edx, ecx
jae 0x415ec0
sub ecx, edx
lea eax, [esi + 0x28]
push ecx
add eax, edx
push 0
push eax
call fcn.00424d40
add esp, 0xc
mov ecx, esi
call fcn.00415c4f
xor edx, edx
sub edi, edx
lea eax, [esi + 0x28]
push edi
add eax, edx
push 0
push eax
call fcn.00424d40
add esp, 0xc
lea edx, [esi + 0x60]
mov ecx, ebp
call fcn.00415bf9
lea edx, [esi + 0x64]
mov ecx, ebx
call fcn.00415bf9
mov ecx, esi
call fcn.00415c4f
mov ebx, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [esi]
call fcn.00415bf9
mov ecx, dword [esi + 4]
lea edx, [ebx + 4]
call fcn.00415bf9
mov ecx, dword [esi + 8]
lea edx, [ebx + 8]
call fcn.00415bf9
mov ecx, dword [esi + 0xc]
lea edx, [ebx + 0xc]
call fcn.00415bf9
mov ecx, dword [esi + 0x10]
lea edx, [ebx + 0x10]
call fcn.00415bf9
mov ecx, dword [esi + 0x14]
lea edx, [ebx + 0x14]
call fcn.00415bf9
mov ecx, dword [esi + 0x18]
lea edx, [ebx + 0x18]
call fcn.00415bf9
mov ecx, dword [esi + 0x1c]
lea edx, [ebx + 0x1c]
call fcn.00415bf9
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00415c0f
Function at 0x41706c
Capabilities:
Get common file path

Disassembly:
push 0x5c
mov eax, 0x43a467
call fcn.00438ae6
mov edi, ecx
push ecx
push 0x104
lea ecx, [ebp - 0x68]
call fcn.00401a88
xor esi, esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00401895
mov edx, eax
call fcn.0040188a
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41710e
lea ecx, [ebp - 0x2c]
call fcn.004021e6
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401d16
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040188a
push eax
lea ecx, [ebp - 0x44]
call fcn.00401d16
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.00410feb
lea ecx, [ebp - 0x44]
call fcn.00401e5c
lea ecx, [ebp - 0x5c]
call fcn.00401e5c
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401e5c
lea ecx, [ebp - 0x68]
call fcn.0040189d
mov eax, esi
call fcn.00438a95
ret

Function at 0x41711e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x417181
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.004230d5
leave
ret

Function at 0x417242
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0
push edx
push 0x4174c0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x417285
push str.CreateThread_failed
mov edi, 0x44a850
push edi
call fcn.00409f5c
pop ecx
pop ecx
call fcn.0040a1e6
push 2
mov ecx, edi
call fcn.0040a119
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41bf81
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x4c]
push 0
push ebx
mov dword [esp + 0x18], ebx
mov dword [ebp + 8], ebx
mov byte [ebp + 0x42], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebp
call fcn.0041c0ed
cmp dword [ebp + 0x20], 0
je 0x41bfcc
push dword [ebp + 0x20]
call fcn.0042c35e
pop ecx
test edi, edi
jne 0x41bfd4
xor eax, eax
jmp 0x41bfdb
push edi
call fcn.0042ce64
pop ecx
and dword [ebp + 0x24], 0
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebp + 4], 0
je 0x41c014
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push dword [esp + 0x10]
mov esi, dword [ebp]
sub edi, eax
lea ebx, [eax + 1]
sub edi, 2
call dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
xor esi, esi
push esi
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
push edi
push dword [esp + 0x30]
push ebx
push 0x40000000
push esi
push str.RarHtmlClassName
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebp + 0x1c], 0
mov dword [ebp + 4], eax
jne 0x41c0a4
cmp dword [ebp + 0x10], esi
jne 0x41c0a4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x41c0ba
cmp dword [ebp + 0x24], esi
jne 0x41c0ba
cmp dword [ebp + 0x20], esi
je 0x41c0ba
push dword [ebp + 0x20]
lea eax, [esp + 0x28]
push eax
call fcn.0041c5d8
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.004022aa
lea ecx, [esp + 0x24]
call fcn.00401e5c
jmp 0x41c0ba
test eax, eax
je 0x41c0ba
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004230d5
add esp, 0x30
ret 0x14
Function at 0x41d39c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x4435f8
push ecx
push dword [0x44a7d0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41d4a9
push esi
push dword [0x44a7d0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41d4a9
push esi
push dword [0x44a7d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d4a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d4a9
and dword [ebp - 8], 0
push edi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41d4a3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41d49c
push ebx
push esi
push eax
call fcn.004247c0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41d495
mov ecx, dword [ebp - 4]
call fcn.0041d9e1
mov ecx, dword [ebp - 4]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
test ebx, ebx
je 0x41d495
mov ecx, ebx
call fcn.0041d8c0
test eax, eax
jne 0x41d483
push ecx
lea ecx, [ebp - 0xc]
call fcn.0041d88f
lea eax, [ebp - 8]
push eax
mov eax, ecx
mov ecx, ebx
push eax
call fcn.0041d89a
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43c270]
mov ecx, ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
jmp 0x41d4ab
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x41d7b7
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00424d40
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
shrd eax, ecx, 0x1e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004230d5
leave
ret
Function at 0x41deeb
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
lea ecx, [ebp + 0x1c]
call fcn.0041de61
test al, al
je 0x41dfa8
push ebx
push edi
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x14], 0x11060000
xor edi, edi
mov dword [ebp + 8], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], edi
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp + 4], edi
inc ebx
mov dword [ebp - 0xc], 3
push eax
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp], edi
mov dword [ebp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x41dfa6
push ebx
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x41df98
push edi
push dword [ebp + 0x18]
lea eax, [ebp + 0x60]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x41df98
lea eax, [ebp + 0x60]
mov dword [ebp + 0xc], 0xc
mov dword [ebp + 0x10], eax
mov ecx, esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0x14], edi
push eax
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x18], edi
je 0x41dfa6
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004230d5
add ebp, 0x78
leave
ret

Function at 0x41dfb8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x43aa2c
call fcn.00438ab3
mov esi, ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
mov ecx, edx
call fcn.0040126f
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e0a8
mov ecx, dword [ebp + 8]
call fcn.0040126f
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e09b
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
shr edx, 1
call fcn.00401891
cmp eax, edx
jbe 0x41e01f
call fcn.00401891
mov edx, eax
inc edx
mov eax, 0x10000
cmp edx, eax
jb 0x41e02b
mov edx, eax
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401a88
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401895
add eax, eax
mov dword [ebp - 0x1c], eax
call fcn.0040188a
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.0040126f
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e08f
mov word [ebp - 0xe], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0xe]
push eax
call fcn.00421df8
lea ecx, [ebp - 0x2c]
call fcn.0040188a
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401279
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040189d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x41e0b3
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0040335d
mov al, bl
call fcn.00438a81
ret 0xc