joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4312f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x448370]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x43a4d4
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x431393
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x431495
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x431443
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431496
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x431438
cmp dword [ebp - 0x34], 1
jne 0x431438
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x43a444
push eax
call fcn.004193ac
add esp, 0xc
cmp eax, 1
jne 0x431438
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x431496
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x431496
lea ecx, [ebp - 0x28]
push ecx
push 0x4312db
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x431496
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4314bc
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.0043125c
cmp eax, ebx
pop ecx
pop ecx
jne 0x4314be
inc edi
cmp edi, esi
jl 0x4314a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00418507
leave
ret 4
Function at 0x4314cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x447228
je 0x431589
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431571
mov esi, dword [ebx + 4]
jmp 0x43156b
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43155b
cmp dword [ebp - 0xc], 4
jne 0x43155b
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x431553
or dword [eax + 0x9c], ecx
jmp 0x43155b
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x43151f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x431502
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x431b49
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x435c82
call fcn.004193e4
sub esp, 0x220
mov eax, dword [0x448370]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x431c42
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x431c16
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401990
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00431b49
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004010e0
test bl, bl
jne 0x431c16
or dword [ebp - 4], 0xffffffff
jmp 0x431b87
cmp esi, 0x103
je 0x431c26
cmp esi, 0x3f2
jne 0x431c36
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00418507
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x432cd6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x432d0b
cmp edi, dword [esi + 0xc]
jge 0x432d0b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432d0b
cmp edi, dword [eax + 8]
jge 0x432d0b
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x432d0d
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x432e11
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x432e45
jmp fcn.004266f5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x432eb6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x432faf
cmp eax, dword [edi + 0xc]
jge 0x432faf
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x432f07
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x432f98
cmp dword [ebp + 0xc], ebx
je 0x432f98
jmp 0x432f31
push 0x10
call fcn.00432ba2
cmp eax, ebx
je 0x432f1d
mov ecx, eax
call fcn.00432e08
mov esi, eax
jmp 0x432f1f
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x432f48
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x432f58
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x432f6a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004266f5
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00419950
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x432faa
cmp ecx, dword [esi + 8]
jge 0x432faa
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x432fb0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43306e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43309c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4330ba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00432fd8
jmp 0x4330ba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4330ba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00432fd8
test edi, edi
mov eax, edi
jne 0x4330a4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44b298]
test ecx, ecx
je 0x43316d
jmp 0x43306d
ret 8

Function at 0x435025
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x435d27
call fcn.004193e4
sub esp, 0x198
mov eax, dword [0x448370]
push ebx
push esi
push edi
push 0x432065
mov ecx, 0x4498cc
mov dword [ebp - 0x10], eax
call fcn.00432d36
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x435087
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x435065
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x4350b9
cmp byte [esi], 1
jne 0x4350b3
cmp byte [esi + 1], 1
jne 0x4350b3
mov dword [edi + 0xc], 0x434ff2
call fcn.00432af7
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x4350c6
push 0x1c
call fcn.0042741d
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4350bd
push 0xa
call fcn.00426f01
jmp 0x4350bf
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x435129
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x4350f8
push 0x1c
call fcn.0042741d
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x4350ef
push 0xa
call fcn.00426f01
jmp 0x4350f1
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x435126
push 0x1c
call fcn.0042741d
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x435121
push 0xa
call fcn.004269e2
jmp 0x435123
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00418507
leave
ret 4
Function at 0x401005
Capabilities:
Get file version info

Disassembly:
jmp 0x40caa0
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push edi
push eax
push ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40cada
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
add esp, 8
ret 8
push esi
call fcn.00449acf
mov edx, dword [esp + 0x10]
add esp, 4
mov edi, eax
push edi
push esi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40cb1a
mov eax, dword [esp + 0x1c]
test edi, edi
mov dword [eax], 0
je 0x40cbc5
push edi
call fcn.00449af8
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
call fcn.0046e21b
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 4]
xor ecx, ecx
mov cx, word [edx]
cmp ecx, 0x411
jg 0x40cb8a
je 0x40cb79
sub ecx, 0x404
je 0x40cb68
sub ecx, 5
jne 0x40cb92
mov ecx, dword [esp + 0x1c]
push 0x49c500
mov dword [ecx], 0x4e4
jmp 0x40cbad
mov edx, dword [esp + 0x1c]
push 0x49cc24
mov dword [edx], 0x3b6
jmp 0x40cbad
mov ecx, dword [esp + 0x1c]
push 0x49cc20
mov dword [ecx], 0x3a4
jmp 0x40cbad
cmp ecx, 0x804
je 0x40cb9e
mov edx, dword [esp + 0x1c]
mov dword [edx], 0
jmp 0x40cbb8
mov ecx, dword [esp + 0x1c]
push 0x49cc1c
mov dword [ecx], 0x3a8
lea ecx, [eax + 0xc8]
call fcn.0044a8ce
test edi, edi
je 0x40cbc5
push edi
call fcn.00449af8
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x40102d
Capabilities:
Access peb ldr_data
Reference cloudflare dns server

Disassembly:
jmp 0x402330
push 0xffffffffffffffff
push 0x47eb51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x49cd18]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x2c]
mov dword [edi], eax
mov edx, dword [0x49cd18]
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov dword [ecx], edx
mov eax, dword [0x49cd18]
lea ebx, [esi + 0x34]
mov dword [ebx], eax
push str.1.0.0.1
mov byte [esp + 0x1c], 2
mov dword [esi], 0x484004
mov dword [esi + 4], 0
call fcn.0044a8ce
push 0x4a30bc
mov ecx, ebx
call fcn.0044a8ce
push 0x4a30bc
mov ecx, edi
call fcn.0044a8ce
mov ecx, 0x19
xor eax, eax
lea edi, [esi + 0x38]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.00401190
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x9c], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401041
Capabilities:
Get file version info

