joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65c5f4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 0x80000002
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0065dba4
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x65c6f0
push 0
call fcn.0065c77e
add esp, 4
push 1
call fcn.0065c77e
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x65c6f0
mov eax, dword [ebp - 0xc]
push eax
call fcn.006511ab
add esp, 4
cmp dword [ebp + 8], 0
je 0x65c6e6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x65c6b5
xor edx, edx
test edx, edx
je 0x65c6b5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
jmp 0x65c6bc
mov dword [ebp - 0x14], 0xffffffc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x1de
push 0xffffffffffffffc1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
mov eax, 1
jmp 0x65c77a
mov edx, dword [ebp - 0xc]
push edx
call fcn.006511ab
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x65c718
cmp dword [ebp + 0x14], 0
jne 0x65c728
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
test eax, eax
jne 0x65c728
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x65c76e
cmp dword [ebp + 0x14], 0
je 0x65c736
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x65c748
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.006908d7
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x65dcd6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.0065bd05
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x65dcfd
mov eax, dword [ebp - 4]
jmp 0x65dd0a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x66123e
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x400
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x76fa58
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x20007
push 0
push 0x76fa64
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x66133c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x6612f7
xor edx, edx
test edx, edx
je 0x6612f7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x810], ecx
jmp 0x661301
mov dword [ebp - 0x810], 0xffffff86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x810]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x267
push 0xffffffffffffff86
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x66145f
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x808]
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x808]
add edx, 1
mov dword [ebp - 0x808], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x661450
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x804], 0
lea ecx, [ebp - 0x404]
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x661444
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x804]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
sub esi, eax
lea edx, [ebp + esi - 0x804]
push edx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x661444
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.LM_BORROW
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00661465
add esp, 8
mov dword [ebp - 4], 0x400
jmp 0x66133c
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x665d73
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x665dc8
mov dword [0x76fbe0], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x665d9b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jae 0x665dc3
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ecx + 0x76fba8], 0
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [edx + 0x76fbac], 0
jmp 0x665d92
jmp 0x665f76
cmp dword [ebp + 0x10], 4
jb 0x665de4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x665f76
cmp dword [ebp + 0x10], 0
jl 0x665df0
cmp dword [ebp + 0x10], 4
jb 0x665df5
jmp 0x665f76
cmp dword [0x76fbe0], 0
jge 0x665e07
cmp dword [0x76fbe0], 4
jae 0x665e1e
push 0
mov eax, dword [0x76fbe0]
shl eax, 4
mov ecx, dword [eax + 0x76fba8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x76fbe0], edx
mov eax, dword [0x76fbe0]
shl eax, 4
cmp dword [eax + 0x76fbac], 0
jne 0x665e67
mov ecx, dword [0x76fbe0]
shl ecx, 4
mov edx, dword [ecx + 0x76fba8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00665f7a
add esp, 8
mov ecx, dword [0x76fbe0]
shl ecx, 4
mov dword [ecx + 0x76fbac], 1
push 0
push 0
push 0xaec
mov edx, dword [0x76fbe0]
shl edx, 4
mov eax, dword [edx + 0x76fba8]
push eax
mov ecx, dword [0x76fbe0]
shl ecx, 4
call dword [ecx + 0x76fba0]
push 5
mov edx, dword [0x76fbe0]
shl edx, 4
mov eax, dword [edx + 0x76fba8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 8], 0
jmp 0x665eb9
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 3
jae 0x665f76
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x76fbe8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x665f71
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x76fbec]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x76fbec]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx + 0x138]
and ecx, 2
test ecx, ecx
je 0x665f71
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x76fbec]
imul eax, eax, 0x32
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x13b]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x76fbec]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + edx + 0x138]
and cl, 0xfd
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x76fbec]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax + 0x138], cl
jmp 0x665eb0
mov esp, ebp
pop ebp
ret
Function at 0x66c580
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0x80000000
jae 0x66c5d5
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
mov dword [ebp - 0x14], edx
jmp 0x66c5fa
cmp dword [ebp - 0x10], 4
jae 0x66c5f3
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and ah, 0x7f
mov dword [ebp - 0x14], eax
jmp 0x66c5fa
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 5
jne 0x66c60d
cmp dword [ebp - 4], 2
jne 0x66c60d
mov dword [ebp - 0xc], 8
cmp dword [ebp - 0x10], 5
jne 0x66c620
cmp dword [ebp - 4], 1
jne 0x66c620
mov dword [ebp - 0xc], 7
cmp dword [ebp - 0x10], 5
jne 0x66c633
cmp dword [ebp - 4], 0
jne 0x66c633
mov dword [ebp - 0xc], 6
cmp dword [ebp - 0x10], 4
jne 0x66c646
cmp dword [ebp - 4], 0
jne 0x66c646
mov dword [ebp - 0xc], 4
cmp dword [ebp - 0x10], 3
jne 0x66c659
cmp dword [ebp - 4], 0
jne 0x66c659
mov dword [ebp - 0xc], 5
cmp dword [ebp - 0x10], 4
jne 0x66c66c
cmp dword [ebp - 4], 1
jne 0x66c66c
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x66c673
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
cmp dword [0x79f920], 0
jne 0x66c8a2
call dword [sym.imp.MSVCR80.dll__getpid]
push eax
push str.TerminalServerFlexlmMutex
push 0x772ff0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x66c727
xor eax, eax
jmp 0x66c8ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x66c743
push 0xffffffffffffffff
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x79f920], 0
jne 0x66c888
call fcn.0066c580
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
sub ecx, 4
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 4
ja case.default.0x66c789
mov edx, dword [ebp - 0x124]
jmp dword [edx*4 + 0x66c8b3]
push 0x772ff8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x79f930], eax
cmp dword [0x79f930], 0
je 0x66c841
push str.WTSEnumerateSessionsA
mov eax, dword [0x79f930]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79f928], eax
cmp dword [0x79f928], 0
je 0x66c841
push 0x773020
mov ecx, dword [0x79f930]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x79f92c], eax
cmp dword [0x79f92c], 0
je 0x66c841
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push 0
call dword [0x79f928]
cmp dword [ebp - 0x114], 0
je 0x66c81b
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + 8], 0
jne 0x66c82a
mov edx, dword [ebp - 0x114]
push edx
call dword [0x79f92c]
jmp 0x66c841
mov eax, dword [ebp - 0x114]
push eax
call dword [0x79f92c]
mov dword [0x79f924], 1
mov ecx, dword [0x79f930]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x79f930], 0
jmp case.default.0x66c789
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je case.default.0x66c789
mov dword [0x79f924], 1
mov dword [0x79f920], 1
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x79f924], 0
setne al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x66c8d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 0x10a4]
and edx, 0x40
test edx, edx
jne 0x66c8fd
xor eax, eax
jmp 0x66cadf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 0x80
test ecx, ecx
jne 0x66c96e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
or al, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
push str.BUG_B
push 0x45
push 0x44
push str.FLEXLM__c_c_sADDATE
lea edx, [ebp - 0x2cc]
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0065ce36
add esp, 8
test eax, eax
je 0x66c96e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
or ah, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
and eax, 0x100
test eax, eax
je 0x66c9e4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x66c9a3
xor edx, edx
test edx, edx
je 0x66c9a3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x2d0], ecx
jmp 0x66c9ad
mov dword [ebp - 0x2d0], 0xffffffa8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d0]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x138
push 0xffffffffffffffa8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
mov eax, 0xffffffa8
jmp 0x66cadf
mov byte [ebp - 0x204], 0x5c
mov byte [ebp - 0x203], 0
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066cae3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x66ca18
mov eax, dword [ebp - 4]
jmp 0x66cadf
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066cae3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x66ca50
mov eax, dword [ebp - 4]
jmp 0x66cadf
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x202], 0x61
mov byte [ebp - 0x201], 0x72
mov byte [ebp - 0x203], 0x76
mov byte [ebp - 0x200], 0
push 0
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066cae3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x66ca96
mov eax, dword [ebp - 4]
jmp 0x66cadf
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x200], 0
mov byte [ebp - 0x202], 0x6d
mov byte [ebp - 0x203], 0x74
mov byte [ebp - 0x201], 0x70
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066cae3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x66cadc
mov eax, dword [ebp - 4]
jmp 0x66cadf
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x681014
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov dword [ebp - 0x404], 0
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x681051
lea ecx, [ebp - 0x400]
push ecx
call fcn.00681439
add esp, 4
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret
Function at 0x681439
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x408], 0
push 1
call fcn.00682004
add esp, 4
test eax, eax
jne 0x681483
mov eax, dword [ebp - 0x40c]
jmp 0x68159f
mov dword [ebp - 0x410], 0
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0068fa23
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x6814bd
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x418], edx
jmp 0x6814c6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x414], 0
je 0x6814fb
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov dword [ebp - 0x414], 0
cmp dword [ebp - 0x404], 0
jne 0x68150f
mov eax, dword [ebp - 0x40c]
jmp 0x68159f
push 0x400
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x404]
movsx edx, word [ecx + 8]
push edx
call fcn.0068171e
add esp, 0x10
test eax, eax
jne 0x681546
mov eax, dword [ebp - 0x40c]
jmp 0x68159f
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x404]
movsx edx, word [ecx + 8]
push edx
call fcn.00681ec8
add esp, 0x10
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x404]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x404]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x40c]
push edx
call fcn.00681fbd
add esp, 0xc
mov eax, dword [ebp - 0x40c]
mov esp, ebp
pop ebp
ret
Function at 0x682004
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x7a0970], 0
je 0x68201d
mov eax, 1
jmp 0x68205b
mov word [ebp - 0x194], 0x101
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x194]
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x68204c
call sub.WSOCK32.dll_WSAGetLastError
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x68205b
mov dword [0x7a0970], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x68ab30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x7769b0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x68ab59
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 3
jge 0x68ab7a
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x68ab70
jmp 0x68ab7a
mov al, byte [ebp - 0x14]
add al, 1
mov byte [ebp - 0x14], al
jmp 0x68ab50
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x68b619
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x7e7674
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.006aec30
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.006aee39
add esp, 8
push 0x40
push 0x1000
mov edx, dword [ebp - 8]
add edx, 0xa
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x68b66d
xor eax, eax
jmp 0x68b6a2
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.006511ab
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x68c1d5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov byte [ebp - 0x3c], 0x71
mov byte [ebp - 0x3b], 0xd5
mov byte [ebp - 0x3a], 0xac
mov byte [ebp - 0x39], 0xe3
mov byte [ebp - 0x38], 0xb3
mov byte [ebp - 0x37], 0x2b
mov byte [ebp - 0x36], 0x77
mov byte [ebp - 0x35], 0x6f
mov byte [ebp - 0x34], 0xcc
mov byte [ebp - 0x33], 0x37
mov byte [ebp - 0x32], 0x9f
mov byte [ebp - 0x31], 0x94
mov byte [ebp - 0x30], 0x8f
mov byte [ebp - 0x2f], 0x7f
mov byte [ebp - 0x2e], 0xa9
mov byte [ebp - 0x2d], 0xd6
mov byte [ebp - 0x2c], 0xec
mov byte [ebp - 0x2b], 0x9a
mov byte [ebp - 0x2a], 0x82
mov byte [ebp - 0x29], 0xcc
mov byte [ebp - 0x28], 0xa6
mov byte [ebp - 0x27], 0xef
mov byte [ebp - 0x26], 0x6e
mov byte [ebp - 0x25], 0x61
mov byte [ebp - 0x24], 0x77
mov byte [ebp - 0x23], 0xb8
mov byte [ebp - 0x22], 0x41
mov byte [ebp - 0x21], 0x25
mov byte [ebp - 0x20], 0x94
mov byte [ebp - 0x1f], 0xd7
mov byte [ebp - 0x1e], 0xe2
mov byte [ebp - 0x1d], 0xca
mov byte [ebp - 0x1c], 0x48
mov byte [ebp - 0x1b], 0x2a
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x35
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0x1e
mov byte [ebp - 0x16], 0x6a
mov byte [ebp - 0x15], 0xb8
mov byte [ebp - 0x14], 0x2d
mov byte [ebp - 0x13], 0x67
mov byte [ebp - 0x12], 0xb5
mov byte [ebp - 0x11], 0x8f
mov byte [ebp - 0x10], 0xce
mov byte [ebp - 0xf], 0x43
mov byte [ebp - 0xe], 0xff
mov byte [ebp - 0xd], 0x2b
mov byte [ebp - 0xc], 0xf9
mov byte [ebp - 0xb], 0x97
mov byte [ebp - 0xa], 6
mov byte [ebp - 9], 0xfe
mov byte [ebp - 8], 0xd2
mov byte [ebp - 7], 0x11
mov byte [ebp - 6], 0xec
mov byte [ebp - 5], 0x47
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x68c30d
cmp dword [ebp + 0xc], 0
je 0x68c30d
cmp dword [ebp + 0x10], 0
je 0x68c30d
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x38
jbe 0x68c2e5
mov dword [ebp - 0x40], 0x38
jmp 0x68c2ed
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x68c323
cmp dword [ebp + 0x10], 0
je 0x68c31c
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffd6
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret