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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1008103f
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10081050
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10081091
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x100833fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10083346
add ebx, 0
push ecx
call 0x1008335b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73406117
sub ebx, dword [0x73425956]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73425946
call fcn.1007ee25
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1007e333
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100834b9
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100834b9
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x10083470
mov eax, 1
lock xchg dword [0x73425952], eax
push 0x3dd1fc71
call 0x100833fd
push esi
add esp, 8
cmp eax, 0
jne 0x100833e6
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1008340c
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10083421
cmp ecx, edx
cmp eax, 0
je 0x10083446
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10083430
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1008345f
dec eax
loope 0x10083462
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73425952], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x10083496
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100834ab
jmp 0x100834b6
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100833a4
Function at 0x1008a51e
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1008a7f4
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x734125ca
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x73409590
push 0xffffffffffffffff
call fcn.1008171e
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1008a588
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1008a5a0
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1008a7e8
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1008a7bc
Function at 0x10099fee
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1009a010
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009a010
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009a010
ret
cmp word [ebx + 4], 0x14c
jne 0x1009a010
test word [ebx + 0x16], 2
je 0x1009a010
test word [ebx + 0x16], 0x100
je 0x1009a010
cmp word [ebx + 0x18], 0x10b
jne 0x1009a010
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009a010
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009a09c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009a030
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10080f7b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009a010
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1009a09c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1009a010
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009a010
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009a010
ret
cmp word [ebx + 4], 0x14c
jne 0x1009a010
test word [ebx + 0x16], 2
je 0x1009a010
test word [ebx + 0x16], 0x100
je 0x1009a010
cmp word [ebx + 0x18], 0x10b
jne 0x1009a010
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009a010
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009a09c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009a030
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10080f7b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009a010
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1009a153
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009a1ac
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009a153
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009a162
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1049fe05
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009a1b3
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10081029
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009a252
add edi, 4
add eax, 2
dec ecx
jne 0x1009a198
call 0x1009a1ff
loope 0x1009a1f5
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009a24f
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009a260
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009a213
cmp eax, ecx
ja 0x1009a213
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009a29d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009a293
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10081508
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1009a162
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009a1ac
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009a153
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009a162
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1049fe05
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009a1b3
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10081029
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009a252
add edi, 4
add eax, 2
dec ecx
jne 0x1009a198
call 0x1009a1ff
loope 0x1009a1f5
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009a24f
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009a260
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009a213
cmp eax, ecx
ja 0x1009a213
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009a29d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009a293
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10081508
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x8732a0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8732a6
pop ebp
sub ebp, 0x45d54c
lea edi, [ebp + 0x45f155]
mov esi, edi
mov ecx, 0x92
xor ebx, ebx
lodsb al, byte [esi]
xor al, 0x44
sub al, bl
rol al, 2
stosb byte es:[edi], al
inc ebx
loop 0x8732bc
mov eax, dword [esp + 0x20]
inc eax
js 0x8732d9
mov dword [ebp + 0x45f159], 1
cmp dword [ebp + 0x45f159], 0
jne 0x8732e4
jmp 0x8732fa
push ebp
lea eax, [ebp + 0x45d5c2]
push eax
mov eax, 0x30
push eax
call fcn.00873389
pop ebp
jmp 0x87330e
push ebp
lea eax, [ebp + 0x45d5c2]
push eax
mov eax, 0x30
push eax
call fcn.00873616
pop ebp
mov ecx, 0x17a7
lea edi, [ebp + 0x45d9ae]
mov esi, edi
lodsb al, byte [esi]
sub eax, dword [ecx - 0x15]
popal
jmp 0x417d34e8
Function at 0x873389
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
dec ebp
add al, 3
mov edi, dword [ebp + 0xc]
push es
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add dh, byte [ecx + 0x7d8b0300]
or al, 6
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add dh, byte [ebx]
fild dword [ebx]
mov bx, dx
add al, 0x66
and ebx, 1
add dl, dl
jecxz 0x8734d1
xor al, bl
add esp, dword [esi - 0x2f]
loop 0x8734d9
mov bx, dx
add eax, 0xe38166
add byte [edx], 0xb5
add byte [ebx], 0x8b
jge 0x8734f2
push es
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
cmp bh, ch
jne 0x873556
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add eax, 0x3f28166
add byte [ebx], 0x8b
jge 0x87354a
push es
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add bh, dh
rol dword [edx], 0xb5
or byte [ebx], al
mov edi, dword [ebp + 0xc]
push es
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
cmp cl, ch
jne 0x87348d
pop ecx
pop ebx
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [eax + 0x1460106]
inc ebx
add ecx, dword [ebx - 0x72f9f383]
mov edi, 0x45f155
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
cmp ecx, ebx
jne 0x8733e9
mov esp, ebp
ret 8
Function at 0x873616
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f1aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
jge 0x873666
push es
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov ecx, dword [ebp + 4]
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f1aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x45f155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x45f155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov cl, 0
xor ebx, ebx
mov bx, dx
and bx, 1
shl bl, cl
xor al, bl
shl dx, 1
mov bx, dx
and bx, 0x8000
mov ch, 0x80
cmp bh, ch
jne 0x8736ed
xor dx, 0x8003
inc cl
mov ch, 8
cmp cl, ch
jne 0x8736ca
pop ecx
pop ebx
mov byte [esi], al
inc esi
inc ebx
cmp ecx, ebx
jne 0x873675
mov esp, ebp
ret 8
Function at 0x408b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
nop
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x2b]
push 0
lea edx, [ebp - 8]
push 0
mov eax, dword [esi]
push edx
mov edx, dword [ebp + 0x61]
mov dword [ebp - 0x10], eax
invalid
Function at 0x10004202
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100210b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x20], 4
stosd dword es:[edi], eax
mov ebx, ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x24], ecx
stosd dword es:[edi], eax
mov dword [ebx + 0x10], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x20019
push edi
push 0
push 0x100032c8
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004293
push esi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x10003320
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10004282
cmp word [ebp - 0x14], 0x30
setne al
mov dword [ebx + 0x10], eax
test esi, esi
je 0x10004292
cmp esi, 0xffffffff
je 0x10004292
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop esi
or dword [ebx + 0x14], 0xffffffff
lea eax, [ebp - 0x28]
and dword [ebp - 0x1c], 0
push eax
push edi
push 0
push 0x10003248
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100042d1
lea eax, [ebp - 0x28]
mov ecx, 0x10003338
push eax
lea edx, [ebp - 0x1c]
call fcn.10003990
test eax, eax
jne 0x100042d1
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x14], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001e1a0
leave
ret
Function at 0x100045f1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], 0x544b2fba
mov dword [ebp - 0x1c], 0xef0bc9df
mov dword [ebp - 0x18], 0x39d589ae
mov dword [ebp - 0x14], 0xe5ea8173
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, dword [ecx]
and ebx, 3
je 0x1000467d
mov ecx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp + 8], eax
mov eax, dword [ecx]
add ecx, 4
add dword [ebp - 8], eax
add eax, edi
imul eax, eax, 0x6f6e65f
mov edi, 0xf993291a
sub edi, eax
xor edx, edi
xor esi, edi
mov eax, edx
add edx, edx
shr eax, 0x1f
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor esi, dword [ebp + eax*4 - 0x20]
sub ebx, 1
jne 0x1000463e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x10004771
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebx - 4]
add eax, edi
mov edi, 0xf993291a
imul eax, eax, 0x6f6e65f
mov ecx, edi
sub ecx, eax
mov eax, dword [ebx]
add eax, ecx
xor esi, ecx
imul eax, eax, 0x6f6e65f
xor edx, ecx
mov ecx, edi
mov edi, dword [ebx + 4]
mov ebx, 0xf993291a
sub ecx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor edx, ecx
xor esi, dword [ebp + eax*4 - 0x20]
lea eax, [edi + ecx]
imul eax, eax, 0x6f6e65f
xor esi, ecx
sub ebx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor edx, ebx
xor esi, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 4]
xor esi, ebx
mov dword [ebp - 0x10], esi
mov esi, eax
mov ecx, dword [eax + 8]
mov eax, dword [esi - 4]
add eax, ecx
add eax, edi
mov edi, esi
mov esi, dword [ebp - 0x10]
add eax, dword [edi]
mov edi, 0xf993291a
add dword [ebp - 8], eax
lea eax, [ecx + ebx]
imul eax, eax, 0x6f6e65f
lea ecx, [edx + edx]
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 4], ebx
sub edi, eax
mov eax, edx
shr eax, 0x1f
xor ecx, dword [ebp + eax*4 - 0x18]
xor ecx, edi
mov eax, ecx
shr eax, 0x1f
lea edx, [ecx + ecx]
lea ecx, [esi + esi]
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
xor ecx, dword [ebp + eax*4 - 0x20]
xor ecx, edi
mov eax, ecx
shr eax, 0x1f
lea esi, [ecx + ecx]
xor esi, dword [ebp + eax*4 - 0x20]
sub dword [ebp + 8], 4
jne 0x1000468e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], edi
pop edi
mov dword [ecx + 8], esi
pop esi
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], edx
pop ebx
leave
ret 4
Function at 0x1001c450
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ef82
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100210b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0x10001d44
mov dword [esi + 0xc], 0x10001d04
and dword [ebp - 4], 0
lea edi, [esi + 0x30]
push edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov byte [ebp - 4], 2
cmp dword [esi + 0x10], 0
je 0x1001c525
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x59
lea ebx, [esi + 0x14]
push eax
mov ecx, ebx
call fcn.1001d1b0
push 4
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.1001d360
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5f
push eax
mov ecx, ebx
call fcn.1001d1b0
jmp 0x1001c525
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
lea ecx, [esi + 0x14]
call fcn.1001ce72
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e440
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1001e47e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1001e476
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1001e480
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1001e466
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1001e550
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1001e581
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001e581
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1001e581
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret