joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403540
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4035b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403617
xor ecx, ecx
xor edx, edx
jmp 0x4035f9
cmp ax, 0x5c
jne 0x403688
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403617
cmp ax, 9
je 0x403605
cmp ax, 0x20
jne 0x4035e0
test ecx, ecx
je 0x403673
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x4035f9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4036a8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401bf0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403670
cmp ax, 0x20
je 0x403670
jmp 0x403617
cmp ax, 0x22
jne 0x403609
and edx, 1
jne 0x403609
xor ecx, 1
jmp 0x4035ed
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x403630
Function at 0x4035b0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4035b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403617
xor ecx, ecx
xor edx, edx
jmp 0x4035f9
cmp ax, 0x5c
jne 0x403688
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403617
cmp ax, 9
je 0x403605
cmp ax, 0x20
jne 0x4035e0
test ecx, ecx
je 0x403673
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x4035f9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4036a8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401bf0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403670
cmp ax, 0x20
je 0x403670
jmp 0x403617
cmp ax, 0x22
jne 0x403609
and edx, 1
jne 0x403609
xor ecx, 1
jmp 0x4035ed
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x403630
Function at 0x7befce
Capabilities:
Encode data using xor

Disassembly:
or byte [edx], al
div dword [ebx]
inc esi
adc dl, bl
cmp eax, 0x42de3308
add byte [eax], al
add byte [eax], al
add byte [ebx], cl
fiadd word [edx + 0x1b]
fild word [edx - 0x6d]
fild word [edx + 0xb]
loopne 0x7bf02e
and eax, 0x42
sti
loopne 0x7bf034
add byte [eax], al
add byte [eax], al
add byte [edx], al
xor ebp, dword [ecx]
sbb dword [ebx], ecx
or byte [edx], al
div dword [ebx]
inc esi
adc dl, bl
cmp eax, 0x42e17308
add byte [eax], al
add byte [eax], al
add byte [ebx], al
loope 0x7bf053
pop ebx
loop 0x7bf056
add byte [eax], al
add byte [eax], al
add byte [edx], al
xor ebp, dword [ecx]
sbb dword [esi], ecx
push eax
imul esp, dword [ebx + 0x6b], 0xb737265
or byte [edx], al
div dword [ebx]
inc esi
adc al, byte [ebx - 0x1d2cf7c2]
inc edx
or bl, dl
loop 0x7bf074
add byte [eax], al
add byte [eax], al
add byte [ebx + ecx*2], al
jecxz 0x7bf07d
ret
inc edx
add byte [eax], al
add byte [eax], al
add byte [ebx + eax*8], dl
in al, 0x42
cmp esp, ebp
inc edx
mov bl, 0xe5
inc edx
sub esp, esi
inc edx
mov dword [0xe71b42e6], eax
inc edx
xchg ebx, eax
out 0x42, eax
or ebp, eax
inc edx
sub eax, 0x42
inc edx
sti
call fcn.007bf0bd
add byte [eax], al
add dh, byte [ebx]
sub dword [ecx], ebx
or ecx, dword [eax]
add dh, bh
xor eax, dword [esi + 0x12]
inc ebx
aas
or byte [ebx - 0x17], dh
inc edx
add byte [eax], al
add byte [eax], al
add byte [esi], al
add ebp, edx
inc edx
jnp 0x7bf083
inc edx
ljmp 0
Function at 0x9916e0
Capabilities:
Encode data using xor

Disassembly:
inc ebp
in al, dx
call 0xdbb601e6
loop 0x9916c0
out dx, al
fcomp qword [ebp - 0x58]
fnstsw ax
sahf
jbe 0x9916f9
mov dword [ebp - 0x18], 0x80000001
jmp 0x991700
mov dword [ebp - 0x18], 0x7fffffff
mov eax, dword [ebp - 0x18]
neg eax
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x438
mov ecx, dword [0x40e0bc]
mov eax, dword [str.Glide_2x_Version]
mov edx, dword [0x40e0c0]
mov dword [esp + 4], ecx
mov cl, byte [0x40e0c8]
mov dword [esp], eax
mov eax, dword [0x40e0c4]
mov byte [esp + 0x10], cl
mov ecx, dword [0x40e0ac]
mov dword [esp + 8], edx
mov edx, dword [str.Glide_3x_Version]
mov dword [esp + 0xc], eax
mov eax, dword [0x40e0a8]
push ebx
push esi
mov dword [esp + 0x24], ecx
push edi
mov dword [esp + 0x20], edx
mov edx, dword [0x40e0b0]
mov dword [esp + 0x24], eax
mov al, byte [0x40e0b4]
lea ecx, [esp + 0x340]
push 0x104
push ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
lea edi, [esp + 0x340]
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x23c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x340]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40e0a0
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 edx, [esp + 0x23c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40e0a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.glide2x.dll
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 edx, [esp + 0x23c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.glide3x.dll
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 + 0x138]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
call fcn.004026d0
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
je 0x4011ba
lea edx, [esp + 0x12c]
push 5
lea eax, [esp + 4]
push edx
push eax
call fcn.00402af0
add esp, 0xc
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x230]
push ecx
push edx
call fcn.004026d0
add esp, 8
test eax, eax
je 0x4011ed
lea eax, [esp + 0x12c]
push 5
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00402af0
add esp, 0xc
mov eax, 1
add esp, 0x438
ret
Function at 0x401d00
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x248
push esi
push edi
mov ecx, 5
mov esi, str.Total_Physical_Memory
lea edi, [esp + 0x38]
mov eax, dword [str.__Memory_Used]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40e3b4]
mov edx, dword [0x40e3b8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov ax, word [0x40e3bc]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], edx
movsw word es:[edi], word [esi]
mov word [esp + 0x18], ax
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x20]
pop edi
cmp eax, 0x40000000
pop esi
jbe 0x401d84
shr eax, 0x1e
mov edx, eax
and edx, 0x80000001
jns 0x401d74
dec edx
or edx, 0xfffffffe
inc edx
je 0x401d77
inc eax
push eax
lea eax, [esp + 0x4c]
push str.__dGB
push eax
jmp 0x401dcf
cmp eax, 0x100000
jbe 0x401da8
shr eax, 0x14
mov ecx, eax
and ecx, 0x80000001
jns 0x401d9d
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x401da0
inc eax
push eax
push str.__dMB
jmp 0x401dca
cmp eax, 0x400
jbe 0x401dd7
shr eax, 0xa
mov ecx, eax
and ecx, 0x80000001
jns 0x401dc1
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x401dc4
inc eax
push eax
push str.__dKB
lea edx, [esp + 0x50]
push edx
call fcn.004059b0
add esp, 0xc
lea eax, [esp + 0x48]
push 3
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00402af0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x154]
push edx
push str._d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x160]
push 3
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00402af0
xor eax, eax
add esp, 0x26c
ret

Function at 0x401e20
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x250
mov eax, dword [str.Max_Swap_File_Size]
mov ecx, dword [0x40e3f0]
mov edx, dword [0x40e3f4]
mov dword [esp], eax
mov eax, dword [0x40e3f8]
mov dword [esp + 4], ecx
mov cx, word [0x40e3fc]
push esi
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
mov dword [esp + 0x10], edx
mov dl, byte [0x40e3fe]
mov ecx, 5
mov esi, str.Available_Swap_File
lea edi, [esp + 0x3c]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1a], dl
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.004022a0
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x15c]
push eax
push ecx
fstp st(0)
call fcn.004022a0
lea edx, [esp + 0x60]
push 6
lea eax, [esp + 0x1c]
push edx
push eax
fstp st(0)
call fcn.00402af0
lea ecx, [esp + 0x170]
push 6
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.00402af0
add esp, 0x28
xor eax, eax
pop edi
pop esi
add esp, 0x250
ret
Function at 0x4024f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x158
mov eax, dword [str.3DO_Title]
mov ecx, dword [0x40e500]
mov dx, word [0x40e504]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
xor esi, esi
mov word [esp + 0x3c], dx
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x2c]
push esi
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x180]
lea eax, [esp + 0x28]
push esi
lea ecx, [esp + 0x48]
push eax
push ecx
push esi
push esi
push esi
push edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x14]
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push esi
push esi
inc ecx
push esi
lea edx, [esp + 0x2c]
push esi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x17c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [str.LocalUpdate]
mov dword [esp + 0x24], eax
xor edi, edi
cmp byte [edx], 0
jle 0x4025ff
mov eax, 0x40e030
mov dword [esp + 0x10], esi
mov esi, eax
mov eax, dword [eax]
push eax
push ebp
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4025f2
mov ecx, dword [esi + 4]
add esi, 4
inc edi
mov eax, esi
movsx edx, byte [ecx]
cmp edi, edx
jl 0x4025d0
jmp 0x402609
mov dword [esp + 0x10], 1
jmp 0x40268d
cmp dword [esp + 0x10], esi
jne 0x40268d
mov edx, dword [0x40f814]
xor esi, esi
push esi
push esi
mov eax, 1
lea ecx, [esp + 0x70]
push 0x1004
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0xff
mov dword [esp + 0x58], eax
call ebx
test eax, eax
jle 0x40267d
mov ecx, dword [0x40f814]
lea eax, [esp + 0x40]
push eax
push 0
push 0x1005
push ecx
mov dword [esp + 0x54], esi
call ebx
mov edx, dword [esp + 0x54]
push ebp
push edx
call fcn.0040b9e0
add esp, 8
test eax, eax
je 0x40268d
mov eax, dword [0x40f814]
push 0
push 0
push 0x1004
push eax
inc esi
call ebx
cmp esi, eax
jl 0x40263c
push 2
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00402af0
add esp, 0xc
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc ecx
cmp eax, esi
mov dword [esp + 0x18], ecx
je 0x40258e
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x158
ret
Function at 0x4026d0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x4027c0
lea ecx, [esi + 1]
push ecx
call fcn.00405a8a
mov edi, eax
add esp, 4
test edi, edi
jne 0x402712
pop edi
pop esi
pop ebx
add esp, 8
ret
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4027b4
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push str.StringFileInfo040904E4ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40276c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
push ecx
push 0x40e198
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, 1
push edi
call fcn.00405a7f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.StringFileInfo040904B0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4027d3
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push edx
push 0x40e198
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, 1
push edi
call fcn.00405a7f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
push str.No_Version_Info
push ecx
jmp 0x4027ca
mov edx, dword [esp + 0x1c]
push str.No_Version_Info
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push edi
xor esi, esi
call fcn.00405a7f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4027f0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x3b8
mov eax, dword [str.TCP_IP_Protocol]
mov ecx, dword [0x40e58c]
mov edx, dword [0x40e590]
mov dword [esp + 0x18], eax
mov eax, dword [0x40e594]
mov dword [esp + 0x1c], ecx
mov ecx, dword [str.IPX_SPX_Protocol]
mov dword [esp + 0x24], eax
mov eax, dword [0x40e57c]
mov dword [esp + 0x20], edx
mov edx, dword [0x40e578]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x228]
mov dword [esp + 4], ecx
mov ecx, dword [0x40e580]
mov dword [esp + 8], edx
mov dl, byte [0x40e584]
push eax
push 0x101
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40286c
xor eax, eax
add esp, 0x3b8
ret
push ebx
push esi
push edi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40288e
mov byte [esp + 0xf], 0
jmp 0x4028a8
lea ecx, [esp + 0x34]
push str.Installed
push ecx
call edi
add esp, 8
mov byte [esp + 0xf], 1
push esi
call sub.WSOCK32.dll_closesocket
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028c1
xor bl, bl
jmp 0x4028db
lea edx, [esp + 0x134]
push str.Installed
push edx
call edi
add esp, 8
mov bl, 1
push esi
call sub.WSOCK32.dll_closesocket
cmp byte [esp + 0xf], 1
jne 0x4028f6
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00402af0
add esp, 0xc
pop edi
pop esi
cmp bl, 1
pop ebx
jne 0x402915
lea edx, [esp + 0x128]
push 0
lea eax, [esp + 8]
push edx
push eax
call fcn.00402af0
add esp, 0xc
call sub.WSOCK32.dll_WSACleanup
mov eax, 1
add esp, 0x3b8
ret
Function at 0x402930
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov ecx, 5
mov esi, str.CDROM_File_Access_Mode
lea edi, [esp + 0x58]
mov eax, dword [str.32_Bit_Disk_Access]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40e5b0]
mov edx, dword [0x40e5b4]
mov dword [esp + 0x30], eax
mov eax, dword [0x40e5b8]
mov dword [esp + 0x34], ecx
mov cx, word [0x40e5bc]
mov dword [esp + 0x38], edx
mov dl, byte [0x40e5be]
mov dword [esp + 0x3c], eax
mov eax, dword [str.16_Bit_Disk_Access]
mov word [esp + 0x40], cx
mov ecx, dword [0x40e59c]
mov byte [esp + 0x42], dl
mov edx, dword [0x40e5a0]
movsw word es:[edi], word [esi]
mov dword [esp + 0x44], eax
mov eax, dword [0x40e5a4]
mov dword [esp + 0x48], ecx
mov cx, word [0x40e5a8]
mov dword [esp + 0x4c], edx
mov dl, byte [0x40e5aa]
xor ebp, ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x50], eax
mov word [esp + 0x54], cx
mov byte [esp + 0x56], dl
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov bl, byte [esp + 0x13]
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
test ecx, eax
je 0x402a92
lea edx, [esi + 0x41]
lea eax, [esp + 0x28]
push edx
push str._c:_
push eax
call edi
lea ecx, [esp + 0x34]
push 0x40e350
push ecx
call fcn.00405930
add esp, 0x14
test eax, eax
jne 0x402a92
lea edx, [esp + 0x28]
push 0x40e34c
push edx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x402a92
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x402a92
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x14]
cmp eax, 0x800
jne 0x402a7e
mov bl, 1
jmp 0x402a92
cmp eax, 0x200
jne 0x402a89
xor bl, bl
jmp 0x402a92
cmp eax, ebp
jne 0x402a92
mov byte [esp + 0x13], 1
inc esi
cmp esi, 0x20
jl 0x4029ef
mov al, byte [esp + 0x13]
test al, al
jne 0x402ad8
test bl, bl
push 8
je 0x402ac6
lea eax, [esp + 0x34]
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.00402af0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea edx, [esp + 0x48]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.00402af0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
Function at 0x402c60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov ecx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x128]
lea eax, [esp + 0xc]
push edi
push eax
xor edi, edi
push ecx
push closesocket
mov dword [esp + 0x18], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402d94
push ebx
mov ebx, dword [esp + 0x134]
lea edx, [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [esp + 0x130]
push edx
push esi
push eax
mov byte [esi], al
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x402cd4
mov dword [esp + 0x14], 1
jmp 0x402d7a
lea ecx, [esp + 0x20]
push str.SystemCurrentControlSetServicesClass_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x48]
push edx
push eax
push 0
push 0
push str.Driver
push ecx
mov dword [esp + 0x28], 0xdb
call edi
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x402d34
lea edx, [esp + 0x20]
push 0x40e0a0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402d7a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push esi
push eax
push eax
push ebp
push edx
mov byte [esi], al
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x402d6f
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x114
ret
mov eax, edi
pop edi
pop esi
add esp, 0x114
ret