joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b7ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10aa9fcc]
mov dword [ebp - 4], eax
jmp 0x101b7ee8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101b7efe
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x101b7efc
mov eax, dword [ebp - 4]
jmp 0x101b7f79
jmp 0x101b7ee0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101b7f76
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x101b7f38
mov edx, dword [ebp - 4]
mov eax, dword [0x10aa9fcc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10aa9fcc], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x101b8480
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x101b84c9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x101b84c9
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x101b84c9
xor eax, eax
jmp 0x101b850a
mov dword [ebp - 4], 1
jmp 0x101b84db
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x101b8505
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x101b8503
xor eax, eax
jmp 0x101b850a
jmp 0x101b84d2
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x101b91c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.101b91a4
pop esi
leave
ret 8
Function at 0x53f4c6
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], 0x44dba0
mov dword [esp], 0x4ef4e4
call fcn.00557056
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dword [0x4f2608]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x53f6a6
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
lea ebp, [ebx + 0x70]
mov dword [esp], ebx
call fcn.00557d36
lea eax, [ebx + 0x68]
mov dword [ebx + 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
lea eax, [ebx + 8]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x18], 0
mov dword [esp], ebp
call fcn.00557236
test eax, eax
mov esi, eax
je 0x53f5f8
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [fcn.004f25e8]
sub esp, 4
mov dword [ebx + 0x1c], 0xffffffff
mov eax, esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x88]
mov dword [esp + 8], 0x4724d0
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0053ef76
test eax, eax
mov esi, eax
jne 0x53f6d6
mov eax, dword [ebx + 0xb4]
test al, 0x20
je 0x53f656
mov edx, eax
and edx, 0xffffffdf
test al, 1
mov dword [ebx + 0xb4], edx
jne 0x53f746
and eax, 0x40
mov ecx, eax
mov eax, edx
test ecx, ecx
je 0x53f656
mov edx, dword [ebx + 0x8c]
sub dword [edx + 4], 1
nop
lea esi, [esi]
or al, 0x80
mov dword [ebx + 0xb4], eax
mov dword [esp], 0x4ef4c0
call fcn.00557276
mov edi, dword [0x4ef4dc]
cmp edi, dword [0x4ef4d8]
mov eax, dword [0x4ef4e0]
je 0x53f6e6
mov dword [eax + edi*4], ebx
add edi, 1
mov dword [esp], 0x4ef4c0
mov dword [0x4ef4dc], edi
call fcn.005572c6
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [fcn.004f2694]
mov dword [esp + 0x40], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00540386
mov dword [esp], 0x4ef4c0
mov esi, 0xe
call fcn.005572c6
mov esi, esi
lea edi, [edi]
mov dword [esp], ebp
call fcn.00557256
jmp 0x53f5d8
add edi, 8
mov eax, dword [0x4ef4e0]
lea ecx, [edi*4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], ecx
call fcn.0053d4c6
test eax, eax
je 0x53f6bc
mov edx, dword [0x4ef4d8]
mov dword [0x4ef4e0], eax
cmp edi, edx
jle 0x53f733
mov ecx, dword [esp + 0x1c]
lea edx, [eax + edx*4]
add ecx, eax
nop
lea esi, [esi]
mov dword [edx], 0
add edx, 4
cmp ecx, edx
jne 0x53f726
mov dword [0x4ef4d8], edi
mov edi, dword [0x4ef4dc]
jmp 0x53f67d
mov eax, edx
jmp 0x53f656
Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0xcf1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cf11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcf107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf106a
add dl, dl
jne 0xcf1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf10dc
xor eax, eax
add dl, dl
jne 0xcf1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf117d
add dl, dl
jne 0xcf10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcf10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcf1075
mov eax, 1
add dl, dl
jne 0xcf10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf10e1
sub eax, ebx
mov ebx, 1
jne 0xcf1128
mov ecx, 1
add dl, dl
jne 0xcf110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcf113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf1136
cmp eax, 0x7d00
jae 0xcf116d
cmp eax, 0x500
jb 0xcf1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf1075
cmp eax, 0x7f
ja 0xcf1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcf119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xcf1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4258d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405f56
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4258d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4258d0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x4031c9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41bd9c]
sub esi, dword [0x41fda8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x425840], eax
jle 0x403327
push dword [0x41fda4]
call fcn.004031b2
push ebx
push ebx
push dword [0x41fda8]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41bd98], esi
mov dword [0x40bd0c], ebx
mov ebp, 0x413d98
mov eax, dword [0x41fda0]
sub eax, dword [0x41fda4]
mov edi, 0x4000
cmp eax, edi
jg 0x40323e
mov edi, eax
push edi
mov esi, 0x41bda0
push esi
call fcn.00403180
test eax, eax
je 0x403339
add dword [0x41fda4], edi
mov dword [0x413d28], esi
mov dword [0x413d2c], edi
cmp dword [0x4257ec], ebx
je 0x403295
cmp dword [0x4258c0], ebx
jne 0x403295
mov eax, dword [0x41bd98]
sub eax, dword [0x41bd9c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41fda8]
mov dword [0x40bd0c], eax
call fcn.004030e1
pop ecx
mov ecx, 0x413d10
mov dword [0x413d30], ebp
mov dword [0x413d34], 0x8000
call fcn.0040678d
test eax, eax
jl 0x40333e
mov esi, dword [0x413d30]
sub esi, ebp
je 0x4032f3
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403343
cmp esi, dword [esp + 0x10]
jne 0x403343
add dword [0x41fda8], esi
cmp dword [0x413d2c], ebx
jne 0x403264
jmp 0x4032ff
cmp dword [0x413d2c], ebx
jne 0x40333e
cmp edi, ebx
je 0x40333e
mov eax, dword [0x41bd9c]
mov ecx, eax
sub ecx, dword [0x41fda8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403228
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004030e1
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403331
push 0xfffffffffffffffd
pop eax
jmp 0x403331
push 0xfffffffffffffffe
jmp 0x403340
Function at 0x403347
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403373
mov ecx, dword [0x425838]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x41bd9c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004031c9
cmp eax, edi
jl 0x40346c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x403468
cmp dword [ebp - 4], esi
jne 0x403468
push dword [ebp + 8]
add dword [0x41bd9c], esi
call fcn.004031c9
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40346b
cmp dword [ebp + 0x10], edi
jne 0x403437
cmp dword [ebp + 8], edi
jle 0x403463
mov esi, 0x41bda0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4033e7
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x403468
cmp edi, dword [ebp - 4]
jne 0x403468
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403433
cmp dword [ebp + 0x14], edi
jne 0x403433
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41bd9c], eax
cmp dword [ebp + 8], 0
jg 0x4033da
jmp 0x403463
push 0xfffffffffffffffe
jmp 0x40346a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403442
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x403468
mov eax, dword [ebp - 4]
add dword [0x41bd9c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40346b
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40599a
Capabilities:
Create process on windows

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

Function at 0x405b11
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 0x405b2e
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405b31
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405ba4
test edi, edi
jne 0x405b6b
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b9e

Function at 0x405ba8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c19
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c08
cmp dword [ebp + 0x14], 1
je 0x405c0a
cmp dword [ebp + 0x14], 2
je 0x405c0a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d7d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405da2
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405d99
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405e17
cmp dword [0x423b78], ebx
je 0x405e17
cmp byte [0x424b80], bl
je 0x405de1
cmp dword [0x40a058], 0xffffffff
jne 0x405dea
push 4
push 0x40000000
push 0x424b80
call fcn.00405b31
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x405e17
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405e17
push esi
push 0x408c48
mov esi, 0x423b80
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422238
push esi
call fcn.00405cc1
push esi
call fcn.00405aa0
mov edi, eax
test edi, edi
jne 0x406035
xor eax, eax
jmp 0x40608d
push edi
call fcn.00405ce3
test byte [0x425848], 0x80
je 0x40604e
mov al, byte [edi]
test al, al
je 0x406031
cmp al, 0x5c
je 0x406031
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x40606e
push esi
call fcn.00405f2f
test eax, eax
je 0x406068
test byte [eax], 0x10
je 0x406092
push esi
call fcn.00405fed
push esi
call ebx
cmp eax, edi
jg 0x406059
push esi
call fcn.00405fc0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40608c
Function at 0x406342
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.00405f56
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406366
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40649f
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422638], 0x4c554e
mov edi, 0x400
mov ebp, 0x422638
je 0x4063aa
push 1
push 0
push esi
call fcn.00405b31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4064a5
cmp eax, edi
jg 0x4064a5
push edi
mov esi, 0x422f78
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4064a5
cmp eax, edi
jg 0x4064a5
push esi
push ebp
push str._s_s_r_n
push 0x422a38
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4257ec]
push dword [eax + 0x128]
push esi
call fcn.004060ec
push 4
push 0xc0000000
push esi
call fcn.00405b31
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40649f
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 0x406498
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406498
cmp edi, dword [esp + 0x18]
jne 0x406498
push str._Rename__r_n
push esi
call fcn.00406096
test eax, eax
jne 0x4064ac
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405cc1
add edi, 0xa
mov eax, edi
push ebx
push 0x422a38
add eax, esi
push eax
call fcn.00405aed
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x4258b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408cf4
add eax, 0xa
push eax
call fcn.00406096
test eax, eax
je 0x406463
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4064d3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4064c8
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x406465
Function at 0x4066ff
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42377c], 0
jne 0x40673a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406713
mov dword [ecx*4 + 0x423778], eax
inc ecx
cmp ecx, 0x100
jl 0x40670e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406767
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x423778]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406748
not eax
pop ebp
ret 0xc
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
sub eax, 0xaa701bb5
or dword [eax + 0xb], ebp
sbb ecx, dword [esp + edx]
xchg edx, eax
dec edi
fistp dword [ebx]
sbb edx, dword [eax]
sbb edx, ebp
adc dl, byte [ebx]
sbb edx, dword [edx - 0x6ce7e8ea]
sbb dl, byte [eax - 0x1178ad70]
adc byte [ebx], bl
aad 0x12
adc ebx, dword [ebx]
adc al, 0x15
push ss
pop ss
sbb byte [ebx + 0x5290901a], dl
xchg esi, ebp
nop
std
nop
nop
nop
nop
nop
nop
nop
pop ss
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0xf40c0c8]
push eax
add ecx, 0x40
nop
je 0x401735
inc eax
add byte [ecx - 1], dl
inc byte [eax - 0x5effbf3f]
lodsb al, byte [esi]
add ch, byte [esi]
add byte [ebx - 0x87af33c], al
je 0x401725
push eax
push 0x1f9d54
pop ss
adc eax, 0xb440c164
cmp esp, eax
stc
push 0xffffffffffffffa4
call dword [sym.imp.MSVCRT.dll_exit]
nop

Function at 0x402698
Capabilities:
Access peb ldr_data

Disassembly:
pop esi
repne movsb byte es:[edi], byte [esi]
call 0x402698
mov ebx, 0xa2a1de0
push 0x9dbd95a6
call ebp
cmp al, 6
jl 0x402693
cmp bl, 0xe0
jne 0x402693
mov ebx, 0x6f721347
push 0
push ebx
call ebp
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
push eax

Function at 0x4026af
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
call fcn.00402671
and sp, 0xfffc
xor esi, esi
mov esi, dword fs:[esi + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov si, 0x1aaa
pop edi
mov ebp, dword [edi + 8]
push dword [edi]
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebp + ebx + 0x78]
add ebx, ebp
mov ecx, dword [ebx + 0x18]
jcxz 0x4026ca
mov edi, dword [ebx + 0x20]
add edi, ebp
mov edi, dword [edi + ecx*4 - 4]
add edi, ebp
xor eax, eax
cdq
xor dl, byte [edi]
ror dx, 1
scasb al, byte es:[edi]
jne 0x4026ed
dec ecx
cmp dx, si
je 0x402704
jcxz 0x4026ca
jmp 0x4026df
mov esi, dword [ebx + 0x24]
add esi, ebp
movzx esi, word [esi + ecx*2]
mov eax, dword [ebx + 0x1c]
add eax, ebp
mov edi, dword [eax + esi*4]
add edi, ebp
xor esi, esi
cmp dx, 0xf0da
je 0x40273b
cmp dx, 0x2769
je 0x402747
push 0x32
push 0x33656c6f
push esp
call edi
xchg ebp, eax
mov si, 0xf0da
jmp 0x4026d0
push esi
call edi
mov si, 0x2769
jmp 0x4026d0
push 0xd422046e
push 0x99efeca1
push 0x499272b9
push 0x6c44df74
mov eax, esp
push 0x9673794f
push 0xc001e39e
dec dword [esp + 2]
push 0x11d23391
push 0x96749377
mov ebx, esp
push esi
push esp
push eax
push 0x17
push esi
push ebx
call edi
pop ebx
push 0x5520676f
push 0x7420706f
push 0x686e6421
xchg esi, eax
mov esi, esp
push eax
lodsb al, byte [esi]
push ax
cmp al, 0x55
jne 0x402794
mov ecx, esp
xor eax, eax
push eax
push eax
push ecx
push ebx
mov edx, dword [ebx]
mov ecx, dword [edx + 0x50]
call ecx
int3
Function at 0x4066e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xchg dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x406718
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, 0x1675fff8
mov esi, dword [0x82c1d8]
call esi
test dword [edx + 0x74], edi
fdivp st(7)
salc
add eax, 0xafc80
sbb dword [ebp - 0x3d], ebx
invalid
mov ebx, dword [eax + eax*2 + 0x1174c085]
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
adc eax, dword [esi + 0x40]
add byte [eax], al
add byte [eax], al
xor eax, eax
pop esi
pop ebp
or dl, byte [eax + 0xd909090]
nop
nop
nop
nop
nop
pushfd