joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451c4f
Capabilities:
Encode data using xor

Disassembly:
and ch, byte [edi + ebp*4 - 0x3c6a0c3a]
push ss
scasb al, byte es:[edi]
xor cl, byte [bp + di + 0x2f]
cmp al, 0xf2
pushfd
jae 0x451cc8
jae 0x451c7d
adc ebp, ebp
mov bl, 5
js 0x451ce3
int1
lcall 0x66f9, 0x93306024
add eax, 0xb3967313
daa
jae 0x451cd7
pop bx
lodsd eax, dword [esi]
push 0xaf623322
test eax, 0x878a9832
dec eax
xchg dword [eax], esi
xchg esi, eax
adc ebp, dword [ebp - 0x558e9523]
je 0x451c5e
mov dword [0x15c783e9], eax
push 0xb4fec693
mov ah, pe_nt_image_headers32
das
mov al, 0xde
jbe 0x451d21
dec esp
mov eax, dword [0x3baba367]
add byte [ebx - 0x68], al
hlt
or byte [edi - 0x54], 0x27
inc edi
int1
lcall 0x31a7, 0x1aa6f4e0
mov byte [0x2226a24b], al
enter 0xffffffffffffeb30, 0x2f
in al, 0x8d
add eax, 0xc9b61a32
mov byte [0x30c82226], al
jmp 0x451d0d
mov dh, 0xc9
jb 0x451cef
push ss
and eax, 0x6bc0d69b
mov dh, 0xf2
js 0x451d59
bnd js 0x451d59
hlt
xchg dword [ebx], edx
mov gs, word [edi]
inc ebx
lcall 0x7fa1, 0x18b0bc22
push edx
adc dword [edi + 0x33ad1146], ecx
mov esi, 0xe75fba13
sbb eax, 0x5847b28d
mov eax, dword [0x8f11527f]
inc esi
adc dword [ebp - 0x45ec41cd], ebp
pop edi
out 0x1d, eax
lea esi, [edx + 0x394e5847]
js 0x451d97
adc edi, dword [edx - 0x72e218a1]
mov dl, 0x47
pop eax
dec esi
cmp dword [eax + 0x7d], edi
inc esp
aad 0xbc
dec esp
wait
xchg dword [edx - 0x4cd9d3f8], eax
sal dl, 8
push cs
or byte [eax], 0x2c
mov bl, 0xc0
or byte [esi], cl
push esp
and esi, dword [esi + 0x7d26ed4]
mov bl, 0x62
rcl byte [edi*4 + 0x232bc701], 0x91
and al, 0xb1
aad 0xb7
loop 0x451cf8
movsb byte es:[edi], byte [esi]
aam 0xaf
mov eax, 0x49a185a1
or eax, 0x6f99e0b0
das
inc ebp
scasd eax, dword es:[edi]
stc
scasd eax, dword es:[edi]
adc byte [edi - 0x5d14cd07], ch
mov cl, 0x9d
inc ebp
push edi
mov byte [0x57459db1], al
pop ds
lodsd eax, dword [esi]
jecxz 0x451d03
wait
lds esi, [esi - 0x4f]
xchg dword [eax + 0x7da0ac14], esp
invalid
cld
mov ah, byte [ecx - 0x1fa01d54]
leave
jecxz 0x451dcf
mov dl, 0xf7
mov dl, 0xe7
cmc
mov cl, 0x64
adc eax, 0x979b31a0
mov dword [esi + 0x2e], ebp
paddd mm3, qword [ebx + ecx*8 - 0x4d]
cmc
invalid
or ebp, dword [esi + 0xe]
wait
mov ds, esi
dec ebx
fstp dword [0xa4a277e6]
test al, 0xa2
mov esi, 0x6a9bdfab
xor byte [eax + 0x5e], al
and ebx, dword [ebx - 2]
mov dl, 0x39
jns 0x451dd5
mov edx, 0x184e8bf8
add dword [edx - 0x77], 0xffffffca
mov byte [0xae05227a], al
xor byte [esi - 0x53], 0xf5
jne 0x451e2f
invalid
fmul qword [ecx - 0x378535ee]
or edx, dword gs:[ecx + 0x4c]
inc eax
dec edi
add ch, al
add bh, byte [ecx + 0x5d7e90f3]
and byte [edx + 0x49e8292e], 0xf6
sal dword [esi], 0xee
test dword [ebx], edi
js 0x451e6f
bound edx, qword [ebp + 0x5d]
outsd dx, dword [esi]
sbb dword [ecx + 0x1e], eax
and cl, ah
enter 0xffffffffffff9851, 0x74
jecxz 0x451e54
jmp 0x451e7b
sahf
jmp 0x451e87
mov ch, 0xef
in al, dx
pushal
ljmp 0x3a0
in eax, dx
inc ebp
push esp
ror byte [edi], 1
shr ch, 1
inc esi
salc
lodsb al, byte [esi]
in eax, 0x40
inc ebx
fisttp word [eax]
stc
mov edx, 0x370d4d14
test dword [edx + 0x7a9a83e3], ebp
arpl word [eax], bx
not bl
or ecx, ebx
rcr dword [edi - 0x77], cl
or ch, dh
invalid
Function at 0x4ba8f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33d8
cmp edx, dword [eax]
je 0x4ba913
add eax, 8
inc ecx
cmp eax, 0x4c3468
jl 0x4ba904
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33d8]
jne 0x4baa41
mov eax, dword [0x4c7d84]
cmp eax, 1
je 0x4baa1b
test eax, eax
jne 0x4ba944
cmp dword [0x4c3300], 1
je 0x4baa1b
cmp edx, 0xfc
je 0x4baa41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba97b
lea eax, [ebp - 0x1a4]
push 0x4bfb50
push eax
call fcn.004bb2d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb760
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba9be
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb760
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb4c
push edi
call fcn.004bd630
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfb30
push eax
call fcn.004bb2d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb2e0
lea eax, [ebp - 0xa0]
push 0x4bfb2c
push eax
call fcn.004bb2e0
push dword [esi + 0x4c33dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb2e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfb04
push eax
call fcn.004bd5a4
add esp, 0x2c
pop edi
jmp 0x4baa41
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33dc]
push 0
push eax
push dword [esi]
call fcn.004bb760
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401bb0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc
cmp byte [0x26112f2], 0
je 0x401cba
mov ecx, dword [esp + 0x18]
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
test ecx, ecx
jbe 0x401ca8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea esp, [esp]
mov edx, dword [esp + 0x24]
lea eax, [esi + 1]
mov dword [esp + 0x18], eax
mov al, byte [edx + eax - 1]
mov dl, al
dec dl
cmp dl, 0x18
ja 0x401c62
movsx eax, al
mov al, byte [eax + 0x4a6238]
mov byte [esp + 0x13], al
test al, al
je 0x401c62
cmp esi, edi
jbe 0x401c39
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, edi
call fcn.00401b70
mov ecx, dword [esp + 0x28]
add esp, 4
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, esi
sub eax, edi
push eax
add edi, ecx
push edi
push edx
call ebp
add ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push eax
mov eax, esi
call fcn.00401b70
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x28]
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call ebp
mov edi, dword [esp + 0x18]
jmp 0x401c93
dec ecx
cmp esi, ecx
jne 0x401c97
cmp esi, edi
jbe 0x401c97
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, edi
call fcn.00401b70
add esp, 4
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
sub esi, edi
inc esi
push esi
lea ecx, [edi + eax]
push ecx
push edx
call ebp
add ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jb 0x401be0
pop ebp
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], ebx
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
add esp, 0xc
ret
Function at 0x402130
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, eax
cmp esi, 0xb7fff
jae 0x4021a2
cmp esi, dword [0x4b8bd8]
jne 0x402264
cmp word [esi + 0x4b9000], di
je 0x402264
mov cx, di
shr cx, 8
add cx, word [0x25f2560]
and eax, 0xff
mov word [esp + 8], ax
mov word [esp + 0xa], cx
mov edx, dword [esp + 8]
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov byte [0x4b800e], 0
mov byte [0x4b8033], 0
mov word [esi + 0x4b9000], di
pop edi
pop esi
pop ecx
ret
cmp esi, 0xb8000
jb 0x402242
cmp esi, dword [0x4b80c8]
jb 0x4021fe
mov eax, dword [0x24c21d4]
cmp esi, eax
jae 0x4021fe
dec eax
cmp esi, eax
jae 0x402242
cmp byte [0x26112b2], 0
jne 0x4021e0
mov eax, dword [0x4b8bdc]
push eax
mov eax, dword [0x4b802c]
call fcn.00404a90
add esp, 4
mov ecx, esi
sub ecx, dword [0x4b80c8]
mov eax, edi
push ecx
call fcn.00401f90
add esp, 4
mov word [esi + 0x4b9000], di
pop edi
pop esi
pop ecx
ret
mov ecx, dword [0x25f24a0]
cmp esi, ecx
jb 0x40225c
mov eax, dword [0x4b8020]
cmp esi, eax
jae 0x40225c
dec eax
cmp esi, eax
jae 0x402242
cmp byte [0x26112d3], 0
je 0x402264
cmp byte [0x26112d4], 0
jne 0x402264
mov edx, esi
sub edx, ecx
push edx
mov eax, edi
call fcn.00401f90
add esp, 4
mov word [esi + 0x4b9000], di
pop edi
pop esi
pop ecx
ret
push edi
call fcn.00402090
add esp, 4
shr edi, 8
push edi
inc esi
call fcn.00402090
add esp, 4
pop edi
pop esi
pop ecx
ret
cmp esi, 0x2000000
jae 0x40226b
mov word [esi + 0x4b9000], di
pop edi
pop esi
pop ecx
ret
Function at 0x402430
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
push esi
cmp byte [0x26112d5], bl
je 0x40244d
push 0x24c20d0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x26112d5], bl
mov esi, dword [0x26112bc]
cmp esi, ebx
je 0x402479
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40246a
push eax
call fcn.004838e2
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.00485d61
add esp, 4
mov dword [0x26112bc], ebx
mov esi, dword [0x26112c0]
cmp esi, ebx
je 0x4024a5
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x402496
push eax
call fcn.004838e2
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.00485d61
add esp, 4
mov dword [0x26112c0], ebx
mov esi, dword [0x26112c4]
cmp esi, ebx
je 0x4024d1
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4024c2
push eax
call fcn.004838e2
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.00485d61
add esp, 4
mov dword [0x26112c4], ebx
mov eax, dword [0x26112d8]
cmp eax, ebx
je 0x4024f2
lea ebx, [ebx]
mov esi, dword [eax + 0x14]
push eax
call fcn.004838e2
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x4024e0
call fcn.00425d10
call fcn.004266c0
pop esi
pop ebx
jmp 0x4271f0
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x2611210
mov ebp, 0x25f222c
xor ebx, ebx
cmp dword [ebp - 4], ebx
setne al
mov byte [esp + 0x13], al
cmp al, bl
je 0x427216
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi - 4]
cmp esi, ebx
je 0x42723f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x427230
push eax
call fcn.004838e2
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [edi - 4]
push eax
call fcn.00485d61
add esp, 4
mov dword [edi - 4], ebx
cmp byte [esp + 0x13], bl
je 0x427256
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
cmp esi, ebx
je 0x42727c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42726f
push eax
call fcn.004838e2
add esp, 4
mov dword [esi + 4], ebx
mov edx, dword [edi]
push edx
call fcn.00485d61
add esp, 4
mov dword [edi], ebx
cmp byte [esp + 0x13], bl
je 0x42728c
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x20
add ebp, 0x94
cmp edi, 0x2611290
jl 0x427201
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4025f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
call fcn.00486843
push 0
push 0
push esi
mov edi, eax
call fcn.0048899b
push esi
push 1
lea eax, [esp + 0x28]
push 0x400
push eax
call fcn.00485b88
push 0
push edi
push esi
call fcn.0048899b
mov ecx, dword [esp + 0x78]
movzx ebp, word [esp + ecx + 0x42]
movzx edx, word [esp + ecx + 0x50]
lea eax, [esp + ecx + 0x40]
add esp, 0x2c
xor ebx, ebx
lea ecx, [edx + ecx + 0x18]
test ebp, ebp
jle 0x4026c2
lea edi, [esp + ecx + 0x10]
lea ebx, [ebx]
mov esi, dword [esp + 0x418]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402670
sub eax, edx
mov ecx, esi
mov esi, edi
cmp eax, 4
jb 0x402696
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x4026ba
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x402682
test eax, eax
je 0x4026dd
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4026ba
cmp eax, 1
jbe 0x4026dd
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4026ba
cmp eax, 2
jbe 0x4026dd
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x4026dd
inc ebx
add edi, 0x28
cmp ebx, ebp
jl 0x402660
xor eax, eax
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00482caa
add esp, 0x404
ret
mov eax, dword [edi + 0x14]
jmp 0x4026c4

Function at 0x4026f0
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
sub esp, 0x240
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
xor al, al
mov byte [esp + 0xf], al
cmp ebp, 0xffffffff
je 0x4027ea
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4027df
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
cmp dword [esp + 0x18], eax
je 0x40275e
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402742
jmp 0x4027df
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4027df
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4027df
push 0x104
lea edx, [esp + 0x13c]
push edx
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
je 0x4027d8
lea eax, [esp + 0x138]
lea edx, [eax + 1]
jmp 0x4027a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027a0
sub eax, edx
mov ecx, eax
mov eax, edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4027b0
sub eax, esi
cmp ecx, eax
jl 0x4027d8
push eax
sub ecx, eax
lea eax, [esp + ecx + 0x13c]
push edi
push eax
call fcn.004833d4
add esp, 0xc
test eax, eax
sete byte [esp + 0xf]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x244]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00482caa
add esp, 0x240
ret
Function at 0x402a00
Capabilities:
Set console window title

Disassembly:
sub esp, 0x804
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x2611420]
test eax, eax
jne 0x402a89
push esi
push 0x400
lea eax, [esp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x4a6f3c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
add esp, 0x10
lea edx, [esp + 4]
push edx
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [esp + 0x404]
push ecx
mov dword [0x2611420], eax
call esi
mov eax, dword [0x2611420]
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00482caa
add esp, 0x804
ret
Function at 0x403000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [0x4b60e8], 0xffffffff
mov dword [esp + 4], 0x40
jne 0x403094
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push 0x80000001
mov dword [0x4b60e8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403094
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.CursorBlinkRate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40308a
push 2
lea ecx, [esp + 0xc]
push 0x4a7018
push ecx
call fcn.00483689
add esp, 0xc
test eax, eax
jne 0x40308a
mov dword [0x4b60e8], 1
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x48]
xor eax, eax
cmp dword [0x4b60e8], eax
setne al
xor ecx, esp
call fcn.00482caa
add esp, 0x4c
ret
Function at 0x4030b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x128], eax
xor eax, eax
push ebx
push 0x12
push eax
push eax
push 0x4a2350
mov dword [esp + 0x20], 0x1c
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
test ebx, ebx
je 0x40322b
lea eax, [esp + 0x10]
push eax
push 0
push ebx
mov dword [esp + 0x10], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40322b
push esi
push edi
push 1
push 1
push 0
push 1
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x40320b
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
push edi
push str.PortName
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403198
push 3
lea edx, [esp + 0x38]
push 0x4a7028
push edx
call fcn.004833d4
add esp, 0xc
test eax, eax
jne 0x403198
lea eax, [esp + 0x37]
push eax
call fcn.004841e3
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x26112f4]
cmp eax, edi
je 0x40320b
mov esi, dword [0x26112f8]
cmp esi, edi
je 0x40320b
mov edx, dword [0x26112fc]
cmp edx, edi
je 0x40320b
mov ecx, dword [0x2611300]
cmp ecx, edi
je 0x40320b
test eax, eax
jne 0x4031d3
mov eax, edi
mov dword [0x26112f4], eax
jmp 0x4031fb
test esi, esi
jne 0x4031e1
mov esi, edi
mov dword [0x26112f8], esi
jmp 0x4031fb
test edx, edx
jne 0x4031ef
mov edx, edi
mov dword [0x26112fc], edx
jmp 0x4031fb
test ecx, ecx
jne 0x4031fb
mov ecx, edi
mov dword [0x2611300], ecx
test eax, eax
je 0x40320b
test esi, esi
je 0x40320b
test edx, edx
je 0x40320b
test ecx, ecx
jne 0x403229
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
inc eax
push ecx
push eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x403120
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
pop ebx
xor ecx, esp
call fcn.00482caa
add esp, 0x12c
ret
Function at 0x405870
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, ebx
imul edi, edi, 0x58
push 0x58
add edi, 0x4ba3d0
push 0
push edi
call fcn.0048f0e0
add esp, 0xc
cmp ebx, 0x19
ja 0x40593e
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, 1
mov ecx, ebx
shl edx, cl
test edx, eax
je 0x40593e
mov al, bl
lea ecx, [esp + 8]
add al, 0x41
mov dword [esp + 8], 0x5c3a41
push ecx
mov byte [esp + 0xc], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x4058ec
mov edx, 0xc000
mov word [edi + 0x43], dx
jmp 0x40590d
push ebx
call fcn.00407120
add esp, 4
test al, al
je 0x405904
mov eax, 0x5000
mov word [edi + 0x43], ax
jmp 0x40590d
mov ecx, 0x4000
mov word [edi + 0x43], cx
push 0x104
lea edx, [esp + 0x10]
push edx
lea eax, [ebx + 1]
push eax
call fcn.00484c93
add esp, 0xc
test eax, eax
je 0x40593e
push esi
lea esi, [esp + 0x10]
call fcn.00406710
push eax
push 0x43
push edi
call fcn.00485cf9
add esp, 0xc
pop esi
cmp byte [edi], 0
jne 0x405955
lea ecx, [ebx + 0x41]
push ecx
push str._c:_
push edi
call fcn.00483265
add esp, 0xc
imul ebx, ebx, 0x3b
mov eax, 0xffff
mov edx, 0x90
mov word [edi + 0x47], dx
mov ecx, eax
mov word [edi + 0x4b], ax
mov edx, eax
mov word [edi + 0x49], cx
mov ecx, dword [esp + 0x110]
mov eax, 2
mov word [edi + 0x45], bx
mov word [edi + 0x4d], dx
mov word [edi + 0x4f], ax
pop edi
pop ebx
xor ecx, esp
call fcn.00482caa
add esp, 0x10c
ret
Function at 0x407090
Capabilities:
Get disk information

Disassembly:
mov al, byte [esp + 4]
add al, 0x41
mov dword [esp + 4], 0x5c3a41
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
ret

Function at 0x4070c0
Capabilities:
Get disk information

Disassembly:
mov al, byte [esp + 4]
add al, 0x41
mov dword [esp + 4], 0x5c3a41
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 5
sete cl
mov al, cl
ret

Function at 0x4070f0
Capabilities:
Get disk information

Disassembly:
mov al, byte [esp + 4]
add al, 0x41
mov dword [esp + 4], 0x5c3a41
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 4
sete cl
mov al, cl
ret

Function at 0x407120
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x108], eax
mov al, byte [esp + 0x110]
mov cx, word [0x4a76f8]
mov dl, byte [0x4a76fa]
add al, 0x41
mov word [esp], cx
mov byte [esp], al
push 0x104
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
mov byte [esp + 0xe], dl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x40719d
push 4
lea edx, [esp + 8]
push 0x4a76fc
push edx
call fcn.00483689
add esp, 0xc
test eax, eax
jne 0x40719d
mov al, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00482caa
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor al, al
call fcn.00482caa
add esp, 0x10c
ret

Function at 0x4074f0
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [eax + 1], 0x3a
mov dword [esp], 0x5c3a41
jne 0x407502
mov al, byte [eax]
jmp 0x407509
call fcn.004839f3
add al, 0x40
push 0
push 0
push 0
push 0
push 0
push 0x104
push 0x26116a0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x20], al
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x407543
push 0x104
push eax
push 0x26116a0
call fcn.0048f0e0
add esp, 0xc
mov eax, 0x26116a0
pop ecx
ret
Function at 0x407f80
Capabilities:
Read file on windows

Disassembly:
push ecx
cmp ecx, dword [0x25f2808]
push edi
jge 0x40807c
lea edi, [ecx + ecx*8]
shl edi, 5
cmp dword [edi + 0x24b9114], 0
je 0x40807c
mov eax, dword [edi + 0x24b9128]
cmp eax, 1
jl 0x40807c
cmp eax, 4
jg 0x40807c
push ebx
xor ebx, ebx
cmp dword [eax*4 + 0x26112f0], ebx
je 0x408076
push ebp
lea ecx, [eax - 1]
push esi
lea eax, [ebx + 3]
call fcn.00427560
mov ecx, dword [edi + 0x24b9128]
mov byte [esp + 0x10], al
and al, 0x7f
movzx eax, al
push eax
dec ecx
lea eax, [ebx + 3]
call fcn.004272b0
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
add esp, 4
call ebp
mov esi, eax
add esi, 0x3e8
cmp dword [esp + 0x1c], ebx
jbe 0x40805b
jmp 0x408010
mov ecx, dword [edi + 0x24b9128]
dec ecx
mov eax, 5
call fcn.00427560
test al, 1
je 0x408047
mov ecx, dword [edi + 0x24b9128]
dec ecx
xor eax, eax
call fcn.00427560
mov ecx, dword [esp + 0x18]
mov byte [ebx + ecx], al
inc ebx
call ebp
mov esi, eax
add esi, 0x3e8
jmp 0x408055
call ebp
cmp eax, esi
ja 0x40805b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, dword [esp + 0x1c]
jb 0x408010
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x24b9128]
push edx
dec ecx
mov eax, 3
call fcn.004272b0
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push edx
push ecx
call fcn.00485576
add esp, 0xc
pop edi
pop ecx
ret