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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x3ddd708
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x3dcd6a8]
or edx, dword [edi*4 + 0x3dcd8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x3dcdaa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x3dcdca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x3dcd7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x3dcd9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x3dcdba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x3dcdda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x3dcd6a8]
or edx, dword [ebx*4 + 0x3dcd8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x3dcdaa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x3dcdca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x3dcd7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x3dcd9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x3dcdba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x3dcdda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10036403
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10044900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10044929
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x3dcd100]
inc esi
xor eax, edx
dec ecx
jne 0x10044914
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x404b52
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x47d084]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00404dc2
mov ebx, eax
cmp ebx, esi
je 0x404bb4
cmp dword [esp + 0x10], esi
je 0x404bb0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404c2a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404bd2
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00404b52
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x404c41
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x404bbc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], esi
je 0x404c0d
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], esi
push dword [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00404ae4
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x404c28
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410ea3
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], esi
je 0x404c51
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x404c2a
Function at 0x407a82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x45a37b
call fcn.00453b7f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x407ada
call fcn.00406875
mov esi, eax
jmp 0x407be4
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407af3
call fcn.00406875
jmp 0x407bd6
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x407ae9
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407b30
mov esi, 0x8007000e
jmp 0x407bd8
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407b45
cmp eax, 0xffffffff
jbe 0x407b4f
push 0x80070216
call fcn.004053ee
cmp eax, 0x400
jbe 0x407b7c
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406852
jmp 0x407b88
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407b26
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x407ae9
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407922
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407bfd
lea eax, [ebp - 0x418]
call fcn.0040683c
mov eax, esi
call fcn.00453bdb
ret 0xc
Function at 0x40b0da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b13e
cmp dword [ebp + 0xc], 1
je 0x40b116
cmp dword [ebp + 0xc], 2
je 0x40b116
push 0xd
pop eax
jmp 0x40b13e
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b138
test eax, eax
je 0x40b133
test al, 1
jne 0x40b111
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b138
jmp 0x40b111
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x410b76
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47f0e0], 0
push esi
push edi
jne 0x410aec
call fcn.00410a58
test eax, eax
je 0x410b31
mov eax, dword [0x47f0e0]
cmp eax, 1
jne 0x410b0d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x410b31
jmp 0x410b73
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x410b73
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x410b35
xor eax, eax
jmp 0x410b73
mov eax, dword [esi]
push dword [0x47f0e0]
call edi
mov edi, eax
test edi, edi
je 0x410b57
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x410b73
lea edi, [esi + 0xff0]
push esi
push dword [0x47f0e0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x410b5d
mov eax, esi
pop edi
pop esi
ret
jmp 0x410ad8

Function at 0x410ea3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47d084]
jne 0x410ead
repz ret
jmp fcn.00414132
Function at 0x41e82b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041729a
and dword [ebp - 0x14], 0
cmp dword [0x47ff24], 0
mov dword [ebp - 0x18], eax
jne 0x41e8de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e986
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45cc9c
push ebx
call edi
test eax, eax
je 0x41e986
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47ff24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47ff28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47ff2c], eax
call edi
push eax
call esi
mov dword [0x47ff34], eax
test eax, eax
je 0x41e8de
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47ff30], eax
mov eax, dword [0x47ff30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e937
cmp dword [0x47ff34], ecx
je 0x41e937
push eax
call esi
push dword [0x47ff34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e937
test ebx, ebx
je 0x41e937
call edi
test eax, eax
je 0x41e92e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e92e
test byte [ebp - 8], 1
jne 0x41e937
or dword [ebp + 0x10], 0x200000
jmp 0x41e96a
mov eax, dword [0x47ff28]
cmp eax, dword [ebp - 0x18]
je 0x41e96a
push eax
call esi
test eax, eax
je 0x41e96a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e96a
mov eax, dword [0x47ff2c]
cmp eax, dword [ebp - 0x18]
je 0x41e96a
push eax
call esi
test eax, eax
je 0x41e96a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47ff24]
call esi
test eax, eax
je 0x41e986
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e988
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410ea3
leave
ret
Function at 0x420da7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 8
push esi
not eax
mov edx, 0xff
jb 0x420ec4
mov esi, dword [ebp + 8]
push ebx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x45dc50]
mov dword [ebp - 8], 0x4a
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 4], 0x3a
mov dword [ebp - 0xc], 0x42
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
imul edi, ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
add ecx, 8
cmp edi, ebx
jge 0x420eb7
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
imul edi, ebx
mov ebx, dword [ebp - 0xc]
imul edi, edi, 0x2b
sub edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
imul edi, edi, 0x5e
sub ebx, edi
mov edi, dword [ebp - 0xc]
sub ebx, edi
mov edi, dword [ebp - 8]
sub ebx, edi
mov dword [ebp - 4], ebx
sub dword [ebp + 8], 8
dec esi
jne 0x420dc7
pop edi
pop ebx
cmp dword [ebp + 8], 0
je 0x420ee1
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x45dc50]
inc ecx
dec dword [ebp + 8]
jne 0x420eca
not eax
pop esi
leave
ret
Function at 0x43f844
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 8

Function at 0x4431c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4431d3
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x3c]
fld qword [0x4778f0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fsub qword [ebp - 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [ebp - 8]
fsubp st(1)
fsub qword [0x4778e8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [ebp - 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fsub qword [ebp - 8]
fsub qword [ebp - 8]
fld qword [ebp - 8]
fdiv qword [0x4778e0]
faddp st(1)
fsub qword [ebp - 8]
cmp dword [eax + ecx], 0x4550
fstp qword [ebp - 8]
jne 0x4431cf
mov eax, dword [eax + ecx + 0x98]
test eax, eax
je 0x4431cf
add eax, ecx
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x402d10
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push 0
push str.data
mov edi, ecx
call esi
push 0
push str.data_aiconfig
call esi
mov eax, dword [0x6e0164]
movzx ecx, word [eax + 0x125]
push ecx
lea edx, [ebp - 0x44]
push str.._data_aiconfig__d.dat
push edx
call fcn.0057a74f
push 0x5a6680
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0057a708
mov eax, dword [ebp - 0x48]
add esp, 0x18
test eax, eax
je 0x402d93
push eax
push 1
push 0x1c64
add edi, 0xea
push edi
call fcn.0057a5bb
mov edx, dword [ebp - 0x48]
push edx
call fcn.0057a3f0
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret

Function at 0x402db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6e0164]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x125]
push edi
push ecx
lea edx, [ebp - 0x44]
push str.._data_aiconfig__d.dat
push edx
call fcn.0057a74f
push 0x1c64
lea edi, [esi + 0xea]
push 0
push edi
call fcn.0057a0c0
push 0x5a66b4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0057a708
mov eax, dword [ebp - 0x48]
add esp, 0x24
test eax, eax
je 0x402e80
push eax
push 1
push 0x1c64
push edi
call fcn.0057aa3b
mov edx, dword [ebp - 0x48]
push edx
call fcn.0057a3f0
add esp, 0x14
call fcn.00401280
mov eax, dword [eax + 0x226]
imul eax, eax, 0x64
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
test eax, eax
jns 0x402e46
fadd dword [0x5a662c]
fstp dword [esi + 0xde]
call fcn.00401280
mov ecx, dword [eax + 0x22a]
imul ecx, ecx, 0x64
mov dword [ebp - 0x4c], ecx
fild dword [ebp - 0x4c]
test ecx, ecx
jns 0x402e6a
fadd dword [0x5a662c]
pop edi
fstp dword [esi + 0xe6]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00402ea0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret

Function at 0x40a970
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
push 0x40a8f0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x6d1cf4], eax
pop ebp
ret 4
Function at 0x40afe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov ecx, 0x6d3a90
call fcn.00424f00
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6d1ce8], esi
call ebx
mov edi, eax
push 7
add edi, edi
call ebx
mov esi, eax
push 4
add esi, esi
call ebx
lea ecx, [esi + eax]
mov esi, dword [0x70a648]
xor edx, edx
mov eax, esi
div dword [0x709bd4]
mov eax, dword [0x709bd8]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x40b03e
cmp dword [edx], esi
je 0x40b085
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x40b033
mov edx, dword [ebp + 8]
push 0
push edx
push 0
push 0
add ecx, 0x300
push ecx
add edi, 0x400
push edi
push 0
push 0x80000000
push 0x2ca0000
push 0x6d1ae8
push 0x6d18e8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6d1cec], esi
test esi, esi
jne 0x40b0a4
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x40b03e
mov eax, dword [ebp + 8]
push 0
push eax
mov eax, dword [edx + 8]
push 0
add eax, ecx
mov ecx, dword [edx + 4]
push 0
push eax
add ecx, edi
push ecx
jmp 0x40b056
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
mov ecx, 0x6d1d20
call fcn.0040c730
cmp dword [0x6e1f08], 0
push 0
mov ecx, 0x6d1d20
push 0
jne 0x40b0f4
push 1
call fcn.0040c590
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 2
call fcn.0040c590
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x40b910
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a970
mov eax, dword [ebp + 0x10]
mov dword [0x6d17a0], 0
mov ecx, str.gvkc9jw0ot0Ut
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b952
test dl, dl
je 0x40b94e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b952
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b932
xor eax, eax
jmp 0x40b957
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b978
push 0
push str.Error__
push 0x5a6abc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040ac10
test eax, eax
je 0x40b96f
push esi
call fcn.0040a970
push str.._Log_Debug.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x5a6aa8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._______________________________________________________
push 0x6ef650
call fcn.0051e560
push str._____________________Client_Start______________________
push 0x6ef650
call fcn.0051e560
push str._______________________________________________________
push 0x6ef650
call fcn.0051e560
add esp, 0x18
call fcn.0040ab50
mov ecx, 0x6f0c28
call fcn.0052ec60
push 0x709aa8
push 0x6d1ae8
call fcn.0057a74f
push 0x709aa8
push 0x6d18e8
call fcn.0057a74f
push esi
call fcn.0040b8b0
add esp, 0x14
mov ecx, 0x6f0c28
call fcn.005293a0
push str.._Resource_QuestScript_QuestString.bin
mov ecx, 0x6ed8c8
call fcn.004eee70
push str.._Resource_QuestScript_QuestScript.bin
mov ecx, 0x6ed8c8
call fcn.004efaa0
push str.._Resource_QuestScript_NewbieGuide.bin
mov ecx, 0x6ed8c8
call fcn.004edad0
push str.._Resource_QuestScript_QuestNpcList.bin
mov ecx, 0x6ed8c8
call fcn.004ef050
mov ecx, 0x6df6f0
call fcn.00433f20
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.0040afe0
add esp, 8
test eax, eax
jne 0x40ba74
call fcn.0040ac20
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x40baa8
lea edx, [ebp - 0x1c]
push edx
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
jmp 0x40ba88
mov ecx, 0x6d1d20
call fcn.0040cb20
cmp eax, 0xffffffff
jne 0x40ba88
call fcn.0040ac20
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10