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

Disassembly:
cmp dword [esp + 0x18], 0
je 0x546774
mov dword [esp + 0x18], fcn.00544f40
jmp fcn.004944d0
mov dword [esp + 0x18], fcn.005441e0
jmp fcn.00494200
Function at 0x548b50
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00548140
add esp, 4
test eax, eax
jne 0x548b64
pop esi
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [esp + 4], eax
jmp fcn.004e9180

Function at 0x550570
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x78
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
movzx eax, byte [ecx]
mov dword [esi + 0x74], eax
mov eax, dword [ecx]
xor dword [esi], eax
mov eax, dword [ecx + 4]
xor dword [esi + 4], eax
mov eax, dword [ecx + 8]
xor dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x1c], eax
pop esi
ret

Function at 0x55b5c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, dword [edi + 0x28]
cmp dword [ebx], 5
je 0x55b5e0
push ebx
push edi
call fcn.0055c180
add esp, 8
test eax, eax
jle 0x55b662
cmp dword [ebx + 0x28], 0
push esi
je 0x55b61b
push 0xf
push edi
call fcn.00457070
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebx + 0x28]
call fcn.00457f40
push 0xf
push dword [ebx + 0x28]
mov esi, eax
call fcn.00457f00
push eax
push edi
call fcn.00457ef0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.00457070
add esp, 8
test esi, esi
jg 0x55b65f
push esi
call fcn.004bd4c0
add esp, 4
test eax, eax
je 0x55b65f
push 0xa
push edi
call fcn.00457ef0
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x5620f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.0057a390
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
push ebp
movups xmm0, xmmword [eax]
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x1c], xmm0
test ebp, ebp
je 0x5621a8
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push dword [ecx]
call fcn.00453da0
add esp, 0x14
neg eax
sbb eax, eax
inc dword [esp + 0x1c]
inc eax
or edi, eax
mov eax, 0x10
mov dword [esp + 0x10], edi
mov edi, ebp
sub edi, ebx
cmp edi, 0x10
cmova edi, eax
xor edx, edx
test edi, edi
je 0x562199
lea eax, [esi + ebx]
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x14]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [esp + edx + 0x2c]
inc edx
mov byte [eax - 1], cl
cmp edx, edi
jb 0x562183
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add ebx, 0x10
mov ecx, dword [esp + 0x18]
cmp ebx, ebp
jb 0x562131
mov ecx, dword [esp + 0x3c]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.00579fe8
add esp, 0x30
ret

Function at 0x562760
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x562772
xor eax, eax
pop edi
ret
push esi
push dword [edi]
call fcn.00463c90
mov esi, eax
add esp, 4
test esi, esi
jns 0x562788
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x562792
mov dword [eax], esi
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x56282c
mov ecx, dword [edi + 0x84]
push ebx
cmp ecx, esi
jne 0x5627cb
test esi, esi
jle 0x56280a
mov edx, ebp
lea ecx, [edi + 4]
mov ebx, esi
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x5627b5
jmp 0x56280a
mov eax, esi
mov byte [ecx + edi + 0x64], 0x80
sub eax, ecx
cmp eax, 1
jle 0x5627eb
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jle 0x56280a
mov edx, ebp
lea ecx, [edi + 0x24]
mov ebx, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x5627f6
push esi
push ebp
push ebp
push dword [edi]
call fcn.004645b0
add esp, 0x10
pop ebx
test eax, eax
jg 0x56282c
push esi
push ebp
call fcn.00401320
add esp, 8
xor eax, eax
pop ebp
pop esi
pop edi
ret
pop ebp
pop esi
mov eax, 1
pop edi
ret
Function at 0x56e3d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
mov ebx, dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebx + 0x38], 0
je 0x56e3fd
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x56e424
push ebx
call fcn.004774f0
add esp, 4
push eax
push ebx
call fcn.004774e0
add esp, 4
push eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_sendto]
push 0xf
push edi
mov esi, eax
call fcn.00457070
add esp, 8
test esi, esi
jg 0x56e48c
je 0x56e43c
cmp esi, 0xffffffff
jne 0x56e48c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x56e458
je 0x56e46f
cmp eax, 4
je 0x56e46f
cmp eax, 0xb
je 0x56e46f
cmp eax, 0x67
jmp 0x56e469
sub eax, 0x86
je 0x56e46f
sub eax, 6
je 0x56e46f
sub eax, 0x26a7
je 0x56e46f
xor eax, eax
jmp 0x56e474
mov eax, 1
test eax, eax
je 0x56e48c
push 0xa
push edi
call fcn.00457ef0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x3c], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x56ef20
Capabilities:
Set socket configuration

Disassembly:
mov eax, 8
call fcn.0057a390
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [eax + 0x28]
cmp dword [esi + 0x4c], 0
ja 0x56ef42
cmp dword [esi + 0x48], 0
jbe 0x56f08f
lea ecx, [esp + 8]
mov dword [esp + 8], 4
push ecx
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push dword [eax + 0x24]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jns 0x56ef9f
call fcn.004650f0
push str.dgram_adjust_rcv_timeout
push 0x135
push str.crypto_bio_bss_dgram.c
call fcn.00465140
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465170
add esp, 0xc
jmp 0x56efb8
mov eax, dword [esp + 4]
push 0
cdq
push 0xf4240
push edx
push eax
call fcn.0057ad20
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
push ebx
push edi
call fcn.00557ee0
mov edi, dword [esi + 0x4c]
xor ebx, ebx
mov ecx, dword [esi + 0x48]
cmp edx, edi
jb 0x56efd6
ja 0x56efd1
cmp eax, ecx
jbe 0x56efd6
mov ebx, 1
sub ecx, eax
sbb edi, edx
test ebx, ebx
jne 0x56effa
test edi, edi
ja 0x56f001
jb 0x56effa
cmp ecx, 0x3e8
ja 0x56f001
test edi, edi
ja 0x56f001
jb 0x56effa
cmp ecx, 0x3e8
jae 0x56f001
mov ecx, 0x3e8
xor edi, edi
cmp dword [esi + 0x54], 0
ja 0x56f00d
cmp dword [esi + 0x50], 0
jbe 0x56f027
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
cmp edx, edi
ja 0x56f027
jb 0x56f08d
cmp eax, ecx
ja 0x56f027
cmp edx, edi
jb 0x56f08d
ja 0x56f027
cmp eax, ecx
jb 0x56f08d
push 0
push 0xf4240
push edi
push ecx
call fcn.0057ae00
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push 0x1006
push 0xffff
push dword [eax + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x56f08d
call fcn.004650f0
push str.dgram_adjust_rcv_timeout
push 0x153
push str.crypto_bio_bss_dgram.c
call fcn.00465140
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465170
add esp, 0xc
pop edi
pop ebx
pop esi
add esp, 8
ret

Function at 0x56f110
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x4c], 0
ja 0x56f124
cmp dword [eax + 0x48], 0
jbe 0x56f18a
push 0
push 0xf4240
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.0057ae00
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x56f18a
call fcn.004650f0
push str.dgram_reset_rcv_timeout
push 0x182
push str.crypto_bio_bss_dgram.c
call fcn.00465140
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465170
add esp, 0xc
pop esi
ret
Function at 0x577ed0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.0057a390
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x577f0f
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00579fe8
add esp, 0x34
ret
movups xmm0, xmmword [edi + 0x10]
push ebx
mov ebx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push esi
lea esi, [edi + 0x10]
mov dword [esp + 0x10], ebx
dec eax
movups xmmword [esp + 0x30], xmm0
and byte [esp + 0x3c], 0x7f
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x48], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.00453390
add esp, 0x18
test eax, eax
je 0x577ff2
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.00453da0
add esp, 0x14
test eax, eax
je 0x577ff2
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.005784a0
add esp, 0x10
test eax, eax
je 0x577ff2
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x577fc3
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x577fc3
mov eax, ecx
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x577fb0
jmp 0x577fd4
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x578007
push ebx
push ebp
call fcn.00401320
add esp, 8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00579fe8
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
mov eax, ebx
pop esi
pop ebx
mov dword [edi + 0x2c], 0
pop edi
pop ebp
xor ecx, esp
call fcn.00579fe8
add esp, 0x34
ret
Function at 0x578c40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0057a390
mov edx, dword [esp + 0x2c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp edx, 1
push esi
setne al
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x3c]
add eax, edi
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x578c79
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
cmp edx, 1
je 0x578d4e
mov ebp, dword [esp + 0x30]
dec ebp
add ebp, esi
cmp dword [esp + 0x44], 0
mov cl, byte [ebp]
movzx edx, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], edx
je 0x578cb3
sub esi, edx
mov eax, 1
sub esi, edi
pop ebp
dec esi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
add esp, 0x14
ret
lea ecx, [edx + eax]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x578d25
mov esi, edx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esp + 0x13]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x578ce5
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
not ebx
movzx eax, bl
mov ebx, dword [esp + 0x28]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
mov edx, dword [esp + 0x3c]
neg ecx
and eax, ecx
sub esi, eax
mov dword [ebx], esi
push dword [esp + 0x48]
push ecx
push edi
push edx
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
call fcn.005788f0
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x100a7e00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x100cf816
mov eax, dword [edx + 0x24]
xor esi, esi
mov dword [ebp - 0x10], 1
mov edi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
sub eax, esi
jne 0x100cf832
mov edi, 0x2001f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x100cf85f
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], esi
jne 0x100cf8d3
mov eax, dword [0x101dc37c]
cmp eax, 0xffffffff
je 0x100a7e95
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test eax, eax
jne 0x100cf917
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jg 0x100cf8ee
js 0x100cf8fd
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x100a7ecc
mov esi, 0x80070490
cmp dword [ebp - 0xc], 0
jne 0x100cf938
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc
cmp eax, 3
je 0x100a7eaa
test eax, eax
jne 0x100cf92e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x100a7eb9
push 0x1002f3a8
mov edx, 0x613
mov ecx, 0x1004407c
call fcn.100e970f
mov edx, dword [ebp - 0x10]
jmp 0x100a7e2b
sub eax, 1
je 0x100a7e47
sub eax, 1
je 0x100a7e47
sub eax, 1
je 0x100cf852
sub eax, 1
jne 0x100a7e4c
push 0x11
mov edi, 0x20019
pop eax
jmp 0x100a7e4f
lea edx, [ebp - 0xc]
push edx
mov edx, ebx
push eax
cmp dword [ebp + 0xc], esi
je 0x100cf874
call fcn.100e6d29
mov esi, eax
jmp 0x100cf89f
call fcn.100e71dc
mov esi, eax
cmp esi, 0x80070003
je 0x100a7eaa
cmp esi, 0x80070002
je 0x100a7eaa
cmp esi, 0x80070057
je 0x100a7eaa
test esi, esi
jns 0x100a7ed9
push ebx
push 0x10045994
jmp 0x100cf8be
movzx esi, ax
or esi, 0x80070000
push ebx
push 0x100459c0
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100a7eaf
lea ecx, [ebp - 8]
mov edx, ebx
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ecx
push edi
push esi
push ecx
push ecx
mov ecx, eax
call fcn.100afc63
jmp 0x100a7ed1
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x100a7e8f
push 0x1000a004
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100a7e95
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegOpenKeyTransactedW]
jmp 0x100a7ea5
jg 0x100cf8af
mov esi, eax
jmp 0x100cf8b8
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x100a7eb9
Function at 0x100ad6ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], esi
mov word [edi], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push edx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jg 0x100ad786
mov esi, eax
cmp eax, 0x103
je 0x100ad773
test esi, esi
js 0x100d3252
cmp dword [ebp - 8], 4
jne 0x100d326c
mov ecx, dword [ebp - 0xc]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc
movzx esi, ax
or esi, 0x80070000
jmp 0x100ad755
push 0x1002f928
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100ad773
push edi
push 0x1002f9d8
push 1
mov esi, 0x8007000d
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100ad773
Function at 0x100ae0e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x18], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
push edi
mov edi, edx
test eax, eax
je 0x100d3772
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
test edi, edi
jne 0x100ae183
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test byte [ebp + 8], 1
je 0x100ae14b
cmp eax, 2
je 0x100ae17c
test eax, eax
jne 0x100d37d6
cmp dword [ebp - 0xc], 4
jne 0x100d37dc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
test edi, edi
jne 0x100ae1b5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc
mov esi, 0x80070002
jmp 0x100ae165
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test byte [ebp + 8], 1
je 0x100ae1a5
cmp eax, 2
je 0x100ae1c6
cmp eax, 3
je 0x100ae1c6
test eax, eax
jne 0x100d3799
mov ebx, dword [ebp - 0x14]
jmp 0x100ae122
cmp dword [ebp - 0x14], 0
je 0x100ae169
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x100ae169
test eax, eax
jg 0x100d378b
mov esi, eax
jmp 0x100ae165
push 0x10009c80
mov edx, 0x216
mov ecx, 0x10009bfc
call fcn.100e970f
jmp 0x100ae10d
movzx esi, ax
or esi, 0x80070000
jmp 0x100ae165
jg 0x100d379f
mov esi, eax
jmp 0x100d37a8
movzx esi, ax
or esi, 0x80070000
push edi
push 0x10009c20
jmp 0x100d37c1
movzx esi, ax
or esi, 0x80070000
push dword [ebp - 0x18]
push 0x10009c5c
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100ae165
jg 0x100d37b0
mov esi, eax
jmp 0x100d37b9
push 0x10009c8c
push 1
mov esi, 0x8007000d
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100ae165
Function at 0x100afb70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov esi, 0x104
xor eax, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov word [edi], ax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edi
push eax
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
push edi
push edx
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jg 0x100afc55
mov esi, eax
cmp eax, 0x103
je 0x100afc42
test esi, esi
js 0x100d406d
cmp dword [ebp - 8], 2
jne 0x100d4087
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
shr ebx, 1
lea edx, [ebx + 1]
call fcn.100a70d5
mov esi, eax
test esi, esi
js 0x100d40b1
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x100d40cf
mov word [edi + ebx*2], ax
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
xor edi, edi
test edi, edi
jne 0x100d40f8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc
movzx esi, ax
or esi, 0x80070000
jmp 0x100afbd3
push 0x1002f928
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100afc42
cmp dword [ebp - 8], 1
je 0x100afbec
push edi
push 0x1002f940
push 1
mov esi, 0x8007000d
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100afc42
push edi
push 0x1002f96c
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [ebp - 0x18]
add esp, 0x14
jmp 0x100afc3a
jg 0x100d40d5
mov esi, eax
jmp 0x100d40de
movzx esi, ax
or esi, 0x80070000
push 0x1002f9a4
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100afc3a
lea eax, [edi - 4]
push eax
call fcn.100b84f9
pop ecx
jmp 0x100afc42

Function at 0x100afcdd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, esi
test ebx, ebx
je 0x100d4142
mov eax, dword [0x101dc37c]
cmp eax, 0xffffffff
je 0x100afd1d
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x100afd1d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jg 0x100d415b
js 0x100d416b
mov dword [ebx], edi
mov eax, esi
pop edi
pop esi
pop ebx
ret
push 0x10009fc8
mov edx, 0xaa
mov ecx, 0x10009fd8
call fcn.100e970f
jmp 0x100afcf0
movzx esi, si
or esi, 0x80070000
test esi, esi
jmp 0x100afd17
push 0x1000a004
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100afd1d