joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425bc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x425bec
cmp dword [edi + 0x74], 0
jne 0x425bec
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00424da5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00425b89
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426089
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00425d2d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4260d3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041964d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405c70
jmp 0x4260de
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042ff9e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4260e4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041c211
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x426121
call fcn.00425d2d
mov dword [esi + 0xc], 1
jmp 0x426126
call fcn.00425d2d
cmp dword [esi], 0
je 0x42616f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x426147
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041964d
jmp 0x426159
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402100
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405c70
jmp 0x426193
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x426193
push dword [esi]
push dword [ebp + 8]
call fcn.0042ff9e
pop esi
pop ebp
ret 0xc
Function at 0x426af9
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x426b24
call fcn.00424da5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x426b47
push eax
push dword [esi + 4]
call fcn.00426a7f
push esi
push eax
mov ecx, 0x591664
call fcn.004266fb
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4273d8
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x52f3f4
call fcn.00516a6c
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00427398
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.0041b722
push eax
lea ecx, [esi + 0x18]
call fcn.004012e0
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402530
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x427450
push eax
push dword [esi + 8]
call fcn.00426a7f
push dword [esi + 0xc]
mov ecx, 0x591664
push eax
call fcn.004266fb
mov eax, esi
call fcn.00516b44
ret 0x1c

Function at 0x42b7bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42b803
call fcn.00424da5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42b803
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42b846
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42b82f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42b82f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42b843
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47d764
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47d77e
call fcn.00424da5
mov esi, dword [eax + 0xc]
push dword [0x593348]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47d79c
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47d794
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47d7c9
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47d796
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047d692
mov esi, eax
jmp 0x47d7bb

Function at 0x4f2a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00419a3d
call fcn.00416dc2
cmp eax, esi
pop esi
jne 0x4f2a9c
mov ecx, 0x591a10
jmp fcn.00435d6e
ret

Function at 0x4fabb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fabc8
mov edi, dword [esi + 0xc]
jmp 0x4fac08
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fabe1
call fcn.0041d02a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fabf6
call fcn.0041d02a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fac08
call fcn.0041d02a
call fcn.00424da5
cmp dword [eax + 0x3c], 0
je 0x4fac1d
push edi
mov ecx, ebx
call fcn.004f9a64
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004faaca
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fac3b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fac47
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x514c0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58e188]
jne 0x514c18
repz ret
jmp fcn.0051e21c
Function at 0x5278b8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051c0eb
and dword [ebp - 0x14], 0
cmp dword [0x595eb8], 0
mov dword [ebp - 0x18], eax
jne 0x52796b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x527a13
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5695f8
push ebx
call edi
test eax, eax
je 0x527a13
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5695e8
push ebx
mov dword [0x595eb8], eax
call edi
push eax
call esi
push 0x5695d4
push ebx
mov dword [0x595ebc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x595ec0], eax
call edi
push eax
call esi
mov dword [0x595ec8], eax
test eax, eax
je 0x52796b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x595ec4], eax
mov eax, dword [0x595ec4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5279c4
cmp dword [0x595ec8], ecx
je 0x5279c4
push eax
call esi
push dword [0x595ec8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5279c4
test ebx, ebx
je 0x5279c4
call edi
test eax, eax
je 0x5279bb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5279bb
test byte [ebp - 8], 1
jne 0x5279c4
or dword [ebp + 0x10], 0x200000
jmp 0x5279f7
mov eax, dword [0x595ebc]
cmp eax, dword [ebp - 0x18]
je 0x5279f7
push eax
call esi
test eax, eax
je 0x5279f7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5279f7
mov eax, dword [0x595ec0]
cmp eax, dword [ebp - 0x18]
je 0x5279f7
push eax
call esi
test eax, eax
je 0x5279f7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x595eb8]
call esi
test eax, eax
je 0x527a13
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x527a15
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514c0e
leave
ret
Function at 0x40101e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x535458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 0x10]
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], edi
mov dword [ebx], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
call fcn.00401120
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
and ecx, 0xffff
push 2
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x401091
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x401091
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x20], eax
jmp 0x401095
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov cx, word [eax + 0xe]
cmp cx, 8
jbe 0x4010c1
mov edx, dword [eax + 0x10]
xor ecx, ecx
cmp edx, 3
mov edx, dword [eax + 0x20]
setne cl
dec ecx
and ecx, 3
add ecx, edx
lea eax, [eax + ecx*4 + 0x28]
jmp 0x4010d3
mov edx, dword [eax + 0x20]
cmp edx, edi
jne 0x4010cf
mov edx, 1
shl edx, cl
lea eax, [eax + edx*4 + 0x28]
push ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.004ba6d0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4010f1
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x401100
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x401380
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov esi, ecx
call edi
push 1
mov dword [esp + 0x18], eax
call edi
mov ebp, dword [str.GfxTestWndClass]
mov ebx, dword [0x57c610]
mov dword [esp + 0x18], eax
mov eax, dword [str.Gfx_test_window]
lea ecx, [esi + 4]
mov dword [esp + 0x10], eax
cmp ecx, esi
jbe 0x4013c8
sub ecx, esi
mov edi, esi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2c]
lea ecx, [edi + 4]
cmp ecx, edi
jbe 0x4013dd
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x40]
lea ecx, [edi + 0x20]
cmp ecx, edi
jbe 0x4013f2
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
push 0x64
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
lea edi, [esi + 8]
push esi
push 0x4017c0
mov ecx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebp
call fcn.00401730
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
lea edi, [esi + 0x30]
xor eax, eax
mov edx, edi
mov ecx, dword [esp + 0x18]
push 0x40000
push 0
mov dword [edx], eax
push 0x90000000
push edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
mov edi, dword [edi]
mov ecx, dword [esi + 0x38]
push 0
push ebx
push 0
sub edx, eax
push 0
sub ecx, edi
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edi
push 0x90000000
push edx
push ebp
push 0x40000
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
push 0
mov ecx, esi
mov dword [esi + 4], eax
setne bl
call fcn.004073b0
push 1
mov ecx, esi
call fcn.004073b0
test bl, bl
je 0x401548
mov ecx, esi
call fcn.00401760
push 0x13
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
setne al
push eax
push 4
mov ecx, esi
call fcn.004073e0
lea ecx, [esi + 0x40]
call fcn.00401cb0
test bl, bl
je 0x401548
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 4]
push 0
push ecx
push 0x600
push 1
push edx
push 0x258
push 0x320
push eax
mov ecx, 0x57c728
call fcn.0040c380
test al, al
je 0x40154a
push 0
push 0
lea eax, [esi + 0x70]
push str.GfxTest
push eax
call fcn.0040b7f0
add esp, 0x10
test al, al
je 0x40154a
mov dword [esi + 0xca0], 0x1b58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x401560
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x70]
push eax
call fcn.0040b9e0
add esp, 4
mov ecx, 0x57c728
call fcn.0040c450
mov ecx, dword [esi]
mov edi, dword [str.GfxTestWndClass]
mov ebx, dword [0x57c610]
and ecx, 8
test cl, cl
je 0x4015a0
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov eax, dword [esi]
and al, 0xf7
mov dword [esi], eax
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4015cb
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push edi
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
pop edi
pop esi
pop ebx
ret
Function at 0x405350
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x535758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov eax, dword [str.SOFTWAREOXXOgameshuehnerattacke]
lea ecx, [esp + 0xf]
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], ebx
call fcn.004052e0
test al, al
je 0x4054d6
mov eax, dword [str.Game]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esi + 0x119]
push 0x11
push edx
push 3
push ebx
push eax
push ecx
call edi
mov eax, dword [0x537814]
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x114]
push 3
push edx
push 3
push ebx
push eax
push ecx
call edi
mov eax, dword [0x537810]
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x117]
push 2
push edx
push 3
push ebx
push eax
push ecx
call edi
mov cl, byte [esi + 0x196]
test cl, cl
je 0x4054d6
mov al, byte [esi + 0x197]
test al, al
je 0x4054d6
and eax, 0xff
and ecx, 0xff
imul eax, ecx
push ebp
lea eax, [eax + eax*2]
lea edi, [eax + eax*4]
lea ebx, [edi + 0x10]
push ebx
call fcn.004e8303
mov ecx, dword [esi + 0x198]
mov ebp, eax
add esp, 4
xor eax, eax
lea edx, [ecx + edi]
cmp edx, ecx
mov dword [esp + 0x18], edx
jbe 0x405460
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov edx, eax
shl edx, 6
xor edx, eax
shl edx, 2
xor edx, eax
shl edx, 2
xor edx, eax
shl edx, 3
xor eax, edx
mov edx, dword [esp + 0x18]
inc ecx
cmp ecx, edx
jb 0x40543b
mov dword [esi + 0x192], eax
lea eax, [esi + 0x188]
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 0x198]
mov ecx, edi
lea edi, [ebp + 0x10]
mov edx, ecx
mov eax, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + ebp]
and ecx, 3
cmp edx, ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x2839609e
jbe 0x4054b5
xor byte [eax], cl
inc eax
rol ecx, 3
cmp eax, edx
jb 0x4054ab
mov eax, dword [str.Score]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
call fcn.004e7830
add esp, 4
pop ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4054e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x407680
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov al, byte [esp + 8]
test al, al
jne 0x4076b7
mov eax, dword [esi + 4]
push 3
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 4]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x40ed90
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x40edde
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40edc0
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi], 0
push ecx
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 0xd0]
cmp eax, 2
jae 0x40ee31
lea edx, [eax*8]
sub edx, eax
mov eax, dword [edx*8 + 0x5386fc]
test eax, eax
je 0x40ee03
push 0
mov ecx, esi
call eax
mov eax, dword [esi + 0xd0]
mov ecx, esi
lea edx, [eax*8]
sub edx, eax
call dword [edx*8 + 0x5386f0]
mov ecx, 0x31
xor eax, eax
lea edi, [esi + 0xc]
rep stosd dword es:[edi], eax
mov dword [esi + 0xd0], 2
pop edi
pop esi
ret

Function at 0x43f860
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push str.Fatal_Python_error:__s_n
push 0x568268
call fcn.004e90e7
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push str.Fatal_Python_error:
call esi
push edi
call esi
push 0x53c5b8
call esi
jmp fcn.004ea221
Function at 0x45603f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x568b68
cmp edx, dword [eax]
je 0x456061
add eax, 8
inc ecx
cmp eax, 0x568bf8
jl 0x456052
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x568b68]
jne 0x45618f
mov eax, dword [0x582dac]
cmp eax, 1
je 0x456169
test eax, eax
jne 0x456092
cmp dword [0x5681b8], 1
je 0x456169
cmp edx, 0xfc
je 0x45618f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4560c9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045acca
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045392a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45610c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045392a
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x537864
push edi
call fcn.0044cf3a
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045acca
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045acda
lea eax, [ebp - 0xa0]
push 0x550564
push eax
call fcn.0045acda
push dword [esi + 0x568b6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045acda
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045d401
add esp, 0x2c
pop edi
jmp 0x45618f
lea eax, [ebp + 8]
lea esi, [esi + 0x568b6c]
push 0
push eax
push dword [esi]
call fcn.0045392a
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 0x45c05c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45c07c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044e39d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x45c09f
test byte [esp + 8], 2
je 0x45c09f
call fcn.0044e410
mov dword [eax], 0xd
call fcn.0044e419
mov dword [eax], 5
jmp 0x45c078
xor eax, eax
ret

Function at 0x45c280
Capabilities:
Create process on windows

Disassembly:
mov edi, ebx
mov eax, ebx
sar edi, 5
and eax, 0x1f
mov edi, dword [edi*4 + 0x583620]
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x45c2a4
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x45c2aa
and byte [ecx], 0
or dword [edx], 0xffffffff
inc ebx
inc ecx
add edx, 4
cmp ebx, esi
jl 0x45c27e
mov eax, dword [ebp - 0x2c]
xor edi, edi
cmp byte [ebp - 1], 0
je 0x45c2eb
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x45c2d0
mov ebx, esi
jmp 0x45c2d3
push 3
pop ebx
cmp edx, ebx
jge 0x45c2e4
and byte [ecx], 0
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x45c2c7
mov dword [ebp - 8], 8
call fcn.0044e410
mov dword [eax], edi
call fcn.0044e419
mov dword [eax], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
Function at 0x45c300
Capabilities:
Create process on windows

Disassembly:
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 8]
push 1
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2c]
mov ebx, eax
call fcn.0044fd3e
cmp esi, edi
pop ecx
jne 0x45c33b
push ebx
call fcn.0044e39d
pop ecx
or eax, 0xffffffff
jmp 0x45c38f
cmp dword [ebp + 8], 2
jne 0x45c347
push edi
call fcn.0044f295
cmp dword [ebp + 8], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x45c371
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call esi
jmp 0x45c387
cmp dword [ebp + 8], 4
jne 0x45c381
push dword [ebp - 0x1c]
call esi
mov dword [ebp + 0x10], edi
jmp 0x45c387
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret