joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402be0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42fc6c
lea eax, [esp + 0x10]
push 0x454268
push eax
call fcn.00416a1c
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x402d11
push 2
push 0
push eax
call fcn.004173a4
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.004175c6
mov esi, eax
add esp, 4
push esi
call fcn.0041769e
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.004173a4
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.0041729d
add esp, 0x10
cmp esi, eax
jne 0x402cf3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004172e6
add esp, 4
call fcn.004172f8
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x430728]
fmul qword [0x430720]
fadd qword [0x430718]
call fcn.00418e30
cmp esi, eax
jl 0x402cf3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00402b90
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00416cca
add esp, 4
push 0x454268
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x42fd04
lea edx, [esp + 0x10]
push 0x454268
push edx
call fcn.00416a1c
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x402d11
push eax
push esi
push 1
push edi
call fcn.00416bd1
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402d04
push eax
call fcn.00416cca
add esp, 4
test edi, edi
je 0x402d11
push edi
call fcn.00416f14
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402d20
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
sub esp, 0x480
mov eax, dword [0x432070]
xor eax, esp
mov dword [esp + 0x478], eax
push edi
xor eax, eax
push 0x62
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00418590
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x27a]
push eax
mov word [esp + 0x27c], dx
call fcn.00418590
lea ecx, [esp + 0x27c]
add esp, 0xc
push ecx
call fcn.004058a0
lea eax, [esp + 0x274]
add esp, 4
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402d90
mov edx, dword [0x42fd30]
mov ecx, dword [0x42fd34]
mov dword [eax], edx
mov edx, dword [0x42fd38]
mov dword [eax + 4], ecx
mov ecx, dword [0x42fd3c]
mov dword [eax + 8], edx
mov edx, dword [0x42fd40]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x42fd44]
mov dword [eax + 0x10], edx
lea edx, [esp + 0x270]
push edx
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x200
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00418590
add esp, 0xc
push 1
lea ecx, [esp + 0xc]
call fcn.00402a00
add esp, 4
test eax, eax
jne 0x402e1a
push eax
lea ecx, [esp + 0xc]
call fcn.00402a00
add esp, 4
test eax, eax
je 0x402f0f
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x454170], cx
add eax, 2
test cx, cx
jne 0x402e20
movzx ecx, word [esp + 0x8c]
mov dword [0x454198], ecx
xor eax, eax
jmp 0x402e50
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x45419c], cx
add eax, 2
test cx, cx
jne 0x402e50
cmp dword [0x454474], 3
jne 0x402e99
push 0x104
push 0x454268
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42fd78
push 0x104
push 0x454268
call fcn.00416f80
add esp, 0xc
jmp 0x402ea9
push 0x454268
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x1b0]
push edx
push 0x104
push 0x454268
call fcn.00416f80
add esp, 0xc
push 0x42fd7c
push 0x104
push 0x454268
call fcn.00416f80
add esp, 0xc
call fcn.00402be0
push 0
push 0
push 0
push 0x402ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x208]
call fcn.00402af0
mov eax, edi
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x47c]
pop edi
xor ecx, esp
call fcn.004167a0
add esp, 0x480
ret
Function at 0x402ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x432070]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x248], 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403056
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], 0xffffffff
jmp 0x4031f0
push 0x22c
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.00418590
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
je 0x4030b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], 0xfffffffe
jmp 0x4031f0
mov dword [ebp - 0x250], 0
jmp 0x4030d0
mov eax, dword [ebp - 0x250]
add eax, 1
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
cmp edx, dword [ecx]
jge 0x403196
mov eax, dword [ebp - 0x250]
shl eax, 7
mov ecx, dword [ebp - 0x254]
lea edx, [ecx + eax + 4]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00417a4b
add esp, 8
test eax, eax
jne 0x403191
mov dword [ebp - 0x23c], 1
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
mov dword [ecx + 0xa0c], edx
lea eax, [ebp - 0x214]
push eax
push 0x40
mov ecx, dword [ebp - 0x254]
add ecx, 0xa14
push ecx
call fcn.00416e84
add esp, 0xc
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x230]
mov dword [edx + 0xa10], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0xa0c]
shl edx, 7
mov eax, dword [ebp - 0x254]
lea ecx, [eax + edx + 0x504]
push ecx
push 0x40
mov edx, dword [ebp - 0x254]
add edx, 0xa98
push edx
call fcn.00416e84
add esp, 0xc
jmp 0x403196
jmp 0x4030c1
cmp dword [ebp - 0x23c], 0
je 0x4031a1
jmp 0x4031f0
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
je 0x4031e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0x12
je 0x4031e1
mov dword [ebp - 0x248], 0xfffffffd
jmp 0x4031f0
jmp 0x4031f0
mov edx, 1
test edx, edx
jne 0x4030b5
cmp dword [ebp - 4], 0xffffffff
je 0x403200
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004167a0
mov esp, ebp
pop ebp
ret
Function at 0x403f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x403f88
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
jne 0x403fb1
xor eax, eax
jmp 0x404042
mov dword [ebp - 4], 0
push 0x42f6ac
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00416a1c
add esp, 0xc
test eax, eax
je 0x403fd5
xor eax, eax
jmp 0x404042
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
mov dx, word [0x42f6b4]
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
add ecx, 0xe
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xa], 0x36
mov edx, dword [ebp - 4]
push edx
push 1
push 0xe
lea eax, [ebp - 0x14]
push eax
call fcn.00416bd1
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call fcn.00416bd1
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00416cca
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4047d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 0x10], dx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x12], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x16], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x1a], 0
push 0x10000
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x1e
push ecx
call fcn.00418590
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x1001e], 0
push 0x10000
push 0
mov eax, dword [ebp - 4]
add eax, 0x10022
push eax
call fcn.00418590
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20822], 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x404790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4047b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404e40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x432070]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x82c], ecx
xor eax, eax
mov word [ebp - 0x820], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x81e]
push ecx
call fcn.00418590
add esp, 0xc
lea edx, [ebp - 0x820]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x404e8d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x404ec3
jmp 0x404fd9
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0041769e
add esp, 4
mov dword [ebp - 0x824], eax
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00417f10
add esp, 0xc
mov eax, dword [ebp + 0x10]
and eax, 0xff000000
shr eax, 0x18
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp + 0x10]
and ecx, 0xff0000
sar ecx, 0x10
mov byte [ebp - 0x1b], cl
mov edx, dword [ebp + 0x10]
and edx, 0xff00
sar edx, 8
mov byte [ebp - 0x1a], dl
mov eax, dword [ebp + 0x10]
and eax, 0xff
mov byte [ebp - 0x19], al
push 0
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x404f67
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
je 0x404fd2
mov dword [ebp - 0x830], 0x42edd8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x834], eax
mov ecx, dword [ebp - 0x834]
mov dword [ebp - 0x838], ecx
mov edx, dword [ebp - 0x830]
mov ax, word [edx]
mov word [ebp - 0x83a], ax
mov ecx, dword [ebp - 0x834]
mov dx, word [ebp - 0x83a]
mov word [ecx], dx
mov eax, dword [ebp - 0x830]
add eax, 2
mov dword [ebp - 0x830], eax
mov ecx, dword [ebp - 0x834]
add ecx, 2
mov dword [ebp - 0x834], ecx
cmp word [ebp - 0x83a], 0
jne 0x404f86
jmp 0x404fd9
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], 0
je 0x404ffe
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x828], edx
mov eax, dword [ebp - 0x828]
push eax
call fcn.00416f14
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004167a0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x432070]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00418590
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40583a
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x4057ec
cmp dword [ebp - 8], 0
jne 0x4057ec
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4057ec
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4057ff
cmp dword [ebp - 8], 2
jne 0x4057ff
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x405818
cmp dword [ebp - 8], 2
jae 0x405811
cmp dword [ebp - 8], 1
jne 0x405818
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x40583a
cmp dword [ebp - 8], 0
jne 0x40582d
mov dword [ebp - 4], 4
jmp 0x40583a
cmp dword [ebp - 8], 1
jne 0x40583a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004167a0
mov esp, ebp
pop ebp
ret

Function at 0x405910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40595c
jmp 0x4059ff
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
shr ecx, 9
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, 0x200
div esi
neg edx
sbb edx, edx
neg edx
add ecx, edx
shl ecx, 9
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041769e
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00418590
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00417f10
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405a10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405af0
lea ecx, [ebp - 0x24]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x405a65
jmp 0x405af0
mov dword [ebp - 0x34], 1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405aa7
jmp 0x405af0
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
or ecx, 2
mov dword [ebp - 0x10], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405ae9
jmp 0x405af0
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x405b00
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x405c05
cmp dword [ebp + 0xc], 0xa
jae 0x405c16
mov dword [ebp - 0x10], 0xffffffff
jmp 0x405ced
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.004167fe
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405b10
add esp, 0x14
test eax, eax
je 0x405ce6
push 0x42eb6c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00416a1c
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x405c7b
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x405ced
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.00416bd1
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x405ca7
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x405ced
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x1f4
div ecx
mov dword [ebp - 0x20], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
add edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00416bd1
add esp, 0x10
jmp 0x405ced
mov dword [ebp - 0x10], 0xfffffffd
cmp dword [ebp - 0x14], 0
je 0x405cff
mov edx, dword [ebp - 0x14]
push edx
call fcn.00416cca
add esp, 4
cmp dword [ebp - 4], 0
je 0x405d11
mov eax, dword [ebp - 4]
push eax
call fcn.004168c8
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x409400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409410
xor eax, eax
jmp 0x4095ad
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40956e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42deb0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42deb0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x42deb0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42deb0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42deb0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x42deb0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42deb0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42deb0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x409419
cmp dword [ebp + 0x10], 0
je 0x4095a7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42deb0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x409574
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x4095b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42deb0]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42deb0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x40a570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x40a5bf
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a5b5
mov edx, dword [ebp + 0x14]
mov byte [edx + 6], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40a619
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x10]
jbe 0x40a5df
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x14]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417f10
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret