joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x7a7a7e41
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x41692821
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x403d60
Capabilities:
Create process on windows
Delete file
Read file on windows

Disassembly:
sub esp, 0x408
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00403d40
mov eax, dword [0x424744]
mov dword [0x435460], 0
test eax, eax
je 0x403e85
mov edi, dword [esp + 0x418]
lea eax, [esp + 0x114]
push edi
push str._s.t
push eax
call fcn.004179d0
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x114]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x403dff
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x403e07
push edi
push str.GameSystem_Open_error__s_
jmp 0x403e5e
mov dword [esp + 0x10], 1
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0xc]
push 0
push eax
push 0x10
push 0x433240
push esi
call ebp
test eax, eax
je 0x403e58
push esi
push 0x433240
call fcn.00403600
add esp, 8
test eax, eax
jne 0x403e58
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x1023c
push 0x435474
push esi
call ebp
test eax, eax
jne 0x403ed1
push edi
push str.GameSystem_Read_error__s_
lea edx, [esp + 0x1c]
push edx
call fcn.004179d0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00414880
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov edi, dword [esp + 0x418]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403e07
push 5
push str.KGT2nd_EDITOR.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
or eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [0x433250]
mov dword [0x435464], 1
test al, al
jne 0x403f02
lea ecx, [esp + 0x214]
push 0x41e958
push ecx
call fcn.004179d0
add esp, 8
jmp 0x403f1c
push 0x433250
lea edx, [esp + 0x218]
push 0x41e970
push edx
call fcn.004179d0
add esp, 0xc
mov eax, dword [0x424744]
test eax, eax
je 0x403f42
lea eax, [esp + 0x214]
lea ecx, [esp + 0x214]
push eax
push str._s__Test_Play_
push ecx
call fcn.004179d0
add esp, 0xc
mov eax, dword [0x4246f8]
lea edx, [esp + 0x214]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
lea ecx, [esp + 0x18]
push 0x41e988
push ecx
call fcn.004179d0
lea edx, [esp + 0x20]
push 0xdfffff
push edx
call fcn.00415190
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x403f8e
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x408
ret
Function at 0x403fc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x204
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
call fcn.00403fa0
mov eax, dword [esp + 0x214]
test eax, eax
jne 0x403ffb
push 0x41ea00
call fcn.00414880
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x204
ret
mov ecx, dword [0x424744]
dec eax
test ecx, ecx
mov dword [0x427c80], 1
je 0x404119
shl eax, 8
lea edi, [eax + 0x43d49c]
lea eax, [esp + 0x10]
push edi
push str._s.dmx..t
push eax
call fcn.004179d0
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40408d
push edi
lea edx, [esp + 0x14]
push 0x41ea30
push edx
call fcn.004179d0
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x40415c
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0xc]
push 0
push edx
push 0x10
push 0x425a60
push esi
call edi
test eax, eax
je 0x4040e2
push esi
push 0x425a60
call fcn.00403600
add esp, 8
test eax, eax
jne 0x4040e2
push eax
lea eax, [esp + 0x10]
push eax
push 0x409
push 0x427c94
push esi
call edi
test eax, eax
jne 0x404170
lea ecx, [esp + 0x10]
lea edx, [esp + 0x110]
push ecx
push str.GameDemo_Read_error__s_
push edx
call fcn.004179d0
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call fcn.00414880
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x204
ret
shl eax, 8
add eax, 0x43d49c
lea ecx, [esp + 0x10]
push eax
push str._s.dmx.
push ecx
call fcn.004179d0
add esp, 0xc
lea edx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40408d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x110]
push eax
push str.GameDemo_Open_error__s_
push ecx
jmp 0x4040f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x110]
push ecx
push 0x41ea40
push edx
mov dword [0x427c84], 1
call fcn.004179d0
lea eax, [esp + 0x11c]
push 0xdfffff
push eax
call fcn.00415190
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x204
ret
Function at 0x4041e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x204
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
call fcn.004041c0
mov eax, dword [0x424744]
mov dword [0x447960], 2
test eax, eax
je 0x404319
mov eax, dword [esp + 0x214]
lea ecx, [esp + 0x10]
shl eax, 8
lea edi, [eax + 0x43a29c]
push edi
push str._s.stx...t
push ecx
call fcn.004179d0
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40428d
push edi
lea eax, [esp + 0x14]
push 0x41eab4
push eax
call fcn.004179d0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x404364
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x10
push 0x445740
push esi
call edi
test eax, eax
je 0x4042e2
push esi
push 0x445740
call fcn.00403600
add esp, 8
test eax, eax
jne 0x4042e2
lea edx, [esp + 0xc]
push eax
push edx
push 0x409
push 0x447974
push esi
call edi
test eax, eax
jne 0x40437b
lea eax, [esp + 0x10]
lea ecx, [esp + 0x110]
push eax
push str.GameStage_Read_error__s_
push ecx
call fcn.004179d0
add esp, 0xc
lea edx, [esp + 0x110]
push edx
call fcn.00414880
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x204
ret
mov edx, dword [esp + 0x214]
lea eax, [esp + 0x10]
shl edx, 8
add edx, 0x43a29c
push edx
push str._s.stx..
push eax
call fcn.004179d0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40428d
lea edx, [esp + 0x10]
lea eax, [esp + 0x110]
push edx
push str.GameStage_Open_error__s_
push eax
jmp 0x4042f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x110]
push eax
push 0x41eacc
push ecx
mov dword [0x447964], 1
call fcn.004179d0
lea edx, [esp + 0x11c]
push 0xdfffff
push edx
call fcn.00415190
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x204
ret
Function at 0x405ce0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x21c
push 0x4d1c60
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push str.KGT2KGAME
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x405d15
mov eax, 1
add esp, 0x21c
ret 0x10
mov eax, dword [esp + 0x220]
mov dword [0x4701cc], eax
mov eax, dword [esp + 0x224]
test eax, eax
je 0x405d39
mov eax, dword [esp + 8]
add esp, 0x21c
ret 0x10
push esi
mov esi, dword [esp + 0x22c]
push edi
push esi
mov dword [0x424744], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x405ddd
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x405ddd
mov esi, dword [0x424744]
mov cl, byte [eax]
cmp cl, 0x30
jl 0x405d81
cmp cl, 0x39
jg 0x405d81
lea edx, [edi + edi*4]
movsx edi, cl
lea edi, [edi + edx*2 - 0x30]
cmp cl, 0x2d
je 0x405d8b
cmp cl, 0x2f
jne 0x405dc1
movsx ecx, byte [eax + 1]
inc eax
add ecx, 0xffffffbc
cmp ecx, 0x30
ja case.0x405da0.72
xor edx, edx
mov dl, byte [ecx + 0x405f14]
jmp dword [edx*4 + 0x405f00]
mov esi, 1
jmp 0x405dc1
mov esi, 2
jmp 0x405dc1
mov esi, 3
jmp 0x405dc1
mov esi, 4
inc eax
cmp byte [eax], 0
jne 0x405d6b
mov dword [0x424744], esi
test esi, esi
je 0x405de5
mov eax, dword [str.TestPlay]
mov dword [0x541f7c], eax
jmp 0x405df1
mov esi, dword [0x424744]
jmp 0x405dcd
mov ecx, dword [str.GamePlay]
mov dword [0x541f7c], ecx
call fcn.004056c0
call fcn.00405ad0
mov eax, dword [0x424744]
test eax, eax
je 0x405eee
xor edx, edx
xor eax, eax
mov cl, byte [eax + 0x43022a]
test edx, edx
mov byte [esp + eax + 0x222], cl
jne 0x405e2f
cmp cl, 0x5c
jne 0x405e2f
mov edx, 1
mov byte [esp + eax + 0x223], 0
dec eax
lea ecx, [eax + 0xfe]
test ecx, ecx
jge 0x405e0c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x435474
cmp byte [esi], 0
je 0x405e6c
lea edx, [esp + 0x124]
push esi
push edx
lea eax, [esp + 0x2c]
push str._s_s.player.t
push eax
call fcn.004179d0
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call edi
add esi, 0x100
cmp esi, 0x438674
jl 0x405e45
mov esi, 0x43a29c
cmp byte [esi], 0
je 0x405ea6
lea edx, [esp + 0x124]
push esi
push edx
lea eax, [esp + 0x2c]
push str._s_s.stage.t
push eax
call fcn.004179d0
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call edi
add esi, 0x100
cmp esi, 0x43d49c
jl 0x405e7f
mov esi, 0x43d49c
cmp byte [esi], 0
je 0x405ee0
lea edx, [esp + 0x124]
push esi
push edx
lea eax, [esp + 0x2c]
push str._s_s.demo.t
push eax
call fcn.004179d0
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call edi
add esi, 0x100
cmp esi, 0x44389c
jl 0x405eb9
call fcn.004059f0
pop edi
xor eax, eax
pop esi
add esp, 0x21c
ret 0x10

Function at 0x40c130
Capabilities:
Accept command line arguments
Inspect section memory permissions
Resolve function by parsing pe exports
Set current directory

Disassembly:
mov eax, dword [0x4cfa00]
mov ecx, dword [eax]
jmp dword [ecx*4 + 0x41ed58]
Function at 0x4146d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x424d20
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [0x447ee0]
mov ecx, 8
inc eax
mov edi, 0x4259c0
and eax, 0x3ff
mov dword [0x447ee0], eax
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [0x470054], 0xbb8
jl 0x414737
mov eax, dword [0x470058]
test eax, eax
jne 0x414737
mov ecx, dword [0x424f20]
push 0
push ecx
call fcn.00414340
mov edx, dword [0x447ee0]
add esp, 8
mov dword [0x4259c0], eax
mov dword [edx*4 + 0x4280e0], eax
jmp 0x414770
push 0
push 0
call fcn.00414340
mov ecx, dword [0x447ee0]
push 1
push 1
mov dword [0x4259c0], eax
mov dword [ecx*4 + 0x4280e0], eax
call fcn.00414340
mov edx, dword [0x447ee0]
add esp, 0x10
mov dword [0x4259c4], eax
mov dword [edx*4 + 0x4290e0], eax
xor ebx, ebx
xor esi, esi
xor edi, edi
xor eax, eax
mov ecx, dword [eax + 0x4259c0]
mov ebp, dword [eax + 0x447f00]
mov edx, ecx
mov dword [eax + 0x447f00], ecx
xor edx, ebp
and edx, ecx
test ecx, ecx
mov dword [eax + 0x447f60], edx
je 0x4147d1
cmp ecx, dword [eax + 0x541f80]
jne 0x4147d1
mov edx, dword [eax + 0x4d1c40]
dec edx
mov dword [eax + 0x4d1c40], edx
jne 0x4147c5
mov edx, dword [0x41e400]
mov dword [eax + 0x447f40], ecx
mov dword [eax + 0x4d1c40], edx
jmp 0x41480b
mov dword [eax + 0x447f40], 0
jmp 0x41480b
mov edx, dword [0x41e3fc]
mov dword [eax + 0x447f40], ecx
mov dword [eax + 0x4d1c40], edx
mov edx, dword [eax + 0x541f80]
test dl, 3
je 0x4147f9
mov ebp, ecx
and ebp, 0xfffffffc
mov dword [eax + 0x447f40], ebp
test dl, 0xc
je 0x414805
and dword [eax + 0x447f40], 0xfffffff3
mov dword [eax + 0x541f80], ecx
mov ebp, dword [eax + 0x447f40]
or ebx, ecx
mov ecx, dword [eax + 0x447f60]
add eax, 4
or esi, ecx
or edi, ebp
cmp eax, 0x20
jl 0x414778
mov dword [0x4d1c20], edi
mov dword [0x4280d8], esi
pop edi
pop esi
mov dword [0x4cfa04], ebx
pop ebp
pop ebx
ret
Function at 0x4153b0
Capabilities:
Get disk information

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [0x41f70c]
lea edx, [esp]
add cl, 0x41
mov dword [esp], eax
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
pop ecx
ret

Function at 0x415640
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp]
push str.2dfightermaker2nd20022.mid
push ecx
lea edx, [esp + 8]
push 0x41f7b4
push edx
call fcn.004179d0
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x108
ret

Function at 0x415690
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x424738]
sub esp, 0x128
test eax, eax
push esi
je 0x4156bc
mov eax, dword [0x42473c]
mov esi, dword [sym.imp.WINMM.dll_mciSendCommandA]
push 0
push 0x100
push 0x807
push eax
call esi
jmp 0x415736
lea ecx, [esp + 0x24]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x24]
push str.2dfightermaker2nd20022.mid
push edx
lea eax, [esp + 0x2c]
push 0x41f7bc
push eax
call fcn.004179d0
mov ecx, dword [0x4246f8]
mov esi, dword [sym.imp.WINMM.dll_mciSendCommandA]
add esp, 0x10
lea eax, [esp + 4]
lea edx, [esp + 0x24]
mov dword [esp + 4], ecx
push eax
push 0x2200
push 0x803
push 0
mov dword [esp + 0x1c], str.sequencer
mov dword [esp + 0x20], edx
call esi
test eax, eax
je 0x41572c
mov eax, 1
pop esi
add esp, 0x128
ret
mov ecx, dword [esp + 8]
mov dword [0x42473c], ecx
mov ecx, dword [0x42473c]
mov edx, dword [0x4246f8]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
push eax
push 1
push 0x806
push ecx
call esi
test eax, eax
je 0x415789
mov edx, dword [0x42473c]
push 0
push 0
push 0x808
push edx
call esi
mov eax, dword [0x42473c]
push 0
push 0
push 0x804
push eax
call esi
mov eax, 1
pop esi
add esp, 0x128
ret
mov dword [0x424738], 1
xor eax, eax
pop esi
add esp, 0x128
ret

Function at 0x4157a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
xor eax, eax
push edi
mov al, byte [esi + 0x28]
shr eax, 4
and eax, 1
mov dword [0x424740], eax
call fcn.00415640
call fcn.00415600
lea ecx, [esp + 0x14]
push 0x105
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x14]
push str.2dfightermaker2nd20022.mid
push edx
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.004179d0
mov edi, dword [esi]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call fcn.00415690
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x416ea0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4701cc]
mov ecx, dword [esp + 4]
push 0
mov edx, dword [0x41f838]
push eax
push 0
push ecx
push 0x20
push 0x100
push 0
push 0
push DirectSoundCreate
push str.KeyInput
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 5
push eax
mov dword [0x4249c0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4171e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4701cc]
mov ecx, dword [esp + 4]
push 0
mov edx, dword [0x41f83c]
push eax
push 0
push ecx
push 0x20
push 0x190
push 0
push 0
push DirectSoundCreate
push str.JoyInput
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 5
push eax
mov dword [0x4249b4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x418fa5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41fbd8
cmp edx, dword [eax]
je 0x418fc7
add eax, 8
inc ecx
cmp eax, 0x41fc68
jl 0x418fb8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41fbd8]
jne 0x4190f5
mov eax, dword [0x42480c]
cmp eax, 1
je 0x4190cf
test eax, eax
jne 0x418ff8
cmp dword [0x41fb24], 1
je 0x4190cf
cmp edx, 0xfc
je 0x4190f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41902f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419aa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419072
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c794
push edi
call fcn.0041a820
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419aa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419ab0
lea eax, [ebp - 0xa0]
push 0x41c774
push eax
call fcn.00419ab0
push dword [esi + 0x41fbdc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419ab0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a78e
add esp, 0x2c
pop edi
jmp 0x4190f5
lea eax, [ebp + 8]
lea esi, [esi + 0x41fbdc]
push 0
push eax
push dword [esi]
call fcn.00419470
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x72534964
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4b382533
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40e528
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e5d1
test eax, edx
je 0x40e5d4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e551
push edx
mov edx, eax
mov eax, esp
call fcn.00406d9c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e567
push eax
lea eax, [esp + 8]
call fcn.00406d9c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e576
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e59d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40e5b7
add ecx, 4
js 0x40e58e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e5b4
push eax
mov eax, ecx
mov edx, 2
call fcn.004063b4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e59b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e59d
xor eax, eax
ret
test eax, eax
je 0x40e5e4
test edx, edx
jne 0x40e538
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41565b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004066c4
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040a71c
mov edi, eax
cmp edi, 0x104
jbe 0x41567e
mov eax, edi
add eax, eax
call fcn.004041b0
mov esi, eax
jmp 0x415680
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040a71c
push edi
push esi
call fcn.0040a7cc
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4156b9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4156a3
mov eax, esp
cmp esi, eax
je 0x4156c6
mov eax, esi
call fcn.004041cc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415700
cmp bl, 0
je 0x4156fc
cmp bl, 0x41
jl 0x4156f7
cmp bl, 0x5a
jg 0x4156f7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4156db
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415640