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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6e1968da
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x780d0767
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6a88
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5055f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x74]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetClipCursor]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040b0f0
add esp, 8
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
lea edi, [ebx + 0x14]
push 0
mov dword [ebp - 0x3c], eax
mov dword [ebx + 0x3c], 0x4ee5c0
mov dword [edi], 0x30
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x1c], 0x401260
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x40
push 0x20
push 0x20
push 1
push 0x3e8
push eax
mov dword [ebx + 0x28], eax
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x40
push 0x20
push 0x20
push 1
push 0x3e9
push dword [ebx + 0x28]
mov dword [ebx + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x7f00
push 0
mov dword [ebx + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [ebx + 4], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push edi
mov dword [ebx + 0x34], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401523
mov eax, dword [ebx + 8]
push dword [ebx + 0x48]
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0xc]
dec eax
push 0
mov dword [ebp - 0x14], eax
push 0xcf0000
lea eax, [ebp - 0x20]
push eax
mov dword [ebx + 0x44], 0xcf0000
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 0
push dword [ebx + 0x28]
inc eax
push 0
push 0
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
inc eax
push eax
push 0
push 0
push dword [ebx + 0x44]
push dword [ebp - 0x3c]
push str.PLAYJIN
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, ebx
mov dword [ebx], eax
call fcn.00401850
movzx eax, byte [ebx + 0x98]
push eax
movzx eax, byte [ebx + 0x10]
push eax
push dword [ebx + 0xc]
mov ecx, ebx
push dword [ebx + 8]
call fcn.00401590
push 1
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp - 0x24], 8
jb 0x401534
push dword [ebp - 0x38]
call fcn.0049a5c3
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jb 0x401559
push dword [ebp + 8]
call fcn.0049a5c3
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ad54
mov esp, ebp
pop ebp
ret 0x18

Function at 0x401970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push 0
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg al
pop ebp
ret
Function at 0x402910
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6b39
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5055f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0x509c90
mov dword [0x509ca4], 0xf
mov dword [0x509ca0], 0
mov byte [0x509c90], 0
mov dword [ebp - 4], 0
mov dword [0x509cbc], 0xf
mov dword [0x509cb8], 0
mov byte [0x509ca8], 0
mov dword [0x509cd4], 0xf
mov dword [0x509cd0], 0
mov byte [0x509cc0], 0
mov dword [0x509cec], 0xf
mov dword [0x509ce8], 0
mov byte [0x509cd8], 0
mov byte [ebp - 4], 3
call fcn.00402e00
mov edx, eax
cmp byte [edx], 0
jne 0x4029c2
xor ecx, ecx
jmp 0x4029d0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029c7
sub ecx, esi
push ecx
push edx
mov ecx, 0x509c90
call fcn.00401bc0
mov esi, 0x509ca8
cmp eax, esi
je 0x4029f1
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401a90
push 0x2f
push 1
mov ecx, 0x509c90
call fcn.00404d00
push 0xb
push str._Resources_
mov ecx, esi
call fcn.00405bb0
push 0x4ee6a4
push 0x4ef8bc
push 0x509c90
call fcn.0040d5f0
push 0x4ee6a4
push 0x4ef8bc
push 0x509ca8
call fcn.0040d5f0
add esp, 0x18
cmp dword [0x509cbc], 0x10
mov eax, esi
cmovae eax, dword [0x509ca8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402a9b
cmp dword [0x509cbc], 0x10
mov eax, esi
cmovae eax, dword [0x509ca8]
push eax
mov ecx, 0x509c90
call fcn.00402bd0
test al, al
jne 0x402a84
push 0x20
push str.Cant_create__Resources_directory
mov ecx, 0x5085d0
call fcn.00401bc0
mov eax, dword [0x509be4]
test eax, eax
je 0x402a9b
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x402a9b
push dword [eax]
call ecx
add esp, 4
push 0xffffffffffffffff
push 0
push 0x509c90
mov ecx, 0x509cc0
call fcn.00401a90
cmp dword [0x509cbc], 0x10
cmovae esi, dword [0x509ca8]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esi], 0
jne 0x402acc
xor ecx, ecx
jmp 0x402ada
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ad1
sub ecx, edx
push ecx
push esi
mov ecx, 0x509cc0
call fcn.00401bc0
mov eax, 0x509c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402bd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6db8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5055f8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x5055f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x402dc4
cmp byte [esi], 0
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jne 0x402c3a
xor ecx, ecx
jmp 0x402c49
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c40
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x60]
call fcn.00401bc0
push 0x4ee6a4
lea eax, [esp + 0x5c]
push 0x4ef8bc
push eax
mov dword [esp + 0x8c], 0
call fcn.0040d5f0
add esp, 0xc
lea ecx, [esp + 0x40]
push 0
push 0x4ee614
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.00401bc0
push 0
push 0x2f
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov byte [esp + 0xa4], 1
push 0
lea eax, [esp + 0x80]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401a90
lea eax, [esp + 0x30]
push eax
call fcn.0040d6e0
add esp, 0x24
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
je 0x402d6c
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, esi
jbe 0x402de6
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.004052b0
mov ecx, eax
call fcn.00411930
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x402d20
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
push 0
push dword [eax + ecx*4]
lea ecx, [esp + 0x4c]
call fcn.00405ab0
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x402d63
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
call edi
mov eax, dword [esp + 0x20]
inc esi
cmp eax, esi
ja 0x402cfb
lea ecx, [esp + 0x10]
call fcn.00405450
push dword [esp + 0x10]
call fcn.0049a5c3
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x10], 0
jb 0x402d9c
push dword [esp + 0x40]
call fcn.0049a5c3
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x402dc4
push dword [esp + 0x58]
call fcn.0049a5c3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0049ad54
mov esp, ebp
pop ebp
ret 4
push str.invalid_deque_T__subscript
call fcn.004963d0
int3
Function at 0x402e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5055f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x509cf8
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [0x509cf8], 0
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
jne 0x402e3f
xor ecx, ecx
jmp 0x402e50
mov ecx, 0x509cf8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e47
sub ecx, edx
push ecx
push 0x509cf8
lea ecx, [ebp - 0x1c]
call fcn.00401bc0
cmp dword [0x509cd4], 0x10
jb 0x402e75
push dword [0x509cc0]
call fcn.0049a5c3
add esp, 4
push esi
lea eax, [ebp - 0x1c]
mov esi, 0x509cc0
push eax
mov ecx, esi
mov dword [0x509cd4], 0xf
mov dword [0x509cd0], 0
mov byte [0x509cc0], 0
call fcn.00404ca0
cmp dword [ebp - 8], 0x10
jb 0x402eb2
push dword [ebp - 0x1c]
call fcn.0049a5c3
add esp, 4
push 0x4ee6a4
push 0x4ef8bc
push 0x509cc0
call fcn.0040d5f0
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp dword [0x509cd4], 0x10
cmovae esi, dword [0x509cc0]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049ad54
mov esp, ebp
pop ebp
ret

Function at 0x402f50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402f67
xor eax, eax
pop ebp
ret 4
test al, 0x10
mov eax, 0
setne al
inc eax
pop ebp
ret 4
Function at 0x405700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5055f8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5055f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x405854
cmp byte [ebx + 0x45], 0
je 0x405854
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x405760
xor al, al
jmp 0x405856
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4057a0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4057e1
dec eax
je 0x4057e5
sub eax, 2
je 0x40583b
xor bl, bl
jmp 0x40583d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40581c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0049d54b
add esp, 0x10
cmp esi, eax
jne 0x4057dd
cmp byte [ebx + 0x45], 0
je 0x40583b
test esi, esi
jne 0x4057a0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00404d00
jmp 0x4057a0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x405850
push dword [esp + 0x18]
call fcn.0049a5c3
add esp, 4
mov al, bl
jmp 0x405856
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049ad54
mov esp, ebp
pop ebp
ret
Function at 0x409f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
test ebx, ebx
jne 0x409f74
mov dword [edi], 1
jmp 0x40a04b
push 2
push 0
push 0
push ebx
call fcn.0049bfdb
push ebx
call fcn.004a02a4
push 0
push 0
mov esi, eax
push 0
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edx
call fcn.0049bfdb
mov eax, dword [esp + 0x30]
add esp, 0x24
test eax, eax
jg 0x409fb7
jl 0x409fad
test esi, esi
jae 0x409fb7
mov esi, 2
jmp 0x40a040
xor ecx, ecx
cmp esi, esi
jne 0x40a03b
cmp ecx, eax
jne 0x40a03b
mov eax, 1
test esi, esi
cmovne eax, esi
push eax
call dword [0x506f54]
add esp, 4
mov dword [esp + 0xc], eax
push ebx
test eax, eax
jne 0x409feb
call fcn.0049b934
mov dword [edi], 3
jmp 0x40a048
push esi
push 1
push eax
call fcn.0049bb6e
push ebx
mov esi, eax
call fcn.0049b934
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp esi, eax
je 0x40a019
push dword [esp + 0xc]
call dword [0x506f50]
mov dword [edi], 2
jmp 0x40a048
mov ecx, dword [esp + 0x14]
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x20]
push edi
call fcn.0040ac20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 3
push ebx
call fcn.0049b934
mov dword [edi], esi
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4168c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c77bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5055f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.00418880
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.00418880
lea ecx, [esi + 0x48]
mov dword [esi + 0x38], eax
call fcn.00420400
lea ecx, [esi + 0x88]
call fcn.00420400
lea ecx, [esi + 0xc8]
call fcn.00420400
mov dword [0x509b9c], esi
push 0x38
lea eax, [esi + 0x268]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x2c], 0xff444444
push 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], 0x1000
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x2a8], 0
mov dword [esi + 0x2b8], 0
mov dword [esi + 0x2b4], 0
mov dword [esi + 0x2b0], 0
mov dword [esi + 0x2ac], 0
mov dword [esi + 0x28], 0
call fcn.0049c920
add esp, 0xc
mov dword [esi + 0x2a4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41dfd0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov dword [ecx + 0x10c], esi
cmp esi, 0x14
je 0x41dffb
mov al, byte [esi + ecx]
cmp al, 0x78
jle 0x41dff0
mov eax, 2
jmp 0x41dff8
inc al
mov byte [esi + ecx], al
movsx eax, al
mov byte [esi + ecx], al
lea eax, [esi - 8]
cmp eax, 0x26
ja case.0x41e00a.9
movzx eax, byte [eax + 0x41e058]
jmp dword [eax*4 + 0x41e050]
push 1
push 6
lea eax, [ecx + 0x100]
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
mov eax, dword [0x509be0]
test eax, eax
je 0x41e04a
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41e04a
test esi, esi
jne 0x41e044
mov esi, dword [eax]
push esi
call ecx
add esp, 4
pop esi
pop ebp
ret 4

Function at 0x41e011
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov dword [ecx + 0x10c], esi
cmp esi, 0x14
je 0x41dffb
mov al, byte [esi + ecx]
cmp al, 0x78
jle 0x41dff0
mov eax, 2
jmp 0x41dff8
inc al
mov byte [esi + ecx], al
movsx eax, al
mov byte [esi + ecx], al
lea eax, [esi - 8]
cmp eax, 0x26
ja case.0x41e00a.9
movzx eax, byte [eax + 0x41e058]
jmp dword [eax*4 + 0x41e050]
push 1
push 6
lea eax, [ecx + 0x100]
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
mov eax, dword [0x509be0]
test eax, eax
je 0x41e04a
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41e04a
test esi, esi
jne 0x41e044
mov esi, dword [eax]
push esi
call ecx
add esp, 4
pop esi
pop ebp
ret 4
Function at 0x41e590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x10
call fcn.0049a574
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0041e6c0
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push 0
push esi
push 0x41e640
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push 0
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41e610
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
push 0xffffffffffffff8f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
cmp edi, 1
jne 0x41e62d
mov ecx, esi
call fcn.0041e660
xor eax, eax
cmp edi, 1
pop edi
sete al
pop esi
ret

Function at 0x41e850
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7ce6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5055f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0
mov byte [edi + 0x1c], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push 0xc
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
push str.PlayJIN_Game
mov word [edi], 0
mov byte [edi + 2], 0
call fcn.00401bc0
push 7
push str.PlayJIN
lea ecx, [edi + 0x1c]
call fcn.00401bc0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0x400
mov dword [edi + 0x40], 0x300
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0x3c
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41ec10
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx]
mov eax, esi
xor eax, dword [ebp + 8]
mov ecx, dword [ebx + 8]
and eax, 0xff
shr esi, 8
mov eax, dword [edx + eax*4]
xor eax, esi
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
pop esi
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], ecx
pop ebx
pop ebp
ret
Function at 0x41ec60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [edi]
mov dword [ebp - 4], esi
test cl, cl
je 0x41ecdf
push ebx
mov ebx, dword [esi + 4]
mov eax, 0x34567890
mov edx, dword [esi]
mov esi, dword [ebp + 8]
movsx ecx, cl
xor ecx, edx
and ecx, 0xff
shr edx, 8
mov ecx, dword [esi + ecx*4]
mov esi, dword [ebp - 4]
xor ecx, edx
mov dword [esi], ecx
mov edx, dword [ebp + 8]
movzx ecx, cl
add ebx, ecx
imul ebx, ebx, 0x8088405
inc ebx
mov ecx, ebx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
mov dword [esi + 4], ebx
xor eax, dword [edx + ecx*4]
lea edi, [edi + 1]
mov dword [esi + 8], eax
mov cl, byte [edi]
test cl, cl
jne 0x41ec90
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret