joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40966f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x409758
mov eax, dword [ebp - 0xc]
dec eax
je 0x40973b
dec eax
jne 0x409758
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x4096ce
cmp byte [ebp - 0x1e], 1
jne 0x4096ce
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x409737
dec eax
je 0x409733
dec eax
je 0x409711
dec eax
jne 0x409758
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x409705
dec eax
je 0x4096f9
dec eax
jne 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x409758
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40972f
dec eax
je 0x40972b
dec eax
jne 0x409758
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x409758
push 0x3c
jmp 0x409757
push 0x32
jmp 0x409757
push 0x14
jmp 0x409757
push 5
jmp 0x409757
cmp dword [ebp - 0x14], 0
je 0x409755
cmp dword [ebp - 0x14], 0xa
je 0x409751
cmp dword [ebp - 0x14], 0x5a
jne 0x409758
push 0x28
jmp 0x409757
push 0x1e
jmp 0x409757
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x40a6c1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40a73d
push 9
call esi
test bl, al
je 0x40a73d
push 0x11
call esi
test bl, al
jne 0x40a73d
push 0x10
call esi
test bl, al
jne 0x40a73d
push 0x12
call esi
test bl, al
jne 0x40a73d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push 0x40f41c
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40a73d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40a73d
xor eax, eax
jmp 0x40a7bf
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40a766
push 0x11
call esi
test bl, al
jne 0x40a75e
push 0x10
call esi
test bl, al
jne 0x40a75e
push 0x12
call esi
test bl, al
je 0x40a766
push 1
push ebp
call fcn.0040a67a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40a77c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40a7bc
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40a7bc
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40a7bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40a7bc
dec esi
push esi
push dword [0x411834]
call fcn.0040d53a
test eax, eax
je 0x40a7bc
mov eax, dword [eax + 8]
jmp 0x40a7be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40a881
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x411744], eax
cmp eax, edi
je 0x40a8b4
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x411748], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x411740], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a8f2
cmp dword [ebp - 0xc], 1
je 0x40a903
cmp dword [ebp - 0xc], 2
jne 0x40a8f2
cmp dword [ebp - 0x18], 5
jb 0x40a903
jne 0x40a8f2
cmp dword [ebp - 0x14], edi
jne 0x40a8f2
mov dword [0x411740], edi
cmp dword [0x411740], edi
je 0x40a909
call fcn.0040a7c8
test eax, eax
jne 0x40a909
mov dword [0x411740], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40b4ee
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40b517
test byte [esp + 8], 2
je 0x40b50b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b519
xor eax, eax
ret 8

Function at 0x40b52a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40b59a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40b57c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40b57b
cmp dl, 0x5c
je 0x40b57b
cmp dl, 0x2f
jne 0x40b586
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40b569
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40b59c
xor eax, eax
leave
ret 4

Function at 0x40b670
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40b6a5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x40ba50
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x40ba97
cmp byte [esi], al
je 0x40ba97
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4118d4]
push eax
push ecx
call fcn.0040d53a
test eax, eax
je 0x40bac5
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x40baa0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ba85
sub ecx, edi
push ecx
push esi
push eax
call fcn.0040bc10
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40baa0
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x40bad0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40bb29
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40bb28
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4118d4]
push eax
push ecx
call fcn.0040d53a
test eax, eax
je 0x40bb24
cmp dword [eax + 4], 0
je 0x40bb12
push esi
push edi
push eax
call fcn.0040bc10
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x40bb30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4118d4]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040d53a
mov esi, eax
test esi, esi
je 0x40bbf7
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40bbaf
cmp byte [ecx], 0
je 0x40bbaf
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x40bb97
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40bb80
sub eax, edi
push eax
push ecx
push esi
call fcn.0040bc10
mov dword [esp + 0xc], eax
jmp 0x40bbae
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40bb97
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x40bbd2
push 2
push 0x40f504
push esi
call fcn.0040bc10
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40f504
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
Function at 0x40bc10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40bc45
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40bcba
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40bca7
dec ecx
je 0x40bc92
sub ecx, 2
je 0x40bc7f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040b670
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40bce7
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x40c930
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x40cb3e
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40cb3d
mov eax, dword [0x4113d4]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40cb35
cmp dword [esp + 0x30], ebx
jl 0x40c9b1
mov eax, dword [esp + 0x2c]
jg 0x40c9a2
test eax, eax
je 0x40c9b1
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x40c9c5
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40c9fd
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40c9fd
jg 0x40c9f5
cmp eax, dword [esp + 0x34]
jbe 0x40c9fd
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40cafc
mov edi, ebx
shr edi, 3
jmp 0x40ca30
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40f550]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40ca30
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40cb19
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40f550]
inc eax
dec edx
jne 0x40cb00
cmp ebx, 0x80000
je 0x40c9c1
mov edx, dword [0x4113d4]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x40cb70
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x4051a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call fcn.0040446c
test eax, eax
jle 0x4051dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x4051e6
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call fcn.0040446c
test eax, eax
jle 0x405211
mov al, byte [esp]
jmp 0x405213
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406728
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406770
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004066dc
mov eax, dword [ebp - 4]
call fcn.00403444
push eax
call fcn.0040444c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406777
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406a78
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call fcn.004044ac
mov edx, ebx
mov eax, esp
call fcn.00404d78
add esp, 0x104
pop ebx
ret
Function at 0x406bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406ce1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call fcn.004043ec
test eax, eax
jne 0x406ccb
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c19
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406ccb
cmp dword [ebp - 0xc], 0
jne 0x406c2e
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406ccb
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403450
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call fcn.004043ec
cmp eax, 0xea
je 0x406be5
test eax, eax
jne 0x406ccb
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c75
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406ccb
jmp 0x406c75
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406c88
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406c72
cmp dword [ebp - 8], 7
jne 0x406c97
cmp dword [ebp - 0xc], 0
je 0x406c97
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403520
cmp dword [ebp - 8], 7
jne 0x406cbe
cmp dword [ebp - 0xc], 0
je 0x406cbe
lea eax, [ebp - 0x10]
call fcn.00403450
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ce8
lea eax, [ebp - 0x10]
call fcn.00403198
ret

Function at 0x4074ac
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4074c8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4074ca
shr eax, 1
dec edx
jne 0x4074bb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4074b4
pop esi
ret

Function at 0x4074f7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x407503
call fcn.004074ac
push 1
push 0x40b558
call fcn.00404424
mov eax, edi
test esi, esi
je 0x40752e
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407509
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40897c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jle 0x40899d
mov eax, esi
mov edx, 0x40a1c8
mov ecx, 0x40
call fcn.0040270c
je 0x4089a2
call fcn.00408914
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x4089c1
cmp edi, eax
jne 0x4089c1
cmp dword [ebx], 0xcc
je 0x4089c6
call fcn.00408914
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.00407534
cmp eax, dword [ebx + 0xc]
jne 0x4089ed
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x4089f2
call fcn.00408914
mov bl, 0xcc
mov esi, 0x40b95c
cmp ebp, dword [esp]
jb 0x408a03
call fcn.00408914
mov eax, ebp
call fcn.00404cac
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.00403278
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x4089f9
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408c98
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, eax
mov esi, edx
dec esi
test esi, esi
jl 0x408cf5
inc esi
xor ebx, ebx
cmp ebx, 1
jne 0x408cbe
mov eax, dword [ebp - 4]
push eax
call fcn.004044dc
jmp 0x408ccc
cmp ebx, 1
jle 0x408ccc
mov eax, dword [ebp + 8]
push eax
call fcn.004044dc
mov eax, edi
call fcn.00403444
push eax
call fcn.00404414
test eax, eax
jne 0x408cf5
call fcn.00404464
cmp eax, 2
je 0x408cf5
call fcn.00404464
cmp eax, 3
je 0x408cf5
inc ebx
dec esi
jne 0x408cae
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4090b4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x4091a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4091bc
push esi
push 0x4091c8
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403340
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403444
push eax
push 0
call fcn.0040440c
test eax, eax
jne 0x409138
mov al, 0x62
call fcn.00408d00
mov eax, dword [ebp - 0x58]
push eax
call fcn.004043f4
jmp 0x40914f
push ebx
call fcn.0040456c
push ebx
call fcn.00404534
push 1
push 0
push 0
push 0
push ebx
call fcn.0040455c
test eax, eax
jne 0x409143
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call fcn.00404554
dec eax
je 0x40914f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00404444
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004043f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091ab
lea eax, [ebp - 8]
call fcn.00403198
ret
Function at 0x409254
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409340
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406aa4
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x409358
call fcn.00408adc
push 0
mov eax, dword [ebp - 4]
call fcn.00403444
push eax
call fcn.004043fc
test eax, eax
jne 0x40930e
call fcn.00404464
mov ebx, eax
cmp ebx, 0xb7
je 0x409274
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004088d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c2c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00406f6c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.004088a4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045a8
call fcn.00405828
call fcn.00402eb4
jmp 0x409274
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409347
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409368
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call fcn.00404494
mov ebx, edi
push 0x1c
push esi
push ebx
call fcn.004044fc
test eax, eax
je 0x40941c
jmp 0x409411
cmp dword [esi + 0x10], 0x1000
jne 0x4093fd
test byte [esi + 0x15], 1
jne 0x4093fd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4093bc
cmp eax, 2
je 0x4093bc
cmp eax, 0x10
je 0x4093bc
cmp eax, 0x20
jne 0x4093d1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call fcn.004044f4
test eax, eax
je 0x4093d1
mov bl, 1
xor ebp, ebp
jmp 0x4093e2
mov eax, dword [esi]
add eax, ebp
call fcn.00409360
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4093d5
test bl, bl
je 0x4093fd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call fcn.004044f4
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call fcn.004044fc
test eax, eax
je 0x40941c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409394
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x26c4dfb
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x39ef302b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219