joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5df8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x504608]
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.0040b300
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], 0x4ed300
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.004999a3
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.004999a3
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.0049a134
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 0x402140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f1a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x504608]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00495861
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4021e6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0049b5b5
push 0x4fcbb0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0049a143
push edi
push esi
call fcn.00495e31
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret 4
Function at 0x402910
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5ea9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0x508ca0
mov dword [0x508cb4], 0xf
mov dword [0x508cb0], 0
mov byte [0x508ca0], 0
mov dword [ebp - 4], 0
mov dword [0x508ccc], 0xf
mov dword [0x508cc8], 0
mov byte [0x508cb8], 0
mov dword [0x508ce4], 0xf
mov dword [0x508ce0], 0
mov byte [0x508cd0], 0
mov dword [0x508cfc], 0xf
mov dword [0x508cf8], 0
mov byte [0x508ce8], 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, 0x508ca0
call fcn.00401bc0
mov esi, 0x508cb8
cmp eax, esi
je 0x4029f1
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401a90
push 0x2f
push 1
mov ecx, 0x508ca0
call fcn.00404e10
push 0xb
push str._Resources_
mov ecx, esi
call fcn.00405cd0
push 0x4ed3e4
push 0x4ee5fc
push 0x508ca0
call fcn.0040d8f0
push 0x4ed3e4
push 0x4ee5fc
push 0x508cb8
call fcn.0040d8f0
add esp, 0x18
cmp dword [0x508ccc], 0x10
mov eax, esi
cmovae eax, dword [0x508cb8]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402a9b
cmp dword [0x508ccc], 0x10
mov eax, esi
cmovae eax, dword [0x508cb8]
push eax
mov ecx, 0x508ca0
call fcn.00402bd0
test al, al
jne 0x402a84
push 0x20
push str.Cant_create__Resources_directory
mov ecx, 0x5075f0
call fcn.00401bc0
mov eax, dword [0x508bf4]
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 0x508ca0
mov ecx, 0x508cd0
call fcn.00401a90
cmp dword [0x508ccc], 0x10
cmovae esi, dword [0x508cb8]
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, 0x508cd0
call fcn.00401bc0
mov eax, 0x508ca0
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
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6128
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x504608]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x504608]
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 0x402dcc
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 0x4ed3e4
lea eax, [esp + 0x5c]
push 0x4ee5fc
push eax
mov dword [esp + 0x8c], 0
call fcn.0040d8f0
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0
push 0x4ed354
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00401bc0
push 0
push 0x2f
sub esp, 0x18
mov ecx, esp
mov byte [esp + 0xa0], 1
push 0xffffffffffffffff
mov dword [esp + 0x6c], 0
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 + 0x64]
push eax
call fcn.0040d9e0
add esp, 0x24
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
je 0x402d74
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryA]
cmp eax, esi
jbe 0x402dee
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
call fcn.004053c0
mov ecx, eax
call fcn.00411c20
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x402d28
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 + 0x38]
call fcn.00405bd0
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x402d6b
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push 0
push eax
call edi
mov eax, dword [esp + 0x54]
inc esi
cmp eax, esi
ja 0x402d03
lea ecx, [esp + 0x44]
call fcn.00405570
push dword [esp + 0x44]
call fcn.004999a3
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 0
jb 0x402da4
push dword [esp + 0x2c]
call fcn.004999a3
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x402dcc
push dword [esp + 0x58]
call fcn.004999a3
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.0049a134
mov esp, ebp
pop ebp
ret 4
push str.invalid_deque_T__subscript
call fcn.004957b0
int3
Function at 0x402e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x508d08
push 0x400
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
cmp byte [0x508d08], 0
mov dword [ebp - 4], 0xf
mov dword [ebp - 8], 0
mov byte [ebp - 0x18], 0
jne 0x402e35
xor ecx, ecx
jmp 0x402e49
mov ecx, 0x508d08
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e40
sub ecx, edx
push ecx
push 0x508d08
lea ecx, [ebp - 0x18]
call fcn.00401bc0
cmp dword [0x508ce4], 0x10
jb 0x402e6e
push dword [0x508cd0]
call fcn.004999a3
add esp, 4
push esi
lea eax, [ebp - 0x18]
mov esi, 0x508cd0
push eax
mov ecx, esi
mov dword [0x508ce4], 0xf
mov dword [0x508ce0], 0
mov byte [0x508cd0], 0
call fcn.00404db0
cmp dword [ebp - 4], 0x10
jb 0x402eab
push dword [ebp - 0x18]
call fcn.004999a3
add esp, 4
push 0x4ed3e4
push 0x4ee5fc
push 0x508cd0
call fcn.0040d8f0
add esp, 0xc
cmp dword [0x508ce4], 0x10
cmovae esi, dword [0x508cd0]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402f60
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 0x402f77
xor eax, eax
pop ebp
ret 4
test al, 0x10
mov eax, 0
setne al
inc eax
pop ebp
ret 4
Function at 0x405820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x504608]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x504608]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x405974
cmp byte [ebx + 0x45], 0
je 0x405974
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x405880
xor al, al
jmp 0x405976
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 0x4058c0
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 0x405901
dec eax
je 0x405905
sub eax, 2
je 0x40595b
xor bl, bl
jmp 0x40595d
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 0x40593c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0049c86b
add esp, 0x10
cmp esi, eax
jne 0x4058fd
cmp byte [ebx + 0x45], 0
je 0x40595b
test esi, esi
jne 0x4058c0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00404e10
jmp 0x4058c0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x405970
push dword [esp + 0x18]
call fcn.004999a3
add esp, 4
mov al, bl
jmp 0x405976
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.0049a134
mov esp, ebp
pop ebp
ret
Function at 0x40a160
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 0x40a184
mov dword [edi], 1
jmp 0x40a25b
push 2
push 0
push 0
push ebx
call fcn.0049b3de
push ebx
call fcn.0049f5c1
push 0
push 0
mov esi, eax
push 0
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edx
call fcn.0049b3de
mov eax, dword [esp + 0x30]
add esp, 0x24
test eax, eax
jg 0x40a1c7
jl 0x40a1bd
test esi, esi
jae 0x40a1c7
mov esi, 2
jmp 0x40a250
xor ecx, ecx
cmp esi, esi
jne 0x40a24b
cmp ecx, eax
jne 0x40a24b
mov eax, 1
test esi, esi
cmovne eax, esi
push eax
call dword [0x505f74]
add esp, 4
mov dword [esp + 0xc], eax
push ebx
test eax, eax
jne 0x40a1fb
call fcn.0049ad14
mov dword [edi], 3
jmp 0x40a258
push esi
push 1
push eax
call fcn.0049af4e
push ebx
mov esi, eax
call fcn.0049ad14
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp esi, eax
je 0x40a229
push dword [esp + 0xc]
call dword [0x505f70]
mov dword [edi], 2
jmp 0x40a258
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.0040ae20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 3
push ebx
call fcn.0049ad14
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 0x416c90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6b4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504608]
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.00418c60
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.00418c60
lea ecx, [esi + 0x48]
mov dword [esi + 0x38], eax
call fcn.00420b40
lea ecx, [esi + 0x88]
call fcn.00420b40
lea ecx, [esi + 0xc8]
call fcn.00420b40
mov dword [0x508bac], 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.0049bc60
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 0x41e640
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 0x41e66b
mov al, byte [esi + ecx]
cmp al, 0x78
jle 0x41e660
mov eax, 2
jmp 0x41e668
inc al
mov byte [esi + ecx], al
movsx eax, al
mov byte [esi + ecx], al
lea eax, [esi - 8]
cmp eax, 0x26
ja case.0x41e67a.9
movzx eax, byte [eax + 0x41e6c8]
jmp dword [eax*4 + 0x41e6c0]
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 [0x508bf0]
test eax, eax
je 0x41e6ba
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41e6ba
test esi, esi
jne 0x41e6b4
mov esi, dword [eax]
push esi
call ecx
add esp, 4
pop esi
pop ebp
ret 4
Function at 0x41ec20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x504608]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
call fcn.00499954
add esp, 4
test eax, eax
je 0x41ec55
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x41ec57
xor eax, eax
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 8]
push eax
call fcn.0041edc0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push esi
push 0
push esi
push 0x41ed20
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 ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049a134
mov esp, ebp
pop ebp
ret

Function at 0x41ecf0
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 0x41ed0d
mov ecx, esi
call fcn.0041ed40
xor eax, eax
cmp edi, 1
pop edi
sete al
pop esi
ret

Function at 0x41ef50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7086
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x504608]
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 0x41f310
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 0x41f360
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 0x41f3df
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 0x41f390
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4204a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x42055e
push 0x4ed3f4
push dword [ebp + 8]
call fcn.0049f164
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x42055e
push 7
mov byte [esi + 0xc], 1
call fcn.00499954
add esp, 4
push dword [esi]
mov edi, eax
push 6
push 1
push edi
call fcn.0049af4e
add esp, 0x10
cmp eax, 6
je 0x4204f3
mov byte [esi + 0xc], 0
cmp byte [esi + 0xc], 0
je 0x420531
mov byte [edi + 6], 0
mov ecx, str.jinlzo
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x420524
test dl, dl
je 0x420520
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x420524
add eax, 2
add ecx, 2
test dl, dl
jne 0x420504
xor eax, eax
jmp 0x420529
sbb eax, eax
or eax, 1
test eax, eax
je 0x420531
mov byte [esi + 0xc], 0
push edi
call fcn.004999a3
add esp, 4
cmp byte [esi + 0xc], 0
je 0x420593
push dword [esi]
lea eax, [esi + 4]
push 4
push 1
push eax
call fcn.0049af4e
add esp, 0x10
cmp eax, 4
je 0x420567
mov ecx, esi
call fcn.004205c0
xor al, al
pop edi
pop esi
pop ecx
pop ebp
ret 4
cmp byte [esi + 0x10], 0
jne 0x4205ab
call fcn.004225e0
test eax, eax
jne 0x420557
push 0x10000
call fcn.00499954
mov dword [esi + 0x14], eax
add esp, 4
mov byte [esi + 0x10], 1
mov al, 1
pop edi
pop esi
pop ecx
pop ebp
ret 4
push 0
push 0
push dword [esi]
call fcn.0049f418
add esp, 0xc
mov ecx, esi
call fcn.004206d0
mov dword [esi + 4], eax
pop edi
mov al, 1
pop esi
pop ecx
pop ebp
ret 4

Function at 0x420600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x420616
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x420628
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0xc], 0
je 0x4206a6
push edi
call fcn.004206d0
sub eax, 0xa
push eax
mov dword [ebp + 8], eax
call fcn.00499954
push dword [esi]
mov edi, eax
push dword [ebp + 8]
push 1
push edi
call fcn.0049af4e
mov ecx, dword [ebp + 8]
add esp, 0x14
cmp eax, ecx
jne 0x420692
cmp byte [esi + 0x10], 0
mov dword [ebp - 4], 0
je 0x420692
test edi, edi
je 0x420692
push ecx
lea eax, [ebp - 4]
push eax
mov edx, ecx
push ebx
mov ecx, edi
call fcn.004226a0
add esp, 0xc
test eax, eax
jne 0x420692
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
pop edi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.004999a3
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
push dword [esi + 4]
push 1
push ebx
call fcn.0049af4e
add esp, 0x10
cmp eax, dword [esi + 4]
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret 4