joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105fc60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x105fc80
mov esi, eax
sar esi, 1
cmp esi, 0xfffffffb
jge 0x105fc9b
mov eax, 0xffffffff
jmp 0x105fc9e
add eax, 0xa
push eax
call fcn.0102a430
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea ecx, [esi + 4]
mov word [eax + 8], 0
mov edx, eax
add edx, 8
movzx edi, word [ebx]
test di, di
je 0x105fce1
add ebx, 2
nop
nop
nop
mov word [edx], di
add edx, 2
movzx edi, word [ebx]
add ebx, 2
test di, di
jne 0x105fcd0
mov word [edx], 0
mov edi, 3
sub edi, esi
and edi, 2
mov edx, ecx
and edx, 0xfffd
imul edx, edi
and esi, 2
or ecx, 2
imul ecx, esi
lea esi, [ecx + edx]
mov word [esp], si
add ecx, edx
add ecx, 2
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xbcbdbebf
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0xa0
xor dl, byte [esp + ecx + 0x20]
add dl, 0xe0
mov byte [esp + ecx + 0x20], dl
inc ecx
cmp ecx, 4
jne 0x105fd60
mov esi, dword [esp + 0x20]
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x105fdc9
xor edx, edx
mov edi, dword [0xefa7f8]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x50dc24c7
je 0x105fda0
inc edx
cmp ecx, edx
jne 0x105fd90
jmp 0x105fdc9
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x105fdc9
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 8
push ecx
push dword [0xefa7fc]
mov edi, eax
call fcn.0105c1a0
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.0102a440
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x105fddf
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x105fdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xbcbdbebf
xor eax, eax
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa0
xor cl, byte [esp + eax]
add cl, 0xe0
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0x105fe10
mov eax, dword [esp]
mov edx, dword [0xefa7f4]
test edx, edx
je 0x105fe78
xor ebx, ebx
mov ecx, dword [0xefa7f8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x7cde1e50
je 0x105fe50
inc ebx
cmp edx, ebx
jne 0x105fe40
jmp 0x105fe78
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x105fe78
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x20
test edi, edi
je 0x105fe82
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x105fe8e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x105ffd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 0xbcbdbebf
xor eax, eax
nop
nop
nop
mov ebx, eax
add bl, 0xa0
xor bl, byte [esp + eax + 4]
add bl, 0xe0
mov byte [esp + eax + 4], bl
inc eax
cmp eax, 4
jne 0x105fff0
mov eax, dword [esp + 4]
mov ebx, dword [0xefa7f4]
test ebx, ebx
je 0x106005e
xor ebp, ebp
mov edi, dword [0xefa7f8]
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0x7e66a1b5
je 0x1060030
inc ebp
cmp ebx, ebp
jne 0x1060020
jmp 0x106005e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x106005e
lea eax, [esp + 4]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
push 0x24
push ebx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x30
cmp eax, 0x103
jne 0x10600d9
mov dword [esp], 0xbcbdbebf
xor eax, eax
nop
nop
mov ecx, eax
add cl, 0xa0
xor cl, byte [esp + eax]
add cl, 0xe0
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0x1060070
mov eax, dword [esp]
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x10600d1
xor edx, edx
mov edi, dword [0xefa7f8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x4e66b5a3
je 0x10600b0
inc edx
cmp ecx, edx
jne 0x10600a0
jmp 0x10600d1
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x10600d1
push 0
push 0
push dword [esp + 0x28]
push 0xc
push ecx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x18
test eax, eax
js 0x10600d9
mov eax, dword [esp + 4]
test esi, esi
je 0x10600e3
mov ecx, dword [esp + 8]
mov dword [esi], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10600f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x1060110
sar ebx, 1
mov ebp, ebx
and ebp, 0xfffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, ebp
lea ebp, [ecx + ebx]
mov word [esp + 4], bp
add ecx, ebx
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp], 0xbcbdbebf
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa0
xor cl, byte [esp + eax]
add cl, 0xe0
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0x1060190
mov eax, dword [esp]
mov edi, dword [0xefa7f4]
test edi, edi
je 0x10601f5
xor ebx, ebx
mov ebp, dword [0xefa7f8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x2df48de6
je 0x10601d1
inc ebx
cmp edi, ebx
jne 0x10601c0
jmp 0x10601f5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x10601f5
lea eax, [esp + 0xc]
push esi
push eax
push edx
push dword [esp + 0x48]
push 0x10
push edi
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x156301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1563028
push 0x1563024
push 0x1563020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x1563028]
push dword [0x1563024]
push dword [0x1563020]
mov dword [0x1563014], esp
call fcn.00431488
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401321
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push edi
push 0x15637f6
push 0x15637f8
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401379
push dword [ebp - 4]
push 1
push 0xc4
lea edi, [ebp - 0xc8]
push edi
call sub.CRTDLL.DLL_fread
add esp, 0x10
cmp eax, 1
jne 0x40136e
mov bl, byte [ebp - 6]
mov byte [0x1563256], bl
push dword [ebp - 4]
call sub.CRTDLL.DLL_fclose
add esp, 4
cmp byte [0x1563256], 0
jge 0x401387
call fcn.0040126a
cmp byte [0x1563256], 0
jne 0x401397
call fcn.00401a50
jmp 0x40139c
call fcn.00401481
pop edi
pop ebx
leave
ret
Function at 0x403b8d
Capabilities:
Create process on windows
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d8
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [0x156392c], edi
call fcn.004037b3
cmp eax, 0
jne 0x403bb5
mov eax, 0
jmp 0x403d48
call fcn.00403830
mov dword [0x156390c], eax
cmp eax, 0
jne 0x403bce
mov eax, 0
jmp 0x403d48
push 0x156404d
push 2
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x12
call sub.GDI32.DLL_CreateFontA
mov dword [0x1563908], eax
push 5
push dword [0x156390c]
call sub.USER32.DLL_ShowWindow
push str.data_comic.ttf
call sub.GDI32.DLL_AddFontResourceA
push str.data_lsansi.ttf
call sub.GDI32.DLL_AddFontResourceA
call fcn.00403db1
call fcn.004047e4
call fcn.00401321
call fcn.00404354
push dword [0x1563930]
push dword [0x156390c]
call fcn.0041aade
add esp, 8
cmp eax, 0
jne 0x403c52
mov eax, 0
jmp 0x403d48
call fcn.0040cfbc
cmp eax, 0
jne 0x403c6b
call fcn.0041c50a
mov eax, 0
jmp 0x403d48
push dword [0x156390c]
call sub.USER32.DLL_SetCapture
call fcn.00403748
call fcn.0040d9b2
lea edi, [ebp - 8]
push edi
call fcn.00403d4e
add esp, 4
mov ebx, eax
movsx edi, bl
mov dword [ebp - 4], edi
cmp byte [0x1563934], 0
je 0x403cad
cmp byte [0x123e0c8], 0
jne 0x403cad
push 0
call sub.USER32.DLL_PostQuitMessage
cmp dword [ebp - 4], 0
jne 0x403c7b
push 1
call sub.USER32.DLL_ShowCursor
push str.data_comic.ttf
call sub.GDI32.DLL_RemoveFontResourceA
push str.data_lsansi.ttf
call sub.GDI32.DLL_RemoveFontResourceA
cmp byte [0x1563928], 1
jne 0x403cf6
push 1
push 0x1563fd9
push 0x1563fdd
push str.https:__swreg.org_cgi_bin_b.cgi_s1194p11942205v0d0q1tPingPong3d
push str.open
push 0
call sub.SHELL32.DLL_ShellExecuteA
jmp 0x403d45
cmp byte [0x1563928], 2
jne 0x403d45
lea edi, [ebp - 0x3f0]
push edi
push 0x3e8
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push str._sfax.htm
lea edi, [ebp - 0x7d8]
push edi
call sub.CRTDLL.DLL_sprintf
add esp, 8
push 1
lea edi, [ebp - 0x3f0]
push edi
push 0x1563fdd
lea edi, [ebp - 0x7d8]
push edi
push str.open
push 0
call sub.SHELL32.DLL_ShellExecuteA
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 0x10

Function at 0x403db1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push edi
push 0x1563fc0
push 0x1563fc2
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403e3b
push dword [ebp - 4]
push 1
push 0xc4
lea edi, [ebp - 0xc8]
push edi
call sub.CRTDLL.DLL_fread
add esp, 0x10
cmp eax, 1
jne 0x403e30
mov edi, dword [ebp - 0xc8]
mov dword [0x15638f8], edi
mov edi, dword [ebp - 0xc4]
mov dword [0x15638fc], edi
mov eax, dword [0x15638f8]
mov ecx, 2
cdq
idiv ecx
mov dword [0x1563900], eax
mov eax, dword [0x15638fc]
mov ecx, 2
cdq
idiv ecx
mov dword [0x1563904], eax
push dword [ebp - 4]
call sub.CRTDLL.DLL_fclose
add esp, 4
pop edi
leave
ret
Function at 0x40ca6b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push edi
lea edi, [ebp - 0xc4]
push edi
call fcn.0040caa0
add esp, 4
push dword [ebp + 8]
push 1
push 0xc4
lea edi, [ebp - 0xc4]
push edi
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
pop edi
leave
ret

Function at 0x40ccf8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
push edi
push dword [ebp + 8]
push 1
push 0xc4
lea edi, [ebp - 0xc4]
push edi
call sub.CRTDLL.DLL_fread
add esp, 0x10
cmp eax, 1
je 0x40cd68
cmp byte [0x1579750], 4
jne 0x40cd41
push str.Corrupt_league_file:_league.dat
movsx edi, byte [0x1581008]
push edi
call fcn.004201cd
add esp, 8
jmp 0x40cd56
push str.Corrupt_settings_file:_settings.dat
movsx edi, byte [0x1581008]
push edi
call fcn.004201cd
add esp, 8
push dword [ebp + 8]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov eax, 0
jmp 0x40cd8d
lea esi, [ebp - 0xc4]
sub esp, 0xc4
mov edi, esp
mov ecx, 0xc4
rep movsb byte es:[edi], byte [esi]
call fcn.0040cd91
add esp, 0xc4
mov eax, 1
pop edi
pop esi
leave
ret

Function at 0x40e77f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [ebp + 8], 0
jne 0x40e793
push 0x1231c74
call sub.USER32.DLL_GetKeyboardState
cmp dword [0x123ed70], 0
je case.0x40e7b1.0
movsx ebx, byte [0x123ed7c]
cmp ebx, 0
jl case.0x40e7b1.0
cmp ebx, 5
jg case.0x40e7b1.0
jmp dword [ebx*4 + 0x157a0ec]
push 0x100
push 0
push 0x1231c74
call sub.CRTDLL.DLL_memset
add esp, 0xc
jmp case.0x40e7b1.0
mov byte [0x1231c8f], 0
jmp case.0x40e7b1.0
mov byte [0x1231cce], 0
mov byte [0x1231c8f], 0
mov byte [0x1231c75], 0
mov byte [0x1231c76], 0
mov byte [0x1231c78], 0
mov byte [0x1231cc5], 0
mov byte [0x1231ccb], 0
mov byte [0x1231cb9], 0
mov byte [0x1231cc6], 0
push 6
push 0
push 0x1563910
call sub.CRTDLL.DLL_memset
add esp, 0xc
pop ebx
pop ebp
ret
Function at 0x40ec17
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0xff
movzx edi, byte [0x1231c75]
cmp edi, 1
jg 0x40ec4b
movzx edi, byte [0x1231c76]
cmp edi, 1
jg 0x40ec4b
movzx edi, byte [0x1231c78]
cmp edi, 1
jle 0x40ec4f
mov byte [ebp - 2], 1
push 0
call fcn.0040e77f
add esp, 4
call fcn.00403f4a
cmp byte [ebp + 8], 0
je 0x40ec75
movsx edi, byte [ebp + 8]
shl edi, 1
mov ebx, edi
sub ebx, 2
mov byte [0x1231c75], bl
cmp byte [0x123ed6c], 3
jne 0x40eccb
movzx edi, byte [0x1231c75]
cmp edi, 1
jg 0x40eca6
movzx edi, byte [0x1231c76]
cmp edi, 1
jg 0x40eca6
movzx edi, byte [0x1231c78]
cmp edi, 1
jle 0x40edd7
call fcn.00411344
mov dword [0x123ed70], 0x14
mov byte [0x123ed7c], 4
push 1
call fcn.0040e77f
add esp, 4
jmp 0x40edd7
cmp byte [ebp - 2], 0
jne 0x40ecfb
movzx edi, byte [0x1231c75]
cmp edi, 1
jg 0x40ecf5
movzx edi, byte [0x1231c76]
cmp edi, 1
jg 0x40ecf5
movzx edi, byte [0x1231c78]
cmp edi, 1
jle 0x40ecfb
mov byte [ebp - 1], 1
jmp 0x40ed29
cmp byte [ebp - 2], 1
jne 0x40ed29
movzx edi, byte [0x1231c75]
cmp edi, 2
jge 0x40ed29
movzx edi, byte [0x1231c76]
cmp edi, 2
jge 0x40ed29
movzx edi, byte [0x1231c78]
cmp edi, 2
jge 0x40ed29
mov byte [ebp - 1], 0
mov bl, byte [ebp - 1]
cmp bl, 0xff
je 0x40ed7a
movsx edi, byte [ebp - 1]
push edi
call fcn.004046cc
add esp, 4
cmp byte [ebp - 1], 1
jne 0x40ed53
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x854d04], eax
jmp 0x40edd7
mov dword [0x123ed70], 0x14
mov byte [0x123ed7c], 4
push 1
call fcn.0040e77f
add esp, 4
mov dword [0x854d04], 0
jmp 0x40edd7
movzx edi, byte [0x1231c75]
cmp edi, 1
jg 0x40ed9e
movzx edi, byte [0x1231c76]
cmp edi, 1
jg 0x40ed9e
movzx edi, byte [0x1231c78]
cmp edi, 1
jle 0x40edd7
cmp dword [0x854d04], 0
je 0x40edd7
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
mov edi, dword [ebp - 8]
sub edi, dword [0x854d04]
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], 0xc8
jbe 0x40edd7
mov edi, dword [ebp - 8]
mov dword [0x854d04], edi
push 1
call fcn.004046cc
add esp, 4
pop edi
pop ebx
leave
ret
Function at 0x40f37b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov dword [ebp - 4], 0
lea edi, [0x123e304]
mov dword [ebp - 0x14], edi
mov byte [ebp - 5], 1
cmp byte [0x123ed6c], 0
jne 0x40f551
fld dword [0x157aff8]
fstp dword [0x854d20]
fld dword [0x157affc]
fstp dword [0x854d24]
fld dword [0x157b000]
fstp dword [0x854d28]
fld dword [0x157b004]
fstp dword [0x854d14]
fld dword [0x157b008]
fstp dword [0x854d18]
fld dword [0x157b00c]
fstp dword [0x854d1c]
call fcn.004029f0
call fcn.004030b8
call fcn.0041a885
mov byte [0x123ed74], 2
mov bl, byte [0x123ed6c]
mov byte [ebp - 0xd], bl
mov byte [0x123ed6c], 1
push 0
call fcn.0040317d
add esp, 4
call fcn.004029f0
call fcn.0040db21
push 0
call fcn.0040f5aa
add esp, 4
push 0xa
call fcn.0040317d
add esp, 4
push 0
push 1
call fcn.0040e1cd
add esp, 8
push 1
call fcn.0041b588
add esp, 4
push 0
push 0
call fcn.0040e1cd
add esp, 8
push 1
call fcn.0041b588
add esp, 4
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], edi
jmp 0x40f4b4
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x1c]
push edi
call fcn.00403d4e
add esp, 4
cmp byte [0x123e0c8], 0
je 0x40f551
call fcn.0040db21
mov ebx, eax
mov byte [ebp - 5], bl
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
sub edi, dword [ebp - 0x18]
cmp edi, 0x32
jb 0x40f4a1
cmp byte [ebp - 5], 0
je 0x40f4c8
mov edi, dword [ebp - 4]
sub edi, dword [ebp - 0xc]
cmp edi, 0x2710
jb 0x40f476
mov byte [0x123ed74], 0
mov bl, byte [ebp - 0xd]
mov byte [0x123ed6c], bl
fld dword [0x854d20]
fstp dword [0x157aff8]
fld dword [0x854d24]
fstp dword [0x157affc]
fld dword [0x854d28]
fstp dword [0x157b000]
fld dword [0x854d14]
fstp dword [0x157b004]
fld dword [0x854d18]
fstp dword [0x157b008]
fld dword [0x854d1c]
fstp dword [0x157b00c]
push 1
call fcn.0040f5aa
add esp, 4
mov dword [0x123ed70], 0x14
mov byte [0x123ed7c], 5
push 1
call fcn.0040e77f
add esp, 4
push 1
push 0
call fcn.0040e14b
add esp, 8
pop edi
pop ebx
leave
ret

Function at 0x4100b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push edi
cmp byte [0x123e0c8], 0
je 0x410117
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
sub edi, dword [0x854d2c]
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 5
jl 0x4100ef
call fcn.0040e82a
mov edi, dword [ebp - 4]
mov dword [0x854d2c], edi
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
sub edi, dword [0x854d30]
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0x19
jl 0x410117
call fcn.0040d9c1
mov edi, dword [ebp - 4]
mov dword [0x854d30], edi
pop edi
leave
ret
Function at 0x41451b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push edi
push 0x157ab27
push str.league.dat
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x414553
push str.Error:_Could_not_create_Leauge_Save_file_:_league.dat
movsx edi, byte [0x158100b]
push edi
call fcn.004201cd
add esp, 8
jmp 0x41458f
mov dword [ebp - 4], 0
push dword [ebp - 8]
push 1
push 0x4f50
imul edi, dword [ebp - 4], 0x4f50
lea edi, [edi + 0x859bd0]
push edi
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
inc dword [ebp - 4]
cmp dword [ebp - 4], 6
jl 0x41455a
push dword [ebp - 8]
call sub.CRTDLL.DLL_fclose
add esp, 4
pop edi
leave
ret

Function at 0x4145a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov edi, dword [ebp + 8]
cmp edi, 0
jl 0x4145f4
cmp edi, 6
jge 0x4145f4
imul edi, edi, 0x4f50
cmp byte [edi + 0x859bd0], 0
jne 0x4145f4
mov ebx, dword [ebp + 8]
mov byte [0x157a8f3], bl
mov byte [0x859b8c], 1
call fcn.0040aa79
mov eax, 1
jmp 0x41472b
push 0x157aaee
push str.league.dat
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x414619
mov eax, 0
jmp 0x41472b
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x414653
push dword [ebp - 0xc]
push 1
push 0x4f50
imul edi, dword [ebp - 4], 0x4f50
lea edi, [edi + 0x859bd0]
push edi
call sub.CRTDLL.DLL_fread
add esp, 0x10
cmp eax, 1
je 0x414653
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp dword [ebp - 4], 6
jl 0x414620
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_fclose
add esp, 4
cmp dword [ebp - 8], 0
je 0x41468c
push str.Error_Reading_League_Data_File_:_league.dat_is_corrupt.
movsx edi, byte [0x1581009]
push edi
call fcn.004201cd
add esp, 8
mov eax, 0
jmp 0x41472b
mov edi, dword [ebp + 8]
cmp edi, 0
jl 0x414726
cmp edi, 6
jge 0x414726
imul edi, dword [ebp + 8], 0x4f50
cmp byte [edi + 0x859bd0], 0
jne 0x4146d1
push dword [ebp + 8]
push str.Loading_from_and_empty_slot:__d
movsx edi, byte [0x1581009]
push edi
call fcn.004201cd
add esp, 0xc
mov eax, 0
jmp 0x41472b
mov ebx, dword [ebp + 8]
mov byte [0x157a8f3], bl
movsx edi, byte [ebp + 8]
push edi
call fcn.0041424a
add esp, 4
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
imul esi, edi, 0x28
mov ebx, dword [esi + 0x123e288]
mov byte [edi + 0x1231c70], bl
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x4146ee
call fcn.0040d19e
call fcn.00413750
call fcn.0041554b
mov byte [0x1579750], 4
call fcn.0040aa79
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422fbe
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push edi
cmp byte [0x1581038], 0
jne 0x422fdb
mov eax, 0
jmp 0x42314a
mov edi, dword [ebp + 8]
cmp edi, 0x1b
je 0x4230dd
jg 0x423006
mov edi, dword [ebp + 8]
cmp edi, 9
je 0x42303a
jl 0x423145
cmp dword [ebp + 8], 0xd
je 0x4230ca
jmp 0x423145
mov edi, dword [ebp + 8]
cmp edi, 0x25
jl 0x423145
cmp edi, 0x28
jg 0x42301e
jmp dword [edi*4 + 0x1582458]
mov edi, dword [ebp + 8]
cmp edi, 0x62
jl 0x423145
cmp edi, 0x68
jg 0x423145
jmp dword [edi*4 + 0x1582374]
lea edi, [ebp - 0x100]
push edi
call sub.USER32.DLL_GetKeyboardState
movzx edi, byte [ebp - 0xf0]
cmp edi, 1
jle 0x42305e
push 0xffffffffffffffff
call fcn.004231fa
add esp, 4
jmp 0x423068
push 1
call fcn.004231fa
add esp, 4
mov eax, 1
jmp 0x42314a
push 0
push 2
call fcn.0042314d
add esp, 8
mov eax, 1
jmp 0x42314a
mov dword [ebp - 4], 0
jmp 0x423133
imul edi, dword [ebp - 4], 0x14cc
cmp byte [edi + 0x12d4663], 0
je 0x423130
cmp byte [edi + 0x12d5b18], 2
jne 0x423130
call sub.KERNEL32.DLL_GetTickCount
mov edi, eax
sub edi, dword [0x158105c]
cmp edi, 0x5dc
jbe 0x423129
push 0
imul edi, dword [ebp - 4], 0x14cc
call dword [edi + 0x12d4678]
add esp, 4
mov eax, 1
jmp 0x42314a
inc dword [ebp - 4]
mov edi, dword [0x1581040]
cmp dword [ebp - 4], edi
jl 0x4230e6
mov eax, 0
jmp 0x42314a
mov eax, 0
pop edi
leave
ret

Function at 0x431488
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x4314bc
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x4314d7
mov edi, eax
inc edi
jmp 0x4314b4
inc edi
cmp byte [edi], 0x20
je 0x4314b3
jmp 0x4314d7
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4314c8
cmp eax, 0x20
jne 0x4314bb
jmp 0x4314cb
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4314d7
cmp eax, 0x20
je 0x4314ca
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00403b8d
pop edi
leave
ret
Function at 0x960240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x36e000]
push edi
or ebp, 0xffffffff
jmp 0x960262
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x960269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x960258
mov eax, 1
add ebx, ebx
jne 0x96027b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x96028c
jne 0x9602ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9602ab
dec eax
add ebx, ebx
jne 0x960298
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x960270
add ebx, ebx
jne 0x9602a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9602fd
xor ecx, ecx
sub eax, 3
jb 0x9602c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x960332
sar eax, 1
mov ebp, eax
jmp 0x9602ce
add ebx, ebx
jne 0x9602ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x96029c
inc ecx
add ebx, ebx
jne 0x9602dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x96029c
add ebx, ebx
jne 0x9602e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9602de
jne 0x9602fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9602de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x96031c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x96030e
jmp 0x96025e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x96031c
add edi, ecx
jmp 0x96025e
pop esi
mov edi, esi
mov ecx, 0x1d224
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x96033a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x96033f
lea edi, [esi + 0x55c000]
mov eax, dword [edi]
or eax, eax
je 0x9603a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x646ee8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x647000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x960365
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x647004]
or eax, eax
je 0x9603a1
mov dword [ebx], eax
add ebx, 4
jmp 0x960382
call dword [esi + 0x647014]
mov ebp, dword [esi + 0x647008]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9603db
sub esp, 0xffffff80
jmp 0x7142e4