joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80fedb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40447c
call fcn.00406e11
push 4
mov dword [esp + 0x18], 0
call fcn.00407cd2
mov edi, eax
add esp, 4
test edi, edi
je 0x406224
push ebx
call fcn.00406ce9
mov dword [edi], eax
call fcn.00406aa8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406dd2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406218
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406dfa
pop ebx
jmp 0x406226
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408741
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813dc0]
jne 0x40874b
repz ret
jmp fcn.0040deac
Function at 0x412ab4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813dc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aaba
and dword [ebp - 0x14], 0
cmp dword [0x8163b4], 0
mov dword [ebp - 0x18], eax
jne 0x412b67
push 0x403fb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412c0f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fa4
push ebx
call edi
test eax, eax
je 0x412c0f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f94
push ebx
mov dword [0x8163b4], eax
call edi
push eax
call esi
push 0x403f80
push ebx
mov dword [0x8163b8], eax
call edi
push eax
call esi
push 0x403f64
push ebx
mov dword [0x8163bc], eax
call edi
push eax
call esi
mov dword [0x8163c4], eax
test eax, eax
je 0x412b67
push 0x403f4c
push ebx
call edi
push eax
call esi
mov dword [0x8163c0], eax
mov eax, dword [0x8163c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412bc0
cmp dword [0x8163c4], ecx
je 0x412bc0
push eax
call esi
push dword [0x8163c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412bc0
test ebx, ebx
je 0x412bc0
call edi
test eax, eax
je 0x412bb7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412bb7
test byte [ebp - 8], 1
jne 0x412bc0
or dword [ebp + 0x10], 0x200000
jmp 0x412bf3
mov eax, dword [0x8163b8]
cmp eax, dword [ebp - 0x18]
je 0x412bf3
push eax
call esi
test eax, eax
je 0x412bf3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412bf3
mov eax, dword [0x8163bc]
cmp eax, dword [ebp - 0x18]
je 0x412bf3
push eax
call esi
test eax, eax
je 0x412bf3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8163b4]
call esi
test eax, eax
je 0x412c0f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412c11
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408741
leave
ret
Function at 0x80e8e0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9b100], 0x37
jne 0x80e983
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x404120
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0xb9b104]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x81b164]
mov byte [edx + esi], cl
add esp, 0xc0c
ret
Function at 0x80eb90
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9b100]
sub esp, 0xad4
push ebx
mov ebx, dword [0x81b164]
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x80ed81
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x80ebc6
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0xb9b100], 0x1c
jne 0x80ebdd
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [ebx + 4]
mov edx, dword [0x8146f8]
mov eax, dword [0x8146fc]
mov edi, dword [ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x814700]
mov dword [esp + 0x34], edx
mov edx, dword [0x814704]
mov ebx, 0xc6ef3720
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], 0x20
jmp 0x80ec22
xor esi, esi
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x38]
lea edx, [ebx + edi]
xor ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [0xb9a084], esi
mov eax, dword [esp + 0x1c]
add dword [0xb9a084], eax
mov eax, dword [0xb9a084]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
cmp dword [0xb9b100], 0x1be
mov eax, dword [esp + 0x18]
lea ebp, [ebx + eax]
jne 0x80ecb6
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [esp + 0x18]
shr esi, 5
add esi, dword [esp + 0x3c]
cmp dword [0xb9b100], 0x979
mov dword [0xb9a088], 0xff6b3619
mov dword [0xb9a08c], 0xffffffff
jne 0x80ed05
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x2e4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x14]
xor esi, ebp
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
mov dword [esp + 0x14], eax
jne 0x80ec20
cmp dword [0xb9b100], 0x8d4
jne 0x80ed3a
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ecx
cmp dword [0xb9b100], 0x17
jne 0x80ed70
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x80ebc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xad4
ret
Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add ecx, ecx
inc ecx
call fcn.0040894f
xor dword [ebx], esi
mov ecx, ecx
mov edi, edi
inc ebx
cmp ebx, edx
jne fcn.00408936
ret
Function at 0x405f20
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
sub esp, 0x20
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x483038]
xor ecx, esp
mov dword [esp + 0x1c], ecx
cmp byte [eax], 0x26
jne 0x405fc2
add eax, 1
mov ecx, esp
lea edx, [esp + 4]
push ecx
push edx
push 0x473963
push eax
call fcn.00405ff0
add esp, 0x10
cmp eax, 2
jne 0x405fc2
push dword [esp]
push 0
push 0
push 4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test eax, eax
je 0x405fbb
mov eax, dword [esp + 0x30]
mov ecx, dword [esp]
mov dword [esp + 8], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 8]
mov dword [esp + 0x18], ecx
push ecx
push eax
call fcn.0042fe00
add esp, 8
test al, al
je 0x405fd7
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
invalid
xchg ebp, eax

Function at 0x406150
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push ebx
push edi
push esi
cmp dword [esp + 0x14], 2
jne 0x4061fd
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x4061fd
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4061fd
mov edi, eax
mov bl, byte [esp + 0x20]
push ebp
push dword [esp + 0x1c]
push eax
call fcn.00443dc0
add esp, 0xc
mov byte [edi + ebp], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
jne 0x4061bf
push 0
push 1
push 0x8002
push dword [0x483004]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x483004]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406202
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test bl, bl
jne 0x4061fd
push 0
push 0
push 0x8002
push dword [0x483004]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test bl, bl
je 0x4061e8
jmp 0x4061fd
Function at 0x40a8c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
sub esp, 0x104
mov eax, dword [0x483038]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, esp
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x40a8f5
cmp byte [esp + 0x12], 0
js 0x40a8f9
mov bl, byte [esp + 0xa5]
shr bl, 7
jmp 0x40a8fb
xor ebx, ebx
jmp 0x40a8fb
mov bl, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00441724
mov eax, ebx
add esp, 0x104
pop ebx
ret

Function at 0x40ae10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
cmp byte [0x484d4c], 0
je 0x40ae1c
pop esi
ret
mov byte [0x484d4c], 1
push str.hhctrl.ocx
call fcn.00432610
add esp, 4
mov esi, eax
test eax, eax
je 0x40ae73
push str.HtmlHelpA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x484d50], eax
test eax, eax
je 0x40ae7d
cmp byte [0x484d61], 0
jne 0x40aeda
mov byte [0x484d61], 1
cmp byte [0x484d44], 1
jne 0x40ae86
mov eax, dword [0x484d48]
test eax, eax
jne 0x40aea8
jmp 0x40aeda
mov dword [0x484d50], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
ret
mov byte [0x484d44], 1
push 0x7d0
push 0x7d0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x484d48], eax
test eax, eax
je 0x40aeda
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x484d64], eax
test eax, eax
je 0x40aeda
push dword [0x484d48]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40aeda
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x484d5c], eax
jmp 0x40aedf
mov eax, dword [0x484d5c]
test eax, eax
jne 0x40ae1a
push 0
push str.SoftwareSimonTathamPuTTY64CHMPath
push 0x80000002
call fcn.00432a90
add esp, 0xc
test eax, eax
jne 0x40af1b
push 0
push str.SoftwareSimonTathamPuTTYCHMPath
push 0x80000002
call fcn.00432a90
add esp, 0xc
test eax, eax
je 0x40ae1a
mov dword [0x484d54], eax
mov byte [0x484d58], 0
pop esi
ret

Function at 0x40af30
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x484d54]
test eax, eax
je 0x40af63
cmp byte [0x484d58], 1
jne 0x40af65
push 0
push 0x12
push 0
push 0
call dword [0x484d50]
push dword [0x484d54]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x484d54]
jmp 0x40af65
xor eax, eax
push eax
call fcn.00430760
add esp, 4
mov dword [0x484d54], 0
mov byte [0x484d58], 0
ret
Function at 0x40af90
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov eax, dword [0x483038]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [0x484d54]
test eax, eax
jne 0x40b0ea
cmp dword [0x484d5c], 0
je 0x40b0ea
xor esi, esi
cmp byte [0x484d68], 0
jne 0x40b0dc
mov byte [0x484d68], 1
lea edi, [esp + 0xa]
push edi
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b0dc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
push 0
push 0
push eax
push edi
push str._sputty__lu__llu.chm
call fcn.004301c0
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40b096
mov dword [esp], ebp
xor ebp, ebp
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x40b0dc
push esi
call fcn.00430760
add esp, 4
add ebp, 1
adc edi, 0
push edi
push ebp
push dword [esp + 8]
lea eax, [esp + 0x16]
push eax
push str._sputty__lu__llu.chm
call fcn.004301c0
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40b040
mov ebx, eax
xor edi, edi
mov ebp, dword [0x484d5c]
mov eax, dword [0x484d64]
sub eax, edi
jbe 0x40b154
mov dword [esp + 4], 0
lea ecx, [edi + ebp]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 4]
test eax, eax
jne 0x40b0a0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b163
push esi
call fcn.00430760
add esp, 4
mov eax, dword [0x484d54]
test eax, eax
je 0x40b13b
mov ecx, dword [esp + 0x12c]
mov edi, dword [esp + 0x128]
test ecx, ecx
je 0x40b128
push ecx
push eax
push str._s::__s.html_main
call fcn.004301c0
add esp, 0xc
mov esi, eax
push 0
push 0
push eax
push edi
call dword [0x484d50]
push esi
call fcn.00430760
add esp, 4
jmp 0x40b134
push 0
push 0
push eax
push edi
call dword [0x484d50]
mov byte [0x484d60], 1
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00441724
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x484d54], esi
mov byte [0x484d58], 1
xor esi, esi
push esi
call fcn.00430760
add esp, 4
cmp ebx, 0xffffffff
je 0x40b0e5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b0e5
Function at 0x415f10
Capabilities:
Contain obfuscated stackstrings
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x112c], 2
jl 0x415f6f
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x1124], eax
jne 0x415f6f
mov dword [esi + 0xe28], 0
mov dword [esi + 0xe34], 0
mov dword [esi + 0xe38], 0
mov dword [esi + 0xe3c], 0
mov dword [esi + 0xe40], 0
push esi
call fcn.0040ba40
add esp, 4
mov ecx, esi
xor edx, edx
pop esi
jmp fcn.00412480
pop esi
ret

Function at 0x41d9d0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x41da10
push 0
push 0x6f
push dword [0x483b08]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret

Function at 0x41e430
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x484d94]
test eax, eax
jne 0x41e465
push 0
push 0x41e470
push dword [esp + 0xc]
push 0x6e
push dword [0x483b08]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x484d94], eax
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x484d94]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
ret
Function at 0x425730
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push edi
push esi
cmp dword [0x485a6c], 0
jne 0x42576b
push 0x425880
call fcn.00430f70
add esp, 4
mov dword [0x485a6c], eax
push 0x4258e0
call fcn.00430f70
add esp, 4
mov dword [0x485a70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x485a68], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x485a68], eax
push 0
push dword [0x485a6c]
call fcn.00431730
add esp, 8
test eax, eax
je 0x425819
mov esi, eax
mov edi, dword [esp + 0x14]
jmp 0x4257cf
push 0
push dword [0x485a6c]
call fcn.00431d40
add esp, 8
push esi
call fcn.00430760
add esp, 4
push 0
push dword [0x485a6c]
call fcn.00431730
add esp, 8
mov esi, eax
test eax, eax
je 0x425819
push 0
push dword [esi + 4]
push dword [0x485a70]
call fcn.00431d00
add esp, 0xc
test eax, eax
je 0x4257a0
mov ecx, dword [0x485a68]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
add edx, 0xfffffff6
sub ecx, edx
mov ebx, eax
sub ebx, edx
cmp ecx, ebx
jbe 0x42581d
push 0
push dword [0x485a6c]
call fcn.00431d40
add esp, 8
push dword [esi + 8]
push dword [esi + 4]
call dword [esi]
jmp 0x4257ad
xor eax, eax
jmp 0x425821
mov dword [edi], eax
mov al, 1
pop esi
pop edi
pop ebx
ret

Function at 0x425ba0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x483038]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004306d0
add esp, 0xc
mov esi, eax
mov dword [eax], 0
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1028], ebx
mov byte [esi + 0x16], 0
mov word [esi + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x483030], 0xffffffff
jne 0x425c53
mov dword [0x485a78], 0x485a78
mov dword [0x485a7c], 0x485a78
push 0x485a80
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x483030], eax
push 0
push 0x426300
push eax
call fcn.00425900
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x425c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x425c73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00441724
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425e80
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x483038]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004306d0
add esp, 0xc
mov esi, eax
mov dword [eax], 1
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x30]
push eax
call fcn.00434f10
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], esi
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x483030], 0xffffffff
jne 0x425f43
mov dword [0x485a78], 0x485a78
mov dword [0x485a7c], 0x485a78
push 0x485a80
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x483030], eax
push 0
push 0x426300
push eax
call fcn.00425900
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x425f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x425f63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00441724
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4325a0
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x4861d8], 0
jne 0x432600
push dword [0x4861dc]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x4861dc]
jb 0x432600
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 1
push eax
push 1
push 0x4861dc
push dword [0x4861d8]
call fcn.00430770
add esp, 0x18
mov dword [0x4861d8], eax
push dword [0x4861dc]
push eax
call esi
cmp eax, dword [0x4861dc]
jae 0x4325d0
mov eax, dword [0x4861d8]
pop esi
ret

Function at 0x432750
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x483038]
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], 0x105
mov ebx, 0x105
push 0
push 1
push 0x105
call fcn.004306d0
add esp, 0xc
mov esi, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, esp
nop
nop
nop
nop
nop
nop
nop
push ebx
push esi
push dword [esp + 0x28]
push dword [esp + 0x28]
call ebp
cmp eax, 0xea
jne 0x4327be
push 0
push 1
push dword [esp + 8]
push 1
push edi
push esi
call fcn.00430770
add esp, 0x18
mov esi, eax
mov ebx, dword [esp]
jmp 0x432790
test eax, eax
je 0x4327cd
push esi
call fcn.00430760
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00441724
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4327f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [0x483038]
xor esi, esp
mov dword [esp + 8], esi
mov dword [esp], 4
mov esi, esp
lea edi, [esp + 4]
push esi
push edx
push edi
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
xor ecx, 4
or ecx, eax
mov eax, dword [esp + 4]
xor eax, 4
or eax, ecx
sete bl
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00441724
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
ret

Function at 0x432850
Capabilities:
Set registry value

Disassembly:
push ebx
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x483038]
xor edx, esp
mov dword [esp], edx
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov ecx, dword [esp]
xor ecx, esp
call fcn.00441724
mov eax, ebx
add esp, 4
pop ebx
ret