joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ad0
Capabilities:
Enumerate processes
Find taskbar
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x240], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x409bd1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409bd1
mov dword [ebp - 0x23c], 0
mov esi, dword [ebp - 0x230]
mov ecx, esi
mov edx, dword [ebp - 0x240]
call fcn.00409a20
test al, al
je 0x409b8f
push esi
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409b8c
cmp esi, 0xffffffff
je 0x409b8c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x409b8c
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov esi, dword [ebp - 0x23c]
inc esi
mov dword [ebp - 0x23c], esi
jmp 0x409b95
push esi
call ebx
mov esi, dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409b31
test esi, esi
jle 0x409bd4
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov esi, dword [ebp - 0x23c]
jmp 0x409bd4
or esi, 0xffffffff
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x409bf0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.InstallLocation
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallRepairPartner
mov ecx, 0x80000001
call fcn.0040dbd0
mov edi, eax
add esp, 4
test edi, edi
jne 0x409c46
push str.InstallLocation
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallRepairPartner
mov ecx, 0x80000002
call fcn.0040dbd0
push 0
mov edi, eax
call fcn.004130f2
add esp, 8
test edi, edi
je 0x409c96
mov edx, str..exe
mov ecx, edi
call fcn.0040d3e0
test al, al
je 0x409c6a
mov ecx, edi
call fcn.0040ca40
push edi
mov esi, eax
call fcn.004130f2
add esp, 4
mov edi, esi
test edi, edi
je 0x409c96
xor eax, eax
cmp ax, word [edi]
je 0x409c96
lea eax, [ebp - 0x230]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x409c96
test byte [ebp - 0x230], 0x10
je 0x409c96
xor esi, esi
jmp 0x409d04
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004102b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x409cc9
xor esi, esi
jmp 0x409cda
lea eax, [ebp - 0x20c]
push eax
call fcn.00414e66
add esp, 4
mov esi, eax
push edi
call fcn.004130f2
add esp, 4
test esi, esi
je 0x409cf5
mov edx, str.WXBL
mov ecx, esi
call fcn.0040cae0
jmp 0x409d02
push str.C:WXBL
call fcn.00414e66
add esp, 4
mov edi, eax
push esi
call fcn.004130f2
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
call fcn.0040e38c
mov esp, ebp
pop ebp
ret

Function at 0x409d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004102b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x409d6a
xor edi, edi
xor ebx, ebx
jmp 0x409db3
lea eax, [ebp - 0x20c]
push eax
call fcn.00414e66
mov edi, eax
add esp, 4
test edi, edi
jne 0x409d83
xor ebx, ebx
jmp 0x409db3
push esi
push 0
mov ecx, str.Repair_Partner
call fcn.00407030
mov edx, str..lnk
mov ecx, eax
call fcn.0040d450
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0040cae0
push esi
mov ebx, eax
call fcn.004130f2
add esp, 8
pop esi
push edi
call fcn.004130f2
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop ebx
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x409e80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409ead
xor bl, bl
jmp 0x409f4a
mov ecx, dword [0x4305fc]
mov edx, str.libmupdf.dll
call fcn.0040cae0
mov ecx, dword [0x4305fc]
mov edx, str.npPdfViewer.dll
mov edi, eax
call fcn.0040cae0
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x430]
push eax
push esi
mov dword [ebp - 0x430], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x409f34
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x409f00
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.0040cce0
test al, al
jne 0x409f64
mov ecx, dword [ebp - 0x434]
lea edx, [ebp - 0x210]
call fcn.0040cce0
test al, al
jne 0x409f64
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
test eax, eax
jne 0x409f00
xor bl, bl
push dword [ebp - 0x434]
call fcn.004130f2
push edi
call fcn.004130f2
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x409f36

Function at 0x409f70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a054
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a054
jmp 0x409fc0
mov ecx, dword [ebp - 0x230]
call fcn.00409e80
test al, al
je 0x40a034
lea eax, [ebp - 0x214]
push eax
call fcn.00414e66
mov ebx, dword [0x42f8d0]
add esp, 4
mov dword [ebp - 0x23c], eax
mov ecx, 0x42f8d0
lea eax, [ebx + 1]
push eax
call fcn.00407990
test al, al
jne 0x40a000
xor eax, eax
mov byte [eax], al
mov eax, dword [0x42f8dc]
lea edi, [eax + ebx*4]
mov eax, dword [0x42f8d0]
cmp eax, ebx
jbe 0x40a024
sub eax, ebx
shl eax, 2
push eax
lea eax, [edi + 4]
push edi
push eax
call fcn.0040f240
add esp, 0xc
lea eax, [ebx + 1]
mov dword [0x42f8d0], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi], eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409fc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x40a960
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x30
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.004102b0
add esp, 0xc
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
call fcn.0040e0b0
push 1
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], str.REPAIR_PARTNER_INSTALLER_FRAME
mov dword [ebp - 0x28], 0x40a850
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor ecx, ecx
test ax, ax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40aac0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call ebx
test eax, eax
je 0x40ab44
lea esp, [esp]
cmp dword [ebp - 0x58], 0x12
je 0x40ac65
lea eax, [ebp - 0x5c]
push eax
push dword [0x4305e8]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40ab32
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call ebx
test eax, eax
jne 0x40ab00
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
test edi, edi
jne 0x40ab8c
test esi, esi
jne 0x40ab8c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [ebp - 0x40]
mov dword [ebp - 0x10], edi
sbb esi, dword [ebp - 0x3c]
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x10]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
jmp 0x40abb4
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], edi
sbb esi, dword [ebp - 0x3c]
mov dword [ebp - 0x14], esi
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x30]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x42ce08]
fcomp qword [0x42ce10]
fnstsw ax
test ah, 0x41
jne 0x40aae7
mov eax, dword [0x4305e0]
test eax, eax
je 0x40aae7
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40aae7
mov ecx, 0x42f8d0
call fcn.0040b1f0
call fcn.00409f70
cmp dword [0x42f8d0], 0
jne 0x40ac3e
mov esi, dword [0x42a5f0]
mov ecx, str.Thank_you_for_choosing_RepairPartner_
call fcn.00407030
test eax, eax
je 0x40ac20
push eax
call fcn.00414e66
add esp, 4
mov edi, eax
jmp 0x40ac22
xor edi, edi
push dword [0x430a80]
call fcn.004130f2
add esp, 4
mov dword [0x430a80], edi
mov dword [0x42f8cc], esi
jmp 0x40ac43
call fcn.0040a130
call fcn.00409dd0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x40aae7
mov eax, dword [ebp - 0x54]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x400]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40af3b
cmp eax, 0xf6
jae 0x40af3b
lea eax, [ebp - 0x400]
push eax
call fcn.00414e66
add esp, 4
mov dword [ebp - 0x428], eax
mov esi, eax
jmp 0x40af43
xor esi, esi
mov dword [ebp - 0x428], esi
test esi, esi
je 0x40af64
lea eax, [ebp - 0x424]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40af64
test byte [ebp - 0x424], 0x10
jne 0x40afbc
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004102b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40af9a
xor edi, edi
jmp 0x40afab
lea eax, [ebp - 0x210]
push eax
call fcn.00414e66
add esp, 4
mov edi, eax
push esi
call fcn.004130f2
mov esi, edi
add esp, 4
mov dword [ebp - 0x428], esi
test esi, esi
je 0x40b023
lea eax, [ebp - 0x424]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40b023
test byte [ebp - 0x424], 0x10
je 0x40b023
mov edx, str.installer.dmp
mov ecx, esi
call fcn.0040cae0
mov edx, str.installer.txt
mov ecx, esi
mov edi, eax
call fcn.0040cae0
push dword [ebp - 0x428]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00406830
add esp, 4
push esi
call fcn.004130f2
add esp, 4
push edi
call fcn.004130f2
mov esi, dword [ebp - 0x428]
add esp, 4
push esi
call fcn.004130f2
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x40b040
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
push 0x8001
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0040d7c0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0x7ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x24]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0
push eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp byte [esp + 0x34], 0
je 0x40b0d1
lea eax, [esp + 0x30]
push eax
call dword [esp + 0x28]
call fcn.0040aef0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.0040ac70
cmp byte [0x4305f9], 0
je 0x40b104
push 0
push str.RepairPartner_Installer_Usage
push str.RepairPartner_install.exe___s___d__path____register___opt_pdffilter_...___x___autoupdate__n_____n_____s_tinstalls_RepairPartner_silently__without_user_interaction_._n_____d_tchanges_the_directory_where_RepairPartner_will_be_installed._n_____register_tregisters_RepairPartner_as_the_default_PDF_viewer._n_____opt_tenables_optional_components__currently:_pdffilter__pdfpreviewer__plugin_._n_____x_tjust_extracts_the_files_contained_within_the_installer._n_____autoupdate_tperforms_an_update_with_visible_UI_and_minimal_user_interaction.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ebx, ebx
jmp 0x40b159
cmp dword [0x4305fc], 0
jne 0x40b117
call fcn.00409bf0
mov dword [0x4305fc], eax
call fcn.00407750
mov ecx, eax
call fcn.00407680
cmp byte [0x4305f8], 0
je 0x40b140
push 0
call fcn.00408c00
xor ebx, ebx
cmp byte [0x43060c], bl
sete bl
jmp 0x40b159
call fcn.0040a960
test al, al
je 0x40b159
call fcn.0040a9d0
test eax, eax
je 0x40b159
call fcn.0040aac0
mov ebx, eax
cmp dword [0x43056c], 0
je 0x40b19f
mov eax, dword [0x430568]
test eax, eax
je 0x40b19f
push dword [eax + 0x7c]
call fcn.004130f2
mov esi, dword [0x430568]
add esp, 4
test esi, esi
je 0x40b195
mov ecx, esi
call fcn.00406d70
push 0x88
push esi
call fcn.0040e4f3
add esp, 8
mov dword [0x430568], 0
push dword [0x4305fc]
call fcn.004130f2
add esp, 4
push dword [0x430604]
call fcn.004130f2
add esp, 4
cmp byte [esp + 0x34], 0
je 0x40b1ca
push dword [esp + 0x30]
call dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b350
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push esi
mov esi, edx
xor esi, 0x1505
push edi
mov edi, ecx
cmp edx, 4
jb 0x40b397
push ebx
mov ebx, edx
shr ebx, 2
jmp 0x40b370
imul ecx, dword [edi], 0x5bd1e995
sub edx, 4
imul esi, esi, 0x5bd1e995
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
sub ebx, 1
jne 0x40b370
pop ebx
sub edx, 1
je 0x40b3b8
sub edx, 1
je 0x40b3af
sub edx, 1
jne 0x40b3c3
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor eax, esi
imul esi, eax, 0x5bd1e995
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x40c400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004102b0
add esp, 0xc
lea eax, [ebp - 0x204]
push esi
push 0
push edi
push 0xffffffffffffffff
push 0x200
push eax
call fcn.00401040
push dword [eax + 4]
push dword [eax]
call fcn.004130a4
add esp, 0x20
mov byte [ebp - 5], 0
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
pop edi
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c462
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, 0x200
jae 0x40c4a1
mov ecx, 0x1ff
sub ecx, eax
cmp ecx, 1
jbe 0x40c487
mov ecx, 1
push ecx
push 0x425c54
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00414c2a
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret

Function at 0x40c4c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004102b0
add esp, 0xc
lea eax, [ebp - 0x204]
push esi
push 0
push edi
push 0xffffffffffffffff
push 0x100
push eax
call fcn.00401040
push dword [eax + 4]
push dword [eax]
call fcn.004130cb
add esp, 0x20
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
pop edi
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c524
sub eax, edx
sar eax, 1
lea ecx, [eax + 1]
cmp ecx, 0x100
jae 0x40c569
mov ecx, 0xff
sub ecx, eax
cmp ecx, 1
jbe 0x40c54f
mov ecx, 1
push ecx
push 0x42c980
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00414fb0
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x40c830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
test eax, eax
jne 0x40c84e
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040ce30
add esp, 4
pop ebp
ret 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [0x430a2c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x40c8b5
cmp eax, 2
je 0x40c8b0
cmp eax, 5
je 0x40c8b0
cmp eax, 0x50
je 0x40c8b0
cmp eax, 0xb7
je 0x40c8b0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8e4
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c8e4
cmp edi, dword [ebp + 8]
jne 0x40c8e4
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc

Function at 0x40ce30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce69
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ce97
cmp edi, dword [ebp - 4]
jne 0x40ce97
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ceb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040ca40
mov esi, eax
cmp esi, edi
je 0x40cf32
test esi, esi
je 0x40cf2b
test edi, edi
je 0x40cf14
mov ecx, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cf06
test dx, dx
je 0x40cf02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cf06
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cee0
xor eax, eax
jmp 0x40cf0b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40cf32
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40cf2b
test byte [ebp - 0x28], 0x10
jne 0x40cf32
mov ecx, esi
call fcn.0040ceb0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cf43
mov bl, 1
jmp 0x40cf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
push esi
call fcn.004130f2
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e38c
mov esp, ebp
pop ebp
ret

Function at 0x40dbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
mov ebx, 0x20019
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40dc56
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40dc4d
mov eax, dword [ebp - 8]
shr eax, 1
inc eax
push 2
push eax
call fcn.004131c4
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40dc4d
push edi
call fcn.004130f2
add esp, 4
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x40dc7a
mov eax, dword [ebp - 0xc]
cmp eax, 0x80000002
jne 0x40dc7a
cmp ebx, 0x20019
jne 0x40dc7a
mov edx, dword [ebp - 0x10]
mov ebx, 0x20119
jmp 0x40dbe8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [0x414790]
mov eax, dword [esp + 4]
mov ecx, edx
push esi
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x410040]
xor ecx, edx
mov edx, dword [0x414794]
mov dword [0x414790], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [0x414798]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [0x414794], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x410040]
xor ecx, edx
mov dword [0x414798], ecx
ret

Function at 0x401370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret