joyce8/EMBER2024-capa huggingface dataset:
Function at 0x502130
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x220], eax
push 0x554ae4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.004b3c90
push 0
push str.InstallRunOnStartup
call fcn.004fdf70
lea eax, [esp]
push eax
call fcn.00523650
lea ecx, [esp + 0x110]
push ecx
call fcn.00523650
push 0
lea edx, [esp + 0x114]
push edx
call fcn.004ad650
mov eax, dword [esp + 0x118]
push eax
lea ecx, [esp + 4]
push str.__s___startup
push ecx
call fcn.00524470
add esp, 0xc
call fcn.004a3a20
test eax, eax
je 0x5021c4
call fcn.004a3a20
push eax
lea edx, [esp + 4]
push str.__instance___s_
push edx
call fcn.00524610
add esp, 0xc
mov eax, dword [0x599168]
cmp dword [eax + 0x10], 0
je 0x5021e5
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 4]
push str.__config___s_
push ecx
call fcn.00524610
add esp, 0xc
lea edx, [esp + 0x110]
push edx
call fcn.00401210
mov eax, dword [esp + 8]
push eax
push 0x554ae4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.004b3af0
push 1
push str.InstallRunOnStartup
call fcn.004fdf70
lea ecx, [esp]
push ecx
call fcn.00401210
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005498fd
add esp, 0x224
ret
Function at 0x512e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], ebp
cmp byte [edi], 0
je 0x512f7f
mov al, byte [edi]
cmp al, 0x25
jne 0x512f41
mov al, byte [edi + 1]
add edi, 1
cmp al, 0x25
jne 0x512efb
cmp byte [esi], al
jne 0x512f84
add esi, 1
add edi, 1
jmp 0x512f76
cmp al, 0x30
jb 0x512f38
cmp al, 0x39
ja 0x512f38
movzx ebx, al
sub ebx, 0x30
add edi, 1
mov dword [esp + ebx*4 + 0x38], esi
cmp byte [esi], 0
je 0x512f30
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esi + ebp]
mov eax, edi
call fcn.005128a0
test eax, eax
jne 0x512f30
add ebp, 1
cmp byte [esi + ebp], al
jne 0x512f15
mov dword [esp + ebx*4 + 0x10], ebp
add esi, ebp
jmp 0x512f74
test al, al
je 0x512f7f
add edi, 1
jmp 0x512f76
cmp dword [esp + 0x68], ebp
je 0x512f53
cmp byte [esi], al
jne 0x512f84
add esi, 1
add edi, 1
jmp 0x512f76
push esi
call fcn.00522820
push edi
mov ebx, eax
call fcn.00522820
mov ebp, eax
push ebp
push edi
push ebx
push esi
call fcn.00414420
test eax, eax
jne 0x512f84
add esi, ebx
add edi, ebp
xor ebp, ebp
cmp byte [edi], 0
jne 0x512ed8
cmp byte [esi], 0
je 0x512f9d
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
push ecx
push edx
call fcn.00523fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov eax, dword [esp + 0x6c]
push ebp
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
call fcn.00512950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x519820
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push edi
mov edi, dword [esp + 0x2c]
push 0
push edi
call fcn.00516eb0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x519847
push eax
call fcn.004b7cd0
mov dword [edi + 0x28], 0
jmp 0x519865
mov eax, dword [0x58b724]
mov ecx, dword [0x58b72c]
push eax
push ecx
push 0x551656
call fcn.004b7470
mov dword [edi + 0x28], 1
test eax, eax
mov dword [edi + 0x14], eax
je 0x519a79
mov edx, dword [esp + 0x34]
push ebp
or eax, 0xffffffff
push esi
mov esi, dword [0x598df4]
mov dword [edi + 8], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov eax, dword [esp + 0x40]
push 0x7f00
push 0
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call esi
push eax
push 0
push 0
push 0x516d30
push str.EVERYTHING_DROPDOWNLIST_BORDER
push 0
call fcn.004aa4a0
push 0x7f00
push 0
call esi
push eax
push 0
push 0
push 0x518550
push str.EVERYTHING_DROPDOWNLIST
push 0
call fcn.004aa4a0
mov ecx, dword [0x599190]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x86000000
push 0x551656
push str.EVERYTHING_DROPDOWNLIST_BORDER
push 0x88
call fcn.004aa5f0
mov cl, byte [edi + 0x184]
push 0
mov dword [edi + 0xc], eax
mov edx, dword [0x599190]
mov eax, dword [edi + 0x60]
push edx
push 0
push eax
push 0
push 0
neg cl
push 0
push 0
push 0x86200000
push 0x551656
push str.EVERYTHING_DROPDOWNLIST
sbb ecx, ecx
and ecx, 0x400000
or ecx, 0x88
push ecx
call fcn.004aa5f0
push edi
push eax
mov dword [edi + 0x10], eax
call fcn.004ac9b0
mov eax, edi
call fcn.00517e00
cmp dword [edi + 0x18], 0
je 0x51996d
push edi
call fcn.004c55f0
mov edx, dword [edi + 0xc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 8
push edx
call esi
mov eax, dword [edi + 0x10]
push 8
push eax
call esi
mov ecx, dword [edi + 0x68]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [edi + 0x10], 0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [edi], edx
mov dword [edi + 4], eax
je 0x519a4d
mov ebp, dword [0x598e08]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call ebp
test eax, eax
je 0x519a3d
cmp dword [esp + 0x18], 0x12
je 0x519a6f
lea esi, [esp + 0x14]
call fcn.00516f60
test eax, eax
jne 0x519a54
cmp dword [esp + 0x18], 0x100
jne 0x519a00
cmp dword [esp + 0x1c], 9
je 0x519a5b
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [0x598dd8]
test eax, eax
jle 0x519a62
lea eax, [esp + 0x14]
push eax
mov eax, edi
call fcn.00518a30
test eax, eax
jne 0x519a43
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x14]
push edx
call dword [0x598db4]
jmp 0x519a43
call dword [sym.imp.USER32.dll_WaitMessage]
cmp dword [edi + 0x10], 0
jne 0x5199c4
push str.no_search_history_hwnd_n
jmp 0x519a67
push str.outside_click_n
jmp 0x519a67
push str.tab_out_n
jmp 0x519a67
push str.no_getmsg_n
call fcn.0048f080
add esp, 4
push 0
push edi
call fcn.00516eb0
pop esi
pop ebp
pop edi
add esp, 0x24
ret 0x10
Function at 0x525330
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push ebx
push edi
push 1
push eax
xor edi, edi
call fcn.004a9cd0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5253dd
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004aba70
test eax, eax
je 0x5253d5
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, edx
or eax, ecx
je 0x5253c6
mov eax, edx
add eax, 1
adc ecx, edi
mov esi, eax
or esi, ecx
je 0x5253d5
test ecx, ecx
jg 0x5253d5
jl 0x525386
cmp eax, 0x80000000
jae 0x5253d5
mov esi, dword [esp + 0x18]
add edx, 1
push edx
push esi
call fcn.005236c0
test eax, eax
je 0x5253d5
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5253d5
mov eax, dword [esi]
cmp dword [esp + 0x1c], eax
jne 0x5253d5
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
jmp 0x5253d0
mov edx, dword [esp + 0x18]
push edx
call fcn.005240f0
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 8
ret 8

Function at 0x5297d0
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [eax + 0x34]
push ebx
push esi
xor esi, esi
cmp dword [eax + 0x38], esi
lea ebx, [esi + 1]
jle 0x52980a
push ebp
push edi
movzx edi, dl
mov ecx, dword [eax + 0x260]
mov ebp, ecx
shr ebp, 0x18
xor ebp, edi
shl ecx, 8
xor ecx, dword [ebp*4 + 0x597270]
add esi, ebx
mov dword [eax + 0x260], ecx
cmp esi, dword [eax + 0x38]
jl 0x5297e4
pop edi
pop ebp
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x529892
sub ecx, ebx
je 0x529877
sub ecx, ebx
je 0x52986b
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
Function at 0x549230
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x597fa8]
mov dword [ebp - 4], eax
mov eax, dword [0x58eee0]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x54925f
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x5493ec
push dword [0x597f10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x5493ec
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x549297
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x5492af
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x5492d0
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x5492ed
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00549193
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x549310
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x549324
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00549193
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x549359
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x54936b
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.005490c4
test eax, eax
pop esi
jne 0x5493ac
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.005490c4
test eax, eax
jne 0x5493da
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.005490c4
test eax, eax
jne 0x5493ec
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.005490c4
test eax, eax
je 0x5493ec
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.005498fd
leave
ret
Function at 0x54cc60
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5982e0]
je 0x54cc7b
inc edi
cmp edi, 0x17
jb 0x54cc6c
cmp edi, 0x17
jae 0x54cdfb
push ebp
push 3
call fcn.0054ef30
cmp eax, 1
pop ecx
je 0x54cdc7
push 3
call fcn.0054ef30
test eax, eax
pop ecx
jne 0x54ccaf
cmp dword [0x597fb0], 1
je 0x54cdc7
cmp ebx, 0xfc
je 0x54cdfa
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x599848
push ebp
call fcn.0054eecb
add esp, 0xc
test eax, eax
je 0x54cce5
push esi
push esi
push esi
push esi
push esi
call fcn.0054bde5
add esp, 0x14
push 0x104
mov esi, 0x599861
push esi
push 0
mov byte [0x599965], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x54cd29
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0054eecb
add esp, 0xc
test eax, eax
je 0x54cd29
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0054bde5
add esp, 0x14
push esi
call fcn.0054ee40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x54cd6e
push esi
call fcn.0054ee40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x599b5c
push 0x570a64
sub ecx, eax
push ecx
push eax
call fcn.0054ed8b
add esp, 0x14
test eax, eax
je 0x54cd6e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0054bde5
add esp, 0x14
jmp 0x54cd70
xor esi, esi
push 0x587f80
push ebx
push ebp
call fcn.0054ed1a
add esp, 0xc
test eax, eax
je 0x54cd90
push esi
push esi
push esi
push esi
push esi
call fcn.0054bde5
add esp, 0x14
push dword [edi*8 + 0x5982e4]
push ebx
push ebp
call fcn.0054ed1a
add esp, 0xc
test eax, eax
je 0x54cdb2
push esi
push esi
push esi
push esi
push esi
call fcn.0054bde5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0054eb5d
add esp, 0xc
jmp 0x54cdfa
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x54cdfa
cmp ebp, 0xffffffff
je 0x54cdfa
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5982e4]
push dword [esi]
call fcn.0054ee40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x402930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
lea edi, [esi + 4]
test ecx, ecx
je 0x40294d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
mov eax, dword [esi]
test eax, eax
je 0x402968
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402a05
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402a05
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x402a05
push dword [ebp + 0xc]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x402a05
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4029f7
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
call fcn.00431c50
add esp, 0xc
push edi
push 0
push dword [esi]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4029ef
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
pop edi
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x4039a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x118], 8
lea edi, [esi + 0x104]
jb 0x4039bb
mov eax, dword [edi]
jmp 0x4039bd
mov eax, edi
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [edi + 0x14], 8
jb 0x4039d8
push dword [edi]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esi + 0x100], 8
jb 0x403a02
push dword [esi + 0xec]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0x100], 7
mov dword [esi + 0xfc], 0
mov word [esi + 0xec], ax
mov ecx, dword [esi + 0xd8]
test ecx, ecx
je 0x403a64
push dword [ebp - 4]
mov edx, dword [esi + 0xdc]
push ecx
call fcn.00401f50
push dword [esi + 0xd8]
call fcn.0042f2d8
add esp, 0xc
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0
cmp dword [esi + 0xc8], 8
jb 0x403a7b
push dword [esi + 0xb4]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0xc8], 7
mov dword [esi + 0xc4], 0
mov word [esi + 0xb4], ax
cmp dword [esi + 0xb0], 8
jb 0x403aaf
push dword [esi + 0x9c]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0xb0], 7
mov dword [esi + 0xac], 0
mov word [esi + 0x9c], ax
cmp dword [esi + 0x98], 8
jb 0x403ae3
push dword [esi + 0x84]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0x98], 7
mov dword [esi + 0x94], 0
mov word [esi + 0x84], ax
cmp dword [esi + 0x80], 8
jb 0x403b14
push dword [esi + 0x6c]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0x80], 7
mov dword [esi + 0x7c], 0
mov word [esi + 0x6c], ax
cmp dword [esi + 0x68], 8
jb 0x403b3c
push dword [esi + 0x54]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0x68], 7
mov dword [esi + 0x64], 0
mov word [esi + 0x54], ax
cmp dword [esi + 0x50], 8
jb 0x403b61
push dword [esi + 0x3c]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0x50], 7
mov dword [esi + 0x4c], 0
mov word [esi + 0x3c], ax
cmp dword [esi + 0x38], 8
jb 0x403b86
push dword [esi + 0x24]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [esi + 0x38], 7
mov dword [esi + 0x34], 0
mov word [esi + 0x24], ax
cmp dword [esi + 0x20], 8
jb 0x403bab
push dword [esi + 0xc]
call fcn.0042f2d8
add esp, 4
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], 0
xor eax, eax
pop edi
mov word [esi + 0xc], ax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x54
call fcn.0042fbb5
mov esi, eax
add esp, 4
test esi, esi
je 0x4048b6
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
xor eax, eax
mov word [esi + 4], ax
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], eax
mov word [esi + 0x34], ax
jmp 0x4048b8
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x1c]
cmp ecx, eax
je 0x4048d1
push 0xffffffffffffffff
push 0
push eax
call fcn.00401830
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
cmp ecx, eax
je 0x4048e5
push 0xffffffffffffffff
push 0
push eax
call fcn.00401830
mov eax, dword [ebp + 0x14]
push 0
push 0
push esi
push 0x404db0
push 0
push 0
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret 0x14

Function at 0x404920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x54
mov edi, ecx
call fcn.0042fbb5
mov esi, eax
add esp, 4
test esi, esi
je 0x404969
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
xor eax, eax
mov word [esi + 4], ax
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], eax
mov word [esi + 0x34], ax
jmp 0x40496b
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ecx
lea eax, [edi + 0x104]
test ecx, ecx
je 0x404989
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x1c]
cmp ecx, eax
je 0x40499a
push 0xffffffffffffffff
push 0
push eax
call fcn.00401830
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x34]
cmp ecx, eax
je 0x4049ae
push 0xffffffffffffffff
push 0
push eax
call fcn.00401830
push 0
push 0
push esi
push 0x404ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne al
pop esi
pop ebp
ret 0x14
Function at 0x406b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448a78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [esi], vtable.CPage.0
mov dword [esi + 4], eax
push ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x1c], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0040af70
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov word [esi + 0x20], 0
mov dword [esi + 0x24], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x18]
push eax
lea edx, [esi + 0x28]
push ecx
lea ecx, [ebp - 0x24]
mov dword [esi], vtable.CInstallPage.0
mov dword [edx], 0x69
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x54], 0
call fcn.00408140
lea edi, [ebp - 0x2c]
add esp, 8
xor ecx, ecx
xor edx, edx
cmp edi, eax
je 0x406bff
mov edx, dword [eax + 4]
mov dword [eax + 4], ecx
mov ecx, dword [eax]
mov dword [eax], 0
mov edi, dword [esi + 0x10]
or ebx, 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], ecx
test edi, edi
je 0x406c32
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x406c32
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x406c32
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x406c5b
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x406c5b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea edx, [edi + 8]
lock xadd dword [edx], ebx
dec ebx
jne 0x406c5b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
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 - 0x14]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4088e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4088f5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x408900
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408900
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x408930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x408949
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408955
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x408950
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8