joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ee635
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5ee74d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5ee74d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0069a7f9
mov esi, eax
test esi, esi
je 0x5ee74d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x5ee74d
mov ecx, esi
call fcn.005ee5c0
cmp edi, eax
jge 0x5ee74d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5ee6d3
mov dword [esp + 0x34], 1
jmp 0x5ee72e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x5ee74d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005edb70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x5f4910
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x6ae338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.00677acf
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.00698c98
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00694f7f
mov eax, dword [eax]
push 0xc6bc24
push eax
call fcn.00684c04
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.00698c2a
test bl, bl
je 0x5f4990
push 0xc6bc24
lea ecx, [esp + 0xc]
call fcn.00699006
push 0xc6bc20
lea ecx, [esp + 0xc]
call fcn.00699006
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00677b92
test eax, eax
je 0x5f4a54
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00677db2
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x5f4a10
lea ecx, [esp + 0x18]
call fcn.00677d79
test eax, eax
jne 0x5f4a10
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00677e81
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.005f4910
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x5f4a45
lea ecx, [esp + 0x18]
call fcn.00677d79
test eax, eax
jne 0x5f4a4a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x5f4a4a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00677e81
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.00698c2a
test edi, edi
jne 0x5f49c0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00677b48
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.00698c2a
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00677b0c
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x5f4b50
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6ae366
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0xc7da10]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.00698db3
push str..
lea ecx, [esp + 0x10]
call fcn.00699006
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x5f4bf3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00698c2a
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00698c2a
xor eax, eax
jmp 0x5f4d38
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0xc6bc44
push edx
call fcn.00684c04
add esp, 8
test eax, eax
je 0x5f4ce9
lea eax, [esp + 0x48]
push 0xc6bc40
push eax
call fcn.00684c04
add esp, 8
test eax, eax
je 0x5f4ce9
test ebp, ebp
jne 0x5f4c55
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00684cb3
add esp, 8
test eax, eax
je 0x5f4ce9
push esi
lea ecx, [esp + 0x14]
call fcn.00698db3
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0069902d
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00699006
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x5f4c95
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x5f4cb7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.005f4b50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x5f4ce9
test edi, edi
je 0x5f4cde
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00684cb3
add esp, 8
test eax, eax
jne 0x5f4cde
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.005f4d60
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5f4c03
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00698c2a
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00698c2a
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x5f4d60
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6ae37b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.006854f0
mov eax, dword [0xc7da10]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.00698db3
push 0x5c
lea ecx, [esp + 8]
call fcn.0069902d
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.00699006
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5f4e06
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00698c2a
xor eax, eax
jmp 0x5f4e83
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x5f4e61
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x5f4e53
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x5f4e2d
jmp 0x5f4e61
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00698c2a
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x5f5e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ae488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005f59e0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005f5a50
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005f5d30
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005f5a00
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x5f5e18
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ae488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005f59e0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005f5a50
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005f5d30
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005f5a00
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x5f6100
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x6ae500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.005f59e0
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.005f59e0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.005f5a50
cmp dword [esp + 0x40], ebx
jne 0x5f6188
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.005f5a00
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.005f5a00
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.005f6040
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.005b7d70
cmp eax, esi
jb 0x5f620b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0xc6bccc
lea ecx, [esp + 0x1c]
call fcn.005f5e00
cmp eax, 1
jne 0x5f61fd
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005f5ba0
push ebx
lea ecx, [esp + 0x20]
call fcn.005c55a0
push eax
call fcn.0068780e
add esp, 8
test eax, eax
jge 0x5f61fd
push ebx
lea ecx, [esp + 0x20]
call fcn.005b7d60
push eax
call edi
test eax, eax
je 0x5f6240
lea ecx, [esp + 0xc]
inc esi
call fcn.005b7d70
cmp esi, eax
jbe 0x5f61ad
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.005f5a00
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.005f5a00
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.005f5a00
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.005f5a00
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x5f8640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5f864b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5f874e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xc3ba3c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xc3ba3c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xc3ba3c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xc3ba3c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xc3ba3c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xc3ba3c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xc3ba3c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xc3ba3c]
xor eax, edx
inc ecx
dec edi
jne 0x5f8666
pop edi
test esi, esi
je 0x5f8770
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xc3ba3c]
xor eax, edx
inc ecx
dec esi
jne 0x5f8752
pop esi
pop ebx
not eax
ret

Function at 0x5f8fd0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x5f9011
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f9006
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x5f9024
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x5f9f60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x5fa015
cmp dword [ebp + 4], 0xffffffff
jne 0x5fa015
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0xc6bf54
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x5f9fdd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x5f9fdd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.005f8d60
add esp, 0x10
test eax, eax
jne 0x5fa000
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.005f92a0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x5fa470
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x5fa538
mov al, byte [ecx]
test al, al
je 0x5fa538
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x5fa49b
cmp al, 0x5c
jne 0x5fa49d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5fa493
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x5fa4d4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.00687a46
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.005fa470
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x5fb650
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6ae70b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x5fb730
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0xc6cb7c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x5fb730
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.00699357
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push 0xc6cb74
push 0xc6cb70
mov ecx, esi
call fcn.00694d63
push 0xc6cb68
push 0xc6cb64
mov ecx, esi
call fcn.00694d63
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0069960b
lea ecx, [esp + 4]
call fcn.006996cf
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00698c98
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.006993f7
jmp 0x5fb743
mov esi, dword [esp + 0x130]
push 0xcaafbc
mov ecx, esi
call fcn.00698c98
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x600310
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0x800
call fcn.006857f7
mov esi, dword [esp + 0x18]
add esp, 4
mov edx, eax
xor ebp, ebp
test esi, esi
mov dword [esp + 0xc], edx
jne 0x600338
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x800
jbe 0x600353
pop esi
pop ebp
pop ebx
pop ecx
ret
mov al, byte [esi]
inc esi
test al, al
je 0x600429
cmp ebp, 0x400
je 0x600414
cmp al, 0x25
jne 0x6003f3
mov al, byte [esi]
inc esi
test al, al
je 0x60040c
mov cl, byte [esi]
inc esi
test cl, cl
mov byte [esp + 0x14], cl
je 0x60040c
movsx eax, al
push eax
call fcn.006871d5
movsx ecx, byte [esp + 0x18]
push ecx
mov bl, al
call fcn.006871d5
movsx edx, bl
push edx
mov byte [esp + 0x20], al
call fcn.00684b71
add esp, 0xc
test eax, eax
je 0x600422
movsx eax, byte [esp + 0x14]
push eax
call fcn.00684b71
add esp, 4
test eax, eax
je 0x600422
cmp bl, 0x39
jg 0x6003d2
add bl, 0xd0
jmp 0x6003d5
add bl, 0xa9
mov al, byte [esp + 0x14]
cmp al, 0x39
jg 0x6003e1
add al, 0xd0
jmp 0x6003e3
add al, 0xa9
mov ecx, dword [esp + 0xc]
shl bl, 4
add bl, al
mov edx, ecx
mov byte [ecx + ebp], bl
jmp 0x600400
cmp al, 0x2b
jne 0x6003fd
mov byte [edx + ebp], 0x20
jmp 0x600400
mov byte [edx + ebp], al
mov al, byte [esi]
inc ebp
inc esi
test al, al
jne 0x60035e
cmp ebp, 0x400
jne 0x600429
pop esi
pop ebp
mov byte [edx + 0x3ff], 0
mov eax, edx
pop ebx
pop ecx
ret
push 0
call fcn.00687c70
mov byte [edx + ebp], 0
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret

Function at 0x603e50
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 0
call sub.WS2_32.dll_ioctlsocket
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
pop ecx
ret

Function at 0x603e80
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call sub.WS2_32.dll_ioctlsocket
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
pop ecx
ret

Function at 0x603eb0
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 1
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x603ed0
or eax, 0xffffffff
add esp, 0x190
ret
push 6
push 1
push 2
call sub.WS2_32.dll_socket
add esp, 0x190
ret
Function at 0x603f00
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x228
push esi
mov esi, dword [esp + 0x234]
test esi, esi
je 0x6040ee
mov ecx, dword [esp + 0x23c]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
push edi
test edx, edx
mov edi, 1
mov dword [esp + 0xc], edx
jg 0x603f41
mov dword [esp + 0xc], edi
xor ecx, ecx
push esi
mov dword [esp + 0x18], ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x240]
mov dword [esp + 0x18], eax
push edx
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x238]
mov word [esp + 0x16], ax
push esi
call fcn.00603e80
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jge 0x6040d7
call fcn.00603af0
push eax
call fcn.00604100
add esp, 4
cmp eax, 0xffffd8cd
je 0x603fd4
cmp eax, 0xffffd8cc
je 0x603fd4
push esi
mov edi, eax
call fcn.00603e50
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x228
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x604089
lea ebx, [esi + 1]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
push 0
lea eax, [esp + 0x138]
push edx
push eax
push ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x148], esi
mov dword [esp + 0x144], edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x2710
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x6040bd
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x6040d7
lea edx, [esp + 0x130]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x6040d7
mov ecx, dword [esp + 0x248]
mov eax, dword [esp + 0x24c]
cmp dword [ecx], eax
je 0x6040a3
call fcn.00603af0
test eax, eax
jne 0x6040bd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x603feb
push esi
mov edi, 0xfffffff5
call fcn.00603e50
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x228
ret
push esi
mov edi, 0xffffffec
call fcn.00603e50
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x228
ret
push esi
mov edi, 0xfffffffb
call fcn.00603e50
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x228
ret
push esi
xor edi, edi
call fcn.00603e50
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x228
ret
xor eax, eax
pop esi
add esp, 0x228
ret