joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c270
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 4
sub ebx, 0x1610c
and ebx, 0xa46c
and ebx, 0xf983
pop ebx
push ecx
push eax
add esp, 4
or ecx, 0xd1e9
sub ecx, 0x5197
pop ecx
push edi
sub edi, 0x174d5
pop edi
mov ecx, dword [ebp - 0xc34]
mov dx, word [ecx]
mov word [ebp - 0xf86], dx
mov eax, dword [ebp - 0xc34]
add eax, 2
mov dword [ebp - 0xc34], eax
mov cx, word [ebp - 0xf86]
mov word [ebp - 0x200], cx
mov edx, dword [ebp - 0xc38]
mov ax, word [edx]
mov word [ebp - 0xf88], ax
mov ecx, dword [ebp - 0xc38]
add ecx, 2
mov dword [ebp - 0xc38], ecx
mov dx, word [ebp - 0xf88]
mov word [ebp - 0x34], dx
push ebx
jmp 0x47c244
sub ebx, 0x143f
or ebx, 0x1189b
pop ebx
push edi
or edi, 0x17d53
sub edi, 0x3c0f
call 0x47c26c
add byte [edx + 0x40], cl
inc ebx
xor al, 0x34
dec edx
aas
inc esp
add esp, 4
pop edi
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x47c28d
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x47c2e7
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x47c1b5
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x47c1b5
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x47c2d1
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x47c2db
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x47c330
push eax
and eax, 0x12afa
or eax, 0x120c5
call 0x47c30a
add byte [edx + 0x41], cl
inc eax
inc ebx
xor eax, 0xc4834946
add al, 0x58
push ebx
sub ebx, 0xf69d
or ebx, 0x1669f
xor ebx, 0x184ec
pop ebx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x47c398
push edi
push edi
add esp, 4
call 0x47c342
add byte [esp + ecx*2], dh
aaa
inc esi
dec edi
push eax
add esp, 4
call 0x47c352
add byte [eax + 0x3a], cl
aas
inc edx
inc edi
cmp eax, 0x4c4834e
jmp 0x47c35b
or edi, 0x15edc
pop edi
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x47c38e
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x47c159
mov dword [ebp - 0x2e0], 0
Function at 0x47c30a
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 4
sub ebx, 0x1610c
and ebx, 0xa46c
and ebx, 0xf983
pop ebx
push ecx
push eax
add esp, 4
or ecx, 0xd1e9
sub ecx, 0x5197
pop ecx
push edi
sub edi, 0x174d5
pop edi
mov ecx, dword [ebp - 0xc34]
mov dx, word [ecx]
mov word [ebp - 0xf86], dx
mov eax, dword [ebp - 0xc34]
add eax, 2
mov dword [ebp - 0xc34], eax
mov cx, word [ebp - 0xf86]
mov word [ebp - 0x200], cx
mov edx, dword [ebp - 0xc38]
mov ax, word [edx]
mov word [ebp - 0xf88], ax
mov ecx, dword [ebp - 0xc38]
add ecx, 2
mov dword [ebp - 0xc38], ecx
mov dx, word [ebp - 0xf88]
mov word [ebp - 0x34], dx
push ebx
jmp 0x47c244
sub ebx, 0x143f
or ebx, 0x1189b
pop ebx
push edi
or edi, 0x17d53
sub edi, 0x3c0f
call 0x47c26c
add byte [edx + 0x40], cl
inc ebx
xor al, 0x34
dec edx
aas
inc esp
add esp, 4
pop edi
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x47c28d
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x47c2e7
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x47c1b5
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x47c1b5
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x47c2d1
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x47c2db
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x47c330
push eax
and eax, 0x12afa
or eax, 0x120c5
call 0x47c30a
add byte [edx + 0x41], cl
inc eax
inc ebx
xor eax, 0xc4834946
add al, 0x58
push ebx
sub ebx, 0xf69d
or ebx, 0x1669f
xor ebx, 0x184ec
pop ebx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x47c398
push edi
push edi
add esp, 4
call 0x47c342
add byte [esp + ecx*2], dh
aaa
inc esi
dec edi
push eax
add esp, 4
call 0x47c352
add byte [eax + 0x3a], cl
aas
inc edx
inc edi
cmp eax, 0x4c4834e
jmp 0x47c35b
or edi, 0x15edc
pop edi
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x47c38e
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x47c159
mov dword [ebp - 0x2e0], 0
Function at 0x47c342
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 4
sub ebx, 0x1610c
and ebx, 0xa46c
and ebx, 0xf983
pop ebx
push ecx
push eax
add esp, 4
or ecx, 0xd1e9
sub ecx, 0x5197
pop ecx
push edi
sub edi, 0x174d5
pop edi
mov ecx, dword [ebp - 0xc34]
mov dx, word [ecx]
mov word [ebp - 0xf86], dx
mov eax, dword [ebp - 0xc34]
add eax, 2
mov dword [ebp - 0xc34], eax
mov cx, word [ebp - 0xf86]
mov word [ebp - 0x200], cx
mov edx, dword [ebp - 0xc38]
mov ax, word [edx]
mov word [ebp - 0xf88], ax
mov ecx, dword [ebp - 0xc38]
add ecx, 2
mov dword [ebp - 0xc38], ecx
mov dx, word [ebp - 0xf88]
mov word [ebp - 0x34], dx
push ebx
jmp 0x47c244
sub ebx, 0x143f
or ebx, 0x1189b
pop ebx
push edi
or edi, 0x17d53
sub edi, 0x3c0f
call 0x47c26c
add byte [edx + 0x40], cl
inc ebx
xor al, 0x34
dec edx
aas
inc esp
add esp, 4
pop edi
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x47c28d
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x47c2e7
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x47c1b5
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x47c1b5
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x47c2d1
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x47c2db
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x47c330
push eax
and eax, 0x12afa
or eax, 0x120c5
call 0x47c30a
add byte [edx + 0x41], cl
inc eax
inc ebx
xor eax, 0xc4834946
add al, 0x58
push ebx
sub ebx, 0xf69d
or ebx, 0x1669f
xor ebx, 0x184ec
pop ebx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x47c398
push edi
push edi
add esp, 4
call 0x47c342
add byte [esp + ecx*2], dh
aaa
inc esi
dec edi
push eax
add esp, 4
call 0x47c352
add byte [eax + 0x3a], cl
aas
inc edx
inc edi
cmp eax, 0x4c4834e
jmp 0x47c35b
or edi, 0x15edc
pop edi
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x47c38e
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x47c159
mov dword [ebp - 0x2e0], 0
Function at 0x47c352
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 4
sub ebx, 0x1610c
and ebx, 0xa46c
and ebx, 0xf983
pop ebx
push ecx
push eax
add esp, 4
or ecx, 0xd1e9
sub ecx, 0x5197
pop ecx
push edi
sub edi, 0x174d5
pop edi
mov ecx, dword [ebp - 0xc34]
mov dx, word [ecx]
mov word [ebp - 0xf86], dx
mov eax, dword [ebp - 0xc34]
add eax, 2
mov dword [ebp - 0xc34], eax
mov cx, word [ebp - 0xf86]
mov word [ebp - 0x200], cx
mov edx, dword [ebp - 0xc38]
mov ax, word [edx]
mov word [ebp - 0xf88], ax
mov ecx, dword [ebp - 0xc38]
add ecx, 2
mov dword [ebp - 0xc38], ecx
mov dx, word [ebp - 0xf88]
mov word [ebp - 0x34], dx
push ebx
jmp 0x47c244
sub ebx, 0x143f
or ebx, 0x1189b
pop ebx
push edi
or edi, 0x17d53
sub edi, 0x3c0f
call 0x47c26c
add byte [edx + 0x40], cl
inc ebx
xor al, 0x34
dec edx
aas
inc esp
add esp, 4
pop edi
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x47c28d
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x47c2e7
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x47c1b5
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x47c1b5
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x47c2d1
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x47c2db
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x47c330
push eax
and eax, 0x12afa
or eax, 0x120c5
call 0x47c30a
add byte [edx + 0x41], cl
inc eax
inc ebx
xor eax, 0xc4834946
add al, 0x58
push ebx
sub ebx, 0xf69d
or ebx, 0x1669f
xor ebx, 0x184ec
pop ebx
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x47c398
push edi
push edi
add esp, 4
call 0x47c342
add byte [esp + ecx*2], dh
aaa
inc esi
dec edi
push eax
add esp, 4
call 0x47c352
add byte [eax + 0x3a], cl
aas
inc edx
inc edi
cmp eax, 0x4c4834e
jmp 0x47c35b
or edi, 0x15edc
pop edi
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x47c38e
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x47c159
mov dword [ebp - 0x2e0], 0
Function at 0x47c748
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add byte [ecx + 0x76f1], al
add byte [ecx + 0xca2de9], al
add byte [ecx + 0x57], bl
Function at 0x47d6ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec ebp
rcl byte [ebx - 0x7f], 0xf3
add ecx, ebp
add byte [eax], al
Function at 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
mov ebx, 0x9ab336dc
call fcn.0043b684
add eax, 0xb96e8e4b
push ebx
pop eax
xor dword [edx], esi
sub eax, 0x46c11e9a
add ebx, 1
mov ebx, ebx
inc edx
sub ebx, ebx
cmp edx, ecx
jne fcn.0043b64b
mov ebx, 0x9bba7974
sub ebx, eax
ret
Function at 0x401400
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401490
lea ecx, [esp + 4]
push ecx
push 0x416d30
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401490
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401490
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
add esp, 0x1c
ret 4

Function at 0x4014a0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ecx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetShellWindow]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x31a0
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x31a1
push ecx
call edi
push 5
push eax
call ebx
mov edx, dword [esi + 4]
push 0x319d
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x31a3
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x31a2
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x31a4
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x31a5
push eax
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 0x24]
pop edi
pop ebx
test eax, eax
je 0x40153c
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea ecx, [esp]
push ecx
push 0
push esi
push 0x401560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop ecx
ret
Function at 0x401ec0
Capabilities:
Check os version
Get token membership

Disassembly:
sub esp, 0x174
mov eax, dword [0x41a06c]
xor eax, esp
mov dword [esp + 0x170], eax
push esi
push edi
lea eax, [esp + 8]
push eax
xor edi, edi
push 1
push 0xa
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x401f1a
lea ecx, [esp + 8]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401fd1
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401fd1
cmp dword [esp + 0x24], 6
jb 0x401f7b
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x401fd1
cmp dword [esp + 0x14], 3
jne 0x401f7b
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x401fd1
cmp dword [esp + 0xc], edi
jne 0x401f97
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x401fd1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x138]
push eax
push edi
push 0x1a
mov dword [esp + 0x28], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x401fd1
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x138]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], edi
jne 0x401fe4
push edi
call esi
mov dword [esp + 8], edi
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401fef
push eax
call esi
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.00408425
add esp, 0x174
ret

Function at 0x402010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x60
mov eax, dword [0x41a06c]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoFeatureStatus
push 0x80000002
mov esi, 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4020a0
push 0xea6a
lea ecx, [esp + 0x14]
push str.TSUpsInfo_08X
push ecx
mov dword [esp + 0x18], 4
call fcn.0040872e
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402095
cmp dword [esp + 8], esi
jne 0x402095
xor esi, esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x60]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00408425
add esp, 0x60
ret
Function at 0x4034c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4034d0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4034e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4039a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41a06c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x403a1a
xor eax, eax
cmp ecx, ebp
je 0x403a02
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x403a28
cmp ecx, ebp
je 0x403abb
push ecx
jmp 0x403ab5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x403a8a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004039a0
mov ebx, eax
cmp ebx, ebp
jne 0x403ad8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x403a50
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x403a9d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00403b50
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x403abb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408425
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x403ae7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403abd
Function at 0x4045c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x414420
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41a06c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40463f
call fcn.00404a70
mov esi, eax
jmp 0x404721
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40465b
call fcn.00404a70
jmp 0x404718
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x404674
call fcn.00404a70
jmp 0x404718
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4046a8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404696
lea eax, [ebp]
call fcn.00402de0
lea esi, [ebp - 0x1c]
call fcn.00404a90
mov eax, 0x8007000e
jmp 0x404733
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00402e10
mov dword [ebp - 4], 1
jmp 0x4046d1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4046df
mov esi, 0x8007000e
jmp 0x40471a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x4046fd
call fcn.00404a70
jmp 0x404718
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404470
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404731
lea eax, [ebp]
call fcn.00402de0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00408425
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405520
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
push 0x20006
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.K7UI.dll_Ordinal_1
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40558e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405550
sub eax, edx
mov edx, dword [esp + 4]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0
push str.MaxConnectionsPerServer
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40557f
lea edi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x405595
xor eax, eax
pop edi
pop ecx
ret 4
mov eax, 1
pop edi
pop ecx
ret 4
Function at 0x405880
Capabilities:
Set registry value

Disassembly:
push ebx
mov eax, edx
push esi
xor ebx, ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405890
mov ecx, dword [esp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [edi]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4058bc
lea ebx, [eax + 1]
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x4058d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [edi]
push ebp
push esi
lea eax, [esp + 8]
push eax
push ebx
xor ebp, ebp
push ebp
push ebp
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 1]
cmp esi, 2
jne 0x40590c
pop esi
mov dword [ebx], 0xffffffff
pop ebp
pop ecx
ret
test esi, esi
je 0x405912
mov eax, ebp
pop esi
pop ebp
pop ecx
ret

Function at 0x405920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
lea eax, [esp + 4]
push eax
push 0x20019
xor ebp, ebp
push ebp
push ecx
push edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059d7
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push edx
call esi
cmp eax, 2
jne 0x40599d
mov eax, 0x417cbc
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405976
mov eax, dword [esp + 8]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
test eax, eax
jne 0x4059cf
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4059cf
lea eax, [esi + 1]
pop esi
pop ebp
add esp, 0xc
ret
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret
mov eax, ebp
pop ebp
add esp, 0xc
ret
Function at 0x4059e0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0x23
mov ebx, eax
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x41bf80]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a00
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405a12
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00408c49
mov eax, dword [0x41bf7c]
add esp, 4
mov ecx, eax
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x405a40
mov edi, ebx
sub eax, ecx
mov esi, ecx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405a54
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00408c49
add esp, 4
add ebx, 0xfffffffe
mov edi, ebx
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405a80
mov ecx, 7
mov esi, str.k7toolsst.rbk
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
ret