joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59215b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi], vtable.CSkillObjectTargetList.0
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
push 1
mov dword [ebp - 4], edi
call fcn.00562410
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xb7]
mov word [esi + 0x30], cx
movzx edx, word [eax + 0xad]
mov dword [esi + 0x2c], edi
mov word [esi + 0x32], dx
movzx ecx, word [eax + 0x27]
mov word [esi + 0x34], cx
movzx edx, word [eax + 0x29]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x36], dx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5394b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], vtable.CEngineObject.0
mov edx, 0xffff
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 0x10], esi
mov dword [esi + 0x30], 1
mov word [esi + 0x34], dx
call fcn.005692c0
xor ebx, ebx
push 0xa
lea ecx, [esi + 0x5c]
mov dword [ebp - 4], ebx
call fcn.005692c0
push 0xa
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 1
call fcn.005692c0
fld1
mov ecx, dword [ebp - 0xc]
fstp dword [esi + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x20], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x53ad20
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x4c]
add eax, 0x493e0
cmp edi, eax
jbe 0x53ad4d
mov ecx, esi
call fcn.0053ace0
push 0x5ad208
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], edi
pop edi
pop esi
ret

Function at 0x53afd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5924cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esi], vtable.CMHAudioManager.0
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [0x702fd8], edi
push 0x20
mov dword [ebp - 4], edi
mov dword [esi + 0x48], edi
call fcn.00562410
fld1
mov ecx, dword [ebp - 0xc]
fst dword [esi + 0x28]
xor eax, eax
fst dword [esi + 0x2c]
mov dword [esi + 0x34], edi
fstp dword [esi + 0x30]
mov word [esi + 0x40], ax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x53de00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax], 0x10
je 0x53df7f
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
push 0x94
mov dword [ebp + 8], esi
add esi, 0x364
push 0
push esi
call fcn.0056e7c0
add esp, 0xc
mov ecx, edi
call fcn.0053c140
push 0
mov ecx, edi
call fcn.0053c150
test eax, eax
je 0x53df67
push ebx
jmp 0x53de50
mov edi, dword [eax]
mov ecx, eax
call fcn.0053bdb0
mov ecx, dword [ebp + 8]
mov bl, al
add bl, byte [ecx + 0x536]
mov ecx, 0x703038
mov byte [ebp - 4], bl
mov edx, dword [ebp - 4]
push edx
call fcn.0053d610
test eax, eax
je case.0x53de94.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x53de94.10
movzx ecx, byte [ecx + 0x53dfcc]
jmp dword [ecx*4 + 0x53df88]
movzx edx, word [edi + 0x30]
mov eax, dword [eax]
mov dword [esi + edx*4 - 4], eax
jmp case.0x53de94.10
movzx ecx, word [edi + 0x30]
fld dword [eax + 8]
fstp dword [ebp - 8]
test cx, cx
je case.0x53de94.10
fld dword [eax + 4]
fstp dword [esi + ecx*4 + 0x24]
fld dword [ebp - 8]
fstp dword [esi + ecx*4 + 0x3c]
jmp case.0x53de94.10
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x5c], ecx
jmp case.0x53de94.10
mov edx, dword [eax + 0x10]
mov dword [esi + 0x58], edx
jmp case.0x53de94.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x53de94.10
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x64], ecx
jmp case.0x53de94.10
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x68], edx
jmp case.0x53de94.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x53de94.10
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x70], ecx
jmp case.0x53de94.10
mov edx, dword [eax + 0x20]
mov dword [esi + 0x74], edx
jmp case.0x53de94.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x53de94.10
fld dword [eax + 0x24]
movzx ecx, bl
fstp dword [esi + 0x7c]
mov word [esi + 0x80], cx
jmp case.0x53de94.10
fld dword [eax + 0x28]
fstp dword [esi + 0x84]
jmp case.0x53de94.10
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x88], edx
jmp case.0x53de94.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8c], eax
jmp case.0x53de94.10
mov ecx, dword [eax + 0x34]
mov dword [esi + 0x90], ecx
mov ecx, dword [ebp + 0x10]
push 0
call fcn.0053c150
test eax, eax
jne 0x53de50
pop ebx
mov ecx, dword [0x6c82e4]
call fcn.00445fc0
mov ecx, dword [0x6c82e4]
call fcn.00445d00
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x53fda0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x1f4]
test ecx, ecx
jne 0x53fdb3
xor eax, eax
pop ebp
ret 8
pop ebp
jmp fcn.00543970
Function at 0x541340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
push edi
je 0x5413ed
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x5413ed
push 0
push 1
push 0x703100
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x5413ed
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [0x7030ac], ecx
mov edx, dword [eax + 4]
mov dword [0x7030b0], edx
mov eax, dword [eax + 8]
mov dword [0x7030b4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [0x7030a0], ecx
mov edx, dword [eax + 4]
mov dword [0x7030a4], edx
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x14]
mov dword [0x7030a8], eax
mov ecx, dword [esi + 0x1f4]
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x5412b0
push 0
push 0
mov dword [0x7030fc], ecx
mov dword [0x7030f8], edi
mov dword [0x6c4b84], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5413f5
push eax
push 0x703100
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x54b400
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592b33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], vtable.CEffectManager.0
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push fcn.0054ac30
push 0x54a930
push 2
mov dword [ebp - 4], eax
push 0xc
lea eax, [esi + 0x34]
push eax
call fcn.00570ecc
xor eax, eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
push 0xa
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.005692c0
push 0x20
lea ecx, [esi + 4]
mov byte [ebp - 4], 3
call fcn.00562410
push 0x20
lea ecx, [esi + 0x4c]
call fcn.00562410
push 0x190
call fcn.0056ee41
xor edi, edi
add esp, 4
cmp eax, edi
je 0x54b4b4
mov dword [eax], vtable.CMemoryPoolTempl_class_CDamageNumber_.0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov byte [eax + 0x10], 0
jmp 0x54b4b6
xor eax, eax
push 0x190
mov dword [esi + 0x2c], eax
call fcn.0056ee41
add esp, 4
cmp eax, edi
je 0x54b4dc
mov dword [eax], vtable.CMemoryPoolTempl_class_CEffect_.0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov byte [eax + 0x10], 0
jmp 0x54b4de
xor eax, eax
mov edi, dword [esi + 0x2c]
push 0x80
lea ecx, [edi + 0x10]
push str.CDamageNumber
push ecx
mov dword [esi + 0x28], eax
call fcn.00570b30
lea ebx, [edi + 4]
add esp, 0xc
cmp dword [ebx], 0
mov dword [edi + 0xc], 0x28
jne 0x54b519
push 0x3c
push ebx
call fcn.0054c3c0
mov edx, dword [ebx]
add esp, 8
mov dword [edi + 8], edx
mov edi, dword [esi + 0x28]
push 0x80
lea eax, [edi + 0x10]
push str.CEffect
push eax
call fcn.00570b30
lea ebx, [edi + 4]
add esp, 0xc
cmp dword [ebx], 0
mov dword [edi + 0xc], 0x32
jne 0x54b551
push 0x64
push ebx
call fcn.0054c4d0
mov ecx, dword [ebx]
add esp, 8
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x30], 0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x555170
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x555190
push 0
push 0x72
push 0x5af0e8
call fcn.0051c9f0
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x5551a8
cmp esi, 0x11
je 0x5551a8
mov eax, dword [edi + esi*4 + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [edi + 0x50], esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x55c920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59323e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
push 0x40
mov byte [ebp - 4], 2
call fcn.00562410
push 0x40
lea ecx, [esi + 0x24]
call fcn.00562410
push 0x40
lea ecx, [esi + 0x48]
call fcn.00562410
mov ecx, esi
call fcn.0055c490
mov ecx, esi
call fcn.0055c310
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x566f30
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
xor ecx, ecx
mov eax, 1
push edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
lea esi, [eax + eax]
and edx, 0x1b
mov dword [ebp + ecx*4 - 0x804], eax
mov dword [ebp + eax*4 - 0x404], ecx
xor edx, esi
xor eax, edx
inc ecx
and eax, 0xff
cmp ecx, 0x100
jl 0x566f43
mov eax, 1
mov ecx, 0x704910
nop
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
add eax, eax
and edx, 0x1b
xor eax, edx
add ecx, 4
and eax, 0xff
cmp ecx, 0x704938
jl 0x566f80
mov byte [0x704010], 0x63
mov byte [0x70619b], 0
mov ebx, 1
jmp 0x566fc0
mov ecx, dword [ebp + ebx*4 - 0x404]
add ecx, ecx
add ecx, ecx
lea edx, [ebp - 0x408]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x704010], al
mov byte [eax + 0x706138], bl
inc ebx
cmp ebx, 0x100
jl 0x566fc0
xor ecx, ecx
movzx esi, byte [ecx + 0x704010]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x705d38], eax
rol eax, 8
mov dword [ecx*4 + 0x705938], eax
rol eax, 8
mov dword [ecx*4 + 0x705538], eax
rol eax, 8
mov dword [ecx*4 + 0x705138], eax
movzx eax, byte [ecx + 0x706138]
test eax, eax
je 0x5670fc
mov esi, dword [ebp + eax*4 - 0x404]
mov edx, dword [ebp - 0x3cc]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [ebp + edx*4 - 0x804]
mov edx, dword [ebp - 0x3e0]
mov dword [ebp - 4], eax
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [ebp - 0x3d0]
add eax, esi
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv edi
mov edi, dword [ebp + edx*4 - 0x804]
mov edx, dword [ebp - 0x3d8]
lea eax, [esi + edx]
cdq
mov esi, 0xff
idiv esi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + edx*4 - 0x804]
jmp 0x567104
xor eax, eax
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, eax
mov dword [ecx*4 + 0x704d38], edx
rol edx, 8
mov dword [ecx*4 + 0x704938], edx
rol edx, 8
mov dword [ecx*4 + 0x704510], edx
rol edx, 8
mov dword [ecx*4 + 0x704110], edx
inc ecx
cmp ecx, 0x100
jl 0x567034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5676b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x118
mov eax, ecx
sub eax, 0x80
push edi
je 0x5676ea
sub eax, 0x40
je 0x5676df
sub eax, 0x40
jne 0x5678a8
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x5676f3
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x5676f3
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
mov eax, dword [ebp + 0xc]
push esi
push ecx
push eax
lea ecx, [ebp - 0x118]
lea esi, [edi + 8]
push ecx
mov dword [edi + 4], esi
call fcn.00567150
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [edi]
dec ecx
add esi, 0x10
sub eax, 0x10
test ecx, ecx
jle 0x567891
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x704010]
mov edx, dword [edx*4 + 0x704110]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704510]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704938]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704d38]
dec ecx
mov dword [esi], edx
mov edx, dword [eax + 4]
movzx edi, byte [eax + 7]
movzx edi, byte [edi + 0x704010]
and edx, 0xff
movzx edx, byte [edx + 0x704010]
mov edx, dword [edx*4 + 0x704d38]
xor edx, dword [edi*4 + 0x704110]
movzx edi, byte [eax + 6]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704510]
movzx edi, byte [eax + 5]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704938]
add esi, 0x10
mov dword [esi - 0xc], edx
mov edx, dword [eax + 8]
movzx edi, byte [eax + 0xb]
movzx edi, byte [edi + 0x704010]
and edx, 0xff
movzx edx, byte [edx + 0x704010]
mov edx, dword [edx*4 + 0x704d38]
xor edx, dword [edi*4 + 0x704110]
movzx edi, byte [eax + 0xa]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704510]
movzx edi, byte [eax + 9]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704938]
sub eax, 0x10
mov dword [esi - 8], edx
mov edx, dword [eax + 0x1c]
movzx edi, byte [eax + 0x1f]
movzx edi, byte [edi + 0x704010]
and edx, 0xff
movzx edx, byte [edx + 0x704010]
mov edx, dword [edx*4 + 0x704d38]
xor edx, dword [edi*4 + 0x704110]
movzx edi, byte [eax + 0x1e]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704510]
movzx edi, byte [eax + 0x1d]
movzx edi, byte [edi + 0x704010]
xor edx, dword [edi*4 + 0x704938]
mov dword [esi - 4], edx
test ecx, ecx
jg 0x567744
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x568610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x720
push esi
mov esi, ecx
test eax, eax
jne 0x56862c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 0
je 0x568623
push ebx
push edi
push eax
push 1
lea eax, [ebp - 4]
push 1
push eax
call fcn.0056f629
push 0x200
xor ebx, ebx
lea ecx, [ebp - 0x720]
push ebx
push ecx
add esi, 0x10
call fcn.0056e7c0
lea edx, [ebp - 8]
push edx
push str._02X
push esi
call fcn.00570b02
add esp, 0x28
test eax, eax
jle 0x56869c
nop
cmp ebx, 0x200
jge 0x56869c
mov al, byte [ebp - 8]
lea ecx, [ebp - 8]
push ecx
add esi, 2
push str._02X
mov byte [ebp + ebx - 0x720], al
push esi
inc ebx
call fcn.00570b02
add esp, 0xc
test eax, eax
jg 0x568670
push 0x100
lea edx, [ebp - 0x720]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.005676b0
mov cl, byte [ebp + 0x14]
xor edi, edi
add esp, 0xc
mov byte [ebp + 0x17], cl
cmp dword [ebp + 0x10], edi
jle 0x568773
mov edx, dword [ebp + 8]
push edx
push 0x10
lea eax, [ebp - 0x520]
push 1
push eax
call fcn.0056f629
add esp, 0x10
cmp eax, 0x10
jne 0x5687a2
lea ecx, [ebp - 0x520]
push ecx
mov edx, ecx
push edx
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.005678b0
mov ecx, dword [ebp + 0xc]
xor eax, eax
add esp, 0x10
xor dl, dl
mov byte [ebp - 1], al
mov byte [ebp - 2], al
lea esi, [ecx + edi + 1]
jmp 0x568720
mov cl, byte [ebp + eax - 0x520]
add byte [ebp + 0x17], cl
mov byte [esi + eax - 1], cl
mov cl, byte [ebp + eax - 0x51f]
add byte [ebp - 2], cl
mov byte [esi + eax], cl
mov cl, byte [ebp + eax - 0x51e]
add byte [ebp - 1], cl
mov byte [esi + eax + 1], cl
mov cl, byte [ebp + eax - 0x51d]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x568720
add dl, byte [ebp - 1]
add edi, 0x10
add dl, byte [ebp - 2]
add byte [ebp + 0x17], dl
cmp edi, dword [ebp + 0x10]
jl 0x5686c8
mov edx, dword [ebp + 8]
push edx
push 1
lea eax, [ebp - 3]
push 1
push eax
call fcn.0056f629
mov al, byte [ebp - 4]
add esp, 0x10
cmp al, byte [ebp - 3]
jne 0x5687c1
cmp al, byte [ebp + 0x17]
jne 0x5687c1
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x5b13e0
push 0x5b13e8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x573992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6c6570]
jne 0x57399c
repz ret
jmp fcn.0058006c
Function at 0x57babd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c6570]
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.00578751
and dword [ebp - 0x14], 0
cmp dword [0x70644c], 0
mov dword [ebp - 0x18], eax
jne 0x57bb70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x57bc18
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x57bc18
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b265c
push ebx
mov dword [0x70644c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x706450], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x706454], eax
call edi
push eax
call esi
mov dword [0x70645c], eax
test eax, eax
je 0x57bb70
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x706458], eax
mov eax, dword [0x706458]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x57bbc9
cmp dword [0x70645c], ecx
je 0x57bbc9
push eax
call esi
push dword [0x70645c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x57bbc9
test ebx, ebx
je 0x57bbc9
call edi
test eax, eax
je 0x57bbc0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x57bbc0
test byte [ebp - 8], 1
jne 0x57bbc9
or dword [ebp + 0x10], 0x200000
jmp 0x57bbfc
mov eax, dword [0x706450]
cmp eax, dword [ebp - 0x18]
je 0x57bbfc
push eax
call esi
test eax, eax
je 0x57bbfc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x57bbfc
mov eax, dword [0x706454]
cmp eax, dword [ebp - 0x18]
je 0x57bbfc
push eax
call esi
test eax, eax
je 0x57bbfc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x70644c]
call esi
test eax, eax
je 0x57bc18
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x57bc1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00573992
leave
ret
Function at 0x402600
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x4986d0
mov ecx, dword [0x1164720]
mov edx, dword [0x116472c]
mov eax, ecx
and edx, 0x13c9e684
and eax, 1
or eax, edx
shr edx, 0x10
xor edx, eax
mov eax, edx
sar eax, 8
xor eax, edx
mov edx, eax
sar edx, 4
xor eax, edx
mov edx, eax
sar edx, 2
xor eax, edx
mov edx, eax
sar edx, 1
xor eax, edx
test al, 1
jne 0x4977e6
xor ecx, 1
mov dword [0x1164720], ecx
ret
mov ecx, dword [esp + 4]
mov edx, 1
mov dword [0x1164720], ecx
nop
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
lea ecx, [eax + edx]
mov dword [edx*4 + 0x1164720], ecx
add edx, 1
cmp edx, 0x270
jne 0x4986e0
mov dword [0x1164700], 0x270
jmp 0x4977a0

Function at 0x402980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_getsockname]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4029c4
movzx eax, word [esp + 0x22]
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_ntohs]
sub esp, 4
movzx eax, ax
add esp, 0x3c
ret

Function at 0x4029d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
lea eax, [esp + 0x34]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x1002
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_setsockopt]
sub esp, 0x14
add esp, 0x2c
ret

Function at 0x402a10
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
lea eax, [esp + 0x34]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WSOCK32.DLL_setsockopt]
sub esp, 0x14
add esp, 0x2c
ret

Function at 0x402b60
Capabilities:
Get socket status

Disassembly:
push esi
push ebx
sub esp, 0x134
mov eax, dword [0x50001c]
mov ebx, dword [esp + 0x140]
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], eax
mov eax, dword [0x54b334]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.WSOCK32.DLL_select]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x402be0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WSOCK32.DLL___WSAFDIsSet
sub esp, 8
test eax, eax
setne al
add esp, 0x134
movzx eax, al
pop ebx
pop esi
ret
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
setne al
add esp, 0x134
movzx eax, al
pop ebx
pop esi
neg eax
ret