joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e40
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
push ebx
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
mov dword [esp + 0x38], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x402e7a
pop edi
or eax, eax
pop ebx
add esp, 0x1c
ret 0x14
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x402e9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x1c
ret 0x14
mov ecx, dword [esp + 0x38]
push ebp
push esi
mov esi, WaitForMultipleObjects
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x18]
sub esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
sub esp, 8
fild qword [esp + 0x20]
mov dword [esp + 0x2c], esi
fdivp st(1)
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
call sub.MSVCRT.dll__ftol
push 0xc800
mov dword [esp + 0x24], eax
call sub.MFC42u.DLL_operatornew
mov ebp, eax
push 1
push ebp
call fcn.00401380
add esp, 0x14
mov word [ebp + 4], 0xc
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esp + 0x13], 0
jmp 0x402f13
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
lea eax, [ebp + 0x10]
push esi
push eax
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 1
cmp ebx, eax
jne 0x402f3b
cmp dword [esp + 0x18], eax
je 0x402f3b
mov dword [ebp + 8], eax
jmp 0x402f5e
cmp ebx, dword [esp + 0x18]
jae 0x402f52
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402f52
mov dword [ebp + 8], 2
jmp 0x402f5e
mov dword [ebp + 8], 3
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov dword [ebp + 0xc], ebx
mov dx, word [esp + 0x14]
mov word [ebp + 6], dx
mov eax, dword [esp + 0x14]
mov edx, ecx
push 0
lea edi, [eax + ebp + 0x10]
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, edx
lea edx, [ecx + eax + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00401c90
mov esi, eax
test esi, esi
jl 0x402fbd
mov al, byte [esp + 0x13]
test al, al
je 0x402f0b
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
push 0x40d3f0
call sub.ETInfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.004012f0
add esp, 8
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret 0x14
Function at 0x403600
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40ac30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp + 4]
add ecx, 0x30
push eax
call fcn.00406e70
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push eax
push edx
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x406710
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40ad6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_2
mov al, byte [esp + 0x17]
push 0xc
mov dword [esp + 0x230], 0
mov byte [esi + 8], al
call sub.MFC42u.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
lea ecx, [esi + 0x14]
mov byte [esp + 0x22c], 1
push ecx
mov dword [esi], 0x40b29c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [esp + 0x1c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
lea ecx, [esp + 0x1c]
mov word [eax], 0
push ecx
lea ecx, [esp + 0x14]
call fcn.0040a818
lea edx, [esp + 0xc]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 2
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push 0x40d628
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x406828
lea ecx, [esp + 0x10]
push 0x40d628
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 3
call fcn.0040a890
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 2
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x10]
push str.AutoPai
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x230], 4
call fcn.0040a890
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x40d628
mov ecx, edi
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], 1
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x4069a0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
add ecx, 4
push str.user.ini
lea eax, [esp + 8]
push ecx
push eax
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
push 0x40d62c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop esi
pop ecx
ret 4

Function at 0x4069e0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
add ecx, 4
push str.user.ini
lea eax, [esp + 8]
push ecx
push eax
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x407f50
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push esi
push str.GlobalBUYI_AutoPai_Server
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x407f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407f89
push 0x40d108
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x408050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov edx, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x44
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x154]
mov ecx, dword [esp + 0x150]
mov word [esp + 0x34], ax
pop edi
lea eax, [ecx + ecx*4]
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x1c], 0x190
lea eax, [eax + eax*4]
mov dword [esp + 0x2c], 7
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x10], eax
mov al, byte [edx + 4]
mov edx, dword [esp + 0x148]
test al, al
push edx
push ecx
je 0x4080d4
push str._SvCalc.exe____d:_d_
jmp 0x4080d9
push str._SrCalc.exe____d:_d_
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [esp + 0x164]
add esp, 0x10
lea edx, [esp]
lea eax, [esp + 0x44]
push ecx
push edx
push 0
push 0
push 0x10
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x144
ret 0x10

Function at 0x408280
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5b
push eax
call ebp
mov edi, eax
add esp, 8
test edi, edi
jne 0x4082a7
pop edi
pop esi
xor al, al
pop ebp
ret 4
push 0x3a
push edi
call ebp
add esp, 8
test eax, eax
jne 0x4082bb
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov ebp, dword [sym.imp.MSVCRT.dll__wtoi]
add eax, 2
push eax
call ebp
add edi, 2
mov dword [esi + 0xc], eax
push edi
call ebp
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x408302
mov dword [esi + 0xc], eax
call fcn.00407f90
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov eax, dword [esi + 8]
xor ebp, ebp
test eax, eax
jle 0x408342
push ebx
mov ebx, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esi + 0x10]
cmp word [ecx + edi + 0x260], 0
lea eax, [ecx + edi + 0x260]
je 0x408333
mov edx, dword [ebx + 8]
push eax
push edx
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetAtGrow
mov eax, dword [esi + 8]
inc ebp
add edi, 0x380
cmp ebp, eax
jl 0x408312
pop ebx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
lea ecx, [eax*8]
sub ecx, eax
mov al, 1
shl ecx, 7
mov edi, dword [ecx + edx + 0xc]
test edi, edi
je 0x408368
mov byte [esi + 4], 0
pop edi
pop esi
pop ebp
ret 4
mov byte [esi + 4], al
pop edi
pop esi
pop ebp
ret 4
Function at 0x40a710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, eax
dec eax
test edx, edx
je 0x40a74e
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [eax + 1]
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40b2b4]
xor edx, eax
inc ecx
dec edi
mov dword [esi], edx
jne 0x40a729
pop edi
pop esi
pop ebx
ret
Function at 0x4028b3
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40a008], 0x8088405
inc edx
mov dword [ebx + 0x40a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404b87
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403627
xor eax, eax
push ebp
push 0x404c1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004032bf
mov word [ebp - 8], 0x2a
mov eax, dword [ebp - 4]
call fcn.00403437
mov ebx, eax
test bx, bx
jbe 0x404bff
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, word [ebp - 8]
call fcn.004033df
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040343f
inc edi
dec bx
jne 0x404bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c24
lea eax, [ebp - 0xc]
call fcn.004032bf
lea eax, [ebp - 4]
call fcn.004032bf
ret

Function at 0x4050c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403627
xor eax, eax
push ebp
push 0x405153
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004032bf
mov eax, dword [ebp - 4]
call fcn.00403437
mov ebx, eax
test bx, bx
jbe 0x405135
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0x18
call fcn.004033df
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040343f
inc edi
dec bx
jne 0x405106
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40515a
lea eax, [ebp - 0xc]
call fcn.004032bf
lea eax, [ebp - 4]
call fcn.004032bf
ret

Function at 0x405163
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403627
xor eax, eax
push ebp
push 0x4051f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004032bf
mov eax, dword [ebp - 4]
call fcn.00403437
mov ebx, eax
test bx, bx
jbe 0x4051d5
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0xc
call fcn.004033df
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040343f
inc edi
dec bx
jne 0x4051a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051fa
lea eax, [ebp - 0xc]
call fcn.004032bf
lea eax, [ebp - 4]
call fcn.004032bf
ret
Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x266d11f1
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, str.L:a
mov ebx, 0x42f3f8
nop
mov ecx, 0x3a0c1bd1
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4accfd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4acd35
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aada1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aad79
jmp 0x4acd41
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ae3ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ae431
call fcn.004b402e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4ae431
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4ae428
xor eax, eax
jmp 0x4ae439
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ae43f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b455e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b458c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4b45aa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b44c4
jmp 0x4b45aa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b45aa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b44c4
test edi, edi
mov eax, edi
jne 0x4b4594
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x414deb
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], ebx
add edx, 4
cmp edx, ecx
jne fcn.00414deb
ret
Function at 0x4024bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412320]
jne 0x4024c6
repz ret
jmp fcn.00403ae7

Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call fcn.00407326
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call fcn.004031c2
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call fcn.004031c2
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call fcn.00403fef
pop ecx
call sub.KERNEL32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call fcn.00406c32
test eax, eax
jge 0x4032a5
push 8
call fcn.00403fef
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call fcn.00403fef
pop ecx
push 1
call fcn.004040ae
pop ecx
test eax, eax
je 0x4032c9
push eax
call fcn.00403fef
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call fcn.0040425f
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call fcn.00585000
jmp 0x4031eb
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x44a410
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea eax, [esp + 4]
push 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 4]
test eax, eax
je 0x44a4e2
lea ecx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
loopne 0x44a4ba
add byte [ebp + 0x51142454], cl
push edx
push 0
push 0
push str.FeatureSettings
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 4
call esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
mov edi, eax
mov eax, dword [esp + 0x10]
push 0
push 0
push str.FeatureSettingsOverride
push eax
call esi
test edi, edi
pop esi
je 0x44a4c0
mov ecx, dword [0x651d84]
push 0x651ab8
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
or eax, edi
pop edi
xor eax, 0x11
neg eax
sbb eax, eax
inc eax
add esp, 0x14
ret
xor eax, eax
pop edi
add esp, 0x14
ret

Function at 0x5226e8
Capabilities:
Encode data using xor

Disassembly:
das
add eax, 0x1479ddd2
mov byte [eax + 0xe356d12], al
adc byte [edx], 0x6d
xor eax, 0x9ec06d0e
invalid
insd dword es:[edi], dx
invalid
sahf
invalid
Function at 0x7e6870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28a000]
push edi
or ebp, 0xffffffff
jmp 0x7e6892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7e6899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e6888
mov eax, 1
add ebx, ebx
jne 0x7e68ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7e68bc
jne 0x7e68db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e68db
dec eax
add ebx, ebx
jne 0x7e68c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7e68a0
add ebx, ebx
jne 0x7e68d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7e692d
xor ecx, ecx
sub eax, 3
jb 0x7e68f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7e6962
sar eax, 1
mov ebp, eax
jmp 0x7e68fe
add ebx, ebx
jne 0x7e68fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e68cc
inc ecx
add ebx, ebx
jne 0x7e690c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e68cc
add ebx, ebx
jne 0x7e6919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7e690e
jne 0x7e692a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7e690e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7e694c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7e693e
jmp 0x7e688e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7e694c
add edi, ecx
jmp 0x7e688e
pop esi
mov edi, esi
mov ecx, 0x64f2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7e696a
cmp byte [edi], 0x22
jne 0x7e696a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7e696f
lea edi, [esi + 0x3e3000]
mov eax, dword [edi]
or eax, eax
je 0x7e69e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3ebb28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3ebc74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7e699c
mov ecx, edi
jns 0x7e69cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3ebc7c]
or eax, eax
je 0x7e69e1
mov dword [ebx], eax
add ebx, 4
jmp 0x7e69b9
call dword [esi + 0x3ebc78]
mov ebp, dword [esi + 0x3ebc80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7e6a1b
sub esp, 0xffffff80
jmp 0x4e3cf1