joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5047f0
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.00504a30
movzx eax, al
test eax, eax
je 0x504812
xor al, al
jmp 0x504994
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.005049e0
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 0x50f740
push 0
push 0
call fcn.00587b64
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.005049a0
add esp, 4
movzx edx, al
test edx, edx
je 0x5048fd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.005049a0
add esp, 4
movzx edx, al
test edx, edx
je 0x5048fd
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 0x5048fb
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00504310
add esp, 8
movzx eax, al
test eax, eax
je 0x5048fb
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 0x5048aa
jmp 0x50492b
cmp dword [ebp + 0xc], 0
je 0x50492b
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 0x504924
push 1
mov ecx, dword [ebp - 0x54]
call fcn.005043f0
mov dword [ebp - 0x58], eax
jmp 0x50492b
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 4]
call fcn.00504350
movzx eax, al
test eax, eax
je 0x50494e
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x24]
test edx, edx
je 0x50494e
mov dword [ebp - 0x58], 1
jmp 0x504955
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.005049a0
add esp, 4
movzx edx, al
test edx, edx
je 0x504991
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.005049c0
add esp, 4
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x507270
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa048
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x63ad78]
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 0x64119c
lea ecx, [ebp - 0x18]
call fcn.00505f00
mov dword [ebp - 4], 0
movzx eax, byte [0x64135d]
test eax, eax
je 0x5072e3
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00505f80
mov eax, dword [ebp - 0x200]
jmp 0x5073a0
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 0x507328
mov dword [ebp - 0x1fc], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00505f80
mov eax, dword [ebp - 0x1fc]
jmp 0x5073a0
movzx eax, word [ebp - 0x1b0]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x507363
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x1f8], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00505f80
mov eax, dword [ebp - 0x1f8]
jmp 0x5073a0
cmp dword [ebp + 8], 0
je 0x50737a
mov eax, dword [ebp + 8]
push eax
push 0x641360
call fcn.00583180
add esp, 8
mov byte [0x64135d], 1
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00505f80
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.005824ce
mov esp, ebp
pop ebp
ret 4
Function at 0x507980
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 0x5079cc
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 0x5079d5
xor eax, eax
xor edx, edx
jmp 0x507a69
push 0x607bd8
push 0x5da45c
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 0x507a17
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 0x507a15
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x507a69
jmp 0x507a65
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 0x507a65
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
xor edx, edx
jmp 0x507a69
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x513150
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.00512cd0
mov ecx, dword [ebp - 4]
call fcn.00512c20
movzx eax, al
test eax, eax
jne 0x51317a
xor al, al
jmp 0x51320e
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 0x5131a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5131a2
xor al, al
jmp 0x51320e
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.00512d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515070
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 0x515095
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.005059f0
cmp dword [ebp - 0xc], eax
jge 0x5150e7
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00505a30
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5150d0
mov ecx, dword [ebp - 8]
call fcn.0056a640
cmp eax, 8
jne 0x5150d4
jmp 0x51508c
mov eax, dword [ebp - 4]
mov dword [eax + 0x103c], 0
xor al, al
jmp 0x515120
mov eax, dword [ebp - 4]
cmp dword [eax + 0x103c], 0
jne 0x515104
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x103c], eax
jmp 0x51511e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x103c]
cmp eax, 0xea60
jbe 0x51511e
mov al, 1
jmp 0x515120
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515f30
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aac6c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x63ad78]
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.00520b90
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004116e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004116e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004116e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.004116e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004116e0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.004116e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004116e0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.004116e0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.004116e0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0050e210
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0050e210
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.0050e210
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 0x5174d0
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.0050f960
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 0x51750b
cmp dword [ebp - 0xc], 0x14
jle 0x5175cb
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 0x517559
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00550f30
push 0
push 0
mov ecx, dword [ebp - 4]
call fcn.00514e60
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
je 0x517579
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00551790
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 0x5175a8
mov eax, dword [ebp - 4]
add eax, 0x710
push eax
mov ecx, dword [ebp - 4]
call fcn.00513660
jmp 0x5175bd
mov ecx, dword [ebp - 4]
add ecx, 0x710
call fcn.00411660
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0050f960
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1014], eax
mov ecx, dword [ebp - 4]
call fcn.00515220
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.00512050
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jl 0x517636
jg 0x51760c
cmp dword [ebp - 0x60], 6
jb 0x517636
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00517640
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 0x518e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.00583150
mov eax, dword [0x63ad78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [0x64115c], 0
je 0x518e42
push 2
push 2
push str.Download_Restarted..
mov eax, dword [0x64115c]
mov ecx, dword [eax]
mov edx, dword [0x64115c]
push edx
mov eax, dword [ecx + 8]
call eax
push 1
mov ecx, dword [ebp - 8]
call fcn.005041e0
movzx eax, al
test eax, eax
jne 0x518e5d
mov eax, 0xffffff95
jmp 0x518fee
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00582ec0
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00582ec0
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00582ec0
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00582ec0
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 0x518f9c
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.00583180
add esp, 8
push 0x5cddf0
lea eax, [ebp - 0x2008]
push eax
call fcn.00583190
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.00582ec0
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00583180
add esp, 8
push str..ssinfo
lea eax, [ebp - 0x2008]
push eax
call fcn.00583190
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x607ba0
lea eax, [ebp - 0x2008]
push eax
call fcn.00583190
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.00411660
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x178
call fcn.00510040
mov ecx, dword [ebp - 8]
add ecx, 0x318
call fcn.00510040
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.005824ce
mov esp, ebp
pop ebp
ret
Function at 0x51b8b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aac6c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x63ad78]
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.0050e310
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0050e310
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0050e310
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.004115f0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.004115f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004115f0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.004115f0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004115f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.004115f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004115f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004115f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004115f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00520c10
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 0x520070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x63ad78]
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.0051bae0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x5200d1
push 0x14
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x38
push ecx
call fcn.005865c0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x52019e
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00582ec0
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [0x641358]
mov dword [ebp - 0x14], eax
movzx eax, word [0x63a840]
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.00582ec0
add esp, 0xc
mov eax, dword [0x642368]
mov dword [ebp - 0x4c], eax
movzx eax, word [0x642364]
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.005865c0
add esp, 0xc
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb38
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.005865c0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x38
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [0x641350]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x52019e
call fcn.00512610
call fcn.005066b0
xor al, al
jmp 0x5201a0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005824ce
mov esp, ebp
pop ebp
ret 4
Function at 0x521760
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.00582ec0
add esp, 0xc
push 0x10
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00582ec0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x5217be
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.005193b0
add esp, 0xc
jmp 0x521821
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 0x52180d
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00582530
add esp, 4
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax + 0x13]
cmp edx, 0x5c
je 0x52180d
push str.drivers_tcpip.sys
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00583190
add esp, 8
jmp 0x521821
push 0x60a27c
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00583190
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x521939
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 0x521939
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
call fcn.0044d150
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.00582ec0
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 0x521927
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x5cdf88
mov edx, dword [ebp - 0x14]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x521927
cmp dword [ebp - 0x18], 0
je 0x521927
cmp dword [ebp - 0xc], 0x34
jb 0x521927
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.0044d15b
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x521d70
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 0x521e13
mov eax, dword [ebp - 8]
and eax, 0x40
je 0x521dee
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 0x521dec
mov dword [ebp - 0x10], 0
jmp 0x521e13
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