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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x402ed3
jmp 0x402f24
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0
push 0x200
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00416600
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403340
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x4240d4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040d5f7
add esp, 0xc
test eax, eax
je 0x403374
xor eax, eax
jmp 0x403443
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0040ee32
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0040ed3a
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040ee32
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.0040df6a
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040d8ea
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0040d97e
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.00403450
add esp, 8
push 0x4240dc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040d5f7
add esp, 0xc
test eax, eax
je 0x40340e
xor eax, eax
jmp 0x403443
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040db5c
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0040d97e
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403e00
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x3a98
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403e87
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403f7e
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x403ec1
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x403ed6
cmp dword [ebp - 0x1c], 3
jb 0x403e5a
cmp dword [ebp - 0x2c], 0
jne 0x403f6c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x403f6a
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x34], 6
jne 0x403f5c
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x403f5c
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 4]
mov byte [edx + 3], al
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ecx + 2], dl
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
mov cl, byte [edx + 6]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 7]
mov byte [edx], al
jmp 0x403f6a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
jmp 0x403ee6
jmp 0x403f77
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x403f7e
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x403f97
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x404490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404670
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x4044d8
mov eax, dword [ebp - 0x41c]
jmp 0x40465d
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004105d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004105d0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.00404320
add esp, 4
push 0x42419c
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040d4b4
add esp, 0xc
mov dword [ebp - 0x420], 0
jmp 0x404559
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 5
jge 0x4045bf
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x4281b0]
test ecx, ecx
jne 0x40457b
jmp 0x40454a
lea edx, [ebp - 0x418]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0040dbde
add esp, 0xc
mov ecx, dword [ebp - 0x420]
imul ecx, ecx, 0x118
add ecx, 0x4281b0
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0040d4b4
add esp, 0xc
jmp 0x40454a
mov dword [ebp - 0x424], 0
jmp 0x4045da
mov eax, dword [ebp - 0x424]
add eax, 1
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 5
jge 0x404622
mov ecx, dword [ebp - 0x424]
imul ecx, ecx, 0x118
movzx edx, word [ecx + 0x4281b0]
test edx, edx
jne 0x4045fc
jmp 0x4045cb
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x424]
imul edx, edx, 0x118
add edx, 0x4281b0
push edx
call fcn.004052d0
add esp, 0xc
jmp 0x4045cb
push 0x428da0
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.0040d4b4
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404657
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret
Function at 0x404900
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c0
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x9c0], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x9be]
push ecx
call fcn.004105d0
add esp, 0xc
lea edx, [ebp - 0x9c0]
mov dword [ebp - 0x19c], edx
cmp dword [ebp + 0x14], 0
je 0x40494d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x19c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x19c]
mov word [edx], cx
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404998
xor eax, eax
jmp 0x404a89
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffff
jne 0x4049b8
xor eax, eax
jmp 0x404a89
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x4049f8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1bc], eax
push 2
push 4
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x404a05
jmp 0x404a5d
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1a8], eax
mov ecx, 2
mov word [ebp - 0x1ac], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1aa], ax
push 0x10
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404a53
jmp 0x404a5d
mov dword [ebp - 0x1b8], 1
cmp dword [ebp - 0x1b8], 0
jne 0x404a83
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x404a83
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret
Function at 0x404cc0
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 0x404cf4
jmp 0x404db0
mov dword [ebp - 0x18], 0
jmp 0x404d06
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x404d23
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 0x404cfd
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.0040e09e
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 [str.AS101]
mov dword [ecx], edx
mov al, byte [0x427068]
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.004112f0
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 0x404da5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x404da9
jmp 0x404db0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x404dc8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040dce2
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4055e0
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.00417fe0
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
push 0x4241a4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040d5f7
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40562a
xor eax, eax
jmp 0x4056c1
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 0x405647
xor eax, eax
jmp 0x4056c1
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4056a1
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 0x405677
jmp 0x4056a1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.0040db5c
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
jmp 0x405647
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040d97e
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4056bc
xor eax, eax
jmp 0x4056c1
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret

Function at 0x4056d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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 0x40571b
jmp 0x40579e
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]
push ecx
call fcn.0040e09e
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004105d0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004112f0
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4057b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405808
mov edx, dword [ebp + 8]
push edx
call fcn.004058d0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jne 0x405808
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
jne 0x4058c3
push 0x200000
call fcn.0040df6a
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x200000
push str.1234
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00405950
add esp, 0x14
test eax, eax
je 0x4058b7
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0040dc4d
add esp, 4
push 0xc8
push 0x32
call fcn.004032f0
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 8
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405a10
add esp, 0xc
cmp eax, 1
jne 0x4058b0
mov dword [ebp - 4], 1
jmp 0x4058b7
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040de8d
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4058d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40590e
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x40593d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp eax, 1
jne 0x40592d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x405b10
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 0x405b40
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 0x405b5d
xor eax, eax
jmp 0x405bc8
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x405b6e
mov edx, dword [ebp - 0xc]
xor edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x405b7f
mov ecx, dword [ebp - 0xc]
xor ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x405b90
mov eax, dword [ebp - 0xc]
xor eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20
je 0x405ba1
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 0x409360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409370
xor eax, eax
jmp 0x40950d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4094ce
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 + 0x423480]
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 + 0x423480]
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 + 0x423480]
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 + 0x423480]
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 + 0x423480]
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 + 0x423480]
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 + 0x423480]
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 + 0x423480]
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 0x409379
cmp dword [ebp + 0x10], 0
je 0x409507
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 + 0x423480]
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 0x4094d4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x409510
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 + 0x423480]
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 + 0x423480]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x40a4d0
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 0x40a51f
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 0x40a515
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40a579
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 0x40a53f
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.004112f0
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