joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4275be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test dword [esi], 0x10000000
push edi
lea edi, [esi + 0xc]
je 0x427624
push 0x104
push edi
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
inc ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4275f7
cmp eax, 0x104
jbe 0x427651
call fcn.0043714c
test eax, eax
je 0x427613
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4035e8
call fcn.004370fa
pop ecx
pop ecx
push 0x30303030
call fcn.0044a6b6
xor eax, eax
jmp 0x4277ae
push 1
push 0x1c
push edi
push 0
mov dword [ebp + 8], SysReAllocString
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x427651
call fcn.0043714c
test eax, eax
je 0x427613
push 0x40361c
call fcn.00439586
jmp 0x427613
push 0x104
push edi
push 0x41dfac
call fcn.0043e61b
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push 0x402f5c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x42769d
call fcn.0043714c
test eax, eax
je 0x427699
push 0x403644
call fcn.00439586
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x427763
dec eax
je 0x42771d
dec eax
dec eax
je 0x4276d4
call fcn.0043714c
test eax, eax
je 0x42761d
mov eax, dword [esi]
and eax, 7
push eax
push 0x403668
call fcn.004370fa
pop ecx
pop ecx
jmp 0x42761d
push 0x104
push edi
push 0x41dffc
call fcn.0043e61b
cmp dword [0x4783b8], 0
je 0x4276f7
mov eax, dword [0x4783bc]
mov dword [esi + 4], eax
jmp 0x4276fe
mov dword [esi + 4], 0x32
test ebx, ebx
jne 0x427711
mov dword [esi + 0x218], 0x403068
jmp 0x427797
mov dword [esi + 0x218], 0x40308c
jmp 0x427797
push 0x104
push edi
push 0x41dfe8
call fcn.0043e61b
cmp dword [0x4783b8], 0
je 0x427740
mov eax, dword [0x4783bc]
mov dword [esi + 4], eax
jmp 0x427747
mov dword [esi + 4], 0x32
test ebx, ebx
jne 0x427757
mov dword [esi + 0x218], 0x403058
jmp 0x427797
mov dword [esi + 0x218], 0x403078
jmp 0x427797
push 0x104
push edi
push 0x41dfd4
call fcn.0043e61b
cmp dword [0x4783b8], 0
je 0x427786
mov eax, dword [0x4783bc]
mov dword [esi + 4], eax
jmp 0x42778d
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x403048
cmp dword [ebp + 0xc], 0
je 0x4277ab
push esi
call fcn.004291c1
test eax, eax
je 0x42761d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x428db8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x402f5c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x428de2
xor eax, eax
jmp 0x428e12
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push esi
push esi
push 0x402fa8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4

Function at 0x428e17
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x403018
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x428e47
xor eax, eax
jmp 0x428e74
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x402fe0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
jne 0x428e74
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x428e77
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x40e
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
mov dword [ebp - 0x620], ebx
call fcn.0045d10c
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0045d10c
mov edi, dword [ebp + 8]
add esp, 0x18
test edi, edi
jne 0x428eee
push 0x30303030
call fcn.0044a6b6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 8
call fcn.00428e17
test eax, eax
je 0x428f11
cmp dword [ebp + 0xc], ebx
je 0x428f11
call fcn.0043714c
test eax, eax
je 0x428ede
push 0x403200
call fcn.00439586
jmp 0x428ede
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x620]
push ecx
push ebx
push 0x2001f
and eax, 0x10000000
push ebx
neg eax
push ebx
sbb eax, eax
push ebx
neg eax
add eax, 0x80000001
push 0x403018
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x428f54
call fcn.0043714c
test eax, eax
je 0x428ede
push 0x403220
jmp 0x428f0a
cmp dword [ebp + 0xc], ebx
jne 0x428f6f
push 0x402fbc
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x428ede
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x428ede
push 0x5c
pop ecx
jmp 0x428f97
test eax, eax
je 0x428ede
dec eax
cmp word [ebp + eax*2 - 0x20c], cx
jne 0x428f8f
add eax, eax
mov edx, 0x208
cmp eax, edx
jae 0x429016
push 0x74
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
push 0x403240
lea eax, [ebp - 0x20c]
push eax
push 0x40325c
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.0045caf7
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.0041f203
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push ebx
push 0x402fbc
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x428ede
jmp 0x428ed4
call fcn.0045d56f
int3

Function at 0x429067
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
push 4
pop ebx
and edi, 7
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], ebx
jne 0x429092
push 0x402f8c
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4290f1
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0x402f8c
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4290c5
cmp eax, 2
jne 0x4290e7
mov eax, dword [esi]
and eax, 0x10000000
push eax
push edi
call fcn.00428a82
jmp 0x4290c8
mov eax, dword [ebp + 8]
or eax, edi
push ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
push 0
push 0x402f8c
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4290f1
push 0x30303030
call fcn.0044a6b6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4291c1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb00
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea ebx, [edi + 0x21c]
cmp dword [ebx], esi
jne 0x429213
push 5
push 5
push 0x44c
push ebx
call fcn.0043e509
test eax, eax
jne 0x429232
call fcn.0043714c
test eax, eax
je 0x42920c
push 0x403564
call fcn.00439586
xor eax, eax
jmp 0x42933e
mov eax, dword [ebx]
push dword [eax]
push esi
push eax
call fcn.0043db5d
test eax, eax
jne 0x429232
call fcn.0043714c
test eax, eax
je 0x42920c
push 0x403588
jmp 0x429207
push edi
call fcn.004264fb
test eax, eax
je 0x42920c
push 0x104
lea ecx, [ebp - 0x20c]
lea eax, [edi + 0xc]
push ecx
push eax
call fcn.0042027c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x4035b0
call fcn.0043e61b
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xafc], eax
jmp 0x42931a
test dword [ebp - 0x8a8], 0xffffffef
je 0x4293a0
push 0x44c
lea eax, [ebp - 0x658]
push esi
push eax
call fcn.0045d10c
add esp, 0xc
push 0x104
lea eax, [ebp - 0x658]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0042027c
push 0x104
lea eax, [ebp - 0x658]
push eax
push 0x4032d0
call fcn.0043e61b
push 0x104
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.0043e61b
push 0x104
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00429169
test eax, eax
jne 0x42934f
push 0x30303030
call fcn.0044a6b6
mov eax, dword [ebp - 0xafc]
cmp eax, 0xffffffff
jne 0x429286
xor esi, esi
inc esi
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jne 0x42933c
push edi
call fcn.00426690
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 4
lea eax, [ebp - 0xaf8]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xb00], eax
cmp eax, 0xffffffff
je 0x429393
test dword [ebp - 0xaf8], 0xffffffef
je 0x429393
lea eax, [ebp - 0x658]
push eax
push dword [ebx]
call fcn.0043d976
cmp eax, 0xffffffff
je 0x4293ca
mov eax, dword [ebp - 0xb00]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xafc]
lea ecx, [ebp - 0x8a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x429314
push dword [ebp - 0xafc]
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x42927b
call fcn.0043714c
test eax, eax
je 0x429326
push 0x4035c0
call fcn.00439586
jmp 0x429326
Function at 0x42975a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.0046e89b
test eax, eax
je 0x429772
xor eax, eax
inc eax
jmp 0x4297f7
push esi
push edi
push 1
xor esi, esi
push esi
push 0x80
push 2
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004403fb
mov edi, eax
cmp edi, 0xffffffff
jne 0x4297b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.0043714c
test eax, eax
je 0x4297ee
push dword [ebp - 4]
push 0x40381c
jmp 0x4297e7
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4297f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.0043714c
test eax, eax
je 0x4297ee
push dword [ebp - 4]
push 0x40383c
call fcn.004370fa
pop ecx
pop ecx
xor eax, eax
jmp 0x4297f5
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x42b138
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x42b155
xor eax, eax
inc eax
leave
ret
mov ecx, dword [ebp - 4]
and cl, 0x10
xor eax, eax
cmp cl, 0x10
sete al
leave
ret

Function at 0x42b1aa
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
call fcn.0043714c
mov ebx, 0x4b2374
test eax, eax
je 0x42b1cc
push ebx
push 0x404330
call fcn.004370fa
pop ecx
pop ecx
mov eax, dword [0x4b2d7c]
test eax, eax
je 0x42b1da
mov esi, 0x800000
push 1
neg eax
push esi
sbb eax, eax
push 3
and eax, 0x16b
mov ecx, 0x402759
push ecx
add eax, 0x50
movzx eax, ax
push ecx
push eax
push ebx
push dword [0x4b2340]
call dword [sym.imp.WININET.dll_InternetConnectA]
xor esi, esi
inc esi
mov dword [0x4b2344], eax
mov dword [0x4b4fd8], esi
mov dword [0x4b234c], edi
test eax, eax
jne 0x42b23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42b258
call fcn.0043714c
test eax, eax
je 0x42b23b
push 0x404348
call fcn.00439586
xor eax, eax
jmp 0x42b25a
push edi
push edi
push 0x1427
push dword [0x4bf7b8]
mov dword [0x4b4fd8], edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x42b3f7
Capabilities:
Send data

Disassembly:
mov ecx, dword [0x4b2d8c]
test ecx, ecx
jne 0x42b41a
xor eax, eax
push eax
push eax
push 0x1427
push dword [0x4bf7b8]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret
mov eax, dword [0x4b2d80]
push esi
push edi
push 0x4b2d88
push dword [0x4b2d84]
add eax, ecx
push eax
push dword [0x4b2348]
xor edi, edi
inc edi
mov dword [0x4b4fd8], edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x42b472
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x42b49b
call fcn.0043714c
test eax, eax
je 0x42b46e
push esi
push 0x4043b0
call fcn.004370fa
pop ecx
pop ecx
xor eax, eax
jmp 0x42b49d
xor eax, eax
cmp dword [0x4b2314], 3
mov dword [0x4b4fd8], eax
jne 0x42b488
mov dword [0x4b2304], edi
push eax
push eax
push 0x1427
push dword [0x4bf7b8]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, edi
pop edi
pop esi
ret

Function at 0x42c91e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0042c2fd
test eax, eax
je 0x42c97f
push dword [0x4782e4]
call fcn.004393f9
test eax, eax
jne 0x42c97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.0043714c
test eax, eax
je 0x42c95e
push dword [0x4782e4]
push 0x403f60
call fcn.004370fa
pop ecx
pop ecx
call fcn.0043714c
test eax, eax
je 0x42c976
push dword [ebp - 4]
push 0x403f94
call fcn.004370fa
pop ecx
pop ecx
xor eax, eax
jmp 0x42c991
xor eax, eax
inc eax
jmp 0x42c991
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x42e113
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x42e1e6
push ebx
push esi
push dword [edi]
call fcn.0041f203
lea esi, [eax + 1]
mov ecx, esi
shl ecx, 2
push ecx
mov dword [ebp - 4], esi
call fcn.0044a635
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x42e1e4
push esi
push ebx
push dword [edi]
call fcn.0042027c
mov eax, ebx
push 0x7c
mov esi, ebx
mov ebx, dword [edi]
mov dword [ebp + 8], eax
xor ecx, ecx
pop edx
cmp word [esi], cx
je 0x42e184
cmp word [esi], dx
je 0x42e175
add esi, 2
cmp word [esi], cx
jne 0x42e168
cmp word [esi], cx
je 0x42e184
xor ecx, ecx
mov word [esi], cx
add esi, 2
jmp 0x42e186
mov esi, ecx
push eax
call fcn.0043a3b6
cmp eax, 0xffffffff
jne 0x42e19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42e1c7
cmp ebx, dword [edi]
je 0x42e1a9
push 0x7c
pop eax
mov word [ebx], ax
add ebx, 2
mov eax, dword [ebp - 4]
mov ecx, ebx
sub ecx, dword [edi]
sar ecx, 1
sub eax, ecx
push eax
push ebx
push dword [ebp + 8]
call fcn.0042027c
push ebx
call fcn.0041f203
lea ebx, [ebx + eax*2]
push 0
pop ecx
mov eax, esi
push 0x7c
mov dword [ebp + 8], eax
pop edx
test esi, esi
jne 0x42e163
cmp ebx, dword [edi]
jne 0x42e1dc
and dword [edi], ecx
push dword [ebp - 8]
call fcn.0044a645
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x431405
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 8

Function at 0x436497
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [ebx + 0xc], esi
je 0x4364bb
push 0x14
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x43659f
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0043442e
mov eax, dword [0x4b22c0]
cmp eax, dword [0x4b22c4]
je 0x436523
push 1
push 0x66
push 4
push edi
call fcn.00431b29
push 1
push 0xa2
push 0x3ed
push edi
call fcn.00431b29
push 1
push 0xa3
push 3
push edi
call fcn.00431b29
push 1
push 0xb0
push 0x447
push edi
call fcn.00431b29
push 1
push 0xb1
push 0x453
push edi
call fcn.00431b29
cmp dword [ebx + 0x34], esi
je 0x436557
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 4
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 4
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x436587
mov eax, dword [ebx + 8]
test byte [eax], 2
je 0x436589
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x447
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x447
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
push ebx
push edi
mov dword [ebx + 0x28], esi
call fcn.0043637d
push 0x3ec
push edi
call fcn.00431405
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x437f54
Capabilities:
Create process memory minidump

Disassembly:
push 0x448
push 0x4749a0
call fcn.0045d2cc
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp dword [0x4b4ffc], eax
je 0x438181
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x437f8f
cmp dword [ebp + 0x18], eax
je 0x438181
cmp dword [ebp + 0x1c], eax
je 0x438181
push 0x410
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.0045d10c
add esp, 0xc
mov di, word [0x4b5798]
test di, di
je 0x43801d
mov edx, 0x404cd4
mov eax, 0x4b5798
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x437fe4
test bx, bx
je 0x437fde
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x437fe4
add ecx, 4
add edx, 4
test bx, bx
jne 0x437fbc
xor ebx, ebx
mov ecx, ebx
jmp 0x437feb
sbb ecx, ecx
sbb ecx, 0xffffffff
xor ebx, ebx
test ecx, ecx
jne 0x437ff4
xor ebx, ebx
inc ebx
jmp 0x43801d
movzx ecx, di
lea edx, [ebp - 0x458]
mov dword [edx], eax
test cx, cx
je 0x43800c
add eax, 2
cmp word [eax], bx
jne 0x438004
add edx, 4
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x437ffd
mov ebx, dword [ebp - 0x1c]
test esi, esi
je 0x438035
push 0x104
push 0x4bef2a
push 0x404cdc
call fcn.0042027c
call fcn.0043cae8
test eax, eax
je 0x438181
push 0
push 0x40000000
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push 0x4b20a8
lea eax, [ebp + 0x20]
push eax
call fcn.00438f71
test eax, eax
je 0x438181
lea eax, [ebp - 0x458]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], 0x4bea54
mov eax, dword [0x4b5000]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esi
mov ecx, dword [0x4b5008]
test ecx, ecx
je 0x4380a9
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x43cdce
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1c], eax
cmp dword [0x4bea54], 0
je 0x4380cf
mov eax, dword [0x4bea58]
test esi, esi
je 0x4380d8
or eax, 0x400
jmp 0x4380d4
mov eax, 0x121
test esi, esi
jne 0x4380dd
or eax, 0x200
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x20]
push edx
push ebx
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x2c]
and ecx, edx
push ecx
push eax
push dword [ebp + 0x20]
push dword [0x4b4ffc]
push dword [0x4b501c]
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x438112
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43817a
mov dword [ebp - 4], 0xfffffffe
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x438137
push 0x41
push 0x4beee8
push 0x4bef2a
call fcn.004392ea
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.00438ccb
test eax, eax
je 0x438181
cmp dword [edi + 0xc], ebx
je 0x438181
test esi, esi
je 0x438165
cmp dword [0x4bf144], 0
jne 0x438165
mov ecx, dword [0x4b5004]
mov dword [0x4bf144], ecx
xor eax, eax
inc eax
jmp 0x438183
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.0045d311
ret 0x1c
Function at 0x43840e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x478238], ebx
je 0x438449
mov eax, dword [esi + 0x47823c]
cmp eax, dword [ebp + 0x10]
jne 0x438449
xor eax, eax
inc eax
jmp 0x438526
push edi
push ecx
push 0x4014ec
push 0x404b74
lea eax, [ebp - 0x108]
push 0xffffffffffffffff
push eax
call fcn.004201d2
mov eax, dword [esi + 0x478248]
add esp, 0x14
test eax, eax
je 0x43849e
cmp byte [eax], bl
je 0x43849e
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push 0x404034
call fcn.0043e5e1
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x478248]
call fcn.0043e5e1
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0046f380
test eax, eax
je 0x438503
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x438503
push 4
pop edi
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push dword [esi + 0x47824c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x438507
xor eax, eax
jmp 0x438525
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x47823c], eax
xor eax, eax
inc eax
mov dword [esi + 0x478240], edi
mov dword [esi + 0x478238], eax
mov dword [esi + 0x478244], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 0xc
Function at 0x438536
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x478238], ebx
je 0x438571
mov eax, dword [esi + 0x47823c]
cmp eax, dword [ebp + 0x10]
jne 0x438571
xor eax, eax
inc eax
jmp 0x438660
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041f22d
mov eax, dword [esi + 0x478248]
test eax, eax
je 0x4385b8
cmp byte [eax], bl
je 0x4385b8
push edi
lea eax, [ebp - 0x108]
push eax
push 0x404034
call fcn.0043e5e1
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x478248]
call fcn.0043e5e1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0046f380
test eax, eax
je 0x43863d
push dword [ebp - 0x10c]
call fcn.00439c10
mov edi, eax
cmp byte [edi], 0x5c
jne 0x43863d
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
mov byte [edi], bl
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x43863d
mov eax, dword [esi + 0x47824c]
test eax, eax
je 0x43861f
cmp byte [eax], bl
jne 0x438622
lea eax, [edi + 1]
push 4
pop edi
push edi
lea ecx, [ebp + 0x10]
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x438641
xor eax, eax
jmp 0x43865f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x47823c], eax
xor eax, eax
inc eax
mov dword [esi + 0x478240], edi
mov dword [esi + 0x478238], eax
mov dword [esi + 0x478244], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 0xc