joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406cf0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa8]
test ebx, ebx
push esi
je 0x406deb
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x406deb
mov eax, dword [esi]
push ebp
push edi
push esi
call dword [eax + 0x6c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x406d37
push str.createcompatible_dc_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0xc0]
test ebx, ebx
jne 0x406d5c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc4]
test ebp, ebp
jne 0x406d6b
mov ebp, dword [esp + 0x20]
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], 0x7c
mov dword [esp + 0x3c], 6
call dword [edx + 0x58]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push esi
call dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x406dd5
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x38]
push 0xcc0020
push ebp
push ebx
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x68]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x9c
ret
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x9c
ret

Function at 0x407000
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x423338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040aea0
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push edx
call ebx
test eax, eax
jne 0x4070c0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push 0x431388
push ecx
push 0
mov ecx, edi
call fcn.0040aea0
mov edx, dword [esi + 4]
push eax
push edx
call ebx
push 0x431388
lea ecx, [esp + 0x18]
call fcn.0040ac50
mov ecx, dword [esp + 0x30]
push eax
mov dword [esp + 0x28], 0
call fcn.0040acf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040ae70
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40a160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
and eax, 0xffff
push 0x42a2b8
push eax
mov dword [esp + 0x18], ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax + 4]
add eax, 4
add eax, 8
xor edi, edi
xor esi, esi
xor ebx, ebx
lea ebp, [ecx + eax - 4]
cmp eax, ebp
jae 0x40a1e4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
add eax, 4
cmp ecx, 0x20746d66
jne 0x40a1c2
test edi, edi
jne 0x40a1d2
mov edi, eax
jmp 0x40a1d2
cmp ecx, 0x61746164
jne 0x40a1d2
test esi, esi
jne 0x40a1d2
mov esi, eax
mov ebx, edx
inc edx
and edx, 0xfffffffe
add eax, edx
test edi, edi
je 0x40a1e0
test esi, esi
jne 0x40a1e4
cmp eax, ebp
jb 0x40a1a7
mov ebp, dword [esp + 0x10]
push ebx
mov dword [ebp + 0x10], ebx
call fcn.0041bb17
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [ebp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.0040a220
mov ecx, ebp
call fcn.0040a2d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x40b3c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
xor esi, esi
test eax, eax
jbe 0x40b419
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub eax, ecx
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], eax
mov ecx, ebp
call fcn.0040aeb0
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov ecx, ebp
mov ebx, edx
mov edx, dword [esp + 0x18]
lea edi, [esi + edx]
call fcn.0040aea0
mov ecx, dword [esp + 0x14]
mov al, byte [eax + ebx]
mov dl, byte [ecx + edi]
xor al, dl
inc esi
mov byte [edi], al
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x40b3e0
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x40bae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423808
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x10
and eax, 0xffff
push ebx
push esi
push 0xa
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
jne 0x40bb26
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x40bb45
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
jne 0x40bb65
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
mov ebp, dword [esp + 0x2c]
push edi
mov ecx, ebp
call fcn.0040ba90
push esi
lea ecx, [esp + 0x14]
call fcn.0040ac50
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
xor esi, esi
call fcn.0040aeb0
test eax, eax
jbe 0x40bc37
push esi
push 0xa
lea ecx, [esp + 0x18]
call fcn.0040aed0
mov edi, eax
cmp edi, ebx
jl 0x40bbff
push edi
lea ecx, [esp + 0x1c]
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040afb0
push 0xa
push 0xd
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.0040af80
push 0xa
push 1
lea ecx, [esp + 0x20]
call fcn.0040b060
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call fcn.0040ba20
lea ecx, [esp + 0x18]
lea esi, [edi + 1]
mov byte [esp + 0x28], bl
call fcn.0040ae70
lea ecx, [esp + 0x10]
call fcn.0040aeb0
cmp esi, eax
jb 0x40bb93
jmp 0x40bc37
lea ecx, [esp + 0x10]
call fcn.0040aeb0
dec eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0040afb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
push ecx
mov ecx, ebp
call fcn.0040ba20
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0040ae70
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040ae70
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40c3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4238d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push str.SoftwareJJsoftHopmon
call fcn.004072f0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0040abd0
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.00406f30
push str.SoftwareJJsoftHopmon
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 1
call fcn.0040ac50
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 0x80000002
mov byte [esp + 0x38], 2
call fcn.00406f90
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.0040ae70
push str.Level
lea ecx, [esp + 0x24]
call fcn.0040ac50
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.00407000
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.0040ae70
push str.Celeron600
lea ecx, [esp + 0x24]
call fcn.0040ac50
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x3c], 4
call fcn.0040b530
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 6
call fcn.0040ae70
lea ecx, [esp + 8]
call fcn.0040aeb0
cmp eax, 6
jb 0x40c4f8
lea ecx, [esp + 8]
call fcn.0040aea0
push eax
call fcn.0041c522
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1ac], eax
jl 0x40c4f8
cmp eax, dword [esi + 0x1b4]
jle 0x40c4fe
mov dword [esi + 0x1ac], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.0040ae70
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00406f60
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ae70
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40d0f0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1d8
push esi
push str.JJsoft_Hopmon_Mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d135
push 0x30
push 0x42a2d8
push str.HOPMON_is_already_running.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x1d8
ret 0x10
lea ecx, [esp + 4]
call fcn.0040c290
mov eax, dword [esp + 0x1e8]
mov ecx, dword [esp + 0x1e0]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.0040c720
test eax, eax
jge 0x40d170
lea ecx, [esp + 4]
call fcn.0040c3d0
xor eax, eax
pop esi
add esp, 0x1d8
ret 0x10
push edi
lea ecx, [esp + 8]
call fcn.00401310
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
call fcn.0040c3d0
mov eax, edi
pop edi
pop esi
add esp, 0x1d8
ret 0x10
Function at 0x4152a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42415b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea edx, [esp + 0x10]
mov ecx, dword [esi + 0x14]
push edx
lea edx, [esp + 0x20]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
add eax, 4
add ecx, 4
mov dword [esp + 4], eax
push 0x88
fild dword [esp + 8]
mov dword [esp + 8], ecx
fmul dword [esi + 0x1c]
fstp dword [esp + 0xc]
fild dword [esp + 8]
fmul dword [esi + 0x1c]
fstp dword [esp + 8]
call fcn.0041bb17
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x41532b
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, eax
call fcn.00409bf0
jmp 0x41532d
xor eax, eax
push 0xc2c80000
push 1
mov ecx, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x18], eax
call fcn.004086d0
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
add edx, 4
push ecx
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x20]
fild dword [esp + 0xc]
add edx, 4
mov eax, dword [ecx]
mov dword [esp + 0xc], edx
fstp dword [esp]
fild dword [esp + 0xc]
push ecx
fstp dword [esp]
push 0
push 0
push 0xc1
call dword [eax + 0x20]
mov ecx, dword [esi + 0x18]
push 1
call fcn.00409600
mov ecx, dword [esi + 0x18]
push 2
call fcn.00409610
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x41f019
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42a6f8
cmp edx, dword [eax]
je 0x41f03b
add eax, 8
inc ecx
cmp eax, 0x42a788
jl 0x41f02c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42a6f8]
jne 0x41f169
mov eax, dword [0x431e04]
cmp eax, 1
je 0x41f143
test eax, eax
jne 0x41f06c
cmp dword [0x42a3d4], 1
je 0x41f143
cmp edx, 0xfc
je 0x41f169
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f0a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041f790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041fdc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f0e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041fdc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4261d8
push edi
call fcn.0041c2d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041f790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041f7a0
lea eax, [ebp - 0xa0]
push 0x4261b8
push eax
call fcn.0041f7a0
push dword [esi + 0x42a6fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f7a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00421aa5
add esp, 0x2c
pop edi
jmp 0x41f169
lea eax, [ebp + 8]
lea esi, [esi + 0x42a6fc]
push 0
push eax
push dword [esi]
call fcn.0041fdc0
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 0x401640
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47db15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
push 0x48
call fcn.00456cb9
add esp, 4
mov dword [esp + 8], eax
xor esi, esi
mov dword [esp + 0x3c], esi
cmp eax, esi
je 0x40167a
push eax
call fcn.00415420
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call fcn.00414640
mov dword [esp + 0x3c], 2
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
lea edi, [esi + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 4
call fcn.00408fa0
mov eax, esi
call fcn.004153b0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004146a0
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x38
ret
Function at 0x406090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 0x20]
call fcn.00414640
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 1
call fcn.00409d90
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov byte [esp + 0x14], 2
call fcn.00409d90
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov byte [esp + 0x14], 3
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4077d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47e1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [esp + 0xa4]
push ebx

Function at 0x40dec0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47c53b
push eax
mov dword fs:[0], esp
mov eax, dword [edi]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x1c]
push ecx
lea edx, [esi + 0x1c]
push edx
mov dword [esi + 0x18], eax
call fcn.0040ea80
mov dword [esp + 0x14], 0
mov ecx, esi
lea eax, [edi + 0x30]
lea edx, [esi + 0x30]
sub ecx, edi
mov ebx, 0x11
sub edx, eax
lea ebx, [ebx]
mov ebp, dword [eax]
mov dword [edx + eax], ebp
mov ebp, dword [eax + 8]
mov dword [ecx + eax + 8], ebp
mov ebp, dword [eax + 0xc]
mov dword [ecx + eax + 0xc], ebp
add eax, 0x10
sub ebx, 1
jns 0x40df30
mov eax, dword [edi + 0x150]
mov dword [esi + 0x150], eax
mov ecx, dword [edi + 0x154]
mov dword [esi + 0x154], ecx
mov edx, dword [edi + 0x158]
mov dword [esi + 0x158], edx
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4

Function at 0x40f6f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47bf7b
push eax
mov dword fs:[0], esp
mov eax, dword [edi]
push esi
mov esi, dword [esp + 0x14]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
fld dword [edi + 0x10]
fstp dword [esi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
fld dword [edi + 0x28]
fstp dword [esi + 0x28]
lea ecx, [edi + 0x3c]
fld dword [edi + 0x2c]
push ecx
fstp dword [esi + 0x2c]
lea edx, [esi + 0x3c]
fld dword [edi + 0x30]
push edx
fstp dword [esi + 0x30]
fld dword [edi + 0x34]
fstp dword [esi + 0x34]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
call fcn.0040fa40
mov dword [esp + 0xc], 0
mov al, byte [edi + 0x4c]
mov byte [esi + 0x4c], al
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x414710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x414729
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x414764
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x414760
lea ebx, [ebx]
cmp esi, eax
jae 0x414764
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x414750
cmp esi, eax
jb 0x41476a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x41c920
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47d238
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x834]
lea ecx, [ebp + 8]
mov eax, edi
call fcn.004128e0
mov eax, dword [eax]
test eax, eax
jne 0x41c9d1
push str.temp.bmp
add esi, 0xc74
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00408650
add esp, 0xc
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
mov ecx, dword [esp + 0xc]
push 0
push eax
push 0
push ecx
call sub.d3dx9_39.dll_D3DXSaveTextureToFileA
mov edx, dword [esp + 0xc]
push 0x10
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
lea ecx, [ebp + 8]
mov eax, edi
call fcn.004128e0
mov dword [eax], esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004146a0
mov eax, esi
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x425220
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47cc0c
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
push edi
lea eax, [esp + 0x11c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x105
lea ecx, [esp + 0x120]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea eax, [esp + 0x14]
push eax
push 0
push 0x4854cc
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
lea esi, [ebx + 0xc74]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425296
sub eax, edi
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00414ad0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [ebx + 0xc78]
push esi
mov ecx, edi
call fcn.00413a20
push 1
push 0x4854d0
mov ecx, esi
call fcn.004229f0
push str.Python
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00408650
add esp, 0xc
mov dword [esp + 0x22c], 0
push eax
mov ecx, edi
call fcn.00413a20
or ebp, 0xffffffff
mov dword [esp + 0x22c], ebp
lea ecx, [esp + 0x10]
call fcn.004146a0
push str.PythonLibs.zip
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00408650
add esp, 0xc
mov dword [esp + 0x22c], 1
lea ecx, [ebx + 0xc7c]
push eax
call fcn.00413a20
mov dword [esp + 0x22c], ebp
lea ecx, [esp + 0x10]
call fcn.004146a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea edx, [esp + 0x18]
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4253af
lea ecx, [esp + 0x10]
call fcn.00414640
mov dword [esp + 0x22c], 2
call ebx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push str.Error_creating_temporary_folder_at__s___d__
push ecx
call fcn.00413e40
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x10
push str.Construct_Runtime
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x22c], ebp
lea ecx, [esp + 0x10]
call fcn.004146a0
mov eax, dword [edi]
push 0
push eax
call esi
test eax, eax
jne 0x42540a
lea ecx, [esp + 0x10]
call fcn.00414640
mov dword [esp + 0x22c], 3
call ebx
push eax
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
push str.Error_creating_temporary_folder_at__s___d__
push ecx
call fcn.00413e40
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x10
push str.Construct_Runtime
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x22c], ebp
lea ecx, [esp + 0x10]
call fcn.004146a0
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x425430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47c2d0
push eax
mov dword fs:[0], esp
movzx eax, word [esp + 0x10]
sub esp, 0x48
push ebp
push esi
push edi
mov edi, ecx
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test esi, esi
jne 0x4254dc
lea ecx, [esp + 0x64]
call fcn.00414640
mov dword [esp + 0x5c], esi
push ebp
push edi
lea ecx, [esp + 0x6c]
push str.Error_loading___s____d_
push ecx
call fcn.00413e40
mov edx, dword [esp + 0x74]
mov eax, edx
mov dword [esp + 0x30], esi
add esp, 0x10
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4254a5
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00414d30
mov byte [esp + 0x5c], 1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00415340
push 0x4978fc
lea ecx, [esp + 0x2c]
push ecx
call fcn.004637cb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x68]
push esi
push 0
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x54
ret