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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10062110
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x40a7ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + 4]
mov edx, dword [eax + 4]
test esi, esi
je 0x44f88c
test edx, edx
je 0x40a816
mov eax, dword [eax]
push edi
cmp esi, edx
jb 0x40a7f8
test esi, esi
je 0x40a7e8
mov ecx, dword [ecx]
sub ecx, eax
movzx edx, word [ecx + eax]
movzx edi, word [eax]
cmp dx, di
jne 0x40a7ec
add eax, 2
sub esi, 1
jne 0x40a7d4
xor eax, eax
jmp 0x40a7f2
sbb eax, eax
and eax, 0xfffffffe
inc eax
pop edi
pop esi
pop ebp
ret 4
test edx, edx
je 0x40a7e8
mov ecx, dword [ecx]
sub ecx, eax
movzx esi, word [ecx + eax]
movzx edi, word [eax]
cmp si, di
jne 0x40a7ec
add eax, 2
sub edx, 1
jne 0x40a800
in al, dx
jmp 0x40a7e8
xor eax, eax
inc eax
jmp 0x40a7f3
lock xor ecx, dword [eax + eax - 0x15]
push es
fmul qword [0x4c33e8]
call fcn.004420ff
jmp 0x8554a5f9
Function at 0x40ec40
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
jg 0x40fe3a
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor al, al
mov word [esp + 0x54], 1
push 8
mov byte [esp + 0x1f], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x38], 1
add dword [eax], eax
call fcn.0041fddb
mov ecx, dword [edi]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 1
mov dword [edx], 0x14
mov dword [edx + 4], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], 0x17
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x49c470]
mov dword [esp + 0x70], ecx
movsx eax, word [eax + 0xa]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
push 0x4d2580
call fcn.00420242
add esp, 4
cmp dword [0x4d2580], 0xffffffff
jne 0x40ec76
push 0x44247b
call fcn.004200a3
add esp, 4
invalid
invalid
Function at 0x4101e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x154
mov edx, dword [edx + 4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebx]
mov esi, dword [edx + ecx*4]
movzx eax, word [esi + 8]
cmp ax, 0x4e
je 0x41027e
mov ebx, dword [ebp + 0x10]
cmp ax, 0x35
je 0x455419
cmp ax, 0x47
je 0x455435
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x410259
mov eax, dword [esi + 0xc]
cmp eax, 4
je 0x4555b6
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4555d9
cmp eax, 5
jge 0x4555ee
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
cmp eax, 5
jne 0x4552fe
mov dword [ebp - 0x10], 0
mov esi, ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov eax, dword [edx + ecx*4 - 4]
mov dword [ebp - 0x14], 0
movsx eax, word [eax + 0xa]
mov dword [ebp - 0x2c], eax
fmul qword [0x890fbef8]
scasb al, byte es:[edi]
call [ecx - 0x73]
dec eax
or al, ch
int3
mov esi, 0x8dae700f
inc ebp
or al, cl
call 0x1141ce7e
xchg ebp, eax
adc al, 0xe9
push ss
mov eax, dword [esi]
mov dword [eax], ecx
fmul qword [0x580fbef8]
scasb al, byte es:[edi]
lea eax, [ebp + 8]
enter 0xffffffffffff9ce8, 0x44
dec ecx
add byte [edx + 0x14], ch
or al, 0x8b
or byte [ecx], al
shr byte [ecx + 0x130bb06], 1
jns 0x455451
aas
scasb al, byte es:[edi]
push 0xf79ac
jmp 0x45549b
push esi
mov eax, dword [ebx + 0xc]
cmp eax, 0xd
je 0x4554cd
cmp eax, 0xe
je 0x4554cd
inc edi
adc byte [ecx - 0xf748166], cl
mov eax, dword [ebp + esi*2 + 0x19]
jns 0x4554c5
add bl, ch
or edi, 0x50
inc eax
cmp ecx, 0x3ee8e855
loope 0x4554c5
add eax, 0xc0330000
add byte [eax], al
xor eax, eax
fxrstor [ebp - 0x1734f7bb]
jbe 0x455550
or bl, cl
call 0xf0d0d34a
mov esi, eax
mov eax, dword [esp + esi*2 + 0x22]
or byte [ebp + 0x23], dh
cld
jmp 0xfbeba8a2
cmp edx, dword [ecx - 0x7b]
cmp edi, dword [esi + 0x7b]
inc eax
push edx
mov eax, edi
inc ebx
push eax
lea eax, [eax + 0x10]
jmp 0x455536
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi]
cmpsd dword [esi], dword es:[edi]
or al, 0x81
call 0x21190b33
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
push 0
call 0x4dd31377
sbb al, ch
js 0x45556f
jle 0x455523
or byte [ecx], al
paddsb mm0, qword [ecx]
jne 0x24b9e0f6
lea ecx, [ebp - 0x28]
call fcn.0047cfd5
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xfffcddf6
jmp 0x464041a7
mov al, 0xe8
cmp al, byte [ebx - 5]
and eax, 0x358cd0f
inc ebp
fcom dword [eax - 0x75]
push es
cmpsd dword [esi], dword es:[edi]
or al, 0x81
call 0x21190b33
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0xb]
push eax
push esi
movsx eax, word [eax - 0x73]
inc ebp
invalid
in al, dx
add dword [edi], ecx
test byte [ecx], bh
or eax, 0xd84d8d69
call fcn.0047cfd5
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xfffcddf6
jmp 0x464041a7
Function at 0x41c574
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0xff
push edi
mov edi, dword [ebp + 0x14]
mov ebx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp edi, eax
ja 0x45b8ca
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
test al, 1
jne 0x45b8d1
and eax, 0x800
mov dword [ebp + 8], eax
je 0x45b9c9
mov dword [ebp - 0x18], esi
cmp esi, ebx
ja 0x41c5ec
mov edi, dword [ebp - 8]
mov eax, ebx
sub eax, esi
inc ecx
add ecx, eax
mov dword [ebp - 4], ecx
inc ebp
or al, 0xc7
add byte [eax + eax + 0x7c], dl
por mm2, qword [ecx + 0x6a]
xor bl, ch
push ds
push 0x2a
jmp 0x45b8f6
lea eax, [ebp - 0x14]
mov edx, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call 0x486af12
pop ecx
pop ecx
test eax, eax
lea ecx, [eax - 0x13f0fe45]
jle 0x45b98a
push dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [eax*4 + 0x4b0a70]
mov ecx, dword [ebp - 8]
push eax
cmpsb byte [esi], byte es:[edi]
sti
invalid
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp edx, esi
jb 0x45b9b9
cmp ecx, edi
jbe 0x45b94e
cmp ecx, edi
jbe 0x45b9cb
lea eax, [edi + 1]
cmp edx, eax
ja 0x45b9cb
mov edi, ecx
mov dword [ebp + 0x14], edi
cmp edi, ebx
jbe 0x45b94e
mov eax, 0xf7c00ff
cmp edi, eax
ja 0x45b9c7
mov ebx, edi
jmp 0x45b94e
lea eax, [esi - 1]
cmp ecx, eax
jb 0x45b998
push edx
mov dword [ebp + 0x10], esi
jmp 0x45b94e
mov ebx, eax
jmp 0x45b94e
push ecx
mov ecx, dword [ebp - 8]
push edx
push dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, 0xfdfffcf2
or edi, esp
or eax, 0x110c483
Function at 0x41fe42
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [eax + 0x3c]
add ecx, eax
enter 0xffffffffffffb70f, 0x41
adc al, 0x8d
push ecx
sbb byte [ebx], al
ror byte [edi], 1
mov bh, 0x41
push es

Function at 0x471fc3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471fd1
call fcn.004720ad
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x472009
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x47201c
call fcn.004720ad
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x47205f
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x4720ad
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720d0
push 0
call 0x7642e54f
pop ecx
mov ecx, eax
call 0x6955206d
mov dword [0x4d06e0], 0xf7c0270
mov edx, 0x202000e3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0xf7c0634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720e5
mov eax, dword [esi]
mov dword [ebp - 4], 0xc79018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
invalid
Function at 0x10001030
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1014
call fcn.10007dc0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1010], eax
cmp byte [0x10019f80], 0
je 0x100010d0
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0x101c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x400
push edx
call fcn.10007d97
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x830]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea ecx, [esp + 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.10007cb4
add esp, 0x1014
ret

Function at 0x100010f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc10], eax
cmp byte [0x10019f80], 0
je 0x100011ca
mov eax, dword [esp + 0xc18]
push eax
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xc1c]
push edx
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x818]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xc]
movzx edx, word [esp + 0xa]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 8]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._02i__02i__02i__02i:_02i:_02i:_03i
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x834]
add esp, 0x24
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001195
push esi
push edi
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100011a5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.10007cb4
add esp, 0xc14
ret

Function at 0x10001741
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.10001530
cmp dword [esi + 0x110], 0
je 0x10001770
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x10001450
push 0
push 0
mov byte [esi + 0x109], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ecx
ret
Function at 0x10005270
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 1], ebx
inc dword [ebx - 0x3a343]
inc dword [eax]
je 0x100052a3
lea eax, [ebp - 0x714]
push eax
call fcn.1000321d
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.100031d2
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x100052ae
jmp 0x100052b3
jmp 0x10004baf
cmp dword [ebp - 0x37c], 0
jne 0x1000535d
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100033e9
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x10005349
lea eax, [ebp - 0x714]
push eax
call fcn.1000321d
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.100032b2
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100061b0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
call fcn.100011e0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test eax, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
je 0x100061da
push 0x20106
jmp 0x100061df
push 0x20006
push 0
push 0
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006262
mov edx, dword [esp + 0x20]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006200
sub eax, esi
mov esi, dword [esp + 0x1c]
inc eax
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006248
push esi
push eax
push str.SetRegValueString___Set_value_error____ld_for__s_n
call fcn.100010f0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x10
mov ecx, dword [esp + 8]
push ecx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x10
push esi
push eax
push str.SetRegValueString___Open_registry_error____ld_for__s_n
call fcn.100010f0
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x10006280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0x10], 0
call fcn.100011e0
test eax, eax
je 0x100062d1
lea eax, [esp + 0x14]
push eax
push 0x20119
jmp 0x100062db
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor edi, edi
cmp eax, edi
jne 0x10006357
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x10006336
push ebp
push eax
push str.GetRegValueString___Get_value_error____ld_for__s_n
mov byte [ebx], 0
mov dword [esp + 0x1c], edi
call fcn.100010f0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000636a
lea eax, [esp + 0x1c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10006340
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000636a
push esi
push eax
push str.GetRegValueString___Open_registry_error____ld_for__s_n
mov dword [esp + 0x1c], edi
call fcn.100010f0
add esp, 0xc
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10007cb4
add esp, 0x114
ret 0x10
Function at 0x10006390
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push esi
mov dword [esp + 4], 0
call fcn.100011e0
mov esi, dword [esp + 0x14]
test eax, eax
je 0x100063bd
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20119
push 0
push esi
push ecx
jmp 0x100063cf
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000641f
mov edx, dword [esp + 8]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10006409
push eax
push str.GetEnumRegValueCount___RegQueryInfoKey_error____ld_for__s_n
call fcn.100010f0
add esp, 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
push esi
push eax
push str.GetEnumRegValueCount___Open_registry_error____ld_for__s_n
call fcn.100010f0
mov eax, dword [esp + 0x10]
add esp, 0xc
pop esi
add esp, 8
ret 8

Function at 0x10006510
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push esi
mov dword [esp + 4], 0
call fcn.100011e0
mov esi, dword [esp + 0x14]
test eax, eax
je 0x1000653d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20119
push 0
push esi
push ecx
jmp 0x1000654f
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000659f
mov edx, dword [esp + 8]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
push eax
push eax
push eax
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10006589
push eax
push str.GetEnumRegSubkeyCount___RegQueryInfoKey_error____ld_for__s_n
call fcn.100010f0
add esp, 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
push esi
push eax
push str.GetEnumRegSubkeyCount___Open_registry_error____ld_for__s_n
call fcn.100010f0
mov eax, dword [esp + 0x10]
add esp, 0xc
pop esi
add esp, 8
ret 8
Function at 0x100065c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
push esi
push edi
xor edi, edi
call fcn.100011e0
mov esi, dword [esp + 0x14]
test eax, eax
je 0x100065e5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x108
push edi
push esi
push ecx
jmp 0x100065f4
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 8
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006642
push ebx
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x1000662e
mov edi, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [esp + 0x10]
push 0x104
push edi
push esi
push ecx
call ebp
inc esi
add edi, 0x104
cmp esi, ebx
jl 0x10006614
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ecx
ret 0x10
push esi
push eax
push str.GetEnumRegSubkeys___Open_registry_error____ld_for__s_n
call fcn.100010f0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ecx
ret 0x10

Function at 0x10006660
Capabilities:
Delete registry value

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
call fcn.10006080
call fcn.100011e0
mov esi, dword [esp + 0x14]
test eax, eax
je 0x1000668b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x2011f
push edi
push esi
push ecx
jmp 0x1000669d
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x2001f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100066fa
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100066d1
mov edx, dword [esp + 8]
push edx
lea edi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
push eax
push str.RemoveRegValue___remove_registry_error____ld_for__s_n
call fcn.100010f0
add esp, 0xc
push 2
call fcn.10006080
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
push eax
push str.RemoveRegValue___Open_registry_error____ld_for__s_n
call fcn.100010f0
add esp, 0xc
push 1
call fcn.10006080
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc