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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0xfaf9f887
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x43b68b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
and edx, 0x17f5bf3f
xor eax, 0x97f5bf3f
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov ecx, eax
xor ecx, 0x46
and eax, 0x46
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x43b640
mov eax, dword [esp + 8]
mov edi, dword [0x447460]
test edi, edi
je 0x43b6ed
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [0x447464]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + ebx*8], 0x58c2bab5
je 0x43b6c0
inc ebx
cmp edi, ebx
jne 0x43b6b0
jmp 0x43b6ed
mov edi, dword [esi + ebx*8 + 4]
cmp edi, eax
je 0x43b6ed
lea eax, [esp + 0x1c]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x447468]
push edi
call fcn.00438760
add esp, 0x30
mov edi, dword [ebp + 0x14]
cmp eax, 0x103
jne 0x43b7d8
mov dword [esp + 8], 0xfaf9f887
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x43b77e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
and edx, 0x17f5bf3f
xor eax, 0x97f5bf3f
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
xor ecx, 0x46
and eax, 0x46
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xa
jb 0x43b730
mov eax, dword [esp + 8]
mov ecx, dword [0x447460]
test ecx, ecx
je 0x43b7d0
xor edx, edx
mov esi, dword [0x447464]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xb33e16a3
je 0x43b7b0
inc edx
cmp ecx, edx
jne 0x43b7a0
jmp 0x43b7d0
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43b7d0
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x447468]
push ecx
call fcn.00438760
add esp, 0x18
test eax, eax
js 0x43b7d8
mov eax, dword [esp + 0x1c]
test edi, edi
je 0x43b7e2
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x43b810
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 4], bx
add ebx, 2
mov word [esp + 6], bx
mov dword [esp + 8], edi
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0xfaf9f887
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x43b8db
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov edi, eax
and edi, 0x17f5bf3f
xor eax, 0x97f5bf3f
lea eax, [eax + edi*2]
lea edi, [eax + ecx]
and eax, ecx
add eax, eax
sub edi, eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xc]
mov ecx, eax
xor ecx, 0x46
and eax, 0x46
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x43b890
mov eax, dword [esp + 0x10]
mov edi, dword [0x447460]
test edi, edi
je 0x43b933
xor ebx, ebx
mov ecx, dword [0x447464]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x850a6e6
je 0x43b910
inc ebx
cmp edi, ebx
jne 0x43b900
jmp 0x43b933
mov ecx, dword [ecx + ebx*8 + 4]
cmp ecx, eax
je 0x43b933
lea eax, [esp + 0x24]
push esi
push eax
push edx
push dword [ebp + 0xc]
push 4
push dword [0x447468]
push ecx
call fcn.00438760
add esp, 0x1c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401b62
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x401bfd
push edi
push 0x63a520
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x63a51c]
test edi, edi
je 0x401bd0
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401bc9
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x63a51c
call fcn.00416b87
pop ecx
pop ecx
jmp 0x401bcb
mov edi, dword [edi]
test edi, edi
jne 0x401b9e
pop ebp
mov esi, dword [0x6372d0]
push 0x10
push 0x63a51c
lea eax, [esi + 1]
mov dword [0x6372d0], eax
call fcn.00416b58
pop ecx
pop ecx
push 0x63a520
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x405c60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x63ac2c], 0
jne 0x405c7e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x63ac28], eax
mov dword [0x63ac2c], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x63ac28]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
cmp dword [0x63ac2c], 0
jne 0x405cc0
call fcn.00405c60
push dword [0x63ac28]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x405ce3
call fcn.00405c60
push dword [0x63ac28]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
jmp 0x405cf0
imul eax, esi, 0x53a9b4fb
lea edx, [edx + 4]
mov ecx, 1
mov esi, 1
sub ecx, eax
imul eax, ecx, 0x53a9b4fb
mov dword [edx + 0x40], ecx
sub esi, eax
mov dword [edx - 4], esi
sub ebx, 1
jne 0x405cf0
mov dword [edi], ebx
lea ebp, [ebx + 0x1f]
mov dword [edi + 4], 0xa
mov esi, 0xa
lea esp, [esp]
mov ecx, dword [edi + ebx*4 + 8]
mov eax, dword [edi + ebx*4 + 0x4c]
mov edx, dword [edi + esi*4 + 8]
ror eax, 0xd
add eax, dword [edi + esi*4 + 0x4c]
dec esi
ror ecx, 5
add ecx, edx
mov dword [edi + ebx*4 + 8], eax
mov dword [edi + ebx*4 + 0x4c], ecx
add ebx, 0xffffffff
jns 0x405d5b
mov ebx, 0x10
test esi, esi
jns 0x405d64
mov esi, 0x10
mov dword [edi], ebx
mov dword [edi + 4], esi
sub ebp, 1
jne 0x405d30
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405d80
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, esi
jbe 0x405d94
mov edi, esi
mov dword [esp + 0x10], edi
sub esi, edi
cmp dword [0x63ac2c], 0
jne 0x405da4
call fcn.00405c60
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebp
push dword [0x63ac28]
call ebx
mov edx, eax
test edx, edx
jne 0x405dc9
call fcn.00405c60
push dword [0x63ac28]
call ebx
mov edx, eax
mov ebp, dword [edx]
inc esi
mov ebx, dword [edx + 4]
mov eax, dword [edx + ebp*4 + 0x4c]
mov ecx, dword [edx + ebx*4 + 8]
ror eax, 0xd
add eax, dword [edx + ebx*4 + 0x4c]
dec ebx
mov dword [esp + 0x14], eax
mov eax, dword [edx + ebp*4 + 8]
mov edi, dword [esp + 0x14]
ror eax, 5
add eax, ecx
mov dword [edx + ebp*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [edx + ebp*4 + 0x4c], eax
sub ebp, 1
jns 0x405e06
mov ebp, 0x10
test ebx, ebx
jns 0x405e0f
mov ebx, 0x10
mov eax, dword [esp + 0x14]
mov dword [edx], ebp
mov dword [edx + 4], ebx
pop ebp
pop ebx
test esi, esi
je 0x405e28
mul esi
lea eax, [edx + edi]
pop edi
pop esi
ret 8
add eax, edi
pop edi
pop esi
ret 8
Function at 0x40727e
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x63b25c]
call fcn.0041578c
xor ebx, ebx
mov esi, eax
cmp dword [0x63adcc], ebx
jne 0x407350
xor ebp, ebp
inc ebp
mov dword [0x63adcc], ebp
call fcn.00416bd9
mov edi, 0xa8
push edi
push ebx
push 0x63ad20
call fcn.004016e0
add esp, 0xc
mov dword [0x63ad20], 0x13
lea eax, [esp + 0x10]
mov dword [0x63ad24], edi
mov dword [0x63ad30], 0x40710d
mov dword [0x63ad34], 0x4070e6
push eax
mov dword [0x63ad88], 0x407458
mov dword [0x63ad8c], 0x407480
mov dword [0x63ad2c], 0x407433
mov dword [0x63adb0], 0x40753b
mov dword [0x63add0], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407350
cmp dword [esp + 0x20], ebp
je 0x40734a
cmp dword [esp + 0x20], 2
jne 0x407350
cmp dword [esp + 0x14], 5
jb 0x40734a
jne 0x407350
cmp dword [esp + 0x18], ebx
jne 0x407350
mov dword [0x63add0], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00445e78
mov eax, dword [esp + 0x140]
push ebx
push dword [0x639a9c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x407424
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x63b258]
call fcn.004160a1
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x4073f5
push esi
call fcn.00412877
test eax, eax
je 0x4073f5
push 0
push 0
push esi
call fcn.00412956
jmp 0x4073f7
xor eax, eax
push 0x407850
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x63ad20
push edi
push ebx
push ebp
mov dword [0x63adc8], eax
call fcn.00445d05
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x407b19
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x407b51
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.00446ba6
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x407c42
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x407c42
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x407c70
test ebp, ebp
jle 0x407c70
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x407c70
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x407c39
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x407be3
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x407bf8
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x407c70
cmp dword [edi + 0x10], ebx
je 0x407c5c
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x407c70
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.00446cb0
cmp dword [esp + 0x10], 0
je 0x407c8a
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x409f6c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x63b25c]
call fcn.0041578c
xor ebx, ebx
mov ebp, eax
cmp dword [0x63b340], ebx
jne 0x40a000
mov esi, 0xa8
push esi
push ebx
push 0x63b298
call fcn.004016e0
add esp, 0xc
mov dword [0x63b29c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x63b298], 0xa
mov dword [0x63b2a0], 0x40a472
push 0x7f89
push ebx
mov dword [0x63b310], 0x44865c
mov dword [0x63b314], 0x4486b5
mov dword [0x63b2a4], 0x40a452
mov dword [0x63b328], 0x40a491
call esi
mov dword [0x63b340], eax
test eax, eax
jne 0x40a000
push 0x7f00
push ebx
call esi
mov dword [0x63b340], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00445e78
push ebx
push dword [0x639a9c]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40010000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x40a0cc
push edi
push dword [esp + 0x14]
push dword [0x63b258]
call fcn.004160a1
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x63b298
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00445d05
push 0x40a0d4
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20

Function at 0x40ae44
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x40aeb7
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebp
and ecx, dword [esp + 0x14]
push esi
push edi
cmp ecx, 0xffffffff
jne 0x40ae72
mov ebp, eax
push dword [ebx]
call fcn.0040b2e6
push ebp
push dword [ebx]
mov edi, eax
call fcn.0040b2bf
add esp, 0xc
mov esi, eax
push 0
push ebp
push 0x130c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebx]
call fcn.0040b306
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x40c5f9
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call fcn.004016e0
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x40c62a
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x40c6b6
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40c690
mov eax, dword [ebp + 8]
sub eax, 0
je 0x40c688
sub eax, 1
je 0x40c680
sub eax, 1
je 0x40c678
sub eax, 1
je 0x40c670
sub eax, 1
je 0x40c668
sub eax, 1
jne 0x40c690
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x40c6b8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x40c6b8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x40c6b8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x40c6b8
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x40c6b8
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x40c6b8
cmp dword [ebp + 8], 7
jne 0x40c6b4
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x40c6b4
mov eax, dword [ebp - 0x68]
jmp 0x40c6b6
xor eax, eax
xor edx, edx
leave
ret 4
Function at 0x40c6bc
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c840
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x40c823
sub eax, 1
jne 0x40c840
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0040c84c
pop ecx
test eax, eax
je 0x40c730
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x40c761
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c840
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x40c766
xor edi, edi
inc edi
sub ecx, 3
je 0x40c81f
sub ecx, 1
je 0x40c81b
sub ecx, 1
je 0x40c7f6
sub ecx, 1
je 0x40c7a6
sub ecx, 4
jne 0x40c840
test eax, eax
jne 0x40c840
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40c840
sub eax, 0
je 0x40c7e8
sub eax, 1
je 0x40c7da
sub eax, 1
je 0x40c7cc
sub eax, 1
jne 0x40c840
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40c840
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40c840
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40c840
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40c840
sub eax, 0
je 0x40c817
sub eax, 1
je 0x40c813
sub eax, 1
jne 0x40c840
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40c840
push 0x3c
jmp 0x40c83f
push 0x32
jmp 0x40c83f
push 0x14
jmp 0x40c83f
push 5
jmp 0x40c83f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c83d
cmp eax, 0xa
je 0x40c839
cmp eax, 0x5a
jne 0x40c840
push 0x28
jmp 0x40c83f
push 0x1e
jmp 0x40c83f
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x40cb33
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x63bee8]
call fcn.00416135
mov esi, eax
test esi, esi
je 0x40cc0d
cmp dword [ebp + 0xc], 0
je 0x40cb7f
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x40cb70
cmp dword [esi + 0x1c], 0
jne 0x40cb70
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40cc0d
test byte [ebp + 0x10], 3
je 0x40cb9a
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00448bf5
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x40cbbf
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x40cbd3
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x40cbf0
test ebx, ebx
je 0x40cbe4
push 8
jmp 0x40cbf6
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x40cc03
test ebx, ebx
je 0x40cbf9
push 3
pop ecx
jmp 0x40cc03
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40e7f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40e86a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004173c5
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00416cc4
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40e84b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40e848
cmp ecx, 0x5c
je 0x40e848
cmp ecx, 0x2f
jne 0x40e855
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40e835
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40e86c
xor eax, eax
leave
ret 4
Function at 0x40ebad
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40ebd6
test byte [esp + 8], 2
je 0x40ebca
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40ebd8
xor eax, eax
ret 8

Function at 0x40ecbb
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x63b7a8]
push esi
test eax, eax
jne 0x40ece0
push fcn.0040ec89
push 0x10
push 0x258
call fcn.00416219
mov dword [0x63b7a8], eax
push dword [esp + 0xc]
push eax
call fcn.004160a1
mov esi, eax
test esi, esi
je 0x40ede1
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x40ed02
mov edi, 0x51bdc0
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40ed12
xor eax, eax
cmp word [ebx], ax
jne 0x40ed17
mov ebx, 0x51b6bc
push edi
call fcn.00416cc4
push ebx
mov dword [esp + 0x24], eax
call fcn.00416cc4
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40edc8
push edi
push eax
call fcn.00416ca2
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x40ed78
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x40ed7c
push 0x51a6c8
push edi
call fcn.00417bde
pop ecx
pop ecx
jmp 0x40ed7c
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.00417bde
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40eda0
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x40edb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40edb4
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x639a98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x40eddf
cmp dword [esp + 0x14], 0xffffffff
je 0x40edd3
mov esi, dword [esp + 0x14]
push esi
push dword [0x63b7a8]
call fcn.004161ca
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc