joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019e960
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10176a90
push 0x101b3f64
push edi
call fcn.1000ea50
add esp, 0x14
test al, al
jne 0x10010bde
push 0x101b3f68
push edi
call fcn.1000ea50
add esp, 8
test al, al
je 0x10010bc6
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10010cca
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x10010cca
mov ecx, dword [ebp - 0x220]
cmp edi, ecx
ja 0x10010c4d
cmp dword [ebp - 0x21c], 0xf
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], edi
cmova eax, dword [ebp - 0x230]
mov byte [eax + edi], 0
jmp 0x10010c5d
push edi
mov ecx, esi
call fcn.100057b0
lea ecx, [ebp - 0x230]
call fcn.10002190
jmp 0x10010cf5
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10010cca
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x10010cca
mov ecx, dword [ebp - 0x220]
cmp edi, ecx
ja 0x10010c4d
cmp dword [ebp - 0x21c], 0xf
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], edi
cmova ecx, dword [ebp - 0x230]
mov byte [ecx + edi], 0
jmp 0x10010c5d
sub eax, ecx
lea ecx, [ebp - 0x230]
push 0
push eax
call fcn.1000fb00
cmp dword [ebp - 0x21c], 0xf
lea eax, [ebp - 0x230]
push 0
cmova eax, dword [ebp - 0x230]
push 0
push edi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x10010cba
cmp dword [ebp - 0x21c], 0xf
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], ecx
cmova eax, dword [ebp - 0x230]
mov byte [eax + ecx], 0
jmp 0x10010cca
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x230]
call fcn.1000fb00
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10172731
mov esp, ebp
pop ebp
ret
Function at 0x10015fa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019f266
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x100160df
push 0x200
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10176a90
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x100
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x100160df
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x270]
call fcn.10012e70
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.1000f900
add esp, 8
mov edx, dword [eax]
xorps xmm0, xmm0
mov ecx, edx
mov byte [ebp - 4], 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016065
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.100052b0
mov edx, dword [ebp - 0x23c]
test edx, edx
je 0x100160cf
mov ecx, dword [ebp - 0x234]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100160a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100161d9
push ecx
push edx
call fcn.10172723
add esp, 8
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x270]
call fcn.100035f0
jmp 0x100161bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edi, [ebp - 0x13]
mov dword [ebp - 0x22c], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x22c]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x100160f0
lea eax, [ebp - 0x22d]
push eax
lea eax, [ebp - 0x13]
push eax
push edi
lea ecx, [ebp - 0x258]
call fcn.100050a0
push 5
push str.W_e:
push 0
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 2
call fcn.10002d50
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x244]
cmp ecx, 0xf
jbe 0x100161bc
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100161b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100161de
push ecx
push edx
call fcn.10172723
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10172731
mov esp, ebp
pop ebp
ret
call fcn.1017a16f
call fcn.1017a16f
int3
Function at 0x10017b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019f42d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1020f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1002432b
mov edi, eax
add esp, 4
test edi, edi
je 0x10017c14
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1017557f
add esp, 4
mov dword [edi + 4], eax
jmp 0x10017c16
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.100128e0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10017c70
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x10017c70
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x10017c8c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10017caf
cmp byte [ebp + 0xc], 0
je 0x10017c9b
push esi
call fcn.10175a88
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10017cbb
mov esi, str.ios_base::badbit_set
jmp 0x10017ccb
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10017eb0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100134e0
push 0x101f8e80
lea eax, [ebp - 0x28]
push eax
call fcn.101760f2
int3
Function at 0x1001ea70
Capabilities:
Terminate process

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x10023820
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1390
call fcn.10172d60
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.101740d7
mov dword [ebp - 8], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x1388], eax
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [ebp + ecx*4 - 0x1388], eax
inc ecx
cmp ecx, 0x270
jb 0x10023850
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x138c]
push esi
mov esi, dword [ebp + 8]
xor eax, 0x80000000
xor esi, 0x80000000
mov dword [ebp - 0x138c], 0x270
sub eax, esi
cmp eax, 0xffffffff
jne 0x100238a1
call fcn.10007e20
mov ecx, eax
jmp 0x100238e5
push edi
lea edi, [eax + 1]
call fcn.10007e20
mul edi
mov dword [ebp - 0x1390], eax
mov ecx, edx
cmp eax, edi
jae 0x100238e4
mov eax, edi
xor edx, edx
neg eax
div edi
push ebx
mov ebx, edx
cmp dword [ebp - 0x1390], ebx
jae 0x100238e3
nop dword [eax + eax]
lea ecx, [ebp - 0x138c]
call fcn.10007e20
mul edi
mov ecx, edx
cmp eax, ebx
jb 0x100238d0
pop ebx
pop edi
lea eax, [ecx + esi]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, 0x80000000
pop esi
call fcn.10172731
mov esp, ebp
pop ebp
ret 8
Function at 0x10023cb0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a06de
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1020f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x10023e71
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi - 0x14], al
inc edi
mov al, byte [ebp - 0x12]
mov ah, byte [ebp - 0x13]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], al
cmp edi, 3
jne 0x10023dab
mov cl, byte [ebp - 0xd]
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x17], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor edi, edi
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x10023d8c
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, edx
push eax
call fcn.10024130
mov edx, dword [ebp + 8]
inc edi
cmp edi, 4
jl 0x10023d82
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10023d26
mov dword [ebp + 0xc], edi
test edi, edi
je 0x10023e71
mov eax, edi
cmp edi, 3
jge 0x10023de7
cmp eax, 3
jae 0x10023e89
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x10023dcb
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x13]
mov ah, byte [ebp - 0x14]
jmp 0x10023df0
mov cl, byte [ebp - 0xf]
mov ah, byte [ebp - 0xd]
mov ch, byte [ebp - 0xe]
mov al, ah
shr ch, 6
shr al, 2
and ah, 3
mov byte [ebp - 0x18], al
mov al, cl
shl ah, 4
and cl, 0xf
shr al, 4
add ah, al
shl cl, 2
mov byte [ebp - 0x17], ah
add cl, ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], cl
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x10023e49
xor edi, edi
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x10023e2c
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, edx
push eax
call fcn.10024130
mov edx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x10023e22
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp edi, 3
jge 0x10023e74
mov eax, 3
sub eax, edi
mov dword [ebp + 0xc], eax
nop dword [eax + eax]
push 0x3d
mov ecx, esi
call fcn.10024130
sub dword [ebp + 0xc], 1
jne 0x10023e60
jmp 0x10023e74
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call fcn.10172f63
int3
Function at 0x1002532c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x101a0836
call fcn.101733d8
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x100253d4
push dword [ebp + 8]
call fcn.1002564b
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002545a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x100253bd
push ecx
call fcn.10024363
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100253bd
xor edi, edi
inc edi
jmp 0x100253c7
push dword [ebx]
call fcn.1002436c
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10025069
jmp 0x10025458
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x101b1a54]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x10025450
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10024363
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1002544a
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10024f45
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.10024f45
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x10025418
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.100258e0
mov eax, edi
call fcn.101733a6
ret 0x10

Function at 0x10025462
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x100254b5
push esi
push dword [ebp + 8]
call fcn.1002564b
mov edi, eax
test edi, edi
je 0x100254b0
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100254b0
mov eax, dword [ebp - 8]
jmp 0x100254c7
mov eax, dword [ebp + 0x10]
jmp 0x100254c7
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x100254cd
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a0863
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10172d60
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x100255fe
push ebx
push edx
call fcn.1002564b
mov ebx, eax
test ebx, ebx
jne 0x10025535
push esi
jmp 0x10025626
lea ecx, [ebp - 0x2014]
call fcn.10024ebc
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x100255bd
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.1002578e
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.10025906
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x100255eb
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.10024fe7
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.100258e0
jmp 0x1002562d
push esi
mov ecx, edi
call fcn.10024e5f
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x100255e4
test esi, esi
jne 0x10025607
mov esi, 0x101b46a8
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.10024e5f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10172731
leave
ret 0x10
Function at 0x10025a24
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x10025a71
push esi
push dword [ebp + 8]
call fcn.1002564b
mov edi, eax
test edi, edi
je 0x10025af9
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x10025af9
mov eax, dword [ebp + 0x14]
push 2
pop ecx
lea eax, [eax*2 + 1]
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.10024363
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x10025acb
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x10025aa4
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101b1a54]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.1002436c
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10025c26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10025c7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10025c7f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10025c70
cmp esi, ecx
jae 0x10025c7f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10025c5e
cmp esi, ecx
jae 0x10025c7f
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10025c81
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1002a5bd
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x101a0e2a
call fcn.101733d8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10024e5f
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x1002a61f
call fcn.10028f68
cmp eax, 1
jne 0x1002a61f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.10025dce
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10025d22
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.100258e0
inc esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
je 0x1002a631
call fcn.10026195
jmp 0x1002a637
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.100258e0
mov eax, esi
call fcn.101733a6
ret 0xc
Function at 0x1002a6e8
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x101a0e2a
call fcn.101733d8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10024e5f
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x1002a746
call fcn.10028f68
cmp eax, 1
jne 0x1002a746
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.10025dce
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10025d22
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100258e0
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100258e0
mov eax, esi
call fcn.101733a6
ret 0x10

Function at 0x1002a76d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x101a0e2a
call fcn.101733d8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10024e5f
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x1002a7cb
call fcn.10028f68
cmp eax, 1
jne 0x1002a7cb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.10025dce
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10025d22
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100258e0
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100258e0
mov eax, esi
call fcn.101733a6
ret 0x14

Function at 0x1003072f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1003076e
call fcn.10028f1a
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003076e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10030776
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.1004e3d6
pop edi
pop esi
pop ebx
pop ebp
ret 4