joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x620], ax
push 0x206
push 0
lea ecx, [ebp - 0x61e]
push ecx
call fcn.0040fe70
add esp, 0xc
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.0040fe70
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0040fe70
add esp, 0xc
xor eax, eax
mov word [ebp - 0x640], ax
xor ecx, ecx
mov dword [ebp - 0x63e], ecx
mov dword [ebp - 0x63a], ecx
mov dword [ebp - 0x636], ecx
mov dword [ebp - 0x632], ecx
mov dword [ebp - 0x62e], ecx
mov dword [ebp - 0x62a], ecx
mov dword [ebp - 0x626], ecx
mov word [ebp - 0x622], cx
lea edx, [ebp - 0x418]
push edx
call fcn.00401000
add esp, 4
push 0x41f9d4
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.004099da
add esp, 0xc
mov ecx, dword [0x4260aa]
push ecx
mov edx, dword [0x4260a6]
push edx
push 0x4260ae
lea eax, [ebp - 0x418]
push eax
call fcn.00403780
add esp, 0x10
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
lea ecx, [ebp - 0x620]
push ecx
call fcn.00401000
add esp, 4
push 0x41f9e8
push 0x104
lea edx, [ebp - 0x620]
push edx
call fcn.004099da
add esp, 0xc
push 0x4260ee
push 0x104
lea eax, [ebp - 0x620]
push eax
call fcn.004099da
add esp, 0xc
push 0x41f9ec
push 0x104
lea ecx, [ebp - 0x620]
push ecx
call fcn.004099da
add esp, 0xc
lea edx, [ebp - 0x644]
push edx
push 0x41f9f8
push 0x83
call fcn.004056a0
add esp, 0xc
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x403cc0
jmp 0x403d0d
mov eax, dword [ebp - 0x644]
push eax
mov ecx, dword [ebp - 0x648]
push ecx
lea edx, [ebp - 0x620]
push edx
call fcn.004057a0
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41fa10
lea eax, [ebp - 0x620]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x648], 0
je 0x403d31
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 0x64c], ecx
mov edx, dword [ebp - 0x64c]
push edx
call fcn.004096b8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret
Function at 0x404a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
movzx eax, byte [0x425fab]
cmp eax, 2
jne 0x404a26
jmp 0x404b75
xor ecx, ecx
mov word [ebp - 0x388], cx
push 0x206
push 0
lea edx, [ebp - 0x386]
push edx
call fcn.0040fe70
add esp, 0xc
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x504], 0xffffffff
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x17c], 0
push 0x41faec
call fcn.00408cf0
add esp, 4
push 0x41fb08
call fcn.00408cf0
add esp, 4
push 0x41fb34
call fcn.00408cf0
add esp, 4
push 0x104
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x388]
sub ecx, 0x41
mov dword [ebp - 0x508], ecx
lea edx, [ebp - 0x50c]
push edx
mov eax, dword [ebp - 0x508]
push eax
call fcn.00405410
add esp, 8
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x50c]
push ecx
call fcn.004052a0
add esp, 4
mov dword [ebp - 0x504], eax
cmp dword [ebp - 0x504], 0xffffffff
jne 0x404b08
jmp 0x404b75
lea edx, [ebp - 0x178]
push edx
call fcn.004059b0
add esp, 4
test eax, eax
jne 0x404b1f
jmp 0x404b75
mov eax, dword [ebp - 0x504]
push eax
call fcn.00404c30
add esp, 4
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov ecx, 0x5b
lea esi, [ebp - 0x178]
lea edi, [ebp - 0x500]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x500], edx
push 0
push 0x1e
lea eax, [ebp - 0x500]
push eax
mov ecx, dword [ebp - 0x504]
push ecx
call fcn.00405bf0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret

Function at 0x404e80
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 0x404eb3
jmp 0x404f04
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.0040e150
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 0x405120
Capabilities:
Write 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 0x405153
jmp 0x4051a4
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.0040e150
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_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405530
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 0x40557f
jmp 0x405667
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.004092ed
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 0x4055ca
jmp 0x405667
mov dword [ebp - 4], 0
jmp 0x4055dc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x40564a
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 0x405648
jg 0x405614
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x405648
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 0x4055d3
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.00415eb0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x405686
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004096b8
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 0x4056a0
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 0x4056ec
jmp 0x40578f
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.004092ed
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.0040fe70
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.00410700
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 0x4057a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x41f2b4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00409058
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x4057da
jmp 0x405806
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a1c4
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
je 0x4057ff
jmp 0x405806
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
je 0x405818
mov eax, dword [ebp - 0xc]
push eax
call fcn.00409122
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x422044]
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.0040fe70
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.0040fe70
add esp, 0xc
push 0x103
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0040a30d
add esp, 0x10
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0040fe70
add esp, 0xc
push 0x103
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.0040a30d
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 0x40593f
mov dword [ebp - 0x46c], 0
jmp 0x40594b
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.00408ed1
mov esp, ebp
pop ebp
ret

Function at 0x4059b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x422044]
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.0040fe70
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.00405410
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.004052a0
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x405a5a
xor eax, eax
jmp 0x405a6d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00405a80
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.00414e20
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x41ee98
mov eax, dword [ebp + 0xc]
push eax
call fcn.00409041
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40796c
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 0x407a35
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00409b15
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409d37
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00409b15
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.00407620
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.0040a045
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4079f2
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.00407670
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x4079a7
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407780
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.00409122
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x407a30
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 0x407a35
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret
Function at 0x407ff0
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 0x408024
jmp 0x4080e0
mov dword [ebp - 0x18], 0
jmp 0x408036
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x408053
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 0x40802d
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.004092ed
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 [0x423060]
mov dword [ecx], edx
mov al, byte [0x423064]
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.00410700
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 0x4080d5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x4080d9
jmp 0x4080e0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x4080f8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004096b8
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x408930
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.00414e20
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x425f94], 0
push 0x41ee90
mov eax, dword [ebp + 0xc]
push eax
call fcn.00409041
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408983
xor eax, eax
jmp 0x408a28
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 0x4089a3
xor eax, eax
jmp 0x408a28
mov ecx, dword [ebp - 0x1014]
cmp ecx, dword [ebp - 0xc]
jae 0x408a08
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 0x4089d3
jmp 0x408a08
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x1010]
push ecx
call fcn.0040a1c4
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 [0x425f94], eax
jmp 0x4089a3
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409122
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x408a23
xor eax, eax
jmp 0x408a28
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret
Function at 0x408a40
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x422044]
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.0040fe70
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x408a8f
cmp dword [ebp + 0xc], 0
jne 0x408a99
jmp 0x408ba6
cmp dword [ebp + 0x10], 0
je 0x408aee
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 0x408ab7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x408af8
jmp 0x408ba6
cmp dword [0x425f98], 3
jne 0x408b2e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41ea34
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004099da
add esp, 0xc
jmp 0x408b40
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.004099da
add esp, 0xc
push 0x41ea38
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00409058
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x408b7a
jmp 0x408ba6
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.0040a045
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00409122
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret

Function at 0x408cf0
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 0x408d0d
xor eax, eax
jmp 0x408d78
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x408d1e
mov edx, dword [ebp - 0xc]
xor edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x408d2f
mov ecx, dword [ebp - 0xc]
xor ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x408d40
mov eax, dword [ebp - 0xc]
xor eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20
je 0x408d51
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 0x408ed1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422044]
jne 0x408edb
repz ret
jmp fcn.0040ad64