joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434f90]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064be
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x434f90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x434f90], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401c66
pop dword [ebp - 0x20]
mov eax, 0x8cc79e22
sub eax, 0x8c8781bc
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x50a8822e
sub dword [ebp - 0x30], 0x2563ce3
mov dword [ebp - 0x2c], 0x48ffe10
add dword [ebp - 0x2c], 0x2da34e35
mov dword [ebp - 0x28], 0xa002b274
sub dword [ebp - 0x28], 0x53b66e46
mov dword [ebp - 0x24], 0x11ece1e5
sub dword [ebp - 0x24], 0x11ece1e5
lea eax, [ebp - 0x30]
push eax
mov eax, 0x2e46175d
sub eax, 0x2e05e709
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x1ea1b8c3
add dword [ebp - 0x30], 0x55d0b093
mov dword [ebp - 0x2c], 0xc4542797
add dword [ebp - 0x2c], 0x7d1839de
mov dword [ebp - 0x28], 0xb52eb8cb
sub dword [ebp - 0x28], 0x51bf4c5f
mov dword [ebp - 0x24], 0xa44587c9
sub dword [ebp - 0x24], 0xa44587c9
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xbfd4dd62
sub eax, 0xbf94ad36
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x348da
push 0
call eax
mov ecx, 0x404a
mov ebx, eax
mov esi, 0x407000
add esi, dword [ebp - 0x20]
mov edx, 0x87d4ad23
add edx, 0x4358d4dd
sub dword [ebp - 0xc], 0xb4d8503a
mov edi, dword [esi]
sub dword [ebp - 0x18], esi
sub edi, edx
xor dword [ebp - 0x1c], 0x44052ba7
mov dword [ebx], edi
xor dword [ebp - 0x10], eax
add ebx, 0x39d3157f
sub ebx, 0x39d3157b
add esi, 4
loop 0x401d7c
add eax, 0xf3fb
mov ebx, eax
add eax, 0x4b87a2ec
add eax, 0xb4785d19
mov ecx, 0x524cec20
sub ecx, 0x520cec20
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x431a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x431ab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431aa8
mov eax, 1
add ebx, ebx
jne 0x431acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431ac0
jne 0x431adc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431ac0
xor ecx, ecx
sub eax, 3
jb 0x431af0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x431b62
mov ebp, eax
add ebx, ebx
jne 0x431afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431b08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x431b2c
inc ecx
add ebx, ebx
jne 0x431b18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x431b0d
jne 0x431b29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431b0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x431b4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x431b3d
jmp 0x431aae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x431b4c
add edi, ecx
jmp 0x431aae
pop esi
mov edi, esi
mov ecx, 0x242
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431b6a
cmp byte [edi], 2
jne 0x431b6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x431b6f
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431be7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x319b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x319ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431b9c
mov ecx, edi
jns 0x431bcb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x319f0]
or eax, eax
je 0x431be1
mov dword [ebx], eax
add ebx, 4
jmp 0x431bb9
call dword [esi + 0x319f8]
mov ebp, dword [esi + 0x319f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x431c1b
sub esp, 0xffffff80
jmp 0x402748
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 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