joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405350
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 3
push 0
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40539d
xor eax, eax
jmp 0x4054dd
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4053c5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4054dd
mov ecx, dword [ebp - 4]
push ecx
call fcn.004107d2
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 4]
je 0x40541d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00410837
add esp, 4
xor eax, eax
jmp 0x4054dd
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 0x24], edx
jmp 0x405431
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jb 0x40549c
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp edx, ecx
je 0x40544c
jmp 0x405428
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x28], 1
jmp 0x405465
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x10]
jae 0x405492
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + ecx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
cmp eax, edx
je 0x405490
mov dword [ebp - 0x1c], 0
jmp 0x405492
jmp 0x40545c
cmp dword [ebp - 0x1c], 0
je 0x40549a
jmp 0x40549c
jmp 0x405428
cmp dword [ebp - 0x1c], 0
je 0x4054c8
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00416360
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00410837
add esp, 4
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4056a0
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.004157d0
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.00404fe0
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00404f00
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x40574a
xor eax, eax
jmp 0x40575d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.004054f0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret

Function at 0x406ed0
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 0x4071c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0041b750
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x427180
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410aaf
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40721d
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 0x4072e6
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410b8c
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.00410dae
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00410b8c
add esp, 0xc
lea ecx, [ebp - 0x68]
push ecx
call fcn.00406ed0
add esp, 4
mov edx, dword [ebp - 8]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1070]
push eax
call fcn.004110bc
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4072a3
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1070]
push eax
call fcn.00406f20
add esp, 0xc
mov ecx, dword [ebp - 0x1074]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x1074], ecx
jmp 0x407258
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407030
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00411150
add esp, 4
mov edx, dword [ebp - 0x1074]
cmp edx, dword [ebp - 0x6c]
jae 0x4072e1
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor eax, eax
jmp 0x4072e6
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret
Function at 0x407600
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 0x407634
jmp 0x4076f0
mov dword [ebp - 0x18], 0
jmp 0x407646
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x407663
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 0x40763d
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.004107d2
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 [0x42b0e0]
mov dword [ecx], edx
mov al, byte [0x42b0e4]
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.00416360
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 0x4076e5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x4076e9
jmp 0x4076f0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x407708
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00410837
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x407e40
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.0041b750
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x42c718], 0
push 0x427178
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410aaf
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x407e94
xor eax, eax
jmp 0x407f3a
push 0
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x407eb4
xor eax, eax
jmp 0x407f3a
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x407f1a
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407ee4
jmp 0x407f1a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.0041132e
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1014]
mov dword [0x42c718], ecx
jmp 0x407eb4
mov edx, dword [ebp - 8]
push edx
call fcn.00411150
add esp, 4
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0xc]
jae 0x407f35
xor eax, eax
jmp 0x407f3a
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret
Function at 0x4084f0
Capabilities:
Get common file path
Write 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.004157d0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x408538
cmp dword [ebp + 0xc], 0
jne 0x408542
jmp 0x40862a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x4085b5
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 0x408567
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
je 0x4085b5
push 0x426b7c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00410aaf
add esp, 0xc
jmp 0x4085f8
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x426b84
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004105bb
add esp, 0xc
push 0x426ba0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00410aaf
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x408620
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041132e
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411150
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret
Function at 0x408640
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.004157d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40868f
cmp dword [ebp + 0xc], 0
jne 0x408699
jmp 0x4087a6
cmp dword [ebp + 0x10], 0
je 0x4086ee
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 0x4086b7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x4086f8
jmp 0x4087a6
cmp dword [0x42b060], 3
jne 0x40872e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426ba8
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004105bb
add esp, 0xc
jmp 0x408740
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.004105bb
add esp, 0xc
push 0x426bac
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410aaf
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40877a
jmp 0x4087a6
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.004110bc
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00411150
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret
Function at 0x4087c0
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.004157d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40880f
cmp dword [ebp + 0xc], 0
jne 0x408819
jmp 0x4088ea
cmp dword [ebp + 0x10], 0
je 0x40886e
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 0x408837
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x408872
jmp 0x4088ea
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004105bb
add esp, 0xc
push 0x426bb4
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00410aaf
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4088be
jmp 0x4088ea
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004110bc
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00411150
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret

Function at 0x408b90
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 0x408bad
xor eax, eax
jmp 0x408c18
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x408bbe
mov edx, dword [ebp - 0xc]
xor edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x408bcf
mov ecx, dword [ebp - 0xc]
xor ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x408be0
mov eax, dword [ebp - 0xc]
xor eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20
je 0x408bf1
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 0x408ca0
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 0x40c470
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40c480
xor eax, eax
jmp 0x40c61d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40c5de
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 0x40c489
cmp dword [ebp + 0x10], 0
je 0x40c617
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 0x40c5e4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40c620
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 0x40d5e0
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 0x40d62f
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 0x40d625
mov edx, dword [ebp + 0x14]
mov byte [edx + 6], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40d689
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 0x40d64f
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.00416360
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
Function at 0x40ee50
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 0x40ee6b
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40ee75
mov eax, 0x1000000
jmp 0x40ef8b
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 0x40ee9e
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 0x40ef0f
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x40ef0f
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 0x40eeee
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x426368]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x40ef43
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 0x40ef43
mov eax, 0x2000000
jmp 0x40ef8b
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.0040d2c0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ef69
mov eax, dword [ebp - 0xc]
jmp 0x40ef8b
mov eax, dword [ebp - 4]
push eax
call fcn.0040d990
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x40ef89
mov eax, 0x200
jmp 0x40ef8b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc