joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4191a5
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x2c
mov eax, 0x4851ad
call fcn.004847e9
cmp dword [edx + 0x14], 8
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jb 0x4191bf
mov edx, dword [edx]
xor ebx, ebx
lea eax, [ebp - 0x34]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4191f7
jle 0x4191e6
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x495c1c
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x41925b
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00419322
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41921f
lea ecx, [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x419227
mov esi, dword [esi]
mov eax, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 7
push ebx
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x419248
jle 0x4191e6
jmp 0x4191de
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041b746
call fcn.00484789
ret 8
cmp dword [esi + 0x14], 8
jb 0x419263
mov esi, dword [esi]
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x419253
jle 0x41927b
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push 0x495c1c
jmp 0x4191f1

Function at 0x41947a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x298
mov eax, 0x4852e2
call fcn.004847e9
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x29c], ebx
mov esi, ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0xff
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
je 0x41956c
test eax, eax
jne 0x419572
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0x4e
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 2
push 0x402c14
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41956c
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x298]
call fcn.0041a8b2
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x27c]
call fcn.0041a8b2
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp + 8]
call fcn.0041aec2
mov bl, al
lea ecx, [ebp - 0x27c]
neg bl
sbb bl, bl
xor eax, eax
push eax
push 1
call fcn.0041b746
xor eax, eax
lea ecx, [ebp - 0x298]
push eax
push 1
mov byte [ebp - 4], al
call fcn.0041b746
inc bl
jne 0x419579
xor ebx, ebx
inc esi
jmp 0x419498
mov byte [ebp - 0x29c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041ae72
mov eax, dword [ebp - 0x29c]
call fcn.00484789
ret 0x18
Function at 0x41ff61
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x118]
mov edi, ecx
mov esi, ebx
push 0x114
push ebx
push eax
mov byte [edi], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41ffc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41ffc6
movzx esi, si
or esi, 0x80070000
cmp dword [ebp - 0x114], 6
ja 0x41ffda
jne 0x41ffdd
cmp dword [ebp - 0x110], 2
jb 0x41ffdd
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
mov eax, esi
mov byte [edi], bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00484070
mov esp, ebp
pop ebp
ret

Function at 0x42022e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486007
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x49600c]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
mov eax, dword [0x49600c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
push 0x420110
lea ecx, [esp + 0x18]
call fcn.004222a0
and dword [esp + 0x60], 0
cmp dword [esi + 0x14], 8
jb 0x420285
mov esi, dword [esi]
lea eax, [esp + 0x14]
mov edx, SysReAllocString
push eax
push ecx
push 0x80
push 3
push 0
push 3
mov ecx, esi
call fcn.0042032b
push eax
lea ecx, [esp + 0x34]
call fcn.00421f12
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 2
call fcn.0041ae72
cmp dword [esp + 0x2c], 0xffffffff
je 0x4202f9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4202e1
xor bl, bl
jmp 0x4202f9
cmp dword [esp + 0x10], 0
jne 0x4202ec
mov bl, 1
jmp 0x4202f9
mov eax, 0xfeff
cmp word [esp + 0xc], ax
sete bl
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00421f5b
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00484070
mov esp, ebp
pop ebp
ret
Function at 0x423d0e
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486a2b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x49600c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x49600c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x18]
xor esi, esi
push eax
push esi
push 0x4000
push 0x402ab4
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x423d7b
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x495c1c
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp eax, esi
jne 0x423d8a
mov dword [esp + 0x4c], esi
jmp 0x423d9e
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x4034cc
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x88], esi
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
call fcn.0042675e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], 2
call fcn.0041ae72
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423e0f
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x423ea6
test byte [0x498580], 4
je 0x423df9
push ecx
push ecx
mov edx, edi
mov ecx, 0x406948
call fcn.0042370d
mov dword [esp + 0x14], 0x80070057
lea eax, [esp + 0x14]
push 0x495c1c
jmp 0x423d75
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x423e16
sub ecx, edx
sar ecx, 1
lea eax, [edi + ecx*2]
push eax
jmp 0x423e9a
push ebx
push edi
lea ecx, [esp + 0x28]
call fcn.004266cb
mov byte [esp + 0x88], 3
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x423e4d
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x423e85
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x423e67
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x423e85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x423ed8
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 2
call fcn.0041b746
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
mov ebx, eax
test ebx, ebx
jne 0x423e2b
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.004267d8
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00484070
mov esp, ebp
pop ebp
ret
test byte [0x498580], 8
je 0x423eef
push ecx
push ecx
mov edx, edi
mov ecx, 0x406938
call fcn.0042370d
test esi, esi
jg 0x423ef9
mov dword [esp + 0x1c], esi
jmp 0x423f05
movzx eax, si
or eax, 0x80070000
mov dword [esp + 0x1c], eax
push 0x495c1c
lea eax, [esp + 0x20]
jmp 0x423d75
Function at 0x423f18
Capabilities:
Enumerate files on windows

Disassembly:
push 0x308
mov eax, 0x486a91
call fcn.004847e9
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov edx, ebx
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004273f8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push esi
mov edx, eax
call fcn.004273c7
xor esi, esi
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0xa4]
call fcn.0041b746
push 0x423a20
lea ecx, [ebp - 0x4c]
call fcn.004222a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x423f7c
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x314]
push ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00421f12
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0041ae72
cmp dword [ebp - 0x6c], 0xffffffff
je 0x424024
push 0x5c
mov edx, ebx
lea ecx, [ebp - 0xc0]
call fcn.00427363
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.0042745b
push esi
push 1
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.0041b746
test byte [ebp - 0x314], 0x10
jne 0x423ffe
lea eax, [ebp - 0x88]
mov ecx, edi
push eax
call fcn.00421ec8
push esi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0041b746
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x423fae
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00421f5b
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.0041b746
call fcn.00484789
ret 4
Function at 0x42b720
Capabilities:
Read file via mapping

Disassembly:
push 0xd0
mov eax, 0x48795b
call fcn.004847e9
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], ebx
push ecx
mov ecx, edi
mov dword [ebp - 0xcc], edi
mov byte [ebp - 0xc8], al
mov dword [ebp - 0xc0], ebx
call fcn.0041c49d
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x5c]
push 0x420110
mov dword [ebp - 0xc0], 1
call fcn.004222a0
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], 8
jb 0x42b780
mov esi, dword [esi]
lea eax, [ebp - 0x5c]
mov edx, SysReAllocString
push eax
push ecx
push ecx
push 3
push ebx
push ecx
mov ecx, esi
call fcn.0042032b
push eax
lea ecx, [ebp - 0x7c]
call fcn.00421f12
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0041ae72
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xffffffff
je 0x42b8c3
call fcn.00423b06
mov esi, eax
test esi, esi
je 0x42b8c3
push 0x420110
lea ecx, [ebp - 0x44]
call fcn.004222a0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00421f12
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0041ae72
cmp dword [ebp - 0x9c], 0xffffffff
je 0x42b8b4
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
jne 0x42b81d
mov dword [ebp - 0x1c], ebx
jmp 0x42b82d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4036d8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0042d01d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.0041ae72
mov edx, dword [ebp - 0xbc]
test edx, edx
je 0x42b8a5
mov eax, 0xfeff
shr esi, 1
cmp word [edx], ax
jne 0x42b8a5
push dword [ebp - 0xc8]
add edx, 2
lea ecx, [ebp - 0xdc]
dec esi
push esi
call fcn.0042b8dd
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0041c40d
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 9
call fcn.0041addb
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.004267d8
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00421f5b
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.00421f5b
mov eax, edi
call fcn.00484789
ret 0xc
Function at 0x431840
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ecx
push ebx
push esi
mov esi, ecx
mov bl, 1
xor cl, cl
mov eax, dword [esi + 0x40]
cmp eax, 0xffff
je 0x4319e0
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4319e0
cmp eax, 0x29
jne 0x431888
cmp dword [esi + 0x10], 0
jne 0x4319e0
test dword [esi + 0x44], edx
jne 0x431888
push 5
call fcn.00483bca
pop ecx
jmp 0x4319c2
cmp eax, 0x2e
jne 0x4318a3
push 5
lea ecx, [esi + 0x18]
call fcn.00431af1
mov ecx, esi
call fcn.0043180e
jmp 0x4319c2
cmp eax, 0x5c
jne 0x431900
mov ecx, esi
call fcn.0043180e
mov eax, dword [esi + 0x44]
and eax, 0x80
je 0x4318d6
cmp word [esi + 0x3e], 0x62
jne 0x4318d6
push 4
lea ecx, [esi + 0x18]
call fcn.00431af1
mov ecx, esi
call fcn.0043180e
jmp 0x4319c9
test eax, eax
je 0x4318f4
cmp word [esi + 0x3e], 0x42
jne 0x4318f4
push 4
lea ecx, [esi + 0x18]
call fcn.00431af1
mov eax, dword [esi + 0x1c]
xor dword [eax + 8], 1
jmp 0x4318ca
mov ecx, esi
call fcn.00431b85
jmp 0x4319c2
cmp eax, 0x5b
jne 0x43192a
mov ecx, esi
call fcn.0043180e
mov ecx, esi
call fcn.00431b32
cmp dword [esi + 0x40], 0x5d
je 0x431897
push 4
call fcn.00483bca
pop ecx
jmp 0x431897
cmp eax, 0x28
jne 0x431956
mov ecx, esi
call fcn.0043180e
mov ecx, esi
call fcn.00431c61
cmp dword [esi + 0x40], 0x29
mov bl, al
je 0x43194d
push 5
call fcn.00483bca
pop ecx
mov ecx, esi
call fcn.0043180e
jmp 0x4319be
cmp eax, 0x5e
jne 0x431962
push 2
jmp 0x4318c2
cmp eax, 0x24
jne 0x43196e
push 3
jmp 0x4318c2
cmp eax, 0x2a
je 0x4319b6
cmp eax, 0x2b
je 0x4319b6
cmp eax, 0x3f
je 0x4319b6
cmp eax, 0x7b
je 0x4319b6
cmp eax, 0x7d
jne 0x431993
test dword [esi + 0x44], edx
jne 0x431993
push 6
jmp 0x43187d
cmp eax, 0x5d
jne 0x4319a4
test dword [esi + 0x44], edx
jne 0x4319a4
push 4
jmp 0x43187d
movzx eax, word [esi + 0x3e]
lea ecx, [esi + 0x18]
push eax
call fcn.00431e54
jmp 0x431897
push 0xa
call fcn.00483bca
pop ecx
test bl, bl
je 0x4319c9
mov ecx, esi
call fcn.00431d6c
mov eax, dword [esi + 0x40]
mov cl, 1
mov bl, cl
mov edx, 0x10000000
cmp eax, 0xffff
jne 0x43185e
pop esi
mov al, cl
pop ebx
pop ecx
ret

Function at 0x432fb5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push 1
push ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x18], eax
test eax, eax
jne 0x432fd9
call fcn.004239f3
mov esi, eax
test esi, esi
js 0x432fff
push ebx
push ebx
push edi
push 0x433020
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x432ffb
call fcn.004239f3
mov esi, eax
test esi, esi
jns 0x43300d
cmp dword [edi + 0x18], ebx
je 0x43300d
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4371bf
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x488cf4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49600c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x49600c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [ecx]
lea ecx, [esp + 0xc]
and dword [esp + 0x1c], 0
push ecx
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
and dword [esp + 0x30], 0
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jne 0x437231
mov ecx, dword [ebp + 8]
push 0x4064a4
call fcn.0041a8b2
jmp 0x43723a
push eax
push dword [ebp + 8]
call fcn.00437a90
lea ecx, [esp + 0xc]
call fcn.0041b899
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00484070
mov esp, ebp
pop ebp
ret 4

Function at 0x43e632
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x43e68e
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x43e656
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x43e64e
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00418ca7
int3
Function at 0x43ec01
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49600c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x220]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x43ed0e
cmp dword [ebp - 0x218], esi
je 0x43ec6e
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
test esi, esi
jne 0x43ed0e
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
jmp 0x43ecd5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0043ec01
mov esi, eax
test esi, esi
jne 0x43ed0e
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x43ec9e
cmp dword [ebp - 0x218], 0
je 0x43ed04
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
push ebx
mov ecx, edi
call fcn.00418d32
mov esi, eax
cmp dword [ebp - 0x218], 0
je 0x43ed23
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484070
mov esp, ebp
pop ebp
ret 4
Function at 0x43f6a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x489955
call fcn.0048485f
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x43f703
call fcn.00418c3b
mov esi, eax
jmp 0x43f81b
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x43f722
call fcn.00418c3b
jmp 0x43f812
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x43f718
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x43f76e
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x43f764
lea ecx, [ebp - 0x418]
call fcn.0043e210
mov esi, 0x8007000e
jmp 0x43f834
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0043e6c9
cmp eax, 0x400
jbe 0x43f795
push eax
lea ecx, [ebp - 0x418]
call fcn.0043e230
mov eax, dword [ebp - 0x418]
jmp 0x43f7a1
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x43f7cb
test eax, eax
jne 0x43f7d6
mov esi, 0x8007000e
jmp 0x43f814
push ebx
push eax
push ebx
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x43f718
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.0043f544
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x43f834
lea ecx, [ebp - 0x418]
call fcn.0043e210
lea ecx, [ebp - 0x428]
call fcn.00418c71
mov eax, esi
call fcn.0048479d
ret 0x10
Function at 0x443c42
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x48a0d2
call fcn.00484824
test ecx, ecx
jne 0x443c5c
mov eax, 0x810002
jmp 0x443e92
xor ebx, ebx
lea edi, [ecx + 0x4b8]
mov dword [ebp - 4], ebx
test edx, edx
je 0x443c86
cmp edx, 3
je 0x443c78
push 5
pop ebx
jmp 0x443e85
mov eax, dword [ebp + 8]
mov dword [edi + 0x25c], eax
jmp 0x443e85
mov edx, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov eax, edx
shr eax, 6
and al, cl
mov byte [edi + 0x220], al
mov al, dl
and al, cl
mov byte [edi + 0x21d], al
mov eax, edx
shr eax, 2
and al, cl
mov byte [edi + 0x21c], al
mov eax, edx
shr eax, 0x11
and al, cl
mov byte [edi + 0x21f], al
mov eax, edx
shr eax, 1
and al, cl
mov byte [edi + 0x21b], al
mov eax, edx
shr eax, 0xe
and al, cl
mov byte [edi + 0x21e], al
mov eax, edx
shr eax, 0xf
and al, cl
mov byte [edi + 0x258], al
mov eax, edx
shr eax, 4
and al, cl
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x1c
and al, cl
mov ecx, edx
mov dword [ebp - 0x18], eax
mov byte [edi + 0x238], al
mov eax, edx
shr eax, 0x1e
and eax, 0xffffff01
shr ecx, 0x1d
mov dword [ebp - 0x14], eax
and cl, 1
mov byte [edi + 0x23a], al
mov eax, edx
mov byte [edi + 0x239], cl
and eax, 0xf0000000
je 0x443d69
cmp eax, 0x10000000
je 0x443d58
cmp eax, 0x20000000
je 0x443d4d
cmp eax, 0x30000000
jne 0x443d78
xor eax, eax
inc eax
mov byte [edi + 0x23e], al
mov byte [edi + 0x23d], al
jmp 0x443d61
mov word [edi + 0x23c], 1
jmp 0x443d72
mov word [edi + 0x23d], 0x100
mov byte [edi + 0x23c], bl
jmp 0x443d78
mov word [edi + 0x23c], 0x100
mov byte [edi + 0x23e], bl
mov eax, dword [ebp - 0x14]
mov byte [edi + 0x21a], cl
mov byte [edi + 1], cl
mov ecx, edx
mov byte [edi + 2], al
mov eax, dword [ebp - 0x18]
mov byte [edi], al
and ecx, 0x10000000
je 0x443da6
test edx, 0x20000000
je 0x443da6
mov dword [edi + 0x228], ebx
jmp 0x443db4
xor eax, eax
test ecx, ecx
sete al
inc eax
mov dword [edi + 0x228], eax
mov esi, edx
and esi, 0x40000000
je 0x443dca
test edx, edx
jns 0x443dca
mov dword [edi + 0x22c], ebx
jmp 0x443dd8
xor eax, eax
test esi, esi
sete al
inc eax
mov dword [edi + 0x22c], eax
test ecx, ecx
je 0x443dec
test edx, 0x20000000
je 0x443dec
mov dword [edi + 0x234], ebx
jmp 0x443dfa
xor eax, eax
test ecx, ecx
sete al
inc eax
mov dword [edi + 0x234], eax
mov eax, dword [edi + 0x10]
mov esi, 0x3ff
and eax, esi
cmp ax, 0x16
jne 0x443e11
mov ecx, edi
call fcn.00444dc9
mov ecx, edi
call fcn.00451595
mov eax, dword [edi + 0x10]
xor ecx, ecx
and eax, esi
inc ecx
cmp ax, cx
jne 0x443e85
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x412a88
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x443e85
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x412ab8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x443e85
cmp dword [ebp - 0x1c], ebx
je 0x443e85
xor eax, eax
mov ecx, edi
inc eax
mov byte [edi + 0x23a], al
call fcn.00451595
mov eax, ebx
jmp 0x443e92
call fcn.00484770
ret 4