joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10198c5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1027ce4]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x10198fc
xor eax, eax
jmp 0x1019aaf
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x102a900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1019931
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.0101b450
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10199ff
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x1019a7d
jmp 0x1019958
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10199ae
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1019999
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x1019970
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1019a2c
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x1019a38
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1019956
jmp 0x1019a38
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1019a2c
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x1019a38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1019aa7
cmp dword [ebp - 0x40c], eax
je 0x1019a77
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x1019a69
call fcn.0101ae68
mov dword [eax], 9
call fcn.0101ae76
mov dword [eax], esi
jmp 0x1019aa2
push dword [ebp - 0x40c]
call fcn.0101ae84
pop ecx
jmp 0x1019aa2
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1019a8f
cmp byte [edi], 0x1a
jne 0x1019a8f
xor eax, eax
jmp 0x1019aad
call fcn.0101ae68
mov dword [eax], 0x1c
call fcn.0101ae76
and dword [eax], 0
or eax, 0xffffffff
jmp 0x1019aad
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01013eb1
leave
ret
Function at 0x101bf70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x101c148
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x102a900]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x101c148
test cl, 0x48
je 0x101bfdd
cmp byte [eax + 5], 0xa
je 0x101bfdd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101c02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x101c017
call fcn.0101ae68
mov dword [eax], 9
call fcn.0101ae76
mov dword [eax], esi
jmp 0x101c027
cmp eax, 0x6d
je 0x101c148
push eax
call fcn.0101ae84
pop ecx
or eax, 0xffffffff
jmp 0x101c14a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x101c143
test eax, eax
je 0x101c056
cmp byte [ebx], 0xa
jne 0x101c056
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x101c05f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x101c13d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x101c12d
cmp al, 0xd
je 0x101c091
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x101c11f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x101c0ab
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x101c0a6
add dword [ebp + 0x10], 2
jmp 0x101c0ff
mov dword [ebp + 0x10], eax
jmp 0x101c11b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101c0d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101c11b
cmp dword [ebp - 0xc], 0
je 0x101c11b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x101c0f4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x101c0ff
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x101c11e
cmp ebx, dword [ebp + 0xc]
jne 0x101c104
cmp byte [ebp - 1], 0xa
jne 0x101c104
mov byte [ebx], 0xa
jmp 0x101c11e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0101b450
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101c11f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x101c075
jmp 0x101c13d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x101c13d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x101c14a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101c630
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 0x101c76b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x101c740
test eax, eax
jne 0x101c740
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 0x101c680
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x101c76b
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 0x101c740
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 0x101edf4
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x101eecf
mov ax, word [esi]
test ax, ax
je 0x101eecf
cmp ax, 0x3b
je 0x101eecf
cmp ax, 0x22
je 0x101eecf
cmp ax, 0x3c
je 0x101eecf
cmp ax, 0x3e
je 0x101eecf
cmp ax, 0x2a
je 0x101eecf
cmp ax, 0x2b
je 0x101eecf
cmp ax, 0x3d
je 0x101eecf
cmp ax, 0x7c
je 0x101eecf
cmp ax, 0x3f
je 0x101eecf
cmp ax, 0x2c
je 0x101eecf
cmp ax, 0x20
je 0x101eecf
cmp ax, 9
je 0x101eecf
cmp ax, 0x3a
je 0x101ee84
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x101ee12
jmp 0x101eeca
cmp dword [ebp + 0xc], 0
je 0x101eecf
inc esi
inc esi
mov ax, word [esi]
test ax, ax
mov edi, esi
je 0x101eecf
movzx eax, ax
push eax
call fcn.01014a0a
inc esi
inc esi
test eax, eax
pop ecx
je 0x101eecf
mov ax, word [esi]
test ax, ax
jne 0x101ee96
sub esi, edi
and esi, 0xfffffffe
cmp esi, 0xa
jg 0x101eecf
push edi
call fcn.01014b03
test eax, eax
pop ecx
jl 0x101eecf
cmp eax, 0xffff
jg 0x101eecf
xor eax, eax
inc eax
jmp 0x101eed1
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x101f751
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
je 0x101f77e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x101f7a6
push eax
lea ecx, [ebp - 0x218]
call fcn.0102188e
push esi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.01021679
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01013eb1
leave
ret 8

Function at 0x101fc68
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
je 0x101fc93
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x101fcd0
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x21c]
push eax
call fcn.010218da
mov eax, dword [ebp - 8]
push dword [ebp - 0x218]
add eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x21c]
call fcn.0102182d
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.01021900
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
call fcn.01013eb1
leave
ret 8

Function at 0x101fd61
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x101fd89
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x101fdb2
push esi
push eax
lea ecx, [ebp - 0x218]
call fcn.0102188e
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.01021679
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
call fcn.01013eb1
leave
ret 4

Function at 0x101ff52
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
je 0x101ff82
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
jmp 0x101ffbb
push dword [esi]
lea ecx, [ebp - 0x21c]
push eax
call fcn.010218da
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
test edi, edi
je 0x101ffb0
lea ecx, [ebp - 0x21c]
call fcn.010217f7
mov dword [esi], eax
lea ecx, [ebp - 0x21c]
call fcn.01021900
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01013eb1
leave
ret 8
Function at 0x102016b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [0x1029548], ebx
je 0x1020183
pop ebx
pop ebp
jmp dword [sym.imp.USER32.dll_LoadStringW]
push esi
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jg 0x102018f
xor eax, eax
jmp 0x10201ea
mov eax, dword [ebp + 0xc]
shr eax, 4
push 6
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10201e0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x10201e0
and dword [ebp + 0xc], 0xf
je 0x10201c7
mov ecx, dword [ebp + 0xc]
dec ecx
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x10201bd
movzx ebx, word [eax]
lea ecx, [esi - 1]
cmp ebx, ecx
jl 0x10201d3
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov ecx, ebx
lea esi, [eax + 2]
rep movsw word es:[edi], word [esi]
pop edi
mov eax, dword [ebp + 0x10]
and word [eax + ebx*2], 0
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x102034a
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
je 0x1020377
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x102039e
lea ecx, [ebp - 0x218]
call fcn.0102188e
push dword [ebp - 0x214]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.01021679
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01013eb1
leave
ret 8

Function at 0x10203b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
cmp dword [0x1029548], 0
mov edx, dword [ebp + 0x1c]
mov eax, dword [0x1027ce4]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x438], edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x43c], edx
je 0x1020410
push edx
push esi
push dword [ebp - 0x438]
push ecx
push edi
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x102049a
and dword [ebp - 0x440], 0
test esi, esi
jne 0x1020421
lea esi, [ebp - 0x440]
push dword [edi]
lea ecx, [ebp - 0x434]
push eax
call fcn.010218da
push dword [esi]
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x438]
call fcn.010218da
push dword [ebp - 0x43c]
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x444]
push edi
push dword [ebp - 0x430]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [ebp - 0x434]
mov ebx, eax
call fcn.0102182d
lea ecx, [ebp - 0x21c]
mov dword [edi], eax
call fcn.0102182d
lea ecx, [ebp - 0x21c]
mov dword [esi], eax
call fcn.01021900
lea ecx, [ebp - 0x434]
call fcn.01021900
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01013eb1
leave
ret 0x20
Function at 0x10204ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x444], esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x440], edx
je 0x1020510
push esi
push ebx
push dword [ebp - 0x444]
push edx
push edi
push eax
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
jmp 0x10205f6
push dword [edi]
lea ecx, [ebp - 0x434]
push eax
call fcn.010218da
test ebx, ebx
je 0x10205a0
mov eax, dword [esi]
shr eax, 1
push eax
push ebx
lea ecx, [ebp - 0x21c]
call fcn.010218da
push esi
push dword [ebp - 0x218]
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x440]
push edi
push dword [ebp - 0x430]
push dword [ebp + 0xc]
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
test ebx, ebx
jne 0x1020593
cmp dword [ebp - 0x438], 1
jne 0x102057d
lea ecx, [ebp - 0x21c]
call fcn.010217f7
shl eax, 1
mov dword [esi], eax
jmp 0x1020593
cmp dword [ebp - 0x438], 3
jne 0x1020593
push dword [esi]
lea ecx, [ebp - 0x21c]
call fcn.0102183d
lea ecx, [ebp - 0x21c]
call fcn.01021900
jmp 0x10205c8
push esi
push 0
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x440]
push edi
push dword [ebp - 0x430]
push dword [ebp + 0xc]
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
test ebx, ebx
jne 0x10205d9
lea ecx, [ebp - 0x434]
call fcn.0102182d
mov dword [edi], eax
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x10205eb
mov ecx, dword [ebp - 0x438]
mov dword [eax], ecx
lea ecx, [ebp - 0x434]
call fcn.01021900
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.01013eb1
leave
ret 0x20
Function at 0x1020686
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x43c], esi
je 0x10206e0
push esi
push edx
push ecx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1020803
push eax
lea ecx, [ebp - 0x430]
call fcn.0102188e
neg esi
sbb esi, esi
lea eax, [ebp - 0x438]
and esi, eax
push esi
push 0
lea eax, [ebp - 0x444]
push eax
push edi
push dword [ebp - 0x42c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
call edi
test eax, eax
mov dword [ebp - 0x434], eax
jne 0x10207f2
cmp dword [ebp - 0x444], eax
jbe 0x10207cb
cmp dword [ebp - 0x444], 2
ja 0x10207cb
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x1020749
mov eax, dword [eax]
shr eax, 1
jmp 0x102074b
xor eax, eax
push eax
push dword [ebp - 0x440]
lea ecx, [ebp - 0x21c]
call fcn.010218da
mov eax, dword [ebp - 8]
push esi
push dword [ebp - 0x218]
add eax, eax
push dword [ebp - 0x44c]
mov dword [ebp - 0x438], eax
push dword [ebp - 0x448]
push dword [ebp - 0x42c]
push ebx
call edi
test eax, eax
mov dword [ebp - 0x434], eax
je 0x102079b
lea ecx, [ebp - 0x21c]
call fcn.01021900
jmp 0x10207f2
cmp dword [ebp - 0x218], 0
je 0x10207b5
lea ecx, [ebp - 0x21c]
call fcn.010217f7
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x102078e
mov ecx, dword [ebp - 0x438]
add ecx, ecx
mov dword [eax], ecx
jmp 0x102078e
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push dword [ebp - 0x44c]
push dword [ebp - 0x448]
push dword [ebp - 0x42c]
push ebx
call edi
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x430]
call fcn.01021679
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01013eb1
leave
ret 0x18
Function at 0x1020817
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
je 0x1020852
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10208c3
push eax
lea ecx, [ebp - 0x42c]
call fcn.0102188e
cmp dword [ebp + 0x14], 1
je 0x102086e
cmp dword [ebp + 0x14], 2
je 0x102086e
xor eax, eax
jmp 0x1020870
mov eax, esi
push eax
lea ecx, [ebp - 0x218]
call fcn.0102188e
cmp dword [ebp - 0x214], 0
je 0x1020891
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x214]
inc eax
jmp 0x1020894
mov eax, dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.01021679
lea ecx, [ebp - 0x42c]
call fcn.01021679
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01013eb1
leave
ret 0x18

Function at 0x1020d62
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
cmp dword [0x1029548], 0
mov eax, dword [0x1027ce4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
je 0x1020d92
push dword [ebp + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1020dea
push eax
lea ecx, [ebp - 0x430]
call fcn.0102188e
push dword [ebp + 0x10]
lea ecx, [ebp - 0x21c]
push esi
call fcn.010218da
mov eax, dword [ebp - 8]
add eax, eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.010217f7
lea ecx, [ebp - 0x21c]
call fcn.01021900
lea ecx, [ebp - 0x430]
call fcn.01021679
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01013eb1
leave
ret 0xc
Function at 0x1021d8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1027ce4]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x98]
push eax
mov esi, ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1021e71
cmp dword [ebp - 0x88], ecx
push edi
jne 0x1021e08
cmp dword [esi + 0x4c], 0
mov dword [esi + 0x48], ecx
jne 0x1021de3
push 0x1021cf6
call fcn.01020dfc
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1021e70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x29
push eax
call edi
push 0x39
push dword [esi + 0x4c]
mov dword [esi + 0x58], eax
call edi
mov dword [esi + 0x5c], eax
jmp 0x1021e70
cmp dword [ebp - 0x88], 2
jne 0x1021e70
cmp dword [esi + 0x4c], 0
jne 0x1021e24
push 0x1021d0e
call fcn.01020dfc
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1021e70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1021d2a
push eax
call edi
push 0x1021d3a
push dword [esi + 0x4c]
mov dword [esi + 0x50], eax
call edi
push 0x1021d4e
push dword [esi + 0x4c]
mov dword [esi + 0x54], eax
call edi
push 0x1021d5e
push dword [esi + 0x4c]
mov dword [esi + 0x60], eax
call edi
push 0x1021d7a
push dword [esi + 0x4c]
mov dword [esi + 0x68], eax
call edi
mov dword [esi + 0x64], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01013eb1
leave
ret
Function at 0x1023817
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x14
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jne 0x1023848
push 3
pop eax
jmp 0x102393f
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
mov edi, 0x1003e44
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x102388f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push 0x1003e38
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x102389d
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
cmp eax, ebx
je 0x10238a9
push 0x13
pop eax
jmp 0x102393e
cmp dword [ebp - 8], 2
jne 0x10238c9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1003e2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], 1
je 0x10238d9
cmp eax, ebx
jne 0x10238d9
cmp dword [ebp - 0x10], 0x14
je 0x102392d
cmp dword [ebp - 0x14], ebx
je 0x10238fd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10238a1
push dword [ebp + 8]
call fcn.01023781
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x102392d
push 0x14
push dword [ebp + 8]
push 3
push ebx
push 0x1003e2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x102392d
mov dword [ebp - 0xc], 0x15
cmp dword [ebp - 4], ebx
je 0x102393b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret 4