Disassembly:
jmp 0x4047f0
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x404811
pop edi
pop esi
pop ebx
add esp, 0x48
ret 0xc
push edi
call fcn.00449acf
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x404833
pop edi
pop esi
pop ebx
add esp, 0x48
ret 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x58]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x68], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
push edx
push ecx
lea edx, [esp + 0x1c]
push str.StringFileInfo_04hX_04hXFileVersion
push edx
call fcn.0041a58f
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [esp + 0x5c]
test eax, eax
je 0x4048a8
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00449af8
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x48
ret 0xc
Function at 0x4010a0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x40c530
push 0xffffffffffffffff
push 0x47f619
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov dword [esp + 0x1c], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x104
push eax
push 1
push ebx
push str.SYSTEMCurrentControlSetControlComputerNameComputerName
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c5bd
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push str.ComputerName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push ebx
push ecx
push edx
mov ecx, esi
call fcn.004010c3
cmp dword [esp + 0xc], ebx
je 0x40c6ab
push 0xc
call fcn.00449acf
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov dword [esp + 0x12c], ebx
je 0x40c631
lea eax, [esp + 0x20]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], 1
call fcn.0042f966
cmp eax, ebx
mov dword [esi], eax
jne 0x40c633
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x40c633
push 0x8007000e
call fcn.0042f270
jmp 0x40c633
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x18], esi
jne 0x40c650
push 0x8007000e
call fcn.0042f270
cmp esi, ebx
mov dword [esp + 0x12c], 1
je 0x40c663
mov ecx, dword [esi]
jmp 0x40c665
xor ecx, ecx
mov eax, dword [esp + 0xc]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xec]
cmp esi, ebx
je 0x40c6ab
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40c6ab
mov eax, dword [esi]
cmp eax, ebx
je 0x40c692
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40c6a2
push eax
call fcn.00449af8
add esp, 4
push esi
call fcn.00449af8
add esp, 4
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8
Function at 0x4010aa
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x4021d0
sub esp, 8
lea eax, [esp]
push edi
push eax
push str.SoftwareRisingRav
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4021f6
xor eax, eax
pop edi
add esp, 8
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push str.installpath
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402241
cmp dword [esp + 0x18], 1
jbe 0x402241
push esi
mov edi, 1
call fcn.00401280
mov ecx, dword [esp + 0x1c]
add esp, 4
mov byte [esi + ecx], 0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
add esp, 8
ret
Function at 0x401186
Capabilities:
Create thread
Resume thread

Disassembly:
jmp 0x4094a0
sub esp, 0x120
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor esi, esi
lea edi, [ebx + 0xf0]
mov ecx, 0x41
xor eax, eax
mov dword [ebx + 0xe4], esi
mov dword [ebx + 0xe8], esi
xor edx, edx
rep stosd dword es:[edi], eax
mov ebp, dword [ebx + 0x414]
mov dword [esp + 0x10], esi
cmp ebp, esi
jle 0x409520
mov eax, dword [ebx + 0x410]
mov ecx, 0x44
mov esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x134]
mov esi, dword [esp + 0x20]
cmp esi, ecx
je 0x409507
inc edx
add eax, 0x110
cmp edx, ebp
jl 0x4094df
jmp 0x40951e
lea edx, [esp + 0x2c]
push 0x104
lea eax, [ebx + 0xf0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
lea eax, [ebx + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4095c2
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], 0xc
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0044b325
mov edi, eax
mov ecx, dword [edi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40957a
mov edx, dword [edi + 0x1c]
push esi
push esi
push 0x465
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 4
push ebx
push 0x40100a
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x4095c2
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 4
Function at 0x40118b
Capabilities:
Copy file
Create directory

Disassembly:
jmp 0x40b070
push 0xffffffffffffffff
push 0x47f4b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x34]
push 0x5c
push edx
call fcn.0041af40
add esp, 8
test eax, eax
je 0x40b29f
push ebx
lea eax, [esp + 0x38]
push 0x5c
push eax
call fcn.0041af40
add esp, 8
lea ecx, [esp + 0x38]
mov byte [eax], 0
push str.img
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x38]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x49cd18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x144], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.00415b0c
add esi, 0x3fc
mov bl, 2
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call fcn.0044a87e
push 0
push 0x49c610
lea ecx, [esp + 0x14]
call fcn.0043f85a
test eax, eax
je 0x40b268
push 0x5c
lea ecx, [esp + 0x10]
call fcn.0043f82a
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0043f75c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 3
call fcn.0044a87e
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.0044a745
lea ecx, [esp + 0xc]
push str.img.
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0044a9da
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 4
call fcn.0044a87e
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.0044a745
mov eax, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00415bcf
lea ecx, [esp + 0x1c]
call fcn.00415def
test eax, eax
je 0x40b25f
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1c]
call fcn.00415def
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00415fe7
mov edx, dword [eax]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
mov byte [esp + 0x154], 5
call fcn.0043fbd2
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.0044a745
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.00415ebe
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.0044a745
test esi, esi
jne 0x40b1ed
lea ecx, [esp + 0x1c]
call fcn.00415b85
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.00415b49
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 0
call fcn.0044a745
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call fcn.0044a745
pop ebx
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret 4