joyce8/EMBER2024-capa huggingface dataset:
Function at 0x108a243
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [0x1001168]
cmp eax, 0xffffffff
jne 0x108a25a
xor eax, eax
jmp 0x108a25d
and eax, 0x10
pop ebp
ret 4

Function at 0x108a285
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0107aa60
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [0x10011a8]
test eax, eax
jne 0x108a2ff
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108a2fb
test byte [eax + 0x1c], 1
je 0x108a2fb
call dword [fcn.010011dc]
push eax
mov eax, dword [0x10b30cc]
push 0x10082d8
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
xor eax, eax
jmp 0x108a309
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0107a6bf
leave
ret

Function at 0x108b11e
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov word [ebp - 0x20c], di
je 0x108b280
cmp dword [ebp + 0xc], edi
je 0x108b280
push esi
push dword [ebp + 0xc]
call dword [0x10011ac]
test eax, eax
je 0x108b240
cmp word [esi], di
je 0x108b240
push esi
call fcn.0108a243
test eax, eax
jne 0x108b1b6
push edi
push esi
call dword [0x1001278]
test eax, eax
jne 0x108b1b6
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108b1a8
test byte [eax + 0x1c], 1
je 0x108b1a8
push esi
push 0x10082d8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
mov word [esi], di
call dword [fcn.010011dc]
jmp 0x108b274
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [0x1001160]
test eax, eax
jne 0x108b1ff
call dword [fcn.010011dc]
push eax
call fcn.01089a82
mov esi, eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108b27c
test byte [eax + 0x1c], 1
je 0x108b27c
push esi
push 0x10082d8
push 0x13
jmp 0x108b22f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0104391f
mov esi, eax
cmp esi, edi
jge 0x108b23c
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108b27c
test byte [eax + 0x1c], 1
je 0x108b27c
push esi
push 0x10082d8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
jmp 0x108b27c
xor esi, esi
jmp 0x108b27c
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
mov esi, dword [fcn.010011dc]
je 0x108b272
test byte [eax + 0x1c], 1
je 0x108b272
call esi
push eax
mov eax, dword [0x10b30cc]
push 0x10082d8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
call esi
push eax
call fcn.01089a82
mov esi, eax
mov eax, esi
jmp 0x108b2a9
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108b2a4
test byte [eax + 0x1c], 1
je 0x108b2a4
push 0x10082d8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0107a6bf
leave
ret 8
Function at 0x108b928
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push edi
or edi, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], 0x80004005
je 0x108bb2f
mov eax, 0x104
cmp dword [ebp + 0x18], eax
jb 0x108bb2f
cmp esi, ecx
mov word [ebp - 0x414], cx
mov word [ebp - 0x20c], cx
jne 0x108b9f2
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0108b11e
test eax, eax
mov dword [ebp - 0x418], eax
jge 0x108b9ec
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108bb12
test byte [eax + 0x1c], 1
je 0x108bb12
push dword [ebp - 0x418]
push 0x10082d8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
jmp 0x108bb12
lea esi, [ebp - 0x414]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x10083e4
push esi
call dword [0x1001268]
test eax, eax
je 0x108ba94
cmp dword [ebp - 0x420], 0
je 0x108ba6a
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001178]
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01043959
test eax, eax
jge 0x108ba6a
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108ba6a
test byte [eax + 0x1c], 1
je 0x108ba6a
push dword [ebp - 0x418]
push 0x10082d8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [ebp + 0x24]
push 0
or eax, 0x2080
push eax
push 2
push ebx
push dword [ebp + 0x20]
lea eax, [ebp - 0x20c]
push 0xc0000000
push eax
call dword [0x1001154]
mov edi, eax
cmp edi, 0xffffffff
jne 0x108bac0
inc dword [ebp - 0x41c]
push 0x64
call dword [0x10011d4]
cmp dword [ebp - 0x41c], 0x32
jb 0x108b9f2
cmp edi, 0xffffffff
jne 0x108bac0
mov dword [ebp - 0x418], 0x80004005
jmp 0x108bb27
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x424]
push eax
call dword [0x1001160]
test eax, eax
jne 0x108baee
call dword [fcn.010011dc]
push eax
call fcn.01089a82
mov dword [ebp - 0x418], eax
jmp 0x108bb12
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x108bafc
mov dword [eax], edi
jmp 0x108bb0b
cmp edi, 0xffffffff
je 0x108bb0b
push edi
call dword [fcn.010011f8]
or edi, 0xffffffff
and dword [ebp - 0x418], 0
cmp dword [ebp - 0x418], 0
jge 0x108bb27
cmp edi, 0xffffffff
je 0x108bb27
push edi
call dword [fcn.010011f8]
mov eax, dword [ebp - 0x418]
jmp 0x108bb58
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108bb53
test byte [eax + 0x1c], 1
je 0x108bb53
push 0x10082d8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107a6bf
leave
ret 0x20
Function at 0x108cc81
Capabilities:
Read http header
Receive http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 8], ebx
call fcn.0108ae2e
push ebx
push dword [esi + 8]
call dword [0x1001464]
mov ecx, esi
mov edi, eax
call fcn.0108ae67
cmp edi, ebx
jne 0x108cce1
call dword [fcn.010011dc]
push eax
call fcn.01089a82
mov edi, eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108ce4b
test byte [eax + 0x1c], 1
je 0x108ce4b
push edi
push 0x1008260
push 0x38
jmp 0x108cd10
mov ecx, esi
call fcn.0108c441
mov edi, eax
cmp edi, ebx
jge 0x108cd20
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108ce4b
test byte [eax + 0x1c], 1
je 0x108ce4b
push edi
push 0x1008260
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
jmp 0x108ce4b
mov ecx, esi
mov dword [ebp - 8], 4
call fcn.0108ae2e
mov edi, dword [0x1001434]
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x74]
push eax
push ebx
push 0x20000013
push dword [esi + 8]
call edi
cmp eax, ebx
mov ebx, dword [fcn.010011dc]
mov dword [ebp - 4], eax
je 0x108ce0b
xor eax, eax
cmp dword [ebp + 8], eax
je 0x108ce0b
push eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x4000000b
push dword [esi + 8]
mov dword [ebp + 8], 0x10
call edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x108cdbb
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108cdb2
test byte [eax + 0x1c], 1
je 0x108cdb2
call ebx
push eax
mov eax, dword [0x10b30cc]
push 0x1008260
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov dword [ebp - 4], 1
jmp 0x108ce0b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [0x10012c4]
test eax, eax
jne 0x108cdf9
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108cdf9
test byte [eax + 0x1c], 1
je 0x108cdf9
call ebx
push eax
mov eax, dword [0x10b30cc]
push 0x1008260
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
mov ecx, esi
call fcn.0108ae67
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x108ce4b
call ebx
push eax
call fcn.01089a82
mov edi, eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x108ce4b
test byte [eax + 0x1c], 1
je 0x108ce4b
push dword [ebp - 8]
push edi
push 0x1008260
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104cb2f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x108eeec
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [ecx + 0x10], bl
mov dword [ebp - 0xc], ecx
jne 0x108f000
push ebx
push 0x20019
push 0x1024210
mov byte [ecx + 0x10], 1
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0108e9b4
test eax, eax
je 0x108ef33
lea ecx, [ebp - 4]
call fcn.01027fe2
jmp 0x108f000
push esi
push edi
xor edi, edi
mov esi, 0x104
jmp 0x108efd2
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x20]
mov eax, edi
push eax
push dword [ebp - 4]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x108efee
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x108ef71
cmp word [ecx], bx
setne al
cmp al, bl
je 0x108efca
cmp dword [ebp - 8], ebx
je 0x108efca
lea ecx, [ebp - 0x2c]
call fcn.0108f14a
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x2e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
jne 0x108ef93
add eax, 2
push eax
call fcn.0108f418
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x108efa8
cmp word [ecx], bx
setne al
cmp al, bl
je 0x108efc2
push ecx
call fcn.0108ea2d
cmp eax, 0xffffffff
jne 0x108efc2
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
call fcn.0108ebc5
lea ecx, [ebp - 0x2c]
call fcn.0108f3c6
lea ecx, [ebp - 0x20]
call fcn.0108f3c6
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.0108f14a
push esi
lea ecx, [ebp - 0x20]
call fcn.0108f3d0
test eax, eax
jge 0x108ef41
lea ecx, [ebp - 0x20]
call fcn.0108f3c6
lea ecx, [ebp - 4]
call fcn.01027fe2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x108f14a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
cmp dword [0x10b7f84], eax
jne 0x108f1dd
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0107aa60
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x10b7f84], 1
mov dword [ebp - 0x118], 0x114
call dword [0x10011a8]
test eax, eax
je 0x108f1dd
cmp dword [ebp - 0x114], 5
jb 0x108f1c1
cmp dword [ebp - 0x110], 1
jae 0x108f1ca
cmp dword [ebp - 0x114], 6
jb 0x108f1dd
cmp dword [ebp - 0x108], 2
jne 0x108f1dd
mov dword [0x10b431c], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0107a6bf
leave
ret
Function at 0x108f615
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.0108f302
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x108f637
mov eax, 0x80070057
jmp 0x108f715
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x80070057
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x108f711
cmp dword [ebp - 8], 1
je 0x108f67b
cmp dword [ebp - 8], 2
je 0x108f67b
cmp dword [ebp - 8], 7
jne 0x108f711
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x108f6bb
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x108f68f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x108f6b5
mov edx, dword [esi]
mov word [edx + ecx*2 - 2], bx
cmp eax, ebx
jne 0x108f711
jmp 0x108f6fc
push dword [ebp - 4]
mov ecx, esi
call fcn.0108f2ba
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x108f711
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
mov ecx, esi
je 0x108f6f4
lea eax, [ebp - 0x10]
push eax
call fcn.0108f2e6
jmp 0x108f711
push dword [ebp - 0x10]
call fcn.0108f3aa
cmp dword [ebp - 8], 2
je 0x108f707
mov dword [ebp - 0xc], ebx
jmp 0x108f711
mov ecx, esi
call fcn.0108f56f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10929b2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push dword [ebp + 0x10]
push 0x50
call fcn.010918e4
test eax, eax
mov dword [ebp - 4], eax
jne 0x10929cd
leave
ret
push ebx
push esi
push edi
cld
mov edi, dword [ebp - 4]
mov eax, 0
mov ecx, 0x50
or ecx, ecx
je 0x10929e4
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
push 0x14
xor esi, esi
pop ebx
mov eax, esi
shr eax, 2
mov edx, eax
mov eax, dword [ebp - 4]
shl edx, 2
add eax, edx
mov ecx, esi
sub ecx, edx
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
shl ecx, 3
shl edx, cl
or dword [eax], edx
inc esi
cmp esi, ebx
jb 0x10929ec
and dword [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], 0x123174bb
mov dword [ebp - 0x48], 0x86521ff8
mov dword [ebp - 0x44], 0x98d2438b
mov dword [ebp - 0x40], 0x7966ce12
mov dword [ebp - 0x3c], 0xc5d92014
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
mov esi, 0x10b5d4c
mov ecx, dword [ebp - 8]
mov eax, edi
cld
or ecx, ecx
je 0x1092a5f
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor edx, edx
push 5
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + edx*4 - 0x4c]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, esi
jb 0x1092a61
lea eax, [ebp - 0x24]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
cld
or ecx, ecx
je 0x1092a98
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push dword [ebp + 0xc]
push 0
push 0x10b67dc
push dword [0x10b5d60]
push eax
push ebx
push dword [ebp - 4]
call fcn.0109a767
lea eax, [ebp - 0x38]
mov byte [eax], 0
inc eax
dec ebx
jne 0x1092abb
mov eax, dword [ebp - 4]
push 0x50
pop ecx
pop edi
pop esi
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x1092acb
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.01091904
xor eax, eax
inc eax
leave
ret
Function at 0x1095570
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x10956ab
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x1095680
test eax, eax
jne 0x1095680
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x10955c0
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x10956ab
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x1095680
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc
Function at 0x10966a1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x10966ee
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, edx
sub ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], esi
mov esi, dword [edi + edx]
mov ecx, dword [edx]
lea ebx, [ecx + esi]
add eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + edx], eax
mov ebx, ecx
xor ebx, esi
and ebx, eax
or ecx, esi
xor ebx, ecx
shr ebx, 0x1f
add edx, 4
dec dword [ebp + 0x14]
mov eax, ebx
jne 0x10966c5
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x10968e6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
xor eax, eax
test edx, edx
je 0x1096933
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub ebx, esi
sub ecx, esi
push edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
mov edi, dword [ebx + esi]
mov edx, dword [esi]
mov ecx, edi
sub ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + esi], ecx
xor ecx, edi
xor edx, edi
or ecx, edx
xor ecx, edi
shr ecx, 0x1f
add esi, 4
dec dword [ebp + 0x14]
mov eax, ecx
jne 0x109690a
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x109bb2c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.0109baab
test eax, eax
je 0x109bb6d
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push 0x1026078
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x109d34e
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call fcn.0107a808
push 2
call fcn.010a4552
or dword [0x10b81dc], 0xffffffff
or dword [0x10b81e0], 0xffffffff
mov dword [esp], 0x10016ac
push 0x10016a4
call fcn.010a4546
push 0x10016a0
push 0x10015c4
call fcn.010a4546
add esp, 0x10
call dword [0x100121c]
mov edi, eax
lea eax, [ebp - 0x44]
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
call dword [0x1001220]
test byte [ebp - 0x18], 1
je 0x109d3b8
movzx eax, word [ebp - 0x14]
jmp 0x109d3bb
push 0xa
pop eax
push eax
push edi
push esi
push esi
call dword [0x1001244]
push eax
call fcn.01027a0e
mov esi, eax
call fcn.010a453a
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x109fbd1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x109fc10
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x109fbeb
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x109fc2c
dec edi
je 0x109fc25
dec edi
jne 0x109fc31
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc

Function at 0x10a10bd
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [ebx + 0xc], di
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edi
mov esi, 0x8000
jne 0x10a110d
push esi
push eax
add eax, esi
push eax
call fcn.0107a61e
add esp, 0xc
mov word [ebx + 0x2c], di
mov dword [ebx + 0x30], edi
call fcn.010a0b07
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], edi
push 2
mov word [ebx + 0x3c], si
mov dword [ebx + 0x34], esi
add eax, esi
pop ecx
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x10a112b
cmp byte [ebp + 0x24], cl
je 0x10a1151
mov edi, ebx
call fcn.010a095a
jmp 0x10a1162
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x10a1155
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0109fd59
push 0x4b
pop edx
call fcn.0109fd59
call fcn.010a0e3d
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x10a11a0
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call fcn.0107a61e
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24