joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x40169a
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4016bf
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x438c08
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.0041bb22
add esp, 0xc
pop ebp
ret

Function at 0x4017a0
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 0x438c60
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0041bd35
add esp, 0xc
test eax, eax
je 0x4017d4
xor eax, eax
jmp 0x4018a3
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0041be12
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0041c034
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041be12
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.0041b988
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.0041c342
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0041c3d6
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.00405700
add esp, 8
push 0x438c68
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0041bd35
add esp, 0xc
test eax, eax
je 0x40186e
xor eax, eax
jmp 0x4018a3
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.0041c5b4
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0041c3d6
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403250
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 0x4032a8
mov edx, dword [ebp + 8]
push edx
call fcn.00405430
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jne 0x4032a8
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
jne 0x403363
push 0x200000
call fcn.0041b988
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.00409bc0
add esp, 0x14
test eax, eax
je 0x403357
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041c636
add esp, 4
push 0xc8
push 0x32
call fcn.00404910
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.00405700
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.00409a00
add esp, 0xc
cmp eax, 1
jne 0x403350
mov dword [ebp - 4], 1
jmp 0x403357
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.0041ba52
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x2580
push 0x4392b8
push str.C:VFDD.BIN
call fcn.0041c72e
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404091
jmp 0x4040cb
push 0
push 0x2580
mov eax, dword [ebp - 4]
push eax
call fcn.0041be12
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 5
push 1
push str.FDISQ
call fcn.0041c5b4
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4040cb
mov edx, dword [ebp - 4]
push edx
call fcn.0041c3d6
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4040d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69c
mov eax, dword [0x43dc24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00404060
movzx eax, byte [0x44278b]
cmp eax, 1
je 0x4040fb
jmp 0x40424a
xor ecx, ecx
mov word [ebp - 0x450], cx
push 0x206
push 0
lea edx, [ebp - 0x44e]
push edx
call fcn.0041df80
add esp, 0xc
mov dword [ebp - 0x698], 0
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x694], 0xffffffff
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x244], 0
push str.c:gdisk.exe
call fcn.00409a80
add esp, 4
push str.c:windowsgdisk.exe
call fcn.00409a80
add esp, 4
push str.c:windows_system32gdisk.exe
call fcn.00409a80
add esp, 4
push 0x104
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x450]
sub ecx, 0x41
mov dword [ebp - 0x698], ecx
lea edx, [ebp - 0x69c]
push edx
mov eax, dword [ebp - 0x698]
push eax
call fcn.00405d70
add esp, 8
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x69c]
push ecx
call fcn.00405c00
add esp, 4
mov dword [ebp - 0x694], eax
cmp dword [ebp - 0x694], 0xffffffff
jne 0x4041dd
jmp 0x40424a
lea edx, [ebp - 0x240]
push edx
call fcn.00406200
add esp, 4
test eax, eax
jne 0x4041f4
jmp 0x40424a
mov eax, dword [ebp - 0x694]
push eax
call fcn.00404300
add esp, 4
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x244], ecx
mov ecx, 0x8d
lea esi, [ebp - 0x240]
lea edi, [ebp - 0x690]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x690], edx
push 0
push 0x1e
lea eax, [ebp - 0x690]
push eax
mov ecx, dword [ebp - 0x694]
push ecx
call fcn.004062d0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret
Function at 0x404a70
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 0x404abb
jmp 0x404b3e
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.004114f0
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.0041df80
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.004234e0
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 0x405320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43dc24]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0041df80
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40541a
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x4053cc
cmp dword [ebp - 8], 0
jne 0x4053cc
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4053cc
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4053df
cmp dword [ebp - 8], 2
jne 0x4053df
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x4053f8
cmp dword [ebp - 8], 2
jae 0x4053f1
cmp dword [ebp - 8], 1
jne 0x4053f8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x40541a
cmp dword [ebp - 8], 0
jne 0x40540d
mov dword [ebp - 4], 4
jmp 0x40541a
cmp dword [ebp - 8], 1
jne 0x40541a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret

Function at 0x405430
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 0x40546e
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x40549d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40548d
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 0x405650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43dc24]
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.0041df80
add esp, 0xc
cmp dword [0x43ef90], 3
jne 0x4056b8
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x438210
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041bb22
add esp, 0xc
jmp 0x4056ca
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x438214
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret
Function at 0x4057e0
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 0x405813
jmp 0x405864
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.0041fd50
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 0x405a80
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 0x405ab3
jmp 0x405b04
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.0041fd50
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 0x405e90
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 0x405edf
jmp 0x405fc7
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.004114f0
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 0x405f2a
jmp 0x405fc7
mov dword [ebp - 4], 0
jmp 0x405f3c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x405faa
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 0x405fa8
jg 0x405f74
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x405fa8
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 0x405f33
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.0041fd90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x405fe6
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004114fb
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 0x406200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43dc24]
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.0041df80
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.00405d70
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00405c00
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4062aa
xor eax, eax
jmp 0x4062bd
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00406050
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.00420430
mov eax, dword [0x43dc24]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x437d08
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0041bd35
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40809d
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 0x408166
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041be12
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.0041c034
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0041be12
add esp, 0xc
lea ecx, [ebp - 0x68]
push ecx
call fcn.00407d50
add esp, 4
mov edx, dword [ebp - 8]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1070]
push eax
call fcn.0041c342
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x408123
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1070]
push eax
call fcn.00407da0
add esp, 0xc
mov ecx, dword [ebp - 0x1074]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x1074], ecx
jmp 0x4080d8
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407eb0
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041c3d6
add esp, 4
mov edx, dword [ebp - 0x1074]
cmp edx, dword [ebp - 0x6c]
jae 0x408161
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 0x408166
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret
Function at 0x408480
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 0x4084b4
jmp 0x408570
mov dword [ebp - 0x18], 0
jmp 0x4084c6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x4084e3
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 0x4084bd
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.004114f0
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 [0x43f014]
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.004234e0
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 0x408565
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x408569
jmp 0x408570
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x408588
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004114fb
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x408cc0
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.00420430
mov eax, dword [0x43dc24]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x442204], 0
push 0x437d00
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0041bd35
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x408d14
xor eax, eax
jmp 0x408dba
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 0x408d34
xor eax, eax
jmp 0x408dba
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x408d9a
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 0x408d64
jmp 0x408d9a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.0041c5b4
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 [0x442204], ecx
jmp 0x408d34
mov edx, dword [ebp - 8]
push edx
call fcn.0041c3d6
add esp, 4
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0xc]
jae 0x408db5
xor eax, eax
jmp 0x408dba
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret
Function at 0x4093e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x43dc24]
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.0041df80
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x409428
cmp dword [ebp + 0xc], 0
jne 0x409432
jmp 0x40951a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x4094a5
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 0x409457
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
je 0x4094a5
push 0x437704
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0041bd35
add esp, 0xc
jmp 0x4094e8
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x43770c
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0041bb22
add esp, 0xc
push 0x437728
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.0041bd35
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x409510
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.0041c5b4
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041c3d6
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b92a
mov esp, ebp
pop ebp
ret