joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4212c0
Capabilities:
Change the wallpaper
Create thread
Get common file path
Get disk information
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2000
push 0
push 0
push 0
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x421375
lea eax, [ebp - 0x44c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x244]
push str._s_tmp.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x244]
call fcn.004215c0
test eax, eax
je 0x42135e
push 3
lea eax, [ebp - 0x244]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
mov ecx, str.Failed_to_set_wallpaper._n
mov edx, str.Wallpaper_set_successfully._n
cmovne ecx, edx
jmp 0x421363
mov ecx, str.Failed_to_save_bitmap_to_file._n
push ecx
call fcn.00401040
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x421382
push str.Failed_to_load_bitmap_from_resource._n
call fcn.00401040
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x421810
push 0
push 0
mov dword [0x431c70], 0
call ebx
mov ecx, dword [0x431c70]
push 0
push 0
push 0
push 0x422730
mov dword [ecx*4 + 0x431c80], eax
inc ecx
push 0
push 0
mov dword [0x431c70], ecx
call ebx
mov ecx, dword [0x431c70]
mov dword [ecx*4 + 0x431c80], eax
lea eax, [ebp - 0x348]
push eax
push 0
push 0
push 0x1a
inc ecx
push 0
mov dword [0x431c70], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x140]
push str._sdec_key.dat
push eax
call fcn.004010d0
lea eax, [ebp - 0x140]
push 0x4291c8
push eax
call fcn.0040ba13
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42144d
push esi
push 0x24
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.0040c47b
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x18], 0
call fcn.00422030
push esi
mov byte [0x42c918], 0
call fcn.0040bb4f
add esp, 0x14
mov edi, 0x61
mov dword [ebp - 0x14], 0x3a0063
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0x5c
movq qword [ebp - 0xc], xmm0
mov ebx, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x421496
sub eax, 1
je 0x421496
sub eax, 1
je 0x421496
mov ecx, dword [0x431c70]
jmp 0x4214df
push 4
call fcn.00401114
push 0x65
push ebx
mov esi, eax
push str._c_c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push 0
push esi
push 0x4221c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x431c70]
mov dword [ecx*4 + 0x431c80], eax
inc ecx
inc dword [0x431c74]
mov dword [0x431c70], ecx
inc edi
inc ebx
cmp di, 0x7a
jbe 0x421471
pop edi
pop esi
pop ebx
push 0xffffffffffffffff
push 1
push 0x431c80
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4215c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 4], 0
push 2
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, 0x4d42
mov word [ebp - 0x2c], ax
lea ecx, [ebx + 0xe]
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x22], 0x36
xor eax, eax
mov word [ebp - 0x24], ax
mov word [ebp - 0x26], ax
push eax
lea eax, [ebp - 0x14]
push eax
push 0xe
lea eax, [ebp - 0x2c]
push eax
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40119e
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 0x3ff
push 0x40b6b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4011de
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 0x40b6b0
call section..text
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40b6b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xac], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp - 0xac], 0xffffffff
je 0x401375
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40bab8
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [0x40bab8]
push str._d__d__d__d
lea eax, [ebp - 0x8c]
push eax
call fcn.00403743
add esp, 0x18
cmp dword [ebp - 0xc], 0x221c
jne 0x401346
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp - 0x94]
mov dword [0x40500c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x98]
mov dword [0x405008], eax
jmp 0x40135b
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401397
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret
Function at 0x4037c7
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4037f0
cmp al, 0x22
je 0x4037e8
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4037dc
cmp byte [esi], 0x22
jne 0x4037fa
inc esi
jmp 0x4037fa
cmp al, 0x20
jle 0x4037fa
inc esi
cmp byte [esi], 0x20
jg 0x4037f4
mov al, byte [esi]
test al, al
je 0x403804
cmp al, 0x20
jle 0x4037ed
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403872
push 0x405004
push section..data
call fcn.00403858
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403834
movzx eax, word [ebp - 0x14]
jmp 0x403837
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040388a
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x64026c], 1
mov dword [0x640270], 1
mov dword [0x640274], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x58dfb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x1007c
push edi
push esi
push ebx
call fcn.005ebdd8
xor edx, edx
xor ecx, ecx
sub esp, eax
mov eax, dword [esp + 0x10090]
mov word [esp + 0x70], dx
lea edi, [esp + 0x20]
mov word [esp + 0x20], cx
movzx eax, byte [eax]
test al, al
je 0x58e067
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x5fb3a9
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x58e044
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x58e038
test esi, esi
je 0x5fb3a9
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x10090]
movzx eax, byte [eax + ebp]
test al, al
jne 0x58dff0
lea ebx, [esp + 0x70]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [eax - 1]
sub esp, 0xc
xor eax, eax
cmp edx, 0xffff
ja 0x58e098
mov dword [esp], ebx
call sub.msvcrt.dll__wcsdup
add esp, 0x1007c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x58e0b0
Capabilities:
Set environment variable

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov word [esp + 0x20], dx
lea edi, [esp + 0x20]
movzx eax, byte [eax]
test al, al
je 0x58e157
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x5fb3ae
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x58e134
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x58e128
test esi, esi
je 0x5fb3ae
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x90]
movzx eax, byte [eax + ebp]
test al, al
jne 0x58e0e0
mov eax, dword [esp + 0x94]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5a4860
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [0x63f694]
test ebx, ebx
je 0x5a48c0
mov eax, dword [0x639084]
mov esi, dword [sym.imp.python39.dll_PyNumber_InPlaceAdd]
cmp ebx, eax
je 0x5a489f
mov eax, dword [0x63f8c4]
test eax, eax
je 0x5a4988
mov dword [esp + 4], eax
mov esi, dword [sym.imp.python39.dll_PyNumber_InPlaceAdd]
mov dword [esp], ebx
call esi
mov edx, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.NUITKA_ONEFILE_BINARY
call fcn.0058dfb0
test eax, eax
je 0x5a49e0
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python39.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x5fb43a
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x5a4954
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x5a4948
test edx, edx
je 0x5fb43a
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x609bc3]
test al, al
je 0x5a49a0
mov ebp, edx
jmp 0x5a4910
mov dword [esp], 0x60c090
call dword [sym.imp.python39.dll_PyUnicode_FromString]
mov dword [0x63f8c4], eax
jmp 0x5a4890
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python39.dll__PyRuntime]
sub esp, 8
mov eax, dword [eax + 0x118]
mov esi, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.005a4530
mov ebx, eax
mov dword [0x63f694], ebx
jmp 0x5a4874
mov ebx, dword [0x63f6a0]
test ebx, ebx
jne 0x5a49d5
cmp byte [0x63f8c2], 0
je 0x5a4a18
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x63f6c0
call dword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov dword [0x63f6a0], eax
mov ebx, eax
test eax, eax
je 0x5a4a24
add dword [eax], 1
jmp 0x5a49d5
mov eax, 1
call fcn.0058ec70
jmp 0x5a49f3
call dword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
Function at 0x5a6870
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp], str.NUITKA_ONEFILE_BINARY
mov ebx, dword [esp + 0xa0]
call fcn.0058dfb0
test eax, eax
je 0x5a69c8
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python39.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
nop
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x5fb453
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x5a6914
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x5a6908
test edx, edx
je 0x5fb453
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x609bc3]
test al, al
je 0x5a6948
mov ebp, edx
jmp 0x5a68d0
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python39.dll__PyRuntime]
mov ebx, dword [0x639140]
sub esp, 8
mov esi, dword [eax + 0x118]
mov eax, dword [0x63ff90]
test eax, eax
je 0x5a6a18
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00591eb0
mov dword [esp], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.005a14b0
sub dword [ebx], 1
jne 0x5a69ba
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x5a6a0c
mov eax, dword [0x63f6a0]
mov esi, 0x63f6a0
test eax, eax
jne 0x5a69ba
cmp byte [0x63f8c2], 0
je 0x5a6a41
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x63f6c0
call dword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x5a6a4b
add dword [eax], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x63f69c]
mov esi, 0x63f69c
jmp 0x5a69d6
mov eax, dword [0x63ff4c]
mov edi, dword [0x639138]
test eax, eax
je 0x5a6a56
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00591eb0
mov dword [0x63ff90], eax
jmp 0x5a697e
movzx eax, bl
call fcn.0058ec70
jmp 0x5a69e3
call dword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x607e5e
call dword [sym.imp.python39.dll_PyImport_ImportModule]
mov dword [0x63ff4c], eax
test eax, eax
je 0x5fb453
jmp 0x5a6a27
Function at 0x5e3940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp byte [0x63f691], 0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
je 0x5e39d0
mov dword [esp + 4], 0x60b8ee
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x5e3a50
mov ebp, dword [0x63f5e4]
jmp 0x5e3984
lea ebp, [eax + edx + 4]
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebp
mov ebx, eax
call sub.msvcrt.dll_strlen
lea eax, [ebp + eax + 1]
mov edx, dword [eax]
test ebx, ebx
jne 0x5e3980
movzx edi, word [eax + 4]
lea ecx, [eax + 6]
test edi, edi
je 0x5e39c7
nop
mov eax, dword [esp + 0x30]
mov edx, esi
add ebx, 1
add esi, 4
call fcn.005d30e0
mov ecx, eax
cmp edi, ebx
jne 0x5e39b0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x63f5e4], eax
add eax, 8
mov ebx, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x63f5e4], eax
call fcn.005e2e90
cmp eax, ebx
jne 0x5e3abf
mov byte [0x63f691], 1
jmp 0x5e3958
cmp byte [0x63f690], 0
jne 0x5e3970
mov ebx, dword [sym.imp.python39.dll_PyDict_New]
call ebx
mov dword [0x640094], eax
call ebx
mov dword [0x640090], eax
call ebx
mov dword [0x64008c], eax
call ebx
mov dword [0x640088], eax
call ebx
mov dword [0x640084], eax
call ebx
mov dword [0x640080], eax
call ebx
mov dword [0x64007c], eax
call ebx
mov byte [0x63f690], 1
mov dword [0x640078], eax
mov eax, dword [sym.imp.python39.dll__PyRuntime]
mov eax, dword [eax + 0x118]
mov eax, dword [eax + 8]
add eax, 0x754
mov dword [0x63f5e0], eax
jmp 0x5e3970
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort

Function at 0x5eae28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.005fa7e8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.005fa7e8
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x5eb9fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x5eba1b
mov eax, 0
jmp 0x5eba5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x5eba3e
mov eax, 0
jmp 0x5eba5f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x5eba5a
mov eax, 0
jmp 0x5eba5f
mov eax, 1
leave
ret

Function at 0x5eba61
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x5ebac0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x5ebab8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x5ebab8
mov eax, dword [ebp - 4]
jmp 0x5ebad4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x5eba95
mov eax, 0
leave
ret
Function at 0x40336d
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040c5e0
mov dword [esp], eax
push dword [0x4139d0]
push dword [0x4139d0]
call fcn.0040c9d3
lea eax, [esp + 8]
push eax
call fcn.0040f2c0
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x4139d0]
push dword [0x4139d0]
push dword [esp + 8]
call fcn.0040c690
lea eax, [0x4134c0]
push eax
call fcn.0040f2c0
push dword [esp]
call fcn.0040c6e0
push dword [0x4134c0]
call fcn.0040c8fb
push dword [0x4134c0]
call fcn.0040ca34
push dword [0x4139d0]
push dword [0x4139d0]
call fcn.0040c805
lea eax, [0x41345c]
push eax
call fcn.0040f2c0
push dword [esp + 0x14]
pop eax
call fcn.0040c600
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403446
mov edx, dword [0x4134c0]
push dword [0x4139d0]
call fcn.0040f370
lea eax, [0x41345c]
push eax
call fcn.0040f2c0
mov dword [esp + 0xc], 2
jmp 0x403458
mov ebx, 1
cmp ebx, dword [esp]
jne 0x403458
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040c600
mov dword [0x413490], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040c600
mov dword [0x4133cc], eax
mov eax, 1
jmp 0x40348b
push dword [esp + 4]
call fcn.0040f3d0
add esp, 0xc
pop ebx
ret 4