joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push 1
lea ebx, [edi + 0x14]
push 4
push ebx
mov dword [esp + 0x20], 0
call fcn.0043ad6f
mov eax, dword [ebx]
mov ebp, 1
inc eax
add esp, 0x10
cmp eax, ebp
jle 0x4019e1
lea esp, [esp]
xor eax, eax
push esi
push 1
lea ecx, [esp + 0x28]
push 0x24
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.0043ad6f
push esi
push 1
lea edx, [esp + 0x24]
push 4
push edx
call fcn.0043ad6f
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043a92a
mov ecx, dword [esp + 0x30]
push esi
push 1
push ecx
push eax
mov dword [esp + 0x64], eax
call fcn.0043ad6f
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
add esp, 0x34
push 0
lea ebx, [ebp*4]
add ecx, ebx
push ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call edx
test eax, eax
je 0x40197c
mov eax, dword [edi + 0x2c]
push 0
push str.DirectSound
push str.Not_Sound_Buffer_Create
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [edi + 0xc]
mov ebx, dword [ebx + ecx]
mov edx, dword [ebx]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edx + 0x2c]
push eax
push 0
push ebx
call ecx
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jbe 0x4019d4
nop
push esi
push 1
lea edx, [esp + 0x13]
push 1
push edx
call fcn.0043ad6f
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x1b]
mov byte [ebx + eax], cl
inc ebx
add esp, 0x10
cmp ebx, dword [esp + 0x28]
jb 0x4019b0
mov edx, dword [edi + 0x14]
inc ebp
inc edx
cmp ebp, edx
jl 0x4018e0
push esi
call fcn.0043afe7
mov ecx, dword [esp + 0x48]
add esp, 4
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a7e2
add esp, 0x40
ret

Function at 0x401d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
cmp dword [esi + 0xc], 0
jne 0x401d1f
xor eax, eax
add esp, 0x14
ret
mov ecx, dword [esi + 4]
push ebx
push edi
lea edi, [esi + 0x24]
push edi
lea eax, [esp + 0xc]
push eax
push 4
push 0x461bcc
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401daa
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x401d8d
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea edx, [esp + 0x10]
push edx
push edi
push eax
call ebx
test eax, eax
jne 0x401da9
call ebp
mov edx, dword [esi + 4]
cmp eax, 0x3e4
jne 0x401d98
push 1
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
call ebx
test eax, eax
je 0x401d67
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop ebx
add esp, 0x14
ret
mov edx, dword [esi + 4]
mov dword [esp + 0xc], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop ebp
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x402d30
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [0x461078]
mov edx, dword [0x46108c]
push esi
mov dword [ecx + 0x1aa0], edx
mov esi, ecx
mov dword [edx + 0x34], 0x402a10
mov dword [edx + 0x30], ecx
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x402d51
pop esi
jmp 0x403820
sub esp, 0x14c
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x48]
push 0x104
push eax
mov edi, ecx
call fcn.0043b8f1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0043ba0a
add esp, 0x18
test eax, eax
jne 0x4038bc
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038bc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0043a7e2
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a7e2
add esp, 0x14c
ret

Function at 0x403750
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x48]
push 0x104
push eax
mov edi, ecx
call fcn.0043b8f1
lea ecx, [esp + 0x20]
push ecx
push str.C:OIDD
call fcn.0043ba0a
add esp, 0x18
test eax, eax
je 0x4037a8
push 0
push str.C:OIDD
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403800
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403800
push 0
lea eax, [esp + 0x10]
push eax
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0043a7e2
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a7e2
add esp, 0x14c
ret
Function at 0x403820
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [0x461078]
mov edx, dword [0x46108c]
push esi
mov dword [ecx + 0x1aa0], edx
mov esi, ecx
mov dword [edx + 0x34], 0x402a10
mov dword [edx + 0x30], ecx
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x402d51
pop esi
jmp 0x403820
sub esp, 0x14c
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x48]
push 0x104
push eax
mov edi, ecx
call fcn.0043b8f1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0043ba0a
add esp, 0x18
test eax, eax
jne 0x4038bc
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038bc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0043a7e2
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a7e2
add esp, 0x14c
ret

Function at 0x403c30
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x403c5e
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x4582a0]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x403c38
pop edi
pop esi
ret

Function at 0x403c60
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x403c8e
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x4582a0]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x403c68
pop edi
pop esi
movzx eax, ax
xor ecx, ecx
cmp dword [esp + 4], eax
sete cl
mov eax, ecx
ret
Function at 0x403ca0
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
mov ebp, dword [0x46108c]
push esi
push 3
mov esi, ecx
push 0x4584a0
push esi
call fcn.0044c12b
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x403d22
lea eax, [esi + 3]
push eax
call fcn.0043b925
add esp, 4
cmp eax, 0xa
jl 0x403d22
mov dl, byte [0x4584a8]
mov ecx, dword [str.._]
mov eax, esi
mov byte [esp + 0x40], dl
mov dword [esp + 0x3c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403cf8
push edi
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x403d07
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x40]
pop edi
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x403d57
pop esi
mov dword [ebp], ebx
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0043a7e2
add esp, 0x44
ret
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x28]
and eax, 0xfffff7fd
or eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], 0x4b00
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3a], 8
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov ecx, dword [ebp]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call esi
lea edx, [ebp + 0x2c]
push edx
push ebx
push ebp
push 0x403f90
push ebx
push ebx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x4c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043a7e2
add esp, 0x44
ret
Function at 0x403e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
lea ebx, [edi + 4]
push ebx
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403ecd
mov edx, dword [edi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
call ebp
test eax, eax
jne 0x403ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
cmp eax, 0x3e4
jne 0x403eb7
add esi, dword [esp + 0xc]
push 1
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
call ebp
test eax, eax
je 0x403e84
add esi, dword [esp + 0xc]
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
add esi, dword [esp + 0xc]
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 8]
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x403ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
lea edi, [esi + 0x18]
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x403f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403f6e
mov ecx, dword [esi + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403f2b
xor ebx, ebx
pop edi
mov eax, ebx
pop ebx
add esp, 0x14
ret
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0
lea edx, [esp + 0x10]
push edx
push edi
push eax
call ebp
test eax, eax
jne 0x403f65
add ebx, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x403f65
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
call ebp
test eax, eax
je 0x403f43
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x14
ret
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x404da0
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 4]
push ecx
push 4
lea edx, [esi + 0x3e0]
push edx
push eax
mov dword [esi + 0x3cc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov eax, 0x300
mov edx, 2
mul edx
seto cl
mov dword [esi + 0x424], 0
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
mov dword [esi + 0x3e8], eax
add esp, 8
ret
Function at 0x404e10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0x45812c
push eax
mov dword [esp + 0x18], 0
call fcn.0043aab8
mov edi, eax
add esp, 8
test edi, edi
je 0x404f4b
push ebx
push esi
push edi
push 1
lea ebx, [ebp + 0x3e0]
push 4
push ebx
call fcn.0043ad6f
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
xor esi, esi
add esp, 0x14
cmp dword [ebx], esi
mov dword [ebp + 0x3e4], eax
jle 0x404f1f
push edi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0043ad6f
push 1
push 0xfffffffffffffffc
push edi
call fcn.0043be9c
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
mov ecx, dword [ebp + 0x3e4]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 0x3e4]
push edi
lea eax, [edx + edx]
mov edx, dword [ecx + esi*4]
push 1
push eax
push edx
call fcn.0043ad6f
add esp, 0x30
test esi, esi
jl 0x404ee5
cmp esi, dword [ebx]
jge 0x404ee5
mov eax, dword [ebp + 0x3e4]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 4]
jmp 0x404eea
mov eax, 0xffffffce
movsx edx, word [esp + 0x18]
cmp edx, eax
jge 0x404f16
test esi, esi
jl 0x404f0a
cmp esi, dword [ebx]
jge 0x404f0a
mov eax, dword [ebp + 0x3e4]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 4]
jmp 0x404f0f
mov eax, 0xffffffce
movzx edx, ax
mov dword [esp + 0x18], edx
inc esi
cmp esi, dword [ebx]
jl 0x404e75
movsx eax, word [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
push edi
mov dword [ebp + 0x3e8], eax
call fcn.0043afe7
add esp, 8
pop esi
pop ebx
push 0x500
push 0x300
push 0
push 0
add ebp, 0x3f8
push ebp
call dword [sym.imp.USER32.dll_SetRect]
pop edi
pop ebp
pop ecx
ret 4

Function at 0x4050b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
cmp ebx, dword [esi + 0x3e0]
jge 0x405132
mov eax, dword [esi + 0x3cc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 4
push eax
mov byte [esi + 0x428], 0
mov dword [esi + 0x424], ebx
call edi
dec ebx
test ebx, ebx
jle 0x405131
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
mov eax, dword [esi + 0x3cc]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x3cc]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call edi
sub ebx, 1
jne 0x4050f0
pop ebp
pop edi
pop ebx
add esp, 8
ret
Function at 0x405140
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esi + 0x3cc]
sub esp, 8
push edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3cc]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0xfffffffffffffffc
push eax
call edi
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0x3cc]
push 1
push 0
lea edx, [ecx + ecx]
push edx
push eax
call edi
inc dword [esi + 0x424]
mov eax, dword [esi + 0x3e0]
mov ecx, dword [esi + 0x424]
lea edx, [eax - 1]
pop edi
cmp ecx, edx
jb 0x4051b8
dec eax
inc word [esi + 0x40e]
mov dword [esi + 0x424], eax
mov byte [esi + 0x428], 1
add esp, 8
ret

Function at 0x4051c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0x25
ja 0x4052d2
mov eax, dword [esi + 0x3e0]
test eax, eax
jbe 0x4052d2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
dec eax
push edi
cmp dword [esi + 0x424], eax
jb 0x405206
mov eax, dword [esi + 0x3cc]
push 0
push 0
push 4
push eax
mov dword [esi + 0x424], 0
call ebp
mov eax, dword [esi + 0x3ec]
test eax, eax
je 0x405223
push eax
call fcn.0043a7f1
add esp, 4
mov dword [esi + 0x3ec], 0
mov eax, dword [esi + 0x3cc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push eax
call edi
mov ecx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call ebp
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4052a6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
mov edx, dword [esp + 0xc]
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3cc]
push ecx
push eax
push edx
mov dword [esi + 0x3ec], eax
call edi
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x3ec]
push eax
mov eax, dword [esp + 0x18]
push esi
xor ecx, ecx
call fcn.00406b40
mov edx, dword [esi + 0x3e0]
mov ecx, 1
add dword [esi + 0x424], ecx
mov eax, dword [esi + 0x424]
sub edx, ecx
pop edi
pop ebp
cmp eax, edx
jb 0x4052d2
add word [esi + 0x40e], cx
mov byte [esi + 0x428], cl
add esp, 8
ret 8
Function at 0x4055d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov eax, dword [esi + 0x3e0]
dec eax
cmp dword [esi + 0x424], eax
jne 0x4055ee
cmp dword [esi + 0x3ec], 0
jne 0x405661
push edi
call fcn.004050b0
mov edx, dword [esi + 0x3cc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
mov eax, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
mov edx, dword [esp + 0xc]
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3cc]
push ecx
push eax
push edx
mov dword [esi + 0x3ec], eax
call edi
pop edi
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x3ec]
push eax
push esi
mov ecx, 0xffffffce
xor eax, eax
call fcn.00406b40
pop esi
add esp, 8
ret 4

Function at 0x405680
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov eax, dword [esi + 0x3e0]
push edi
dec eax
call fcn.004050b0
mov edx, dword [esi + 0x3cc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
mov eax, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b07e
mov edx, dword [esp + 0xc]
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3cc]
push ecx
push eax
push edx
mov dword [esi + 0x3ec], eax
call edi
mov ecx, dword [esi + 0x3ec]
push 1
push esi
xor eax, eax
xor edx, edx
call fcn.00406100
mov eax, dword [esi + 0x3ec]
test eax, eax
je 0x40572e
push eax
call fcn.0043a7f1
add esp, 4
mov dword [esi + 0x3ec], 0
pop edi
pop esi
add esp, 8
ret
Function at 0x428630
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x450f5b
mov eax, dword fs:[0]
push eax
mov eax, 0x13bc
call fcn.00447a30
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x13b8], eax
push ebx
push esi
push edi
mov eax, dword [0x45e1ac]
xor eax, esp
push eax
lea eax, [esp + 0x13cc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
cmp byte [0x461cdf], bl
jne 0x428880
cmp dword [edi + 0x3a8], ebx
jge 0x42868c
mov dword [edi + 0x3a8], ebx
mov eax, dword [0x463740]
mov ecx, dword [edi + 0x378]
push 0x458130
push str.CodeGameSet.st
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
call fcn.0043aab8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x428880
lea ecx, [esp + 0x44]
call fcn.0043a230
lea edx, [esp + 0x10]
mov dword [esp + 0x13d4], ebx
mov eax, dword [0x45f8d4]
push edx
push eax
push 1
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
mov edx, dword [edi + 0x3a8]
lea ecx, [esp + 0x10]
push ecx
push edx
push 2
mov dword [esp + 0x28], eax
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
mov ecx, dword [0x45f954]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
push ecx
push 3
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea edx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [0x463750]
push edx
push eax
push 4
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea ecx, [esp + 0x10]
push ecx
push ebx
push 5
mov dword [esp + 0x34], eax
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [0x45f950]
push edx
push eax
push 6
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea ecx, [esp + 0x10]
push ecx
push ebx
push 7
mov dword [esp + 0x3c], eax
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea edx, [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [0x46374c]
push edx
push eax
push 8
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea ecx, [esp + 0x10]
push ecx
push ebx
push 9
mov dword [esp + 0x44], eax
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
lea edx, [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x370]
push edx
push eax
push 0xa
call fcn.00435b20
push eax
lea ecx, [esp + 0x50]
call fcn.00439f90
push esi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
mov dword [esp + 0x50], eax
call fcn.0043aeee
push esi
push 1
push 0x18
push 0x45f938
call fcn.0043aeee
push esi
push 1
lea edx, [esp + 0x3c]
push 4
push edx
call fcn.0043aeee
add esp, 0x30
lea edi, [esp + 0x1c]
mov ebx, 0xa
lea esp, [esp]
push esi
push 1
push 4
push edi
call fcn.0043aeee
add esp, 0x10
add edi, 4
sub ebx, 1
jne 0x428840
push esi
call fcn.0043afe7
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00438730
lea ecx, [esp + 0x44]
mov dword [esp + 0x13d4], 0xffffffff
call fcn.0043a390
lea esp, [esp]
mov ecx, dword [esp + 0x13cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13b8]
xor ecx, esp
call fcn.0043a7e2
add esp, 0x13c8
ret
Function at 0x431bf0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x461f08], 1
push esi
movzx esi, ax
push esi
jne 0x431c09
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x431c17
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [esi*4 + 0x4610e8]
je 0x431c42
test eax, eax
jne 0x431c36
mov dword [esi*4 + 0x4610e8], 1
mov eax, 1
pop esi
ret
cmp eax, 1
jne 0x431c4c
mov eax, 2
pop esi
ret
cmp eax, 1
je 0x431c50
cmp eax, 2
je 0x431c50
xor eax, eax
pop esi
ret
mov dword [esi*4 + 0x4610e8], 0
mov eax, 3
pop esi
ret
Function at 0x4334b0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [0x461034]
push edi
movzx edi, word [edx + 0x3a6]
movsx eax, di
add eax, 0xfffffffe
cmp eax, 1
ja 0x43354e
mov ecx, dword [edx + 0x4f8]
cmp ecx, 0x11
jg 0x43354e
test ecx, ecx
je 0x43354e
cmp byte [edx + 0x4f0], 0
je 0x43354e
push esi
lea eax, [ecx - 1]
xor esi, esi
cmp eax, 0x10
ja case.0x4334f7.15
movzx eax, byte [eax + 0x43356c]
jmp dword [eax*4 + 0x433558]
mov esi, 0x31
jmp case.0x4334f7.15
mov esi, 0x35
jmp case.0x4334f7.15
mov esi, 0x27
jmp case.0x4334f7.15
mov esi, 0x3b
cmp di, 1
je 0x433534
mov eax, dword [ecx*8 + 0x45fe58]
mov eax, dword [edx + eax*4 + 0x324]
cmp dword [eax + 0x424], esi
je 0x433550
mov ecx, dword [ecx*8 + 0x45fe58]
mov ecx, dword [edx + ecx*4 + 0x324]
push 0
push 0
xor eax, eax
call fcn.004052e0
pop esi
pop edi
ret
pop esi
pop edi
jmp fcn.00405680