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

Disassembly:
push 0x3c
mov eax, 0x46e8c6
call fcn.00434a2f
mov esi, ecx
mov edx, dword [ebp + 0x18]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x40]
push edx
push 0x20019
push ebx
push eax
push ecx
mov dword [ebp - 0x44], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x408200
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
push str.Failed_to_open_registry_key___._Error_code_.
push 3
call fcn.0040381c
xor al, al
jmp 0x40825a
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
call fcn.00402abe
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x48]
lea eax, [ebp + 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x40824e
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
push str.Failed_to_query_registry_key___._Error_code_.
push 3
call fcn.0040381c
jmp 0x408250
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.0040779e
mov al, bl
call fcn.004349d9
ret 0x18
Function at 0x41437c
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x274
mov eax, 0x46fbc5
call fcn.00434a2f
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x414398
mov eax, dword [esi]
jmp 0x41439a
mov eax, esi
push str.fileLogger
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x250], eax
call fcn.0040701e
lea eax, [ebp - 0x234]
xor edi, edi
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 4], edi
push eax
call fcn.0041b7c1
pop ecx
pop ecx
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
push ecx
mov ecx, dword [eax]
push str.Cleaning_temporary_folder_at___.
push 2
call fcn.0040378a
mov ecx, dword [ebp - 0x254]
test ecx, ecx
je 0x4143f2
call fcn.00408d46
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
push edi
push 1
call fcn.0040a6c8
cmp dword [esi + 0x14], 8
jb 0x41440e
mov eax, dword [esi]
jmp 0x414410
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41452c
push 0x20c
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0044e670
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41443e
mov eax, dword [esi]
jmp 0x414440
mov eax, esi
push eax
push 0x478fa0
lea eax, [ebp - 0x21c]
push 0x208
push eax
call fcn.0041694a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x270], eax
add esp, 0x10
mov eax, 0x414
mov dword [ebp - 0x274], 3
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x26c], edi
push eax
mov dword [ebp - 0x266], edi
mov dword [ebp - 0x262], edi
mov dword [ebp - 0x25e], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x41452c
cmp dword [esi + 0x14], 8
jb 0x4144b9
mov esi, dword [esi]
push str.fileLogger
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x254], esi
call fcn.0040701e
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0041b7c1
pop ecx
pop ecx
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x254]
push ecx
mov ecx, dword [eax]
push str.Failed_to_remove_temporary_folder___._Error_code:_
push 4
call fcn.0040381c
mov ecx, dword [ebp - 0x27c]
test ecx, ecx
je 0x41451a
call fcn.00408d46
push edi
push 1
lea ecx, [ebp - 0x24c]
call fcn.0040a6c8
mov al, 1
jmp 0x41452e
xor al, al
call fcn.004349d9
ret

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

Disassembly:
push 4
mov eax, 0x46fc79
call fcn.004349fb
and dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414810
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x414814
cmp eax, 3
je 0x414814
sub esp, 0x18
mov ecx, esp
push 0x474228
call fcn.004070c0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00414d4d
add esp, 0x1c
jmp 0x41482e
test al, 0x10
jne 0x414832
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00407098
call fcn.00414848
add esp, 0x18
test al, al
je 0x414832
mov bl, 1
jmp 0x414834
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040a71d
mov al, bl
call fcn.004349c4
ret
Function at 0x414848
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x46fca4
call fcn.00434a2f
and dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
xor edi, edi
inc esi
push 0x478e2c
call fcn.004501cb
pop ecx
push eax
lea eax, [edi + 1]
push eax
push 0x478e2c
lea ecx, [ebp + 8]
call fcn.0041a76b
mov edi, eax
lea ecx, [ebp + 8]
push edi
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0041e934
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x4148bd
call ebx
cmp eax, 0xb7
je 0x4148bd
test esi, esi
je 0x4148e8
dec esi
jmp 0x414895
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040a71d
cmp edi, 0xffffffff
jne 0x414863
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040a71d
mov al, bl
call fcn.004349d9
ret
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00407098
call ebx
push eax
call fcn.00414d4d
add esp, 0x1c
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040a71d
mov bl, 1
jmp 0x4148d4

Function at 0x414911
Capabilities:
Check if file exists
Check mutex on windows
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, str.GOG_WEBINSTALLERMUTEX
push ebx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
test eax, eax
jne 0x41496e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x414967
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
test eax, eax
jne 0x414975
sub esp, 0x18
mov ecx, esp
push 0x474228
call fcn.004070c0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00414d4d
add esp, 0x1c
jmp 0x414973
call fcn.00414f30
jmp 0x414973
call fcn.0041512e
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414d4d
Capabilities:
Identify system language via api

Disassembly:
push 0x38
mov eax, 0x46fd3f
call fcn.00434a2f
xor edi, edi
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
call fcn.00415ec1
cmp eax, 0x12
jg 0x414e4e
je 0x414e37
sub eax, 4
je 0x414e20
sub eax, 3
je 0x414e09
sub eax, 3
je 0x414df2
dec eax
sub eax, ebx
je 0x414ddb
sub eax, 4
je 0x414dc4
sub eax, ebx
jne 0x414e6d
lea eax, [ebp + 8]
mov esi, 0x476c64
push eax
push ecx
mov eax, esp
mov dword [eax], 0x476c78
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, str.Installazione_fallita
push eax
push ecx
mov eax, esp
mov dword [eax], str.Impossibile_inizializzare_GOG_Galaxy_Web_Installer._Contatta_support.gog.com_per_ricevere_assistenza._Codice_errore:_.
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, 0x477424
push eax
push ecx
mov eax, esp
mov dword [eax], 0x477458
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, str.Instalaci
push eax
push ecx
mov eax, esp
mov dword [eax], str.El_instalador_web_de_GOG_Galaxy_no_ha_podido_iniciarse._Visita_support.gog.com_para_recibir_ayuda._C
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, str.Installation_fehlgeschlagen
push eax
push ecx
mov eax, esp
mov dword [eax], str.GOG_Galaxy_Installationsprogramm_fehlgeschlagen._Hilfe_erh
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, 0x476b74
push eax
push ecx
mov eax, esp
mov dword [eax], 0x476b80
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, 0x476cf4
push eax
push ecx
mov eax, esp
mov dword [eax], str.GOG_____.___support.gog.com___.__:_.
jmp 0x414ee3
cmp eax, 0x15
je 0x414ed1
cmp eax, 0x19
je 0x414ebd
cmp eax, 0x416
je 0x414ea9
cmp eax, 0x80a
je 0x414e95
cmp eax, 0x7c04
je 0x414e81
lea eax, [ebp + 8]
mov esi, str.Installation_Failed
push eax
push ecx
mov eax, esp
mov dword [eax], str.GOG_Galaxy_Web_Installer_failed_to_initialize._Contact_support.gog.com_for_assistance._Error_code:_.
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, 0x476be8
push eax
push ecx
mov eax, esp
mov dword [eax], 0x476bf8
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, str.Instalaci
push eax
push ecx
mov eax, esp
mov dword [eax], str.El_instalador_web_de_GOG_Galaxy_no_pudo_iniciarse._Visita_support.gog.com_para_recibir_ayuda._C
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, str.A_Instala
push eax
push ecx
mov eax, esp
mov dword [eax], str.O_instalador_do_GOG_Galaxy_falhou_ao_iniciar._Entre_em_contato_com_support.gog.com_para_obter_aux
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, 0x4771f0
push eax
push ecx
mov eax, esp
mov dword [eax], 0x477218
jmp 0x414ee3
lea eax, [ebp + 8]
mov esi, str.Nieudana_instalacja
push eax
push ecx
mov eax, esp
mov dword [eax], str.Instalator_sieciowy_GOG_Galaxy_nie_uruchomi
lea eax, [ebp - 0x28]
push eax
call fcn.00410bb9
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.0042b985
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040a71d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0041502e
pop ecx
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x40]
call fcn.0040a71d
push edi
push ebx
lea ecx, [ebp + 0xc]
call fcn.0040a71d
call fcn.004349d9
ret
Function at 0x415317
Capabilities:
Write file on windows

Disassembly:
push 0x58
mov eax, 0x46fd7c
call fcn.00434a2f
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
push str.fileLogger
call fcn.0040701e
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041b7c1
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 2
push 0
inc ebx
lea ecx, [ebp - 0x28]
push ebx
call fcn.0040a6c8
mov ecx, dword [ebp - 0x64]
push esi
push str.Trying_to_dump_personalized_token_to___
push 2
call fcn.0041170f
cmp dword [esi + 0x14], 8
jb 0x415375
mov eax, dword [esi]
jmp 0x415377
mov eax, esi
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
jne 0x4153b4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push str.CreateFile_failed_with_error_
push 4
call fcn.0041138f
jmp 0x415446
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x54]
push eax
call fcn.004100c7
and dword [ebp - 0x58], 0
lea eax, [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], eax
jb 0x4153e0
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [eax]
push edi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x415415
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push esi
push str.Couldnt_write_to_file___._Error_code_.
push 4
call fcn.004117a0
jmp 0x41543e
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
cmp dword [ebp - 0x58], eax
je 0x41543c
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push str.Bytes_written_to_file____does_not_match_expected_size._Written_____expected___
push 4
call fcn.00411834
jmp 0x41543e
xor bl, bl
lea ecx, [ebp - 0x50]
call fcn.0040779e
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x415452
call fcn.00408d46
mov al, bl
call fcn.004349d9
ret
Function at 0x4156e8
Capabilities:
Get common file path

Disassembly:
push 0x2c8
mov eax, 0x46fe69
call fcn.00434a2f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x415784
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.fileLogger
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x2cc], eax
call fcn.0040701e
lea eax, [ebp - 0x268]
xor esi, esi
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 4], esi
push eax
call fcn.0041b7c1
pop ecx
pop ecx
lea ecx, [ebp - 0x2cc]
xor ebx, ebx
push ecx
mov ecx, dword [eax]
inc ebx
push str.Getting_temporary_path_failed._Error_code_.
push 4
mov byte [ebp - 4], bl
call fcn.0041127a
mov ecx, dword [ebp - 0x2d0]
test ecx, ecx
je 0x415770
call fcn.00408d46
push esi
push ebx
lea ecx, [ebp - 0x268]
call fcn.0040a6c8
mov al, bl
jmp 0x4158d1
lea eax, [ebp - 0x18]
push 5
push eax
call fcn.0041b6a6
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x280]
call fcn.0040701e
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.0041de33
mov ebx, eax
xor eax, eax
mov byte [ebp - 4], 3
xor esi, esi
mov dword [ebp - 0x23c], 7
push str.GalaxyInstaller_
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], ax
call fcn.004501cb
add esp, 0xc
lea ecx, [ebp - 0x250]
push eax
push str.GalaxyInstaller_
call fcn.0040acad
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], ax
cmp word [ebp - 0x220], ax
jne 0x415823
mov eax, esi
jmp 0x415830
lea eax, [ebp - 0x220]
push eax
call fcn.004501cb
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040acad
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.004026c6
push ebx
push eax
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 6
push eax
call fcn.004026c6
add esp, 0x18
mov ecx, edi
push eax
call fcn.0042b985
xor ebx, ebx
lea ecx, [ebp - 0x298]
push esi
inc ebx
push ebx
call fcn.0040a71d
push esi
push ebx
lea ecx, [ebp - 0x2b0]
call fcn.0040a71d
push esi
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040a71d
push esi
push ebx
lea ecx, [ebp - 0x250]
call fcn.0040a71d
push esi
push ebx
lea ecx, [ebp - 0x2c8]
call fcn.0040a71d
push esi
push ebx
lea ecx, [ebp - 0x280]
call fcn.0040a6c8
xor al, al
call fcn.004349d9
ret
Function at 0x415ec1
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx eax, ax
movzx edx, al
cmp edx, 0x16
je 0x415efb
push 4
pop ecx
cmp edx, ecx
jne 0x415ee6
mov edx, 0x7c04
cmp eax, edx
cmove ecx, edx
mov eax, ecx
ret
push esi
push 0xa
pop esi
cmp edx, esi
jne 0x415efc
mov ecx, 0x80a
cmp eax, ecx
cmove esi, ecx
mov eax, esi
pop esi
ret
mov eax, 0x474590
mov esi, dword [eax]
cmp edx, esi
je 0x415ef8
add eax, ecx
cmp eax, 0x4745c8
jne 0x415f01
push 9
pop eax
pop esi
ret
Function at 0x41699a
Capabilities:
Identify system language via api

Disassembly:
push 0x44
mov eax, 0x470127
call fcn.00434a2f
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00408842
test al, al
jne 0x416a07
push str.fileLogger
lea ecx, [ebp - 0x28]
call fcn.0040701e
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041b7c1
pop ecx
pop ecx
mov ecx, dword [eax]
push str.Windows_7_or_later_not_found___system_not_suitable_for_Galaxy_install.
push 3
mov byte [ebp - 4], 1
call fcn.00403735
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4169f2
call fcn.00408d46
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040a6c8
call fcn.00415219
mov al, 1
jmp 0x416a73
mov ecx, esi
call fcn.004087cf
test al, al
jne 0x416a71
mov ecx, esi
call fcn.00408808
test al, al
jne 0x416a71
push str.fileLogger
lea ecx, [ebp - 0x40]
call fcn.0040701e
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041b7c1
pop ecx
pop ecx
mov ecx, dword [eax]
push str..NET_framework_not_found___system_not_suitable_for_Galaxy_install.
push 3
mov byte [ebp - 4], 3
call fcn.00403735
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x416a5e
call fcn.00408d46
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040a6c8
call fcn.00415043
jmp 0x416a03
xor al, al
call fcn.004349d9
ret

Function at 0x4186e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 2
mov eax, dword [eax + 0x224]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call fcn.00453f38
push eax
push esi
push 1
push edi
call fcn.004566f5
push 2
call fcn.00453f38
push eax
call fcn.00457879
add esp, 0x1c
pop edi
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41a585
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a59a
test al, 0x10
jne 0x41a59a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41ef19
Capabilities:
Write file on windows

Disassembly:
push 0x58
mov eax, 0x470aee
call fcn.00434a2f
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov eax, dword [eax + 0x224]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.004566f5
add esp, 0x10
cmp eax, esi
je 0x41ef8f
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041a59e
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x64]
push str.Failed_writing_to_file
push eax
call fcn.0040f640
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.004501b8
lea ecx, [ebp - 0x34]
push dword [eax]
push esi
call fcn.0041349b
push 0x491dc4
lea eax, [ebp - 0x34]
push eax
call fcn.0044e84c
call fcn.004349d9
ret 4
Function at 0x42002e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x10]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
test eax, eax
jne 0x420065
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_find_resource._Resource_id:_.
mov ecx, dword [edi]
push 4
call fcn.0041138f
mov al, 1
jmp 0x420099
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esi], eax
test eax, eax
jne 0x42007f
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_load_resource._Resource_id:_.
jmp 0x420058
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push dword [esi + 4]
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi + 0xc], eax
xor al, al
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42009f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push ebx
push eax
push 2
pop edi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x4200cf
mov al, 1
jmp 0x420113
cmp dword [ebp - 4], edi
jne 0x4200cb
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 1
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call esi
test eax, eax
je 0x4200cb
cmp dword [ebp - 4], edi
jne 0x4200cb
movzx eax, word [ebp + 0xc]
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x4200cb
cmp dword [ebp - 4], edi
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43742c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x466174
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465e34
Function at 0x401119
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x401139
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x401126
ret
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4345c7
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00434777
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4346c5
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x434668
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4346ab
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x43467f
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x43469a
test al, 0x40
je 0x434691
mov ecx, dword [edi + 0x20]
jmp 0x434698
test al, 0x80
je 0x4346ab
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4346ab
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x434637
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x46b19c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
and eax, 0x20000000
je 0x46b1d3
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
and ecx, 0x40000000
je 0x46b1e9
mov dword [ebp - 0xc], 1
mov edx, dword [ebp + 8]
and edx, 0x80000000
je 0x46b1ff
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], 0x80
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], pe_nt_image_headers32
mov eax, dword [ebp - 8]
shl eax, 4
lea ecx, [ebp + eax - 0x30]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + edx*8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
and eax, 0x4000000
je 0x46b26a
mov ecx, dword [ebp - 4]
or ecx, 0x200
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret