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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43b515
push ebx
push edi
xor edi, edi
push str.2411780a82e856b84c8adf1dcc074c07
mov dword [ebp + 8], edi
call fcn.0045c480
mov ebx, dword [ebp + 0xc]
mov edx, edi
pop ecx
test ebx, ebx
je 0x43b4d2
mov cl, byte [edi + str.2411780a82e856b84c8adf1dcc074c07]
xor byte [edx + esi], cl
inc edi
xor ecx, ecx
cmp edi, eax
cmovge edi, ecx
inc edx
cmp edx, ebx
jb 0x43b4bc
cmp ebx, 1
jle 0x43b509
cmp byte [esi], 0x37
jne 0x43b509
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x43b4e7
cmp al, 0x5a
jne 0x43b509
lea eax, [ebp + 8]
push eax
push ebx
push esi
call fcn.00425510
test eax, eax
je 0x43b509
mov edx, dword [ebp + 8]
test edx, edx
je 0x43b509
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x43b513
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x43bb80
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0045c456
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043160f
push dword [ebp + 8]
mov edi, eax
push edi
mov dword [ebp - 4], edi
call fcn.0045c434
add esp, 0x10
call fcn.00435952
test al, al
je 0x43bbe3
pop ecx
pop edx
push esi
pop edx
push ebx
push esp
pop esp
push edi
pop esp
pop esi
push ecx
pop esp
pop ebp
pop eax
push edx
pop edi
pop esp
pop ecx
push ebx
pop edi
push ebp
pop edi
pop edx
push esi
push ecx
pop ebp
pop eax
pop ecx
push esi
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 0xc], ebx
test eax, eax
js 0x43bc58
cmp word [edi + ebx*2], 0x5c
jne 0x43bc4d
call fcn.00435a21
test al, al
je 0x43bc25
pop eax
push esp
pop ebx
push ebx
pop eax
pop ebp
pop edi
pop ebx
push ebp
pop eax
push ecx
push edi
push eax
push edi
pop esi
pop ebx
pop esi
push ecx
pop esi
pop ecx
pop ecx
pop ebx
pop eax
push ebp
pop eax
push ecx
pop esp
pop ebx
push edx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
movzx esi, word [edi + ebx*2]
xor eax, eax
push edi
mov word [edi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43bc46
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43bc68
mov eax, dword [ebp - 8]
mov word [edi + ebx*2], si
inc ebx
mov dword [ebp - 0xc], ebx
cmp ebx, eax
jle 0x43bbf2
xor esi, esi
inc esi
push edi
call fcn.00431618
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x43bc58
Function at 0x43bc6c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
call fcn.0043cf76
lea eax, [ebp - 0x20c]
push eax
call fcn.0045c456
add esp, 0x14
mov dword [ebp - 0x210], eax
call fcn.0043576f
test al, al
je 0x43bcdf
push ebp
pop ecx
push esp
push eax
pop ebp
push esp
push edi
push edx
pop edi
pop edx
pop esp
push ecx
pop esi
push ebp
pop esp
pop edi
pop ebx
push eax
push esp
pop ebp
pop edx
push eax
push ebp
pop edx
push edi
push ebx
push ebp
call fcn.00435af0
test al, al
je 0x43bd05
push edi
push ebp
pop eax
pop edx
push esp
pop esi
push ecx
pop ebx
pop ebx
pop esp
pop edi
pop edi
pop ebx
push ebp
pop edx
pop edx
push esp
push esp
pop ebx
push esi
pop ecx
pop esp
pop esp
pop edx
push eax
push eax
pop esp
push edx
pop ebp
cmp dword [ebp - 0x210], 0
je 0x43bddc
mov esi, 0x5b1258
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045c3c3
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0045c3c3
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045c3c3
add esp, 0x18
call fcn.0043558c
test al, al
je 0x43bd67
push edi
push esp
push esp
pop ebp
pop ebp
push esi
pop ecx
pop edx
pop esp
pop edx
push eax
push eax
push edi
push edx
pop edx
push ebp
pop edx
push esi
pop edx
push ebp
push eax
pop esp
pop edx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43bd85
lea eax, [ebp - 0x20c]
push eax
call fcn.0043bb80
pop ecx
call fcn.004359dc
test al, al
je 0x43bdae
push edx
pop ebp
push ebp
pop esp
push esp
push esp
push edx
push edi
push esp
push edx
push ecx
pop edi
pop ecx
push eax
pop ecx
push edi
push ebp
pop esp
push esp
push edx
push ecx
push edx
pop eax
push edi
pop esp
push eax
push ebx
push eax
push esp
pop ecx
push ecx
pop ebx
cmp word [ebp - 0x20c], 0
jne 0x43bdbc
xor eax, eax
jmp 0x43bdc9
lea eax, [ebp - 0x20c]
push eax
call fcn.0045c456
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00408220
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004315db
mov esp, ebp
pop ebp
ret
Function at 0x43c9b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x640828], 0
push ebx
push esi
push edi
je 0x43ca08
call fcn.004359dc
test al, al
je 0x43caef
push edx
pop ebp
push ebp
pop esp
push esp
push esp
push edx
push edi
push esp
push edx
push ecx
pop edi
pop ecx
push eax
pop ecx
push edi
push ebp
pop esp
push esp
push edx
push ecx
push edx
pop eax
push edi
pop esp
push eax
push ebx
push eax
push esp
pop ecx
push ecx
pop ebx
jmp 0x43caef
call fcn.0043576f
test al, al
je 0x43ca29
push edx
push esi
pop ebp
pop ecx
pop ecx
pop esp
push ecx
pop eax
pop edx
pop ebx
pop edx
push ebx
pop edi
pop edi
push edi
push ebp
push eax
push esp
push edx
push eax
pop edx
push ebp
pop ecx
push ecx
call fcn.004357b4
test al, al
je 0x43ca42
push ecx
pop ecx
push edx
push ecx
push edx
push eax
push ecx
push eax
push edi
pop ecx
push edx
pop ebx
push ebp
push ebp
push eax
push eax
call fcn.00435b35
test al, al
je 0x43ca60
pop esi
pop ebp
pop ecx
pop esp
push ecx
push esi
pop esi
push edx
push ebx
pop edi
pop ecx
pop eax
pop eax
push edi
push edi
push eax
push edx
pop esp
push ebp
push eax
push ecx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044e770
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43cad0
lea eax, [ebp - 0x20c]
push eax
call fcn.0045a728
lea eax, [ebp - 0x20c]
mov dword [esp], 0x5b272c
push eax
call fcn.0044e97d
pop ecx
pop ecx
test eax, eax
jne 0x43cac9
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0044e97d
pop ecx
pop ecx
test eax, eax
je 0x43cad0
mov byte [0x640828], 1
call fcn.0043576f
test al, al
je 0x43caef
push ebp
push ebx
push ebx
push ecx
push esp
pop ebx
push edx
pop ebx
push edx
push esi
pop ebp
pop edx
pop ebp
push esi
push ecx
pop esp
pop esp
pop ecx
push ebx
pop edi
pop esp
pop eax
mov ecx, dword [ebp - 4]
mov al, byte [0x640828]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004315db
mov esp, ebp
pop ebp
ret

Function at 0x43cb05
Capabilities:
Get common file path

Disassembly:
push 0x138
mov eax, 0x5adfab
call fcn.00431b4a
mov al, byte [0x640829]
test al, al
jne 0x43cbce
push 0x104
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0044e770
add esp, 0xc
lea eax, [ebp - 0x114]
xor edi, edi
inc edi
push edi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x43cbc9
push str.config_systemprofile
lea ecx, [ebp - 0x12c]
call fcn.0040d060
lea eax, [ebp - 0x114]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x144]
call fcn.0040d060
push dword [ebp - 0x11c]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push esi
cmovae eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x144]
push eax
call fcn.0040ec00
movzx ecx, byte [0x640829]
cmp eax, 0xffffffff
push esi
cmovne ecx, edi
mov byte [0x640829], cl
lea ecx, [ebp - 0x144]
push edi
call fcn.00411f50
push esi
push edi
lea ecx, [ebp - 0x12c]
call fcn.00411f50
mov al, byte [0x640829]
call fcn.00431af4
ret
Function at 0x43da18
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0044e770
add esp, 0xc
mov dword [ebp - 0x120], esi
call fcn.00435af0
test al, al
je 0x43da64
push ecx
push ecx
pop ebp
pop esi
push edi
pop ecx
pop ebx
pop eax
pop ebx
push edi
push edi
push ecx
pop esi
pop ecx
pop edi
pop edi
call fcn.00435b35
test al, al
je 0x43da8b
push ebp
push ecx
pop eax
push eax
pop edx
push esp
pop esp
pop ebp
pop esp
push esi
pop edi
pop edi
pop eax
pop ebp
push edi
pop eax
pop ecx
pop ecx
push ecx
pop esi
push esp
pop edi
pop esi
pop ebp
pop esi
pop edx
pop esi
pop esi
pop ebx
pop esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x43dabb
xor eax, eax
inc eax
cmp dword [ebp - 0x118], 0
je 0x43dab5
cmp dword [ebp - 0x118], eax
jne 0x43dabb
cmp byte [ebp - 6], 1
je 0x43db2b
call fcn.00435997
test al, al
je 0x43dadf
pop esp
push edi
push esi
push edi
push edx
push ecx
pop esp
push edi
push edi
pop ecx
push edx
pop edi
push eax
push ecx
pop edi
pop eax
pop edx
push edi
push esi
push eax
pop eax
pop ebp
pop esi
push ebp
pop ecx
pop edx
push ebx
call fcn.0043590d
test al, al
je 0x43db03
pop edx
push ebp
pop ebp
pop edi
push ecx
push edx
pop edi
pop eax
push esp
push esp
pop esp
push edx
push ecx
push ebx
push ecx
pop esi
pop edi
push esp
pop ebx
pop eax
push ecx
pop edx
pop edx
push eax
pop edi
pop esp
pop esi
call fcn.0043558c
test al, al
je 0x43db29
pop ebx
pop edx
push edx
push esp
pop esi
pop ebx
pop esp
push esi
push ebp
push esi
pop ebx
pop edi
push ebp
pop ebx
push edi
pop ebp
push ebp
push ecx
pop ecx
push ebx
push ebx
pop ecx
pop esp
push ebx
push esp
pop eax
pop ecx
push eax
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004315db
mov esp, ebp
pop ebp
ret
Function at 0x43db3c
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0044e770
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.00435952
test al, al
je 0x43dba8
pop esp
push edi
push ebp
pop ebx
pop ebp
pop edx
push edx
push ebp
pop edx
push ebp
push ebx
push ebx
push ebp
push esi
push edi
push edi
push ebx
pop esp
pop ebx
pop eax
push esi
pop esi
call fcn.0043590d
test al, al
je 0x43dbd0
pop esp
push ebp
pop edx
push ecx
push ebp
pop ebx
pop edx
push ebx
push ecx
push esi
push ebx
push ebx
pop esp
push esp
pop edx
push esp
push edi
pop esi
pop esi
push edx
pop edi
pop ecx
push ebp
push esp
pop esi
pop ebp
pop esi
push ebp
pop eax
pop ecx
push esp
mov eax, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x118]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], ebx
call fcn.0043590d
test al, al
je 0x43dc17
push ebx
push ebx
push esi
pop edi
push ebx
pop edx
pop ebx
pop edx
pop ebp
push ecx
pop esp
pop esi
push ebx
push esp
push esi
pop edx
pop ecx
push esi
push ebx
pop esp
push edi
push ecx
push esp
pop ecx
pop ebp
push edi
pop esp
push esi
push edi
pop esp
pop esi
pop ebp
mov ebx, dword [ebp - 0x124]
cmp dword [ebp - 0x128], 5
jg 0x43dc2a
cmp ebx, 2
jg 0x43dc2a
xor eax, eax
inc eax
jmp 0x43dc2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004315db
mov esp, ebp
pop ebp
ret

Function at 0x43dc5b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044e770
push 0x5b12b8
lea eax, [ebp - 0x20c]
push str.C:log_s.log
push eax
call fcn.00408530
add esp, 0x18
call fcn.00435bbf
test al, al
je 0x43dcb8
push ebp
push ebx
push esp
push esp
push esp
pop ecx
push ebx
pop esi
push edi
push ebx
pop eax
pop ebp
push ebx
push eax
pop ecx
pop esp
push edi
push esi
push ebp
pop eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.004315db
mov esp, ebp
pop ebp
ret
Function at 0x43ddaa
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00431860
mov eax, dword [0x63a188]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2008], eax
call fcn.0043dc5b
test eax, eax
je 0x43df90
xor ebx, ebx
push ebx
call fcn.004553f8
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push eax
mov dword [ebp - 0x2014], edx
call fcn.0045aa55
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x2004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.0043dc3d
add esp, 0x28
call fcn.00435a21
test al, al
je 0x43de54
pop ecx
pop ebx
push edi
pop eax
pop ebx
pop edi
push eax
push ebx
push edi
push ebx
push eax
push edi
pop ecx
push ebx
pop eax
pop eax
push ebx
pop edi
push ebx
xor ebx, ebx
push dword [ebp - 0x2008]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
inc esi
test eax, eax
cmovne ebx, esi
call fcn.00435952
test al, al
je 0x43de91
pop ecx
pop edx
push esi
pop edx
push ebx
push esp
pop esp
push edi
pop esp
pop esi
push ecx
pop esp
pop ebp
pop eax
push edx
pop edi
pop esp
pop ecx
push ebx
pop edi
push ebp
pop edi
pop edx
push esi
push ecx
pop ebp
pop eax
pop ecx
push esi
xor esi, esi
inc esi
push 0x5b74b8
push dword [ebp - 0x2008]
call fcn.0045b1a2
mov dword [ebp - 0x2010], eax
pop ecx
pop ecx
test eax, eax
je 0x43df90
test ebx, ebx
jne 0x43ded2
push eax
push 2
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0xfeff
push esi
push eax
call fcn.0045f120
add esp, 0x10
call fcn.00435997
test al, al
je 0x43deed
pop esi
push esi
pop ebx
push ebx
push ecx
push ecx
push esi
pop eax
push eax
pop esi
push esi
push esp
push esp
pop edx
pop eax
pop eax
push ebx
pop esi
call fcn.00435af0
test al, al
je 0x43df11
pop edx
push edx
pop ebx
push edi
push ebp
pop edi
push ebp
push edx
push eax
pop esi
push esp
pop ebp
push esi
pop ebx
push esi
pop ebp
push edx
push esp
push eax
pop edx
pop eax
pop edi
pop eax
pop ecx
push esp
pop ecx
pop esp
call fcn.004357f9
test al, al
je 0x43df2d
pop eax
pop ebp
pop edi
push eax
push edx
pop ebp
pop ebx
pop esi
pop esi
pop ecx
push eax
push ecx
push edx
pop ebp
pop edx
push edx
pop ebx
pop edi
push ecx
lea eax, [ebp - 0x2004]
push eax
call fcn.0045c456
mov esi, dword [ebp - 0x2010]
add eax, eax
push esi
push eax
lea eax, [ebp - 0x2004]
push 1
push eax
call fcn.0045f120
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xd
push 1
push eax
call fcn.0045f120
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xa
push 1
push eax
call fcn.0045f120
push esi
call fcn.0045afa0
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004315db
mov esp, ebp
pop ebp
ret
Function at 0x43e29e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x43e2b2
xor eax, eax
jmp 0x43e3f0
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x43e2db
dec edx
sub edx, 1
jne 0x43e2dd
add eax, 2
jmp 0x43e2dd
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x43e2f0
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x43e3ef
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x43e386
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x5b74c0]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x5b74c0]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x5b74c0]
mov byte [edi + 2], al
mov al, byte [esi + 0x5b74c0]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x43e31b
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x43e389
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x43e3e2
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x43e39e
movzx ecx, byte [eax + 1]
jmp 0x43e3a0
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x5b74c0]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x5b74c0]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x43e3d7
and ecx, 0xf
mov al, byte [ecx*4 + 0x5b74c0]
mov byte [edi + 2], al
jmp 0x43e3db
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441d53
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x5ae5a4
call fcn.00431b4a
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and dword [ebp - 0x24c], 0
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x254], esi
call fcn.0044e770
add esp, 0xc
call fcn.00435a21
test al, al
je 0x441dad
pop ecx
pop ebx
push edi
pop eax
pop ebx
pop edi
push eax
push ebx
push edi
push ebx
push eax
push edi
pop ecx
push ebx
pop eax
pop eax
push ebx
pop edi
push ebx
push 0x104
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
push ebx
jmp 0x441ec5
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x441eb7
call fcn.00435997
test al, al
je 0x441e07
pop ebx
pop ecx
pop esi
push esp
push ebx
push edi
push eax
pop esp
push ecx
push edi
push ebx
pop esp
push edi
push edx
push esi
pop eax
pop ebx
pop ebx
push eax
pop edi
mov esi, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x250]
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x441e37
lea eax, [ebp - 0x218]
push eax
call fcn.0045c456
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408220
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004433fe
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.0042c46b
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.004428d6
pop ecx
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.00411f50
push 0x104
lea eax, [ebp - 0x218]
inc ebx
push eax
push ebx
push esi
mov dword [ebp - 0x250], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x441dc1
call fcn.00431af4
ret
Function at 0x4427ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf013f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44281d
xor eax, eax
jmp 0x4428cf
call fcn.0043576f
test al, al
je 0x44283e
push edx
push esi
pop ebp
pop ecx
pop ecx
pop esp
push ecx
pop eax
pop edx
pop ebx
pop edx
push ebx
pop edi
pop edi
push edi
push ebp
push eax
push esp
push edx
push eax
pop edx
push ebp
pop ecx
push ecx
call fcn.004357b4
test al, al
je 0x442857
push ecx
pop ecx
push edx
push ecx
push edx
push eax
push ecx
push eax
push edi
pop ecx
push edx
pop ebx
push ebp
push ebp
push eax
push eax
call fcn.00435b35
test al, al
je 0x442877
pop esi
pop ebp
pop ecx
pop esp
push ecx
push esi
pop esi
push edx
push ebx
pop edi
pop ecx
pop eax
pop eax
push edi
push edi
push eax
push edx
pop esp
push ebp
push eax
push ecx
xor esi, esi
push dword [ebp + 0x14]
call fcn.0045c456
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
call fcn.0043583e
test al, al
je 0x4428cc
push esi
pop ebp
pop ebp
pop edi
push esi
push esp
push ebp
push esi
pop ebp
push edx
pop ecx
pop ebp
pop esi
pop esi
push edi
pop esp
push esp
pop ebx
pop ebp
push esi
push ebp
pop ebx
pop ebx
push ebp
push eax
push esi
pop edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret