joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405750
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x40579f
jmp 0x405887
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.00410e11
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x70050
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4057ea
jmp 0x405887
mov dword [ebp - 4], 0
jmp 0x4057fc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x40586a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x3c]
cmp edx, dword [ebp - 0xc]
jl 0x405868
jg 0x405834
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x405868
mov eax, dword [ebp - 4]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x40]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x44]
mov dword [ebp - 0x1c], ecx
jmp 0x4057f3
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
adc eax, dword [ebp - 0x1c]
push 0
push 0x200
push eax
push edx
call fcn.0041db10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x4058a6
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004111dc
add esp, 4
mov dword [ebp - 0x24], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4058c0
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 0x40590c
jmp 0x4059af
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.00410e11
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.00417a40
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.004182d0
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 0x4059c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x214], 0
push 0x44
push 0
lea eax, [ebp - 0x468]
push eax
call fcn.00417a40
add esp, 0xc
mov dword [ebp - 0x468], 0x44
xor ecx, ecx
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x470], ecx
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00417a40
add esp, 0xc
push 0x103
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00411e2d
add esp, 0x10
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00417a40
add esp, 0xc
push 0x103
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.00411e2d
add esp, 0x10
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x468]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 1
jne 0x405adf
mov dword [ebp - 0x46c], 0
jmp 0x405aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004109f5
mov esp, ebp
pop ebp
ret

Function at 0x405b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417a40
add esp, 0xc
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call fcn.00405630
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.004054c0
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x405bfa
xor eax, eax
jmp 0x405c0d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00405c20
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004109f5
mov esp, ebp
pop ebp
ret

Function at 0x4077c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret
Function at 0x407ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0041ca50
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x426eb0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00410b65
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407b0c
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
xor eax, eax
jmp 0x407bd5
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00411639
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041185b
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00411639
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.004077c0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.00411b69
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x407b92
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.00407810
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x407b47
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407920
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.00410c46
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x407bd0
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
xor eax, eax
jmp 0x407bd5
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.004109f5
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4081c4
jmp 0x408280
mov dword [ebp - 0x18], 0
jmp 0x4081d6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x4081f3
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], cl
jmp 0x4081cd
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00410e11
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov edx, dword [0x42b060]
mov dword [ecx], edx
mov al, byte [0x42b064]
mov byte [ecx + 4], al
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
add eax, 7
push eax
call fcn.004182d0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 7
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x408275
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x408279
jmp 0x408280
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x408298
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004111dc
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x408ad0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0041ca50
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x42dfb4], 0
push 0x426ea8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00410b65
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408b23
xor eax, eax
jmp 0x408bc8
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x408b43
xor eax, eax
jmp 0x408bc8
mov ecx, dword [ebp - 0x1014]
cmp ecx, dword [ebp - 0xc]
jae 0x408ba8
push 0
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408b73
jmp 0x408ba8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00411ce8
add esp, 0x10
mov edx, dword [ebp - 0x1014]
add edx, dword [ebp - 4]
mov dword [ebp - 0x1014], edx
mov eax, dword [ebp - 0x1014]
mov dword [0x42dfb4], eax
jmp 0x408b43
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410c46
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x408bc3
xor eax, eax
jmp 0x408bc8
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004109f5
mov esp, ebp
pop ebp
ret
Function at 0x408be0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417a40
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x408c2f
cmp dword [ebp + 0xc], 0
jne 0x408c39
jmp 0x408d46
cmp dword [ebp + 0x10], 0
je 0x408c8e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x408c57
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x408c98
jmp 0x408d46
cmp dword [0x42dfb8], 3
jne 0x408cce
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426a4c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004114fe
add esp, 0xc
jmp 0x408ce0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004114fe
add esp, 0xc
push 0x426a50
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410b7c
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x408d1a
jmp 0x408d46
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411b69
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00410c46
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004109f5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
xor ecx, ecx
cmp dword [ebp - 8], 0xffffffff
setne cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x408fcd
xor eax, eax
jmp 0x409038
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x408fde
mov edx, dword [ebp - 0xc]
xor edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x408fef
mov ecx, dword [ebp - 0xc]
xor ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x409000
mov eax, dword [ebp - 0xc]
xor eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20
je 0x409011
mov edx, dword [ebp - 0xc]
xor edx, 0x20
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40c8b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40c8c0
xor eax, eax
jmp 0x40ca5d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40ca1e
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 + 0x425ed0]
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 + 0x425ed0]
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 + 0x425ed0]
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 + 0x425ed0]
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 + 0x425ed0]
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 + 0x425ed0]
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 + 0x425ed0]
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 + 0x425ed0]
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 0x40c8c9
cmp dword [ebp + 0x10], 0
je 0x40ca57
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 + 0x425ed0]
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 0x40ca24
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40ca60
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 + 0x425ed0]
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 + 0x425ed0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x40da20
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 0x40da6f
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 + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40da65
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40dac9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40da8f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004182d0
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40f2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40f2bb
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40f2c5
mov eax, 0x1000000
jmp 0x40f3db
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
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 0x40f2ee
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x40f35f
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x40f35f
mov ecx, dword [ebp - 0x18]
add ecx, 0x242
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x2e], 0
jne 0x40f33e
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x426368]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x40f393
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x40f393
mov eax, 0x2000000
jmp 0x40f3db
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040d700
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f3b9
mov eax, dword [ebp - 0xc]
jmp 0x40f3db
mov eax, dword [ebp - 4]
push eax
call fcn.0040ddd0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x40f3d9
mov eax, 0x200
jmp 0x40f3db
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc