joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532940
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 0x53296d
mov ecx, esi
call fcn.00532900
push 0x594c18
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], edi
pop edi
pop esi
ret

Function at 0x5375e0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [ecx + 0x1f4]
test ecx, ecx
jne 0x5375ef
xor eax, eax
ret 8
jmp 0x53b2a0
mov edx, dword [esp + 4]
fld dword [edx]
sub esp, 8
fld qword [0x588dc8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x53b3a4
fldz
fcom dword [edx]
fnstsw ax
test ah, 0x41
je 0x53b3a2
fld dword [edx + 8]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 1
je 0x53b3a4
fcomp dword [edx + 8]
fnstsw ax
test ah, 0x41
je 0x53b3a6
push esi
fnstcw word [esp + 0x10]
mov esi, dword [esp + 0x14]
fld dword [esi + 8]
fld qword [0x5879f8]
movzx eax, word [esp + 0x10]
fdiv st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fxch st(1)
fistp qword [esp + 4]
mov eax, dword [esp + 4]
push eax
fldcw word [esp + 0x14]
fld dword [esi]
fdiv st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 8]
mov eax, dword [esp + 8]
push eax
fldcw word [esp + 0x18]
fld dword [edx + 8]
fdiv st(1)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0xc]
mov eax, dword [esp + 0xc]
push eax
fldcw word [esp + 0x1c]
fdivr dword [edx]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
push edx
fldcw word [esp + 0x20]
call fcn.0053acc0
pop esi
add esp, 8
ret 8
fstp st(0)
fstp st(0)
push str._____________________________.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret 8

Function at 0x538ae0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
push edi
je 0x538b8f
mov edi, dword [esp + 0x14]
test edi, edi
je 0x538b8f
push 0
push 1
push 0x6dd100
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x538b8f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [0x6dd0ec], ecx
mov edx, dword [eax + 4]
mov dword [0x6dd0f0], edx
mov eax, dword [eax + 8]
mov dword [0x6dd0f4], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [0x6dd0e0], ecx
mov edx, dword [eax + 4]
mov dword [0x6dd0e4], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov dword [0x6dd0e8], eax
mov ecx, dword [esi + 0x1f4]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x538a50
push 0
push 0
mov dword [0x6dd0fc], ecx
mov dword [0x6dd0f8], edi
mov dword [0x69eb84], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x538b96
push eax
push 0x6dd100
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x53cce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xa0]
mov ecx, edi
call fcn.0040a100
mov ebp, 1
cmp dword [ebx + 0x88], ebp
jbe 0x53ce63
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x5832d8]
fstp qword [esp + 0x14]
jmp 0x53cd20
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x53cd37
mov ecx, dword [ecx]
test ecx, ecx
je 0x53cd37
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x53cd4a
mov eax, dword [eax]
test eax, eax
je 0x53cd4a
mov eax, dword [eax]
test eax, eax
jne 0x53cd4e
xor edx, edx
jmp 0x53cd50
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x53cd61
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x53cd83
fadd dword [0x582610]
fmul dword [esp + 0x3c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
xor edx, edx
fadd qword [esp + 0x14]
fstp dword [esp + 0x1c]
test eax, eax
je 0x53cda6
mov eax, dword [eax]
test eax, eax
je 0x53cda6
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x53cdb8
mov edx, dword [edx]
test edx, edx
je 0x53cdb8
mov edx, dword [edx]
test edx, edx
jne 0x53cdbc
xor edx, edx
jmp 0x53cdbe
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x53cdcf
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x53cdf1
fadd dword [0x582610]
fmul dword [esp + 0x3c]
mov ecx, dword [edi + 0x10]
inc ecx
fadd qword [esp + 0x14]
fstp dword [esp + 0x24]
cmp dword [edi + 8], ecx
ja 0x53ce0f
push 1
mov ecx, edi
call fcn.00409fb0
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x53ce1e
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x53ce3b
push 0xc
call fcn.00564ed0
add esp, 4
test eax, eax
je 0x53ce7b
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.0040a270
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x53cd20
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0053ea10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
call fcn.005659f7
push 0x5ab350
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.00565923
int3
Function at 0x53ceb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xb8]
mov ecx, edi
call fcn.0040a100
xor ebp, ebp
cmp dword [ebx + 0x88], ebp
jbe 0x53d033
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x5832d8]
fstp qword [esp + 0x14]
jmp 0x53cef0
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x53cf07
mov ecx, dword [ecx]
test ecx, ecx
je 0x53cf07
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x53cf1a
mov eax, dword [eax]
test eax, eax
je 0x53cf1a
mov eax, dword [eax]
test eax, eax
jne 0x53cf1e
xor edx, edx
jmp 0x53cf20
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x53cf31
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x53cf53
fadd dword [0x582610]
fmul dword [esp + 0x3c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
xor edx, edx
fadd qword [esp + 0x14]
fstp dword [esp + 0x1c]
test eax, eax
je 0x53cf76
mov eax, dword [eax]
test eax, eax
je 0x53cf76
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x53cf88
mov edx, dword [edx]
test edx, edx
je 0x53cf88
mov edx, dword [edx]
test edx, edx
jne 0x53cf8c
xor edx, edx
jmp 0x53cf8e
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x53cf9f
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x53cfc1
fadd dword [0x582610]
fmul dword [esp + 0x3c]
mov ecx, dword [edi + 0x10]
inc ecx
fadd qword [esp + 0x14]
fstp dword [esp + 0x24]
cmp dword [edi + 8], ecx
ja 0x53cfdf
push 1
mov ecx, edi
call fcn.00409fb0
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x53cfee
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x53d00b
push 0xc
call fcn.00564ed0
add esp, 4
test eax, eax
je 0x53d04b
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.0040a270
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x53cef0
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0053ea10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
call fcn.005659f7
push 0x5ab350
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.00565923
int3
Function at 0x54c9a0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x54c9be
push 0
push 0x72
push str.DirectoryManager.cpp
call fcn.005151e0
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x54c9d6
cmp esi, 0x11
je 0x54c9d6
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
ret 4
Function at 0x55db60
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x804
mov eax, dword [0x6a0060]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
lea ecx, [ecx]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
lea esi, [eax + eax]
and edx, 0x1b
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
xor edx, esi
xor eax, edx
inc ecx
and eax, 0xff
cmp ecx, 0x100
jl 0x55db80
mov eax, 1
mov ecx, 0x6de010
lea esp, [esp]
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, 0x6de038
jl 0x55dbc0
mov byte [0x6e0138], 0x63
mov byte [0x6df09b], 0
mov ebx, 1
mov ecx, dword [esp + ebx*4 + 0x10]
add ecx, ecx
add ecx, ecx
lea edx, [esp + 0x80c]
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 + 0x6e0138], al
mov byte [eax + 0x6df038], bl
inc ebx
cmp ebx, 0x100
jl 0x55dbf8
xor ecx, ecx
lea ebx, [ebx]
movzx esi, byte [ecx + 0x6e0138]
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 + 0x6dfd38], eax
rol eax, 8
mov dword [ecx*4 + 0x6df938], eax
rol eax, 8
mov dword [ecx*4 + 0x6df538], eax
rol eax, 8
mov dword [ecx*4 + 0x6df138], eax
movzx eax, byte [ecx + 0x6df038]
test eax, eax
je 0x55dd26
mov esi, dword [esp + eax*4 + 0x10]
mov edx, dword [esp + 0x48]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, 0xff
mov edi, dword [esp + edx*4 + 0x410]
cdq
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x55dd2e
xor ebp, ebp
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, ebp
mov dword [ecx*4 + 0x6dec38], edx
rol edx, 8
mov dword [ecx*4 + 0x6de838], edx
rol edx, 8
mov dword [ecx*4 + 0x6de438], edx
rol edx, 8
mov dword [ecx*4 + 0x6de038], edx
inc ecx
cmp ecx, 0x100
jl 0x55dc70
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00564fc9
add esp, 0x804
ret
Function at 0x55dd90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x11c
mov eax, dword [0x6a0060]
xor eax, esp
mov dword [esp + 0x118], eax
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
mov eax, edx
sub eax, 0x80
push edi
mov edi, dword [esp + 0x124]
je 0x55dde1
sub eax, 0x40
je 0x55ddd9
sub eax, 0x40
jne 0x55df94
mov dword [edi], 0xe
jmp 0x55dde7
mov dword [edi], 0xc
jmp 0x55dde7
mov dword [edi], 0xa
push esi
push edx
push ecx
lea eax, [esp + 0x10]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0055d600
mov eax, dword [esp + 0x14]
shl eax, 4
add eax, dword [esp + 0x18]
add esp, 0xc
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
mov ecx, dword [edi]
dec ecx
add esi, 0x10
sub eax, 0x10
test ecx, ecx
jle 0x55df7d
nop
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x6e0138]
mov edx, dword [edx*4 + 0x6de038]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de438]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de838]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6dec38]
dec ecx
mov dword [esi], edx
mov edx, dword [eax + 4]
movzx edi, byte [eax + 7]
movzx edi, byte [edi + 0x6e0138]
and edx, 0xff
movzx edx, byte [edx + 0x6e0138]
mov edx, dword [edx*4 + 0x6dec38]
xor edx, dword [edi*4 + 0x6de038]
movzx edi, byte [eax + 6]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de438]
movzx edi, byte [eax + 5]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de838]
add esi, 0x10
mov dword [esi - 0xc], edx
mov edx, dword [eax + 8]
movzx edi, byte [eax + 0xb]
movzx edi, byte [edi + 0x6e0138]
and edx, 0xff
movzx edx, byte [edx + 0x6e0138]
mov edx, dword [edx*4 + 0x6dec38]
xor edx, dword [edi*4 + 0x6de038]
movzx edi, byte [eax + 0xa]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de438]
movzx edi, byte [eax + 9]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de838]
sub eax, 0x10
mov dword [esi - 8], edx
mov edx, dword [eax + 0x1c]
movzx edi, byte [eax + 0x1f]
movzx edi, byte [edi + 0x6e0138]
and edx, 0xff
movzx edx, byte [edx + 0x6e0138]
mov edx, dword [edx*4 + 0x6dec38]
xor edx, dword [edi*4 + 0x6de038]
movzx edi, byte [eax + 0x1e]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de438]
movzx edi, byte [eax + 0x1d]
movzx edi, byte [edi + 0x6e0138]
xor edx, dword [edi*4 + 0x6de838]
mov dword [esi - 4], edx
test ecx, ecx
jg 0x55de30
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
mov ecx, dword [esp + 0x11c]
pop edi
xor ecx, esp
call fcn.00564fc9
add esp, 0x11c
ret
Function at 0x55ed20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x730
mov eax, dword [0x6a0060]
xor eax, esp
mov dword [esp + 0x72c], eax
mov eax, dword [esp + 0x738]
push ebx
mov ebx, dword [esp + 0x738]
push esi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x55ed59
xor eax, eax
jmp 0x55eeee
test eax, eax
je 0x55ed52
push edi
push ebx
push 1
lea eax, [esp + 0x1a]
push 1
push eax
call fcn.005657ca
push 0x200
xor edi, edi
lea ecx, [esp + 0x54c]
push edi
push ecx
add esi, 0x10
call fcn.00564e40
lea edx, [esp + 0x30]
push edx
push str._02X
push esi
call fcn.00566b22
add esp, 0x28
test eax, eax
jle 0x55edce
lea esp, [esp]
cmp edi, 0x200
jge 0x55edce
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
add esi, 2
push str._02X
mov byte [esp + edi + 0x540], al
push esi
inc edi
call fcn.00566b22
add esp, 0xc
test eax, eax
jg 0x55eda0
push ebp
push 0x100
lea edx, [esp + 0x540]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0055dd90
mov ebp, dword [esp + 0x758]
mov cl, byte [esp + 0x75c]
add esp, 0xc
xor edi, edi
mov byte [esp + 0x13], cl
test ebp, ebp
jle 0x55eead
push ebx
push 0x10
lea edx, [esp + 0x144]
push 1
push edx
call fcn.005657ca
add esp, 0x10
cmp eax, 0x10
jne 0x55eed6
lea eax, [esp + 0x13c]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0055dfb0
mov ecx, dword [esp + 0x30]
xor eax, eax
add esp, 0x10
xor dl, dl
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
lea esi, [ecx + edi + 1]
mov cl, byte [esp + eax + 0x13c]
add byte [esp + 0x13], cl
mov byte [esi + eax - 1], cl
mov cl, byte [esp + eax + 0x13d]
add byte [esp + 0x14], cl
mov byte [esi + eax], cl
mov cl, byte [esp + eax + 0x13e]
add byte [esp + 0x15], cl
mov byte [esi + eax + 1], cl
mov cl, byte [esp + eax + 0x13f]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x55ee51
add dl, byte [esp + 0x15]
mov ebx, dword [esp + 0x1c]
add dl, byte [esp + 0x14]
add edi, 0x10
add byte [esp + 0x13], dl
cmp edi, ebp
jl 0x55ee05
push ebx
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.005657ca
mov al, byte [esp + 0x26]
add esp, 0x10
cmp al, byte [esp + 0x17]
jne 0x55eed6
cmp al, byte [esp + 0x13]
jne 0x55eed6
mov eax, 1
jmp 0x55eeec
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x734]
pop esi
pop ebx
xor ecx, esp
call fcn.00564fc9
add esp, 0x730
ret 0x10

Function at 0x564fc9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6a0060]
jne 0x564fd3
repz ret
jmp fcn.0056b9c1
Function at 0x5759af
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a0060]
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.0056fb33
and dword [ebp - 0x14], 0
cmp dword [0x6e1060], 0
mov dword [ebp - 0x18], eax
jne 0x575a62
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x575b0a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x575b0a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x59cbfc
push ebx
mov dword [0x6e1060], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6e1064], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6e1068], eax
call edi
push eax
call esi
mov dword [0x6e1070], eax
test eax, eax
je 0x575a62
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6e106c], eax
mov eax, dword [0x6e106c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x575abb
cmp dword [0x6e1070], ecx
je 0x575abb
push eax
call esi
push dword [0x6e1070]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x575abb
test ebx, ebx
je 0x575abb
call edi
test eax, eax
je 0x575ab2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x575ab2
test byte [ebp - 8], 1
jne 0x575abb
or dword [ebp + 0x10], 0x200000
jmp 0x575aee
mov eax, dword [0x6e1064]
cmp eax, dword [ebp - 0x18]
je 0x575aee
push eax
call esi
test eax, eax
je 0x575aee
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x575aee
mov eax, dword [0x6e1068]
cmp eax, dword [ebp - 0x18]
je 0x575aee
push eax
call esi
test eax, eax
je 0x575aee
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6e1060]
call esi
test eax, eax
je 0x575b0a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x575b0c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564fc9
leave
ret
Function at 0x40dbaa
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40f160
call fcn.0040dd94
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40dbe7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dbe7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40dbff
cmp eax, 0x20b
je 0x40dbec
mov dword [ebp - 0x1c], ebx
jmp 0x40dc13
cmp dword [ecx + 0x84], 0xe
jbe 0x40dbe7
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40dc0d
cmp dword [ecx + 0x74], 0xe
jbe 0x40dbe7
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x73d650], 0xffffffff
or dword [0x73d654], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x73d64c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x73d648]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x73d658], eax
call fcn.0040dd8e
cmp dword [0x43863c], ebx
jne 0x40dc6e
push fcn.0040dd8e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040dd7c
push 0x40e158
push 0x40e154
call sub.msvcrt.dll__initterm
mov eax, dword [0x73d644]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x73d640]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x40e150
push 0x40e14c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x40dd04
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40dcd8
cmp al, 0x22
jne 0x40dcca
cmp byte [esi], 0x22
jne 0x40dce1
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x40dceb
cmp al, 0x20
jbe 0x40dcdd
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x40dd0f
movzx eax, word [ebp - 0x48]
jmp 0x40dd12
cmp byte [esi], 0x20
jbe 0x40dce1
inc esi
mov dword [ebp - 0x34], esi
jmp 0x40dd04
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40dd2f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40dd64
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040ddcd
ret