joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1039f34
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x1039f6b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039fd1
test byte [eax + 0x1c], 2
je 0x1039fd1
push 0x1009cfc
push 0x1009b40
push 0x5e
jmp 0x1039fc6
mov edx, dword [ebp + 0x14]
cmp edx, edi
jne 0x1039f92
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039fd1
test byte [eax + 0x1c], 2
je 0x1039fd1
push 0x1009c98
push 0x1009b40
push 0x5f
jmp 0x1039fc6
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jbe 0x103a06d
cmp dword [ebp + 8], edi
mov word [eax], di
mov dword [edx], edi
jne 0x1039fdb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039fd1
test byte [eax + 0x1c], 2
je 0x1039fd1
push 0x1009c88
push 0x1009b40
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov edi, 0x80070057
jmp 0x103a06d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x1009ce8
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x103a00d
jle 0x103a009
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x103a06c
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x103a046
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x1009cb8
push dword [ebp + 8]
mov dword [ebp - 4], 4
call esi
test eax, eax
jne 0x103a03f
cmp dword [ebp - 8], edi
jne 0x103a06b
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x103a06b
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a06b
test byte [eax + 0x1c], 2
je 0x103a06b
push edi
push 0x1009b40
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101420b
pop ebx
pop esi
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x103a079
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x103a0b9
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a13b
test byte [eax + 0x1c], 2
je 0x103a13b
push 0x1009d7c
push 0x1009b40
push 0x62
jmp 0x103a130
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x103a0e0
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a13b
test byte [eax + 0x1c], 2
je 0x103a13b
push 0x1009c98
push 0x1009b40
push 0x63
jmp 0x103a130
cmp dword [ebp + 0x14], ebx
jne 0x103a105
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a13b
test byte [eax + 0x1c], 2
je 0x103a13b
push 0x1009d64
push 0x1009b40
push 0x64
jmp 0x103a130
cmp dword [ebp + 8], ebx
mov dword [ecx], 6
mov dword [eax], ebx
jne 0x103a142
mov eax, dword [section..data]
cmp eax, section..data
je 0x103a13b
test byte [eax + 0x1c], 2
je 0x103a13b
push 0x1009c88
push 0x1009b40
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov eax, 0x80070057
jmp 0x103a1b4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1009d4c
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, ebx
je 0x103a176
jle 0x103a1b2
and eax, 0xffff
or eax, 0x80070000
jmp 0x103a1b2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1009d18
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x103a1a7
cmp dword [ebp - 8], ebx
jne 0x103a1b0
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x103bb40
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 0x103bc7b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x103bc50
test eax, eax
jne 0x103bc50
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 0x103bb90
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x103bc7b
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 0x103bc50
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 0x103bd90
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1054a4c], 0
push ebx
jne 0x103be0d
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x103be01
cmp dword [ebp - 8], 0x660
jae 0x103be01
xor eax, eax
mov eax, dword [eax*4 + 0x1054048]
mov dword [0x1054a4c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x103e331
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
shr edx, 3
je 0x103e35a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
push esi
mov esi, dword [ecx + eax]
xor dword [eax], esi
mov esi, dword [ecx + eax + 4]
xor dword [eax + 4], esi
add eax, 8
dec edx
jne 0x103e347
pop esi
pop ebp
ret 0xc

Function at 0x103e777
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100a250
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103e84c
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x103e83b
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x103e825
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x103e83b
push eax
push edi
push dword [ebp - 0x110]
call fcn.0103e70f
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x103e84e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0103563d
leave
ret 4
Function at 0x103f94a
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01041110

Function at 0x103fd8c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x103fdd3
cmp dword [ebp - 0x108], 2
jne 0x103fdd3
cmp dword [ebp - 0x114], 5
jb 0x103fdd3
xor eax, eax
inc eax
jmp 0x103fdd5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0103563d
leave
ret

Function at 0x1040330
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
push ebx
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push dword [ebp + 0xc]
mov ebx, 0x80004005
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x104039c
mov eax, dword [section..data]
cmp eax, section..data
je 0x104045c
test byte [eax + 0x1c], 2
je 0x104045c
push ebx
push 0x100a7b0
push 0x100a70c
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d30
jmp 0x104045c
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
call fcn.0104b5cb
mov edi, eax
test edi, edi
jne 0x10403de
mov eax, dword [section..data]
cmp eax, section..data
je 0x10403d7
test byte [eax + 0x1c], 2
je 0x10403d7
push 0x100a79c
push 0x100a70c
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov ebx, 0x8007000e
jmp 0x1040451
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x104041d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040451
test byte [eax + 0x1c], 2
je 0x1040451
push ebx
push 0x100a7b0
push 0x100a70c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d30
jmp 0x1040451
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ebx
jbe 0x1040442
movzx eax, word [edi + ecx*2]
cmp ax, 0xd
je 0x1040436
cmp ax, 0xa
jne 0x104043c
mov word [edi + ecx*2], 0x20
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x1040426
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], ecx
test edi, edi
je 0x104045b
push edi
call fcn.0104b5e3
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x1040469
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
push esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 0x80004005
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x10404dd
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040581
test byte [eax + 0x1c], 2
je 0x1040581
push 0x80004005
push 0x100a7fc
push 0x100a70c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d30
jmp 0x1040581
push dword [ebp - 4]
call fcn.0104b5cb
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x104051e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040515
test byte [eax + 0x1c], 2
je 0x1040515
push 0x100a7e8
push 0x100a70c
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov dword [ebp - 8], 0x8007000e
jmp 0x1040574
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1040561
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040574
test byte [eax + 0x1c], 2
je 0x1040574
push 0x80004005
push 0x100a7fc
push 0x100a70c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d30
jmp 0x1040574
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], esi
mov dword [ecx], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x1040581
push dword [ebp + 0xc]
call fcn.0104b5e3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10406ea
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x104082a
cmp word [esi], di
je 0x104082a
push esi
call fcn.0103f9f6
movzx ecx, word [esi]
cmp cx, di
je 0x10407fa
push 2
pop ebx
cmp cx, 0x3b
je 0x104082a
cmp cx, 0x22
je 0x104082a
cmp cx, 0x3c
je 0x104082a
cmp cx, 0x3e
je 0x104082a
cmp cx, 0x2a
je 0x104082a
cmp cx, 0x2b
je 0x104082a
cmp cx, 0x3d
je 0x104082a
cmp cx, 0x7c
je 0x104082a
cmp cx, 0x3f
je 0x104082a
cmp cx, 0x2c
je 0x104082a
cmp cx, 0x20
je 0x104082a
cmp cx, 9
je 0x104082a
cmp cx, 0x3a
jne 0x10407db
cmp eax, edi
jne 0x10407ec
cmp dword [ebp + 0xc], edi
je 0x104082a
add esi, ebx
movzx eax, word [esi]
test ax, ax
mov edi, esi
je 0x104082a
movzx eax, ax
push eax
call sub.msvcrt.dll_iswdigit
add esi, ebx
test eax, eax
pop ecx
je 0x104082a
movzx eax, word [esi]
test ax, ax
jne 0x10407b4
sub esi, edi
and esi, 0xfffffffe
xor eax, eax
cmp esi, 0xa
setle al
jmp 0x104082c
cmp eax, edi
je 0x10407ec
cmp cx, 0x5d
jne 0x10407ec
add esi, ebx
cmp word [esi], di
jne 0x10407ff
add esi, ebx
movzx ecx, word [esi]
cmp cx, di
jne 0x104071d
xor eax, eax
inc eax
jmp 0x104082c
cmp dword [ebp + 0xc], edi
je 0x104082a
add esi, ebx
movzx eax, word [esi]
test ax, ax
mov edi, esi
je 0x104082a
movzx eax, ax
push eax
call sub.msvcrt.dll_iswdigit
add esi, ebx
test eax, eax
pop ecx
je 0x104082a
movzx eax, word [esi]
test ax, ax
jne 0x1040810
jmp 0x10407cc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1040dec
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x228], ecx
xor ecx, ecx
cmp esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], ecx
je 0x1040e27
mov dword [esi], ecx
cmp dword [ebp + 0x24], ecx
jne 0x1040e44
push eax
push 0x109
lea eax, [ebp - 0x218]
push eax
call fcn.01040da3
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x220]
push ecx
push 0x20019
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1040efa
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x22c]
push eax
push 0
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1040ec3
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x224]
je 0x1040eb3
cmp ecx, 3
jne 0x1040ec3
cmp dword [ebp + 0x1c], 4
jne 0x1040ec3
cmp eax, 4
jne 0x1040ec3
test esi, esi
je 0x1040eb9
mov dword [esi], eax
mov dword [ebp - 0x21c], 1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1040efa
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1040efa
test byte [ecx + 0x1c], 2
je 0x1040efa
push eax
push 0x100a914
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101420b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 0x20
Function at 0x1040f16
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x21c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x224], eax
push 0x109
lea eax, [ebp - 0x218]
push eax
call fcn.01040da3
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1040fbf
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1041044
test byte [ecx + 0x1c], 2
je 0x1041044
push eax
lea eax, [ebp - 0x218]
push eax
push 0x100a914
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
jmp 0x1041044
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x1c]
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edi, 0x100a914
mov ebx, section..data
je 0x104100b
mov ecx, dword [section..data]
cmp ecx, ebx
je 0x1041015
test byte [ecx + 0x1c], 2
je 0x1041015
push eax
push esi
push dword [ebp - 0x224]
push edi
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010392cd
jmp 0x1041015
mov dword [ebp - 0x21c], 1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1041044
mov ecx, dword [section..data]
cmp ecx, ebx
je 0x1041044
test byte [ecx + 0x1c], 2
je 0x1041044
push eax
push edi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101420b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 0x18

Function at 0x1041060
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
push 0x109
lea eax, [ebp - 0x218]
push eax
xor edi, edi
call fcn.01040da3
lea eax, [ebp - 0x21c]
push eax
push 0x20006
push edi
lea eax, [ebp - 0x218]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10410f9
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x21c]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10410f9
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10410f9
test byte [ecx + 0x1c], 2
je 0x10410f9
push eax
push 0x100a914
push 0x12
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101420b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0103563d
leave
ret 8
Function at 0x1041110
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp + 0x14]
push 0x109
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], edi
call fcn.01040da3
cmp dword [ebp + 0xc], edi
jne 0x1041196
push esi
mov ebx, 0x20019
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
push 0x80000001
call edi
test eax, eax
je 0x1041194
push esi
push ebx
push 0
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x10411fc
xor edi, edi
lea eax, [ebp - 0x22c]
push eax
push edi
push edi
push edi
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10411c7
mov dword [ebp - 0x21c], 1
jmp 0x10411fc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x10411fa
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10411fa
test byte [ecx + 0x1c], 2
je 0x10411fa
push eax
push 0x100a914
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101420b
mov dword [esi], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 0x10
Function at 0x104128a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [ebp + 0x18], 2
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov esi, 0x208
je 0x10412d8
cmp dword [ebp + 0x18], eax
jne 0x1041306
push eax
push eax
push 2
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
push 0x80000001
call fcn.01040dec
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x1041304
mov dword [ebp - 0x214], 1
xor eax, eax
cmp dword [ebp + 0x18], 1
je 0x104131a
cmp dword [ebp + 0x18], 2
jne 0x104133a
cmp dword [ebp - 0x214], eax
je 0x104133a
push eax
push eax
push 2
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
push 0x80000002
call fcn.01040dec
mov dword [ebp - 0x210], eax
xor eax, eax
cmp dword [ebp - 0x210], eax
je 0x104138f
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov ebx, eax
lea edi, [ebx + ebx + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
je 0x104138f
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x104138f
mov eax, dword [ebp - 0x21c]
mov dword [eax], edi
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 0x14

Function at 0x104220b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1053d10]
xor eax, ebp
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]
cmp eax, 1
jne 0x10422aa
cmp dword [ebp - 0x88], 2
jne 0x10422aa
cmp dword [esi + 0x10], 0
jne 0x104225c
push 0x100aa7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10422aa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100aa6c
push eax
call edi
push 0x100aa58
push dword [esi + 0x10]
mov dword [esi + 0x14], eax
call edi
push 0x100aa48
push dword [esi + 0x10]
mov dword [esi + 0x18], eax
call edi
push 0x100aa2c
push dword [esi + 0x10]
mov dword [esi + 0x20], eax
call edi
push 0x100aa1c
push dword [esi + 0x10]
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x24], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0103563d
leave
ret