joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ea2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 0
call fcn.0040c260
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xb8], 0
call fcn.0040c2c0
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0xb8], 1
call fcn.0040c2c0
push 0
lea ecx, [esp + 0xc]
mov byte [esp + 0xb8], 2
call fcn.0040c260
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040cad0
lea ecx, [esp + 8]
mov bl, al
call fcn.0040c3d0
test bl, bl
je 0x40d553
mov esi, dword [esp + 0xc4]
lea ecx, [esp + 0x30]
call fcn.0040c490
test al, al
je 0x40d4ca
lea edx, [esp + 0x1c]
lea eax, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0040d050
lea ecx, [esp + 0x84]
push esi
push ecx
mov ecx, eax
mov byte [esp + 0xbc], 3
call fcn.0040d1a0
push eax
lea ecx, [esp + 0x48]
call fcn.0040cb90
lea ecx, [esp + 0x84]
call fcn.0040c3d0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb4], 2
call fcn.0040c3d0
push 1
lea ecx, [esp + 0x34]
call fcn.0040ccb0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x98]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0040d050
lea ecx, [esp + 0x70]
push esi
push ecx
mov ecx, eax
mov byte [esp + 0xbc], 4
call fcn.0040d1a0
push eax
lea ecx, [esp + 0x20]
call fcn.0040cb90
lea ecx, [esp + 0x70]
call fcn.0040c3d0
lea ecx, [esp + 0x98]
mov byte [esp + 0xb4], 2
call fcn.0040c3d0
push 0
lea ecx, [esp + 0xc]
call fcn.0040c260
lea edx, [esp + 8]
lea ecx, [esp + 0x30]
push edx
call fcn.0040cad0
lea ecx, [esp + 8]
mov bl, al
call fcn.0040c3d0
test bl, bl
jne 0x40d46b
mov esi, dword [esp + 0xbc]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040c2c0
lea ecx, [esp + 0x30]
call fcn.0040c3d0
lea ecx, [esp + 0x1c]
call fcn.0040c3d0
lea ecx, [esp + 0x44]
call fcn.0040c3d0
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 0xc

Function at 0x40d8c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x401050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x401070
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x401099
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x401096
inc esi
cmp esi, edx
jb 0x401087
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x4011a9
cmp ecx, 3
jbe 0x4010d8
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x401116
cmp cl, 0xff
je 0x401116
mov edx, dword [ebp - 8]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x401080
dec ecx
shl eax, cl
and eax, 7
je 0x4010b0
movzx ecx, byte [eax + 0x4268a0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x426898], 0
mov cl, byte [edx + 4]
je 0x401100
test cl, cl
je 0x401100
cmp cl, 0xff
jne 0x4010b0
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x401080
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x401172
movzx edx, byte [eax + 0x4268a0]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40115e
cmp dl, 0xff
jne 0x401172
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x401134
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x401080
pop esi
pop ebx
cmp ecx, 3
jbe 0x4011be
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040c400
Function at 0x405a20
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
push ebx
push esi
push edi
push dword [0x430554]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405a46
call esi
cmp eax, 2
je 0x405a46
xor bh, bh
jmp 0x405a48
mov bh, 1
push dword [0x430550]
call edi
test eax, eax
jne 0x405a5f
call esi
cmp eax, 2
je 0x405a5f
xor bl, bl
jmp 0x405a61
mov bl, 1
push dword [0x430564]
call edi
test eax, eax
jne 0x405a78
call esi
cmp eax, 2
je 0x405a78
xor al, al
jmp 0x405a7a
mov al, 1
test bh, bh
je 0x405a8c
test bl, bl
je 0x405a8c
test al, al
je 0x405a8c
pop edi
pop esi
mov al, 1
pop ebx
ret
push str.DeleteSymbolsIfExist___failed_to_delete
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x405aa0
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x430514]
test eax, eax
je 0x405afe
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x405afe
test byte [ebp - 0x28], 0x10
je 0x405afe
call fcn.00405a20
test al, al
jne 0x405ae0
push str.DownloadAndUnzipSymbols__:_DeleteSymbolsIfExist___failed
jmp 0x405b03
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405b0b
push str.DownloadAndUnzipSymbols__:_deleting_pdbZipPath_failed
jmp 0x405b03
push str.DownloadAndUnzipSymbols__:_exiting_because_symDir_doesnt_exist
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x405b60
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0
push dword [0x430514]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
jne 0x405b9d
push str.SubmitCrashInfo__:_couldnt_create_symbols_dir
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x430504]
push ecx
push str.SubmitCrashInfo__:_gSymbolPathW:__s
call fcn.00405570
add esp, 8
xor dl, dl
call fcn.0040ba10
test al, al
jne 0x405bcd
push str.SubmitCrashInfo__:_dbghelp::Initialize___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, fcn.0040b970
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.0040b970
add esp, 8
test al, al
jne 0x405c21
call fcn.00405aa0
test al, al
jne 0x405bff
push str.SubmitCrashInfo__:_failed_to_download_symbols
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x430504]
mov dl, 1
call fcn.0040ba10
test al, al
jne 0x405c21
push str.SubmitCrashInfo__:_second_dbghelp::Initialize___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0040b970
add esp, 8
test al, al
jne 0x405c40
push str.SubmitCrashInfo__:_HasSymbols___false_after_downloading_symbols
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00405630
mov esi, eax
test esi, esi
je 0x405c65
mov ecx, esi
call fcn.00405b20
mov ecx, esi
call fcn.004057f0
mov ecx, dword [0x430520]
push esi
mov edx, dword [ecx]
call dword [edx + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4061d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov byte [ebp - 0x24], 0
push edi
push 0x1f
mov dword [ebp - 0x23], eax
mov edi, ecx
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x44], al
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x24]
push eax
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x1f
lea eax, [ebp - 0x44]
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push str.Lang:__s__s_r_n
push edi
call fcn.004069f0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x406270
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x74]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x60]
push str.Number_Of_Processors:__d_r_n
push esi
call fcn.004069f0
add esp, 0xc
mov ecx, esi
call fcn.00405f20
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x4c], ecx
sub esp, 0x10
fild qword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
fild qword [ebp - 0x50]
fchs
faddp st(1)
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fld qword [0x42cdc0]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
fmul st(1), st(0)
fxch st(1)
mov dword [ebp - 0x50], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fstp qword [esp + 8]
mov dword [ebp - 0x4c], ecx
fild qword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
fild qword [ebp - 0x50]
fchs
faddp st(1)
fstp dword [ebp - 0x4c]
fmul dword [ebp - 0x4c]
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fstp qword [esp]
push str.Physical_Memory:__.2f_GB_r_nCommit_Charge_Limit:__.2f_GB_r_nMemory_Used:__d___r_n
push esi
call fcn.004069f0
add esp, 0x1c
mov ecx, esi
call fcn.00405f90
mov ecx, esi
call fcn.004061d0
mov ecx, esi
call fcn.00406070
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x406380
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor bl, bl
mov dword [ebp - 0x43c], ecx
push edi
mov byte [ebp - 0x431], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x438], eax
cmp eax, 0xffffffff
jne 0x4063d1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x40648d
push ecx
lea ecx, [ebp - 0x410]
call fcn.0040d530
mov edi, eax
add esp, 4
cmp edi, str.winex11.drv
je 0x406425
test edi, edi
je 0x40642c
push str.winex11.drv
push edi
call fcn.004153b3
add esp, 8
test eax, eax
sete al
test al, al
je 0x40642c
mov byte [ebp - 0x431], 1
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040d530
mov esi, eax
push esi
push edi
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push str.Module:__p__06X___16s__s_r_n
push dword [ebp - 0x43c]
call fcn.004069f0
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_Module32NextW]
push esi
mov ebx, eax
call fcn.004130f2
push edi
call fcn.004130f2
add esp, 8
test ebx, ebx
jne 0x4063f1
mov bl, byte [ebp - 0x431]
push dword [ebp - 0x438]
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
Function at 0x406830
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
jne 0x40684e
push str.InstallCrashHandler:_skipping_because__crashDumpPath_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ecx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.004067a0
test al, al
jne 0x40686a
push str.InstallCrashHandler:_skipping_because__SetSymbolsDir___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ecx
pop ebp
ret
push edi
call fcn.00414e66
add esp, 4
mov dword [0x430500], eax
test esi, esi
je 0x40688c
push esi
call fcn.00414e66
add esp, 4
mov dword [0x430508], eax
jmp 0x406896
mov dword [0x430508], 0
call fcn.004064b0
test al, al
je 0x4068af
push str.InstallCrashHandler:_skipping_because_isWine_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ecx
pop ebp
ret
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
call fcn.00406550
push 8
call fcn.0040e4c0
add esp, 4
mov esi, eax
push 0
push 0x20000
push 0
mov dword [esi], 0x42b028
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0x42aed4
push str.https:__kjkpub.s3.amazonaws.com_repairpartner_rel_RepairPartner_1.1.0.56
push str._s_s.pdb.lzsa
mov dword [esi + 4], eax
mov dword [0x430520], esi
call fcn.0040d750
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x43050c], eax
test eax, eax
jne 0x40692f
push str.InstallCrashHandler:_skipping_because__gDumpEvent_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ecx
pop ebp
ret
push 0
push 0
push 0
push 0x405c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4304fc], eax
test eax, eax
jne 0x40695d
push str.InstallCrashHandler:_skipping_because__gDumpThread_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ecx
pop ebp
ret
push 0x405cc0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x406770
push 0x16
call fcn.0041465e
add esp, 8
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x407680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x43056c]
push ebx
push esi
mov esi, ecx
push edi
cmp esi, eax
je 0x407740
test esi, esi
je 0x4076b1
test eax, eax
je 0x4076b1
push eax
push esi
call fcn.004153b3
add esp, 8
test eax, eax
sete al
test al, al
jne 0x407740
mov edx, esi
call fcn.0040d760
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4076cf
push esi
push str.SetCurrentLangByCode:_unknown_lang_code:__s_n
call fcn.00405580
add esp, 8
xor ecx, ecx
mov dword [0x430570], ecx
mov eax, 0x42c5a8
test ecx, ecx
jle 0x4076f1
mov edi, edi
cmp byte [eax], 0
je 0x4076eb
inc eax
cmp byte [eax], 0
jne 0x4076e5
dec ecx
inc eax
test ecx, ecx
jg 0x4076e0
push 0xa
push 2
push 0
mov dword [0x43056c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x407740
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x407740
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x407740
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004077e0
mov ecx, esi
call fcn.004070e0
add esp, 0x18
pop edi
pop esi
pop ebx
ret

Function at 0x407e70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040c4c0

Function at 0x408150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x42f00c]
xor eax, esp
mov dword [esp + 0xe0c], eax
push esi
push edi
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4081d6
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4081d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 8]
mov edx, eax
push ecx
mov ecx, esi
call fcn.0040d0f0
add esp, 4
test al, al
je 0x4081d6
lea ecx, [esp + 8]
call fcn.00407e80
pop edi
pop esi
mov ecx, dword [esp + 0xe0c]
xor ecx, esp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
mov ecx, str.The_installer_has_been_corrupted._Please_download_it_again._nSorry_for_the_inconvenience_
call fcn.00407030
cmp dword [0x430604], 0
mov esi, eax
jne 0x408209
test esi, esi
je 0x4081ff
push esi
call fcn.00414e66
add esp, 4
mov dword [0x430604], eax
jmp 0x408209
mov dword [0x430604], 0
push esi
push 0x42c300
call fcn.00407e70
add esp, 8
xor al, al
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x408230
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x42f00c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov eax, ecx
mov edx, 0x42b188
push edi
mov dword [esp + 0xc], eax
call fcn.0040cae0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x408356
mov edi, dword [esp + 0xc]
test byte [esp + 0x18], 0x10
jne 0x408294
add ebx, dword [esp + 0x38]
jmp 0x408337
mov ecx, 0x42b18c
lea eax, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4082c6
test dx, dx
je 0x4082c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4082c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4082a0
xor eax, eax
jmp 0x4082cb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x408337
mov eax, 0x42b190
lea ecx, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x408306
test dx, dx
je 0x408302
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x408306
add ecx, 4
add eax, 4
test dx, dx
jne 0x4082e0
xor eax, eax
jmp 0x40830b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x408337
lea edx, [esp + 0x44]
mov ecx, edi
call fcn.0040cae0
mov esi, eax
mov ecx, esi
call fcn.00408230
push esi
add ebx, eax
call fcn.004130f2
mov esi, dword [esp + 0x14]
add esp, 4
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408284
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x14]
push edi
call fcn.004130f2
mov ecx, dword [esp + 0x270]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e38c
mov esp, ebp
pop ebp
ret
Function at 0x408b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4305fc]
sub esp, 0x3c
mov edx, 0x42b5cc
push esi
call fcn.0040cae0
mov esi, eax
test esi, esi
je 0x408bef
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004102b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x400
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push 0
push 0x10
push dword [0x4305e8]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call fcn.004130f2
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409460
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
mov edi, dword [0x4305f0]
push 0
push 0
push 0xe
push edi
call ebx
mov dword [ebp - 0x23c], eax
inc eax
push 2
push eax
mov dword [ebp - 0x238], eax
call fcn.004131c4
mov esi, eax
add esp, 8
test esi, esi
je 0x4094dd
push esi
push dword [ebp - 0x238]
push 0xd
push edi
call ebx
mov eax, dword [ebp - 0x23c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x234]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4094dd
test byte [ebp - 0x234], 0x10
jne 0x4094f1
mov ecx, esi
call fcn.0040ca40
push esi
mov edi, eax
call fcn.004130f2
add esp, 4
mov esi, edi
push ecx
lea eax, [ebp - 0x210]
mov ecx, str.Select_the_folder_where_RepairPartner_should_be_installed:
push eax
call fcn.00407030
push eax
mov edx, esi
call fcn.004093d0
add esp, 0xc
test eax, eax
jne 0x409520
push dword [0x430610]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x409581
lea edi, [ebp - 0x210]
mov edx, 0x42bcc4
mov ecx, edi
call fcn.0040d3e0
test al, al
jne 0x409544
mov edx, 0x42b25c
mov ecx, edi
call fcn.0040cae0
mov edi, eax
push edi
push 0
push 0xc
push dword [0x4305f0]
call ebx
push 0xffffffffffffffff
push 0
push 0xb1
push dword [0x4305f0]
call ebx
push dword [0x4305f0]
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [ebp - 0x210]
cmp edi, eax
je 0x409581
push edi
call fcn.004130f2
add esp, 4
push esi
call fcn.004130f2
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e38c
mov esp, ebp
pop ebp
ret

Function at 0x409a20
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
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x409aaf
cmp esi, 0xffffffff
je 0x409aaf
push 0x424
lea eax, [ebp - 0x42c]
push 0
push eax
call fcn.004102b0
add esp, 0xc
mov dword [ebp - 0x430], 0x428
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x409aaf
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x409a90
lea edx, [ebp - 0x210]
mov ecx, ebx
call fcn.0040cce0
test al, al
jne 0x409acb
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x409a90
xor bl, bl
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 0x409ab1