joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00507670
movzx eax, al
test eax, eax
je 0x507472
xor al, al
jmp 0x5075f4
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 4]
call fcn.00507620
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x512320
push 0
push 0
call fcn.0058dbac
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00440db0
add esp, 4
movzx edx, al
test edx, edx
je 0x50755d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00440db0
add esp, 4
movzx edx, al
test edx, edx
je 0x50755d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
jne 0x50755b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00506f70
add esp, 8
movzx eax, al
test eax, eax
je 0x50755b
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x14]
call eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
call eax
jmp 0x50750a
jmp 0x50758b
cmp dword [ebp + 0xc], 0
je 0x50758b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x507584
push 1
mov ecx, dword [ebp - 0x54]
call fcn.00507050
mov dword [ebp - 0x58], eax
jmp 0x50758b
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 4]
call fcn.00506fb0
movzx eax, al
test eax, eax
je 0x5075ae
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x24]
test edx, edx
je 0x5075ae
mov dword [ebp - 0x58], 1
jmp 0x5075b5
mov dword [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00440db0
add esp, 4
movzx edx, al
test edx, edx
je 0x5075f1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507600
add esp, 4
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x509ef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0508
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x6d2e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x6d952c
lea ecx, [ebp - 0x18]
call fcn.00508b80
mov dword [ebp - 4], 0
movzx eax, byte [0x6d96ed]
test eax, eax
je 0x509f63
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508c00
mov eax, dword [ebp - 0x200]
jmp 0x50a020
mov eax, 2
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x1b0]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x509fa8
mov dword [ebp - 0x1fc], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508c00
mov eax, dword [ebp - 0x1fc]
jmp 0x50a020
movzx eax, word [ebp - 0x1b0]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x509fe3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x1f8], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508c00
mov eax, dword [ebp - 0x1f8]
jmp 0x50a020
cmp dword [ebp + 8], 0
je 0x509ffa
mov eax, dword [ebp + 8]
push eax
push 0x6d96f0
call fcn.00589140
add esp, 8
mov byte [0x6d96ed], 1
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508c00
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058848d
mov esp, ebp
pop ebp
ret 4
Function at 0x50a600
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x50a64c
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x50a655
xor eax, eax
xor edx, edx
jmp 0x50a6e9
push 0x69ff80
push 0x672804
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50a697
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a695
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x50a6e9
jmp 0x50a6e5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a6e5
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
xor edx, edx
jmp 0x50a6e9
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x515d50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.005158d0
mov ecx, dword [ebp - 4]
call fcn.00515820
movzx eax, al
test eax, eax
jne 0x515d7a
xor al, al
jmp 0x515e0e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x515da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x515da2
xor al, al
jmp 0x515e0e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0x1c], edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x29]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
call fcn.00515910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x517c55
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508670
cmp dword [ebp - 0xc], eax
jge 0x517ca7
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.005086b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x517c90
mov ecx, dword [ebp - 8]
call fcn.0050bad0
cmp eax, 8
jne 0x517c94
jmp 0x517c4c
mov eax, dword [ebp - 4]
mov dword [eax + 0x103c], 0
xor al, al
jmp 0x517ce0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x103c], 0
jne 0x517cc4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x103c], eax
jmp 0x517cde
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x103c]
cmp eax, 0xea60
jbe 0x517cde
mov al, 1
jmp 0x517ce0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x518ad0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b13fc
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x6d2e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.005237b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004117c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004117c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004117c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.004117c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004117c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.004117c0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004117c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.004117c0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.004117c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.00510e80
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.00510e80
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.00510e80
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 2], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51a0a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00512540
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax + 0x1014]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x6d4]
test ecx, ecx
jne 0x51a0db
cmp dword [ebp - 0xc], 0x14
jle 0x51a19b
mov eax, dword [ebp - 4]
mov byte [eax + 0x6d4], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xff8]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
jne 0x51a129
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00551c10
push 0
push 0
mov ecx, dword [ebp - 4]
call fcn.00517a20
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
je 0x51a149
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00552470
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0xd], cl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x51a178
mov eax, dword [ebp - 4]
add eax, 0x710
push eax
mov ecx, dword [ebp - 4]
call fcn.00516200
jmp 0x51a18d
mov ecx, dword [ebp - 4]
add ecx, 0x710
call fcn.00411080
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00512540
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1014], eax
mov ecx, dword [ebp - 4]
call fcn.00517de0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x1048]
mov edx, dword [ebp - 0x14]
sbb edx, dword [eax + 0x104c]
push edx
push ecx
call fcn.00514c50
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jl 0x51a206
jg 0x51a1dc
cmp dword [ebp - 0x60], 6
jb 0x51a206
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0051a210
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xff8]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51b9d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.00589110
mov eax, dword [0x6d2e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [0x6d94ec], 0
je 0x51ba12
push 2
push 2
push str.Download_Restarted..
mov eax, dword [0x6d94ec]
mov ecx, dword [eax]
mov edx, dword [0x6d94ec]
push edx
mov eax, dword [ecx + 8]
call eax
push 1
mov ecx, dword [ebp - 8]
call fcn.00506e40
movzx eax, al
test eax, eax
jne 0x51ba2d
mov eax, 0xffffff95
jmp 0x51bbbe
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588e80
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00588e80
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00588e80
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e80
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 3
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x58]
call eax
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x51bb6c
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589140
add esp, 8
push 0x641fe4
lea eax, [ebp - 0x2008]
push eax
call fcn.00589150
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e80
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589140
add esp, 8
push str..ssinfo
lea eax, [ebp - 0x2008]
push eax
call fcn.00589150
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x69ff48
lea eax, [ebp - 0x2008]
push eax
call fcn.00589150
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x710
call fcn.00411080
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x178
call fcn.00512c20
mov ecx, dword [ebp - 8]
add ecx, 0x318
call fcn.00512c20
push 1
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058848d
mov esp, ebp
pop ebp
ret
Function at 0x51e480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b13fc
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x6d2e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.0054b5b0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0054b5b0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0054b5b0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.004116e0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.004116e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004116e0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.004116e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004116e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.004116e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004116e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004116e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004116e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0052eda0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x6d2e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x23
push 1
push 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0051e6b0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x522cc1
push 0x14
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x38
push ecx
call fcn.0058c7b0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x522d8e
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00588e80
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [0x6d96e8]
mov dword [ebp - 0x14], eax
movzx eax, word [0x6d2908]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x38
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00588e80
add esp, 0xc
mov eax, dword [0x6da6f8]
mov dword [ebp - 0x4c], eax
movzx eax, word [0x6da6f4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x48], ax
mov dword [ebp - 0x44], 1
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb24
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0058c7b0
add esp, 0xc
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb38
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0058c7b0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x38
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [0x6d96e0]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x522d8e
call fcn.00515210
call fcn.00509330
xor al, al
jmp 0x522d90
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058848d
mov esp, ebp
pop ebp
ret 4
Function at 0x524230
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
push 0x1080
push 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00588e80
add esp, 0xc
push 0x10
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00588e80
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x52428e
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.0051bf80
add esp, 0xc
jmp 0x5242f1
push 0x1000
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x14]
test ecx, ecx
je 0x5242dd
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.005884f0
add esp, 4
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax + 0x13]
cmp edx, 0x5c
je 0x5242dd
push str.drivers_tcpip.sys
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00589150
add esp, 8
jmp 0x5242f1
push 0x6a2624
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00589150
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x524409
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x524409
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
call fcn.0044fdfb
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00588e80
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x5243f7
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x642188
mov edx, dword [ebp - 0x14]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5243f7
cmp dword [ebp - 0x18], 0
je 0x5243f7
cmp dword [ebp - 0xc], 0x34
jb 0x5243f7
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0044fdf0
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x524840
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5248e3
mov eax, dword [ebp - 8]
and eax, 0x40
je 0x5248be
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 0x80000000
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0xffffffff
je 0x5248bc
mov dword [ebp - 0x10], 0
jmp 0x5248e3
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret