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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x42a044]
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.00417b10
add esp, 0xc
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00417b10
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00417b10
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 str.gbp.ini
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.004115ce
add esp, 0xc
mov ecx, dword [0x42e0ca]
push ecx
mov edx, dword [0x42e0c6]
push edx
push 0x42e0ce
lea eax, [ebp - 0x418]
push eax
call fcn.004038b0
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 0x4279e8
push 0x104
lea edx, [ebp - 0x620]
push edx
call fcn.004115ce
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00410b00
add esp, 0xc
push 0x4279ec
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004115ce
add esp, 0xc
push 0x42e10e
push 0x104
lea eax, [ebp - 0x620]
push eax
call fcn.004115ce
add esp, 0xc
push 0x42e10e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004115ce
add esp, 0xc
push 0x4279f0
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004115ce
add esp, 0xc
push 0x4279f4
push 0x104
lea eax, [ebp - 0x620]
push eax
call fcn.004115ce
add esp, 0xc
push str..exe
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004115ce
add esp, 0xc
lea edx, [ebp - 0x644]
push edx
push str.IDR_BINARY
push 0x83
call fcn.00405990
add esp, 0xc
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x403f45
jmp 0x403fdf
mov eax, dword [ebp - 0x644]
push eax
mov ecx, dword [ebp - 0x648]
push ecx
lea edx, [ebp - 0x620]
push edx
call fcn.00403a00
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x427a24
lea eax, [ebp - 0x620]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x644]
push ecx
mov edx, dword [ebp - 0x648]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00403a00
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x427a28
lea ecx, [ebp - 0x210]
push ecx
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 0x404003
mov edx, dword [ebp - 0x648]
mov dword [ebp - 0x64c], edx
mov eax, dword [ebp - 0x64c]
push eax
call fcn.004112ac
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret
Function at 0x404cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
movzx eax, byte [0x42dfcb]
cmp eax, 2
jne 0x404d16
jmp 0x404e65
xor ecx, ecx
mov word [ebp - 0x388], cx
push 0x206
push 0
lea edx, [ebp - 0x386]
push edx
call fcn.00417b10
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 str.c:gdisk.exe
call fcn.00409080
add esp, 4
push str.c:windowsgdisk.exe
call fcn.00409080
add esp, 4
push str.c:windows_system32gdisk.exe
call fcn.00409080
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.00405700
add esp, 8
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x50c]
push ecx
call fcn.00405590
add esp, 4
mov dword [ebp - 0x504], eax
cmp dword [ebp - 0x504], 0xffffffff
jne 0x404df8
jmp 0x404e65
lea edx, [ebp - 0x178]
push edx
call fcn.00405c20
add esp, 4
test eax, eax
jne 0x404e0f
jmp 0x404e65
mov eax, dword [ebp - 0x504]
push eax
call fcn.00404f20
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.00405e60
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret

Function at 0x405170
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 0x4051a3
jmp 0x4051f4
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.00415df0
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 0x405410
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 0x405443
jmp 0x405494
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.00415df0
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 0x405820
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 0x40586f
jmp 0x405957
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.00410ee1
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 0x4058ba
jmp 0x405957
mov dword [ebp - 4], 0
jmp 0x4058cc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x40593a
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 0x405938
jg 0x405904
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x405938
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 0x4058c3
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.0041dbd0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x405976
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004112ac
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 0x405990
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 0x4059dc
jmp 0x405a7f
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.00410ee1
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.00417b10
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.004183a0
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 0x405a90
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.00417b10
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.00417b10
add esp, 0xc
push 0x103
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00411efd
add esp, 0x10
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00417b10
add esp, 0xc
push 0x103
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.00411efd
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 0x405baf
mov dword [ebp - 0x46c], 0
jmp 0x405bbb
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.00410ac5
mov esp, ebp
pop ebp
ret

Function at 0x405c20
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.00417b10
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.00405700
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00405590
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x405cca
xor eax, eax
jmp 0x405cdd
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00405cf0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0041cb10
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.00410c35
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407bdc
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 0x407ca5
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00411709
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041192b
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00411709
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.00407890
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.00411c39
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x407c62
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.004078e0
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x407c17
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004079f0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.00410d16
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x407ca0
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 0x407ca5
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret
Function at 0x408260
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 0x408294
jmp 0x408350
mov dword [ebp - 0x18], 0
jmp 0x4082a6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x4082c3
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 0x40829d
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00410ee1
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 [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.004183a0
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 0x408345
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x408349
jmp 0x408350
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x408368
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004112ac
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x408ba0
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.0041cb10
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.00410c35
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408bf3
xor eax, eax
jmp 0x408c98
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 0x408c13
xor eax, eax
jmp 0x408c98
mov ecx, dword [ebp - 0x1014]
cmp ecx, dword [ebp - 0xc]
jae 0x408c78
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 0x408c43
jmp 0x408c78
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00411db8
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 0x408c13
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410d16
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x408c93
xor eax, eax
jmp 0x408c98
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret
Function at 0x408cb0
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.00417b10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x408cff
cmp dword [ebp + 0xc], 0
jne 0x408d09
jmp 0x408e16
cmp dword [ebp + 0x10], 0
je 0x408d5e
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 0x408d27
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x408d68
jmp 0x408e16
cmp dword [0x42dfb8], 3
jne 0x408d9e
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.004115ce
add esp, 0xc
jmp 0x408db0
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.004115ce
add esp, 0xc
push 0x426a50
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410c4c
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x408dea
jmp 0x408e16
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.00411c39
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00410d16
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret

Function at 0x409050
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 0x409080
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 0x40909d
xor eax, eax
jmp 0x409108
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x4090ae
mov edx, dword [ebp - 0xc]
xor edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x4090bf
mov ecx, dword [ebp - 0xc]
xor ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x4090d0
mov eax, dword [ebp - 0xc]
xor eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x20
je 0x4090e1
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