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

Disassembly:
push 0xffffffffffffffff
push 0x57a8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ecx, dword [0x6db7c4]
push 1
call fcn.005332b0
mov ecx, dword [0x6db7c4]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [0x6db7c4]
lea eax, [esp + 0xc]
push eax
push 0x6db7b4
mov dword [esp + 0x14], 0
call fcn.005334b0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x6db7c4]
push 0x6db7a8
mov dword [esp + 0x10], 0
call fcn.005334b0
mov eax, dword [esp + 8]
mov ecx, dword [0x6db7c4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call edx
test eax, eax
je 0x5324ab
mov ecx, dword [0x6db7c4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0x7a120
call edx
cmp eax, 1
jne 0x5324ab
mov ecx, dword [0x6db7c4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [0x6db7c4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [0x6db7c4]
fld dword [ecx + 0x28]
push ecx
fstp dword [esp + 8]
lea eax, [esp + 0x18]
fld dword [esp + 8]
fstp dword [esp]
push eax
call fcn.00537c60
mov ecx, dword [0x6db7c0]
push eax
add ecx, 4
mov dword [esp + 0x40], 0
call fcn.00532000
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040bd40
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0055a75b
fld dword [esp + 8]
sub esp, 0x14
mov edx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, dword [0x6db7c4]
fstp dword [esp]
push edx
call fcn.00537700
mov ecx, 0x6db7d0
call fcn.00531c40
fld dword [esp + 4]
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x30], esp
push ecx
mov ecx, dword [0x6db7c4]
fstp dword [esp]
push eax
call fcn.00537e90
mov ecx, 0x6db7d0
call fcn.00532160
mov ecx, dword [0x6db7c4]
push 0
call fcn.005332b0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
add esp, 0x3c
ret
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
add esp, 0x3c
ret

Function at 0x532550
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
push edi
je 0x5325ff
mov edi, dword [esp + 0x14]
test edi, edi
je 0x5325ff
push 0
push 1
push 0x6db7c8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x5325ff
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [0x6db7b4], ecx
mov edx, dword [eax + 4]
mov dword [0x6db7b8], edx
mov eax, dword [eax + 8]
mov dword [0x6db7bc], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [0x6db7a8], ecx
mov edx, dword [eax + 4]
mov dword [0x6db7ac], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov dword [0x6db7b0], eax
mov ecx, dword [esi + 0x1f4]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x5324c0
push 0
push 0
mov dword [0x6db7c4], ecx
mov dword [0x6db7c0], edi
mov dword [0x6a61ac], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x532606
push eax
push 0x6db7c8
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 0x537700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xc8]
lea ebx, [edi + 0xb8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x10], ebx
cmp dword [ebx + 0xc], esi
jbe 0x53772b
call fcn.0055b3ab
mov ebp, dword [ebx]
mov ebx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
cmp ebx, dword [ecx + 0x10]
jbe 0x537742
call fcn.0055b3ab
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push esi
push ebp
push ebx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00531260
xor ebp, ebp
cmp dword [edi + 0x94], ebp
jbe 0x5378a5
fldz
fstp dword [esp + 0x3c]
jmp 0x537770
mov ebx, dword [edi + 0x90]
mov ecx, dword [edi + 0x94]
add ecx, ebx
cmp ebx, ecx
jbe 0x537787
call fcn.0055b3ab
mov esi, dword [edi + 0x78]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x5377b3
call fcn.0055b3ab
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
add ebx, ebp
cmp ebx, edx
ja 0x5377c0
test esi, esi
je 0x5377b9
mov esi, dword [esi]
jmp 0x5377bb
mov eax, dword [esi]
mov ecx, eax
jmp 0x53779f
xor esi, esi
cmp ebx, dword [esi + 0x18]
jae 0x5377c5
call fcn.0055b3ab
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call fcn.00534cb0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x5377f5
fadd dword [0x57e5c0]
mov esi, dword [edi + 0x90]
fmul dword [esp + 0x4c]
mov ecx, dword [edi + 0x94]
add ecx, esi
fstp dword [esp + 0x38]
cmp esi, ecx
jbe 0x537814
call fcn.0055b3ab
mov ebx, dword [edi + 0x78]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
test ebx, ebx
jne 0x537840
call fcn.0055b3ab
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
add esi, ebp
cmp esi, edx
ja 0x53784d
test ebx, ebx
je 0x537846
mov ebx, dword [ebx]
jmp 0x537848
mov eax, dword [ebx]
mov ecx, eax
jmp 0x53782c
xor ebx, ebx
cmp esi, dword [ebx + 0x18]
jae 0x537852
call fcn.0055b3ab
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call fcn.00534cb0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
test eax, eax
jge 0x537882
fadd dword [0x57e5c0]
fmul dword [esp + 0x4c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp + 0x44]
call fcn.00537340
inc ebp
cmp ebp, dword [edi + 0x94]
jb 0x537770
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
push edx
mov ecx, esi
call fcn.005369f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x545eb0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x545ece
push 0
push 0x72
push str.DirectoryManager.cpp
call fcn.0050ea20
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x545ee6
cmp esi, 0x11
je 0x545ee6
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 0x54dbb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57552e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00428380
lea edi, [esi + 0x21c]
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esi], vtable.CTitanDissolutionDlg.0
call fcn.004b4e30
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
mov dword [esi + 0x218], 0
call fcn.0042d050
push 0
lea eax, [esp + 0x14]
push eax
push 0x3f
mov ecx, 0x6b6658
mov byte [esp + 0x44], 2
call fcn.00431a60
push 0x33517d
lea ecx, [esp + 0x14]
push ecx
push 0xffffff
push 0x57ea62
mov ecx, edi
call fcn.0043e400
push 0
mov ecx, edi
call fcn.0040b220
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.0042d060
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x54e3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57b48e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00428380
lea edi, [esi + 0x220]
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esi], vtable.CTitanInventoryDlg.0
call fcn.0042d050
lea ecx, [esi + 0x240]
mov byte [esp + 0x38], 1
call fcn.00552030
xor eax, eax
mov dword [esi + 0x218], 0
mov dword [esi + 0x21c], 0
mov dword [esi + 0x290], eax
mov dword [esi + 0x294], eax
mov dword [esi + 0x298], eax
mov dword [esi + 0x29c], eax
mov dword [esi + 0x2a0], eax
mov dword [esi + 0x2a4], eax
lea ecx, [esp + 0x10]
mov dword [esi + 0x2a8], eax
call fcn.0042d050
push 0
lea eax, [esp + 0x14]
push eax
push 0x3f
mov ecx, 0x6b6658
mov byte [esp + 0x44], 2
call fcn.00431a60
push 0
push edi
push 0x41
mov ecx, 0x6b6658
call fcn.00431a60
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.0042d060
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x554bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57552e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00428380
lea edi, [esi + 0x21c]
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esi], vtable.CTitanRegisterDlg.0
call fcn.004b4e30
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
mov dword [esi + 0x218], 0
call fcn.0042d050
push 0
lea eax, [esp + 0x14]
push eax
push 0x3f
mov ecx, 0x6b6658
mov byte [esp + 0x44], 2
call fcn.00431a60
push 0x33517d
lea ecx, [esp + 0x14]
push ecx
push 0xffffff
push 0x57ea62
mov ecx, edi
call fcn.0043e400
push 0
mov ecx, edi
call fcn.0040b220
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.0042d060
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x556410
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x800
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
nop
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea esi, [eax + eax]
xor edx, esi
xor edx, eax
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x556420
mov eax, 1
mov ecx, 0x6dc5f8
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, 0xff
add ecx, 4
cmp ecx, 0x6dc620
mov eax, edx
jl 0x556460
mov byte [0x6de720], 0x63
mov byte [0x6dd683], 0
mov ebx, 1
jmp 0x5564a0
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 + 0x6de720], al
mov byte [eax + 0x6dd620], bl
inc ebx
cmp ebx, 0x100
jl 0x5564a0
xor ecx, ecx
movzx esi, byte [ecx + 0x6de720]
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 + 0x6de320], eax
rol eax, 8
mov dword [ecx*4 + 0x6ddf20], eax
rol eax, 8
mov dword [ecx*4 + 0x6ddb20], eax
rol eax, 8
mov dword [ecx*4 + 0x6dd720], eax
movzx eax, byte [ecx + 0x6dd620]
test eax, eax
je 0x5565c8
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 0x5565d0
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 + 0x6dd220], edx
rol edx, 8
mov dword [ecx*4 + 0x6dce20], edx
rol edx, 8
mov dword [ecx*4 + 0x6dca20], edx
rol edx, 8
mov dword [ecx*4 + 0x6dc620], edx
inc ecx
cmp ecx, 0x100
jl 0x556512
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
Function at 0x556620
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x118
mov eax, ecx
sub eax, 0x80
push edi
je 0x556660
sub eax, 0x40
je 0x556651
sub eax, 0x40
jne 0x556841
mov edi, dword [esp + 0x120]
mov dword [edi], 0xe
jmp 0x55666d
mov edi, dword [esp + 0x120]
mov dword [edi], 0xc
jmp 0x55666d
mov edi, dword [esp + 0x120]
mov dword [edi], 0xa
mov eax, dword [esp + 0x124]
push esi
push ecx
push eax
lea ecx, [esp + 0x10]
lea esi, [edi + 8]
push ecx
mov dword [edi + 4], esi
call fcn.00555eb0
mov eax, dword [esp + 0x14]
shl eax, 4
add eax, dword [esp + 0x18]
add esi, 4
mov edx, dword [eax]
mov dword [esi - 4], edx
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esi], ecx
mov edx, dword [eax + 4]
add eax, 4
add esi, 4
mov dword [esi], edx
mov ecx, dword [eax + 4]
add eax, 4
add esi, 4
mov dword [esi], ecx
mov ecx, dword [edi]
dec ecx
add esp, 0xc
add esi, 4
sub eax, 0x1c
test ecx, ecx
jle 0x556820
lea esp, [esp]
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x6de720]
mov edx, dword [edx*4 + 0x6dc620]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dca20]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dce20]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dd220]
add eax, 0x10
mov dword [esi], edx
mov edx, dword [eax - 0xc]
movzx edi, byte [eax - 9]
movzx edi, byte [edi + 0x6de720]
and edx, 0xff
movzx edx, byte [edx + 0x6de720]
mov edx, dword [edx*4 + 0x6dd220]
xor edx, dword [edi*4 + 0x6dc620]
movzx edi, byte [eax - 0xa]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dca20]
movzx edi, byte [eax - 0xb]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dce20]
dec ecx
mov dword [esi + 4], edx
mov edx, dword [eax - 8]
movzx edi, byte [eax - 5]
movzx edi, byte [edi + 0x6de720]
and edx, 0xff
movzx edx, byte [edx + 0x6de720]
mov edx, dword [edx*4 + 0x6dd220]
xor edx, dword [edi*4 + 0x6dc620]
movzx edi, byte [eax - 6]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dca20]
movzx edi, byte [eax - 7]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dce20]
add esi, 0x10
mov dword [esi - 8], edx
mov edx, dword [eax - 4]
movzx edi, byte [eax - 1]
movzx edi, byte [edi + 0x6de720]
and edx, 0xff
movzx edx, byte [edx + 0x6de720]
mov edx, dword [edx*4 + 0x6dd220]
xor edx, dword [edi*4 + 0x6dc620]
movzx edi, byte [eax - 2]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dca20]
movzx edi, byte [eax - 3]
movzx edi, byte [edi + 0x6de720]
xor edx, dword [edi*4 + 0x6dce20]
sub eax, 0x20
mov dword [esi - 4], edx
test ecx, ecx
jg 0x5566d0
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
add esi, 4
add eax, 4
mov dword [esi], edx
mov ecx, dword [eax + 4]
add esi, 4
add eax, 4
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
pop esi
pop edi
add esp, 0x118
ret
Function at 0x5573c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x72c
mov eax, dword [0x6a7564]
xor eax, esp
mov dword [esp + 0x728], eax
mov eax, dword [esp + 0x730]
push esi
mov esi, dword [esp + 0x738]
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x5573f5
xor eax, eax
jmp 0x557590
test esi, esi
je 0x5573ee
push ebx
push ebp
push eax
push 1
lea eax, [esp + 0x1f]
push 1
push eax
call fcn.0055b0e7
push 0x200
xor ebx, ebx
lea ecx, [esp + 0x54c]
push ebx
push ecx
add edi, 0x10
call fcn.0055a690
lea edx, [esp + 0x38]
push edx
push str._02X
push edi
call fcn.0055bf13
add esp, 0x28
test eax, eax
jle 0x55746e
lea esp, [esp]
cmp ebx, 0x200
jge 0x55746e
mov al, byte [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
add edi, 2
push str._02X
mov byte [esp + ebx + 0x540], al
push edi
inc ebx
call fcn.0055bf13
add esp, 0xc
test eax, eax
jg 0x557440
push 0x100
lea edx, [esp + 0x53c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00556620
mov ebp, dword [esp + 0x754]
mov cl, byte [esp + 0x758]
add esp, 0xc
xor edi, edi
mov byte [esp + 0x13], cl
test ebp, ebp
jle 0x55754b
inc esi
mov edx, dword [esp + 0x18]
push edx
push 0x10
lea eax, [esp + 0x140]
push 1
push eax
call fcn.0055b0e7
add esp, 0x10
cmp eax, 0x10
jne 0x557578
lea ecx, [esp + 0x138]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00556850
xor eax, eax
add esp, 0x10
xor dl, dl
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x138]
add byte [esp + 0x13], cl
mov byte [esi + eax - 1], cl
mov cl, byte [esp + eax + 0x139]
add byte [esp + 0x15], cl
mov byte [esi + eax], cl
mov cl, byte [esp + eax + 0x13a]
add byte [esp + 0x14], cl
mov byte [esi + eax + 1], cl
mov cl, byte [esp + eax + 0x13b]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x5574f0
add dl, byte [esp + 0x14]
add edi, 0x10
add dl, byte [esp + 0x15]
add esi, 0x10
add byte [esp + 0x13], dl
cmp edi, ebp
jl 0x5574a5
mov ecx, dword [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1e]
push 1
push edx
call fcn.0055b0e7
mov al, byte [esp + 0x27]
add esp, 0x10
cmp al, byte [esp + 0x16]
jne 0x557578
cmp al, byte [esp + 0x13]
jne 0x557578
mov eax, 1
jmp 0x55758e
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 ebx
mov ecx, dword [esp + 0x730]
pop edi
pop esi
xor ecx, esp
call fcn.0055a677
add esp, 0x72c
ret 0x10

Function at 0x55a677
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6a7564]
jne 0x55a681
repz ret
jmp fcn.0056091c
Function at 0x56df85
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0056025d
and dword [ebp - 4], 0
cmp dword [0x6df3d4], 0
mov ebx, eax
jne 0x56e036
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x56e0e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x596e74
push edi
call esi
test eax, eax
je 0x56e0e7
push eax
call fcn.005601eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6df3d4], eax
call esi
push eax
call fcn.005601eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6df3d8], eax
call esi
push eax
call fcn.005601eb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6df3dc], eax
call esi
push eax
call fcn.005601eb
pop ecx
mov dword [0x6df3e4], eax
test eax, eax
je 0x56e036
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005601eb
pop ecx
mov dword [0x6df3e0], eax
mov eax, dword [0x6df3e0]
cmp eax, ebx
je 0x56e08e
cmp dword [0x6df3e4], ebx
je 0x56e08e
push eax
call fcn.00560266
push dword [0x6df3e4]
mov esi, eax
call fcn.00560266
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x56e08e
test edi, edi
je 0x56e08e
call esi
test eax, eax
je 0x56e085
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x56e085
test byte [ebp - 0xc], 1
jne 0x56e08e
or dword [ebp + 0x10], 0x200000
jmp 0x56e0c7
mov eax, dword [0x6df3d8]
cmp eax, ebx
je 0x56e0c7
push eax
call fcn.00560266
pop ecx
test eax, eax
je 0x56e0c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x56e0c7
mov eax, dword [0x6df3dc]
cmp eax, ebx
je 0x56e0c7
push eax
call fcn.00560266
pop ecx
test eax, eax
je 0x56e0c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6df3d4]
call fcn.00560266
pop ecx
test eax, eax
je 0x56e0e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x56e0e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
call fcn.00411b60
lea ecx, [ebp - 0x1c]
call fcn.00411b60
push 0x3c
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x740
mov dword [ebp - 0x3c], 0xa
test bl, 1
je 0x401d18
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401d24
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401d33
or dword [ebp - 0x54], 0x100
mov eax, dword [0x41e72c]
push 5
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.0040310a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411be5
cmp dword [ebp - 0xc], edi
jne 0x401d7b
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x401dc2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401db0
cmp ebx, edi
jne 0x401da4
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x40284e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040242a
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x402734
push edi
push edi
mov dword [0x41e724], esi
mov dword [0x41e728], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x41e720], eax
cmp eax, edi
je 0x4028a9
cmp dword [0x41e770], 2
je 0x40289b
call fcn.00408d16
mov eax, dword [0x41e720]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x41e720]
mov ecx, dword [0x41e728]
mov dword [0x41e8c4], edi
cmp ecx, edi
je 0x4028ef
cmp ecx, 1
je 0x4028e3
cmp ecx, 2
je 0x4028df
cmp ecx, 3
je 0x4028db
cmp ecx, 0x67
jle 0x4028d6
cmp ecx, 0x6b
jle 0x402958
push ecx
push 0x14
jmp 0x402929
push 0x12
jmp 0x4028e5
push 0x13
jmp 0x4028e5
push 0x11
push edi
call fcn.0040976c
pop ecx
pop ecx
jmp 0x402958
mov dword [ebp + 8], edi
cmp dword [0x41e8cc], edi
jne 0x402958
cmp eax, edi
je 0x402916
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x402916
cmp dword [ebp + 8], edi
jne 0x402916
xor eax, eax
jmp 0x40295d
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x40292c
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402950
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402942
cmp dword [0x41e774], 0xffffffff
je 0x402958
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0040976c
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x40317a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4031b8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4031a5
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4031bb
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4031b8
test al, 0x10
jne 0x4031b8
push esi
jmp 0x40319b
xor eax, eax
inc eax
pop edi
pop esi
ret