joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dd80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x431015
lea edi, [esi - 0x30015]
push edi
or ebp, 0xffffffff
jmp 0x45dda2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45dda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45dd98
mov eax, 1
add ebx, ebx
jne 0x45ddbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45ddcc
jne 0x45ddeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ddeb
dec eax
add ebx, ebx
jne 0x45ddd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45ddb0
add ebx, ebx
jne 0x45dde7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45de3d
xor ecx, ecx
sub eax, 3
jb 0x45de03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45de72
sar eax, 1
mov ebp, eax
jmp 0x45de0e
add ebx, ebx
jne 0x45de0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45dddc
inc ecx
add ebx, ebx
jne 0x45de1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45dddc
add ebx, ebx
jne 0x45de29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45de1e
jne 0x45de3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45de1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45de5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45de4e
jmp 0x45dd9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45de5c
add edi, ecx
jmp 0x45dd9e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45de7a
cmp byte [edi], 7
jne 0x45de7a
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 0x45de7f
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45def7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x64084]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x64124]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45deac
mov ecx, edi
jns 0x45dedb
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 + 0x64128]
or eax, eax
je 0x45def1
mov dword [ebx], eax
add ebx, 4
jmp 0x45dec9
call dword [esi + 0x64138]
mov ebp, dword [esi + 0x6412c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x45df2b
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x4f172a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004f17a9
jae 0x4f1736
xor ecx, ecx
call fcn.004f17a9
jae 0x4f1760
xor eax, eax
call fcn.004f17a9
jae 0x4f1771
mov al, 0x10
call fcn.004f17a9
adc al, al
jae 0x4f1752
jne 0x4f179e
stosb byte es:[edi], al
jmp 0x4f1737
call fcn.004f17b5
dec ecx
loop 0x4f177d
mov eax, ebp
call fcn.004f17b3
jmp 0x4f179f
lodsb al, byte [esi]
shr eax, 1
je 0x4f17c5
adc ecx, 2
mov ebp, eax
jmp 0x4f179f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004f17b3
cmp eax, 0x7d00
jae 0x4f179d
cmp eax, 0x500
jae 0x4f179e
cmp eax, 0x7f
ja 0x4f179f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f1737
pop ebp
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e02
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x423f10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x423f10], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x402eb2
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ecf
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402ede
mov ebx, 0x40f01c
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ef3
mov ecx, dword [0x423eb8]
add ecx, eax
push ecx
call fcn.004030d6
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030a4
test eax, eax
je 0x403092
test byte [ebp + 0x17], 0x80
je 0x403038
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40af90
mov dword [ebp - 0xc], eax
call fcn.00405eee
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40309a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f43
mov esi, dword [ebp + 0x14]
mov edi, 0x40b01c
push esi
push edi
call fcn.004030a4
test eax, eax
je 0x403092
sub dword [ebp + 0x14], esi
mov dword [0x40afa8], edi
mov dword [0x40afac], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40af90
mov dword [0x40afb0], ebx
mov dword [0x40afb4], eax
call fcn.00405f10
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403030
mov esi, dword [0x40afb0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f14], 1
mov edi, eax
je 0x402fe5
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fb2
cmp dword [ebp + 0x14], 0
jne 0x402fe5
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e23
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403025
cmp dword [ebp + 0x10], eax
jne 0x40300e
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403034
cmp dword [ebp - 0x10], esi
jne 0x403034
add dword [ebp - 4], esi
jmp 0x40301a
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40afb0]
cmp dword [ebp - 0x14], 1
je 0x40309a
jmp 0x402f66
cmp dword [ebp + 0x14], eax
jg 0x402f36
jmp 0x40309a
push 0xfffffffffffffffc
jmp 0x403094
push 0xfffffffffffffffe
jmp 0x403094
test edi, edi
jne 0x40307f
cmp dword [ebp + 0x14], 0
jle 0x40309a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40304d
mov esi, dword [ebp + 0x14]
mov edi, 0x40b01c
push esi
push edi
call fcn.004030a4
test eax, eax
je 0x403092
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403034
cmp esi, dword [ebp + 0x10]
jne 0x403034
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x40303c
cmp dword [ebp + 0x14], esi
jge 0x403087
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030a4
test eax, eax
jne 0x403097
push 0xfffffffffffffffd
pop eax
jmp 0x40309d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4052ef
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422468], 0x44
push eax
xor eax, eax
push 0x422468
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40532a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405686
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405404
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423ee8], eax
jmp 0x40559d
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405422
test eax, eax
je 0x405548
test byte [ebp + 0xc], 2
je 0x405548
mov esi, 0x421468
push edi
push esi
call fcn.00405aba
test ebx, ebx
je 0x40543f
push str..
push esi
call fcn.00405add
jmp 0x405445
push edi
call fcn.004055ea
cmp byte [edi], 0
jne 0x405453
cmp byte [0x421468], 0x5c
jne 0x40545e
push 0x409010
push edi
call fcn.00405add
push edi
call fcn.00405ad0
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40553e
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004055ce
cmp byte [eax], 0
je 0x4054a4
cmp byte [ebp - 0x18], 0
je 0x4054a4
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x4054bf
cmp byte [esi + 1], 0
je 0x40551d
cmp al, al
jne 0x4054bf
cmp byte [esi + 1], al
jne 0x4054bf
cmp byte [esi + 2], 0
je 0x40551d
push esi
push ebx
call fcn.00405aba
test byte [ebp - 0x148], 0x10
je 0x4054e4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40551d
push dword [ebp + 0xc]
push edi
call fcn.004053d0
jmp 0x40551d
push edi
call fcn.00405770
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405515
test byte [ebp + 0xc], 4
je 0x40550d
push edi
push 0xfffffffffffffff1
call fcn.00404e23
push 0
push edi
call fcn.00405807
jmp 0x40551d
inc dword [0x423ee8]
jmp 0x40551d
push edi
push 0xfffffffffffffff2
call fcn.00404e23
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405482
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405548
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40559d
cmp dword [ebp - 8], esi
jne 0x40555d
inc dword [0x423ee8]
jmp 0x40559d
push edi
call fcn.00405ddb
test eax, eax
je 0x40559d
push edi
call fcn.004055a3
push edi
call fcn.00405770
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405595
test byte [ebp + 0xc], 4
je 0x405555
push edi
push 0xfffffffffffffff1
call fcn.00404e23
push esi
push edi
call fcn.00405807
jmp 0x40559d
push edi
push 0xffffffffffffffe5
call fcn.00404e23
pop edi
pop esi
leave
ret 8
Function at 0x405686
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421868
push esi
call fcn.00405aba
push esi
call fcn.00405637
mov edi, eax
test edi, edi
jne 0x4056a7
xor eax, eax
jmp 0x4056f9
push edi
call fcn.00405d42
test byte [0x423e78], 0x80
je 0x4056c0
mov al, byte [edi]
test al, al
je 0x4056a3
cmp al, 0x5c
je 0x4056a3
sub edi, esi
push esi
call fcn.00405ad0
cmp eax, edi
push esi
jle 0x4056e3
call fcn.00405ddb
test eax, eax
je 0x4056db
test byte [eax], 0x10
je 0x4056a3
push esi
call fcn.004055ea
jmp 0x4056c2
call fcn.004055a3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405770
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40578c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40578f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4057be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405803
mov eax, edi
dec edi
test eax, eax
jne 0x4057c9
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057fd
Function at 0x405807
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e02
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40582b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405964
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4225f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4225f0
je 0x40586f
push 1
push 0
push esi
call fcn.0040578f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40596a
cmp eax, edi
jg 0x40596a
mov esi, 0x422068
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40596a
cmp eax, edi
jg 0x40596a
push esi
push ebp
push str._s_s_r_n
push 0x421c68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405aee
push 4
push 0xc0000000
push esi
call fcn.0040578f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405964
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40595d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40595d
cmp edi, dword [esp + 0x18]
jne 0x40595d
push str._Rename__r_n
push esi
call fcn.004056fe
test eax, eax
jne 0x405971
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405aba
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c68
push eax
call fcn.0040574a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423ef0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.004056fe
test eax, eax
je 0x405928
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405998
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40598d
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40592a
Function at 0x405e78
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb2
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 0x405e8e
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e89
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405ee7
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 0x405eca
pop edi
pop esi
not eax
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402e20
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push esi
push str.CCheck::InitCRCTable
mov esi, ecx
call fcn.004060c0
add esp, 4
lea edx, [esi + 8]
xor ecx, ecx
pop esi
mov eax, ecx
shr eax, 1
test cl, 1
je 0x402e46
xor eax, 0xedb88320
test al, 1
je 0x402e53
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e55
shr eax, 1
test al, 1
je 0x402e62
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e64
shr eax, 1
test al, 1
je 0x402e71
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e73
shr eax, 1
test al, 1
je 0x402e80
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e82
shr eax, 1
test al, 1
je 0x402e8f
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e91
shr eax, 1
test al, 1
je 0x402e9e
shr eax, 1
xor eax, 0xedb88320
jmp 0x402ea0
shr eax, 1
test al, 1
je 0x402ead
shr eax, 1
xor eax, 0xedb88320
jmp 0x402eaf
shr eax, 1
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x402e38
mov eax, 1
ret
Function at 0x404510
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
push ebp
push esi
push edi
push 0x4177e4
mov ebx, ecx
call fcn.004060c0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
xor ecx, ecx
add esp, 4
cmp esi, 1
setne cl
mov dword [eax], 0
lea esi, [ebp + 4]
dec ecx
mov dword [edi], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x404583
jmp 0x404560
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [ecx + 4]
test eax, eax
je 0x404571
call fcn.004067f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
je 0x404560
mov ecx, ebp
call fcn.004087b0
test eax, eax
je 0x4046e3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4046cb
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x20], esi
je 0x404661
push esi
mov ecx, ebp
call fcn.00408880
test eax, eax
je 0x4046b1
lea esp, [esp]
cmp dword [esp + 0x18], 1
jne 0x40462d
mov ebp, dword [esi + 0xac]
cmp ebp, 0xffffffff
jne 0x4045e6
xor ecx, ecx
jmp 0x4045ec
mov ecx, dword [esi + 0xb0]
cmp ebp, 0xffffffff
je 0x404618
test ebp, ebp
jle 0x404618
xor esi, esi
mov eax, dword [edi]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebx + edx*4 + 8]
inc ecx
inc esi
cmp esi, ebp
mov dword [edi], eax
jl 0x4045f7
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push esi
mov ecx, ebp
call fcn.00408880
test eax, eax
jne 0x4045d0
jmp 0x4046b1
mov eax, dword [esi + 0xac]
cmp eax, 0xffffffff
mov dx, word [esi + 0x90]
jne 0x40464e
push edx
push edi
xor ecx, ecx
push eax
push ecx
mov ecx, ebx
call fcn.00402f20
jmp 0x40461c
mov ecx, dword [esi + 0xb0]
push edx
push edi
push eax
push ecx
mov ecx, ebx
call fcn.00402f20
jmp 0x40461c
cmp dword [esp + 0x18], 1
jne 0x4046ef
mov ebp, dword [esi + 0xac]
cmp ebp, 0xffffffff
jne 0x40467b
xor esi, esi
jmp 0x404681
mov esi, dword [esi + 0xb0]
cmp ebp, 0xffffffff
je 0x4046ad
test ebp, ebp
mov ecx, esi
jle 0x4046ad
xor esi, esi
mov edi, edi
mov eax, dword [edi]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebx + edx*4 + 8]
inc ecx
inc esi
cmp esi, ebp
mov dword [edi], eax
jl 0x404690
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test eax, eax
je 0x4045a8
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
inc edx
mov ecx, ebp
mov dword [eax], edx
call fcn.004087b0
test eax, eax
jne 0x404592
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
mov eax, dword [esi + 0xac]
cmp eax, 0xffffffff
mov cx, word [esi + 0x90]
jne 0x404710
push ecx
push edi
xor esi, esi
push eax
push esi
mov ecx, ebx
call fcn.00402f20
jmp 0x4046b1
mov esi, dword [esi + 0xb0]
push ecx
push edi
push eax
push esi
mov ecx, ebx
call fcn.00402f20
jmp 0x4046b1
Function at 0x4062b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
test eax, eax
je 0x406354
push esi
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x218]
lea ecx, [esp + 0x30]
push ecx
push eax
push edx
call fcn.0040ace2
mov eax, dword [esi + 0x218]
push eax
call fcn.00409eec
mov edx, dword [esi]
add esp, 0x10
push 0
lea ecx, [esi + 0x210]
push ecx
shl eax, 1
mov dword [ecx], 0
mov ecx, dword [esi + 0x218]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x406354
push str.CFileEx::Write
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.._src_file2.cpp
push 0xbb
lea ecx, [esp + 0x20]
call fcn.004065f0
mov ecx, dword [eax]
mov dword [esp], ecx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov edx, dword [eax + 0xc]
push 0x419e94
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], edx
call fcn.0040a733
mov eax, 1
add esp, 0x20
ret

Function at 0x406370
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x214]
push 0x400
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 0x214]
test eax, eax
je 0x406421
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esi + 0x218]
push eax
call fcn.0040ace2
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x218]
add esp, 0xc
push 0
lea ecx, [esi + 0x210]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406421
push str.CFileEx::Write
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.._src_file2.cpp
push 0xe3
lea ecx, [esp + 0x24]
call fcn.004065f0
mov edx, dword [eax]
mov dword [esp + 4], edx
mov ecx, dword [eax + 4]
mov dword [esp + 8], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
push 0x419e94
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x18], eax
call fcn.0040a733
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x4064b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ecx
push 0
lea eax, [ecx + 0x210]
push eax
mov eax, dword [ecx]
push 2
lea edx, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret

Function at 0x407640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40764b
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4