joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x40ec58
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov ebx, 0x416ae8
mov esi, 0x416b4f
xor eax, eax
push ebp
push 0x40f71c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x416b14
mov edx, 0x40f734
call fcn.00403770
lea eax, [ebp - 0xc]
mov ecx, 0x40f798
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0xc]
call fcn.00403a94
push eax
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 3
jb 0x40ecc2
sub eax, 1
jne 0x40f701
push dword [ebp - 4]
push 0x40f7a4
push 0x40f7b8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004053d4
mov eax, dword [ebp - 8]
call fcn.00405830
test al, al
jne 0x40ed28
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f7a4
push 0x40f7cc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x14]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.0040579c
mov byte [esi], al
push dword [ebp - 4]
push 0x40f7a4
push 0x40f7cc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.0040579c
test al, al
mov eax, dword [ebp - 8]
call fcn.00406610
mov byte [esi], al
push dword [ebp - 4]
push 0x40f7a4
push 0x40f7e0
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405830
test al, al
jne 0x40edc1
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f7a4
push 0x40f7f8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403954
dec dword [ebx + 0x1b1e845]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f723
lea eax, [ebp - 0x58]
mov edx, 0x16
call fcn.00403740
ret
Function at 0x410a1c
Capabilities:
Find taskbar
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x410c1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x416b14
mov edx, 0x410c34
call fcn.00403770
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040272c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004053d4
mov edx, dword [ebp - 4]
mov eax, 0x416ae8
call fcn.00403770
cmp byte [0x416b4d], 0
jne 0x410a87
mov eax, dword [0x416ae8]
push eax
mov ecx, 0x410c9c
mov edx, 0x410cac
mov eax, 0x80000002
call fcn.00406844
cmp byte [0x416b4d], 0
je 0x410a9a
call fcn.00410f6c
jmp 0x410c03
xor ebx, ebx
push 0
push 0x410cec
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x410aba
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x410a9c
mov eax, 0x416b14
mov edx, 0x410d04
call fcn.00403770
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x410d64
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0x410d6c
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x410b00
push 0x410d78
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x410b65
push 0x410d84
push esi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x410b65
call eax
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x410da0
call fcn.00404d98
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, 0x416b14
mov edx, 0x410db0
call fcn.00403770
mov edx, 0x410e10
mov eax, 0x416b60
mov ecx, 0xbb8
call fcn.004065b8
test al, al
je 0x410c03
mov eax, 0x416b14
mov edx, 0x410e40
Function at 0x41367c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x413755
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x416b14
mov edx, 0x41376c
call fcn.00403770
cmp dword [0x416b54], 0
jne 0x4136bd
call fcn.004135b4
push 2
push 0
push 0
mov eax, dword [0x416b54]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x4136d8
call fcn.004135b4
lea edx, [ebp - 0xc]
mov al, byte [0x416b4e]
call fcn.00405410
push dword [ebp - 0xc]
push 0x4137dc
push dword [ebp - 4]
push 0x4137e8
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403954
mov byte [0x416b4e], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403894
push eax
lea eax, [ebp - 4]
call fcn.00403aec
push eax
mov eax, dword [0x416b54]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x413737
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41375c
lea eax, [ebp - 0xc]
call fcn.0040371c
lea eax, [ebp - 4]
call fcn.0040371c
ret
Function at 0x41250e
Capabilities:
Encode data using xor

Disassembly:
cmp dword cs:[edx + 0x4a], edi
xor al, 0x78
push edi
test dword [eax + 0x6ea85a94], ebp
invalid
out 0x2c, eax
les edi, [esi + 0x2b]
xor eax, 0x1bac6c4f
sti
xchg esp, eax
out 0xb1, al
pop eax
mov ebx, 0x901c50cb
jns 0x41247b
xor byte [eax - 0x5e04e26b], bl
invalid
mov dl, 0x98
mov bl, 0x14
and ah, byte [ecx - 0x16]
wait
sbb ebx, dword [edx + 0x10]
cmc
push cs
jle 0x4124cb
inc esi
mov ch, byte [ecx - 0x1544c1c5]
stosd dword es:[edi], eax
add al, 0xb3
push edi
in al, dx
invalid

Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417c36
mov eax, dword [0x6357e0]
test eax, eax
je 0x417c2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x50
ret
push ebx
push edi
lea eax, [esp + 0xc]
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd]
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 + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x6357e0], eax
test eax, eax
pop ebx
je 0x417cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push eax
call esi
mov ecx, dword [0x6357e0]
push str.DirectSoundEnumerateA
push ecx
mov dword [0x6357dc], eax
call esi
mov ecx, dword [0x6357dc]
mov dword [0x6357e4], eax
test ecx, ecx
je 0x417cc7
test eax, eax
je 0x417cc7
mov eax, 1
pop esi
add esp, 0x50
ret
mov dword [0x6357e0], 0
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x43b3bf
Capabilities:
Encode data using xor

Disassembly:
and al, 0xe6
pop esp
pop ecx
hlt
salc
pop edx
call 0xf4c6b209
jae 0x43b3a6
jp 0x43b378
jg 0x43b3cb
pop ebx
das
inc ebp
push edi
mov edx, 0x9dccc572
mov ah, 0x97
jns 0x43b3ab
sahf
xor dword [eax + 7], 0x66
xchg edi, eax
cmpsw word [esi], word es:[edi]
or dword [edi + 0x290cbf7e], esp
or al, 0x29
xor esi, 0x177d98d8
out 0x8f, al
fild qword [esi]
sar byte [ebx - 0x39], cl
lahf
mov dword [edi - 0x29], ebx
dec edx
sti
push edi
sar byte [ecx - 0x39], cl
test byte [eax + 0x51], bh
cmc
push esi
pop es
mov byte [0xe22cd796], al
invalid
xlatb
sub al, 0xe2
or edx, dword [edx + 0x5b248f3a]
invalid
fdivr qword [edi + 0x61958de2]
loop 0x43b335
xchg ebp, eax
popal
jbe 0x43b390
in al, 0xfd
std
add al, 0x59
and al, 0x6a
sub dword [ebx], ebx
cmpsd dword [esi], dword es:[edi]
jb 0x43b3f3
jl 0x43b349
fmul qword gs:[edi + 0x2c]
scasb al, byte es:[edi]
in eax, dx
xchg byte [ebp - 0x1d], bh
jge 0x43b3a4
jge 0x43b3a4
aad 0x9f
and eax, 0x72619786
scasd eax, dword es:[edi]
adc al, 0xc2
pushal
push cs
invalid
ret 0xe60
pop ds
rcr esi, 1
pop es
test eax, 0x2e1ee39b
inc edx
outsd dx, dword [esi]
sub dword [esi + 0x2ece0e4e], 0xffffff8e
sub al, 0x58
jmp 0x43b44e
xor byte [esi*4 + 0x2c4f6356], al
add al, 0xb5
push esi
arpl word [edi + 0x2c], cx
pop ds
push ds
mov dh, 0xfe
lodsd eax, dword [esi]
jae 0x43b4ad
mov esp, 0xc4fe22c7
test byte [ecx - 0x7e], ah
xchg ecx, eax
ror dword [edi + 0x5b], 1
dec edi
add ebp, esi
cmc
sbb eax, edx
jae 0x43b3fe
mov gs, word [edi - 0x5d751142]
add ecx, dword [edx + 0xb]
rcr dword [esi - 0x1d7bcb5c], 1
sub al, 0x94
mov byte [0xd10b4a03], al
sahf
movsb byte es:[edi], byte [esi]
xor al, 0x84
loop 0x43b4ac
xchg esp, eax
pop edi
and cl, byte ds:[ebp + 0x433e6d45]
push es
xor byte [ebx - 0x5d6cfcfe], 0x39
cmovae ebp, dword [esi - 0x22]
loop 0x43b475
js 0x43b44d
ret 0xef84
mov cl, 0x8d
add al, 0x9e
sub eax, dword [esi + 0x1e8438ab]
xchg byte [ebx - 0x33e17bc8], ch
push edx
cli
add byte [ebx], 0x7d
mov byte [0xf00dd73e], al
mov dh, byte [esi]
inc edx
stosd dword es:[edi], eax
cmp byte [esi + ebx - 0x7d05ad34], al
add edi, dword [ebp - 0x5e]
xlatb
or eax, 0x42368af0
test byte [esi], bl
push ds
int3
dec ecx
mov byte [0xe2de2f5f], al
adc byte [edx - 0x53], ah
add dl, byte [ecx - 0x61f81dda]
cli
popal
add esp, edi
sal dword [ebx - 0x77], 1
je 0x43b4a7
jae 0x43b4e2
imul edx, ebp, 0xdb051580
jo 0x43b531
mov ch, 0x6b
jo 0x43b4ac
jge 0x43b4af
jb 0x43b4b0
dec edx
invalid
daa
xor byte [ebx + 0x167a9905], dl
stosd dword es:[edi], eax
pop es
and bh, al
add ah, byte ss:[edx + edi - 0x3cff799c]
or eax, 0xe2dde8b1
daa
dec ebx
jns 0x43b5b3
ret 0xe179
xor eax, dword [eax + 0x37]
insd dword es:[edi], dx
sub ebp, dword [edi + eax*8 + 0x48]
xchg esp, eax
movsb byte es:[edi], byte [esi]
ret
Function at 0x43bca1
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x7a
add eax, 0xa256740a
cmpsb byte [esi], byte es:[edi]
adc byte [ebp - 0x26d9945c], ah
push cs
daa
out 0x8d, al
sub byte [0xa51e2230], ah
mov ah, 0x5a
and al, 0xe2
imul edx, eax, 0xffffffb1
nop
pop ecx
or eax, 0x6caff9ec
adc al, 0xa4
push cs
daa
and eax, 0x37896577
cmp edi, dword [eax + 0x51]
or eax, 0x541545e5
xor ah, ah
add eax, 0x5ee4b4af
movsd dword es:[edi], dword [esi]
push eax
mul edx
out 0xf7, eax
xor al, 0xf1
invalid

Function at 0x450b4f
Capabilities:
Encode data using xor

Disassembly:
and byte [ebp - 0xf], bl
push eax
mov eax, dword [0xd1ba3a2c]
and eax, 0x600ea847
inc edi
test al, 0xe
pushal
xlatb
push ecx
out dx, al
xor al, byte [ebx]
imul ebp, dword [ebp + 0x28], 0x70
jnp 0x450b9d
sub ecx, dword [edx]
mov fs, word [esi - 3]
out 0xbb, al
and dword [ebx + 0x2a4bc1dc], esp
mov eax, 0x9e2d6cd7
pushfd
invalid
imul eax, dword [esi], 0x7ed0dd7d
cmp ebp, eax
xor al, 0xc0
call 0xa1b2b7e
fucomp st(1)
mov bl, 0x4b
pop ecx
mov eax, 0xcb166053
cmp dword [eax], ecx
jp 0x450b59
xchg ebx, eax
or byte [ebx + 0x53b2774a], ch
fdivr st(2)
invalid

Function at 0x450fff
Capabilities:
Encode data using xor

Disassembly:
inc ebx
sbb ah, byte [esi - 0x346a66]
pop ss
invalid
push cs
cmp ebp, dword [esi]
lcall 0xab80, 0x97d9f78f
wait
adc dword [eax + 0x5a], esp
mov al, 8
inc ebp
sub eax, 0x8cffdbf0
and ch, byte [edx + 0x1b7e2171]
jl 0x450f9d
xor al, 0x3f
sub ch, byte [eax]
sbb dl, byte [esp + edi*8 + 0x23b2f061]
push 0xffffffffffffffdf
inc esi
dec ecx
adc eax, 0x14aae3ad
inc ebp
xor dword [edx + 0x41], 0x4ef868fe
or edx, dword [0xf2131619]
wait
wait
sbb edi, eax
and bl, byte [esi + 0x51]
jb 0x45105d
pop ds
push ebx
mov dh, 0xe6
push ecx
or bl, byte [ebp - 0x46]
test byte [0xe0cbb8d3], cl
xor byte [edx], bh
inc ebx
dec edx
jnp 0x451045
sbb al, 0xb3
sbb dh, byte [edx]
loopne 0x450fbd
in eax, 0x71
idiv byte [edx - 0x1f6f0770]
les edi, [edx]
push eax
out 0xd0, al
mov edx, 0x483f553e
cmpsb byte [esi], byte es:[edi]
invalid
rcr dword [ecx - 0x1a1952d1], 0x41
pop es
pop esp
pop edi
xor byte [eax], cl
invalid
stc
dec esi
jmp 0x19a18a20

Function at 0x47d1ec
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x162c1fd6
jne 0x47d1f3
and eax, 0xdc59a7ba
mov al, 0xfa
dec esp
pop esi
mov esp, 0x89f528e1
inc edx
sbb edi, edx
jg fcn.0047d1ce
add ch, bh
pop ecx
lodsb al, byte [esi]
salc
jno 0x47d1c2
call dword [eax + edi*8 + 0x57]
push esp
clc
push edi
and edx, dword [ebx + 0x2a]
salc
mov edi, 0x13c4d25d
adc esi, esp
leave
arpl word [ebx + 0x78505dd2], si
inc esi
sbb dword [ecx], eax
in eax, 0x4b
jle 0x47d24a
xchg ebp, eax
lcall 0x4cc5, 0x9c967fab
xor eax, 0x5456e886
mov ebp, 0x953af446
cmpsb byte [esi], byte es:[edi]
inc esp
push ss
or al, 0x23
aad 0x3b
add al, 0xab
jae 0x47d1a2
invalid
mov ch, 0xd9
mov ecx, dword [edi]
int3
mov edi, 0x2f42f923
push eax
outsd dx, dword [esi]
xor bh, byte [edi]
inc esp
pop esp
ja 0x47d2bf
je 0x47d23e
cmp bl, byte [esi + 0x5cb9c4d9]
cmp bl, byte [esi + 0x5cb9c4d9]
clc
inc esp
fbstp tbyte [edi - 0x6c]
lcall 0xb2c6, 0x16d59848
adc al, 0x1a
cmc
sal ah, 1
ret
Function at 0x494bec
Capabilities:
Encode data using xor

Disassembly:
enter 0xfffffffffffff405, 0xfffffffffffffff2
pop ebx
bnd jp 0x494bf2
jp 0x494bf2
mov eax, 0x61fcd6ef
fiadd word [ebp + edi*2 + 0x4c]
add eax, 0xbef1739a
out dx, al
xor byte [ebp + 0x1212852e], 8
jg 0x494c04
sbb dword [edi - 0x34], eax
mov al, 0xad
invalid
out dx, al
invalid
invalid

Function at 0x4af021
Capabilities:
Encode data using xor

Disassembly:
arpl bx, cx
push ebx
xor ecx, dword [ebx - 0x14304953]
xchg ecx, eax
stosd dword es:[edi], eax
invalid
sub dword [0x2096edc7], 0xffffffb5
push cs
inc ebp
jns 0x4aeff1
xchg esi, eax
and byte [ebp - 0x3686baf2], dh
aas
test eax, 0x4a57eb64
push esi
push edx
fld st(5)
add eax, 0x1e7a1326
jb 0x4af03d
cdq
push esi
cmpsd dword [esi], dword es:[edi]
xor eax, 0x27a7fb92
xchg edx, eax
sti
cmpsd dword [esi], dword es:[edi]
daa
dec ecx
sub esp, dword [edi - 0x63624cb5]
sub al, ah
and dword [ebx - 0x5b714378], edi
and eax, 0xe1aad1c9
lahf
test eax, 0x4af9850d
xor eax, 0xe40517f4
wait
push es
push 0xffffffffffffffe6
lahf
mov dword [0x91a2e68a], eax
add eax, 0x9df24fa2
stosd dword es:[edi], eax
jae 0x4af091
iretd
adc edi, ecx
xor dword [edi], 0x2d582f3a
jp 0x4af01d
stosb byte es:[edi], al
xchg ebp, eax
lahf
pop ebx
pop edx
invalid

Function at 0x628d45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323b0
cmp edx, dword [eax]
je 0x628d67
add eax, 8
inc ecx
cmp eax, 0x632440
jl 0x628d58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323b0]
jne 0x628e95
mov eax, dword [0x636d8c]
cmp eax, 1
je 0x628e6f
test eax, eax
jne 0x628d98
cmp dword [0x6322dc], 1
je 0x628e6f
cmp edx, 0xfc
je 0x628e95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628dcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629bc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628e12
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629bc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ea3c
push edi
call fcn.0062ba90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629740
lea eax, [ebp - 0xa0]
push 0x62ea1c
push eax
call fcn.00629740
push dword [esi + 0x6323b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629740
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062ba04
add esp, 0x2c
pop edi
jmp 0x628e95
lea eax, [ebp + 8]
lea esi, [esi + 0x6323b4]
push 0
push eax
push dword [esi]
call fcn.00629bc0
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 0x40682c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, 8
ja case.0x40683c.1
jmp dword [eax*4 + 0x406924]
push dword [ebp + 0xc]
call fcn.0040694d
and dword [0x42c16c], 0
jmp case.0x40683c.1
mov eax, dword [0x42c16c]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x40683c.1
mov esi, dword [ebp + 0x10]
jb 0x406874
cmp eax, esi
jae case.0x40683c.1
call fcn.00406cfc
add dword [0x42c16c], 0x100000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x406874
ja case.0x40683c.1
cmp dword [0x42c16c], esi
jb 0x406874
jmp case.0x40683c.1
push dword [ebp + 0xc]
call fcn.0040694d
call fcn.00406cfc
jmp case.0x40683c.1
call fcn.00406cfc
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call fcn.00406a00
mov esi, eax
test esi, esi
jns case.0x40683c.1
push 0x403cec
jmp 0x406912
mov eax, dword [0x42c16c]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x40683c.1
mov esi, dword [ebp + 0x10]
jb 0x4068e2
cmp eax, esi
jae case.0x40683c.1
call fcn.00406cfc
add dword [0x42c16c], 0x80000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x4068e2
ja case.0x40683c.1
cmp dword [0x42c16c], esi
jb 0x4068e2
call fcn.00406d2f
mov esi, eax
test esi, esi
jns 0x40691a
push 0x403c74
push esi
call fcn.00408c66
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x406abf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x42c108], esi
je 0x406adb
mov eax, 0x8000ffff
jmp 0x406c3f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push ebx
xor ebx, ebx
inc ebx
push edi
mov dword [0x42c114], eax
cmp eax, esi
jne 0x406be9
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1f4
mov dword [0x42c0f0], eax
push eax
mov eax, 0x42c104
call fcn.00409858
push 0x42bf10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
push esi
push esi
push esi
mov dword [0x42c0fc], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x42c100], eax
cmp eax, esi
jne 0x406b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jle 0x406b4d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jl 0x406b59
mov dword [ebp - 4], 0x80004005
push 0x403d8c
jmp 0x406ba4
push esi
push esi
push esi
push 0x406d65
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42c0f4], eax
cmp eax, esi
jne 0x406bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jle 0x406b93
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jl 0x406b9f
mov dword [ebp - 4], 0x80004005
push 0x403dc8
push dword [ebp - 4]
call fcn.00408c66
pop ecx
pop ecx
jmp 0x406bef
push 0xffffffffffffffff
push dword [0x42c100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, word [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 0x10
push eax
push esi
push 0x401
push dword [0x42c0f8]
call edi
push esi
push ebx
push 0x404
push dword [0x42c0f8]
call edi
mov dword [0x42c108], ebx
cmp dword [ebp - 4], esi
jge 0x406c3a
cmp dword [0x42c0fc], esi
je 0x406c0d
push 0x42bf10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x42c0fc], esi
mov eax, dword [0x42c104]
cmp eax, esi
je 0x406c1c
push eax
call fcn.0040956f
mov eax, dword [0x42c0f4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x406c2e
push eax
call edi
mov eax, dword [0x42c100]
cmp eax, esi
je 0x406c3a
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x407c55
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf0000000
xor ebx, ebx
stosd dword es:[edi], eax
push 1
push ebx
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x20]
push eax
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x407cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x407cb2
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x407cb9
mov esi, 0x80004005
push 0x40454c
jmp 0x407d85
lea eax, [ebp - 0x14]
push eax
push 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x407d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x407cf0
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x407cf7
mov esi, 0x80004005
push 0x404570
jmp 0x407d85
mov bl, byte [ebp - 0x14]
mov edi, dword [ebp - 0x24]
and bl, 7
add bl, 9
add bl, bl
mov dword [edi], esi
mov byte [ebp - 0x15], 0
je 0x407d8d
movzx eax, byte [ebp - 0x15]
and dword [ebp - 0x1c], 0
shr eax, 1
movzx eax, byte [ebp + eax - 0x14]
push eax
lea eax, [ebp - 0x1c]
push 0x404594
push eax
call fcn.00409288
mov esi, eax
add esp, 0xc
test esi, esi
js 0x407d79
cmp dword [edi], 0
jne 0x407d4a
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x407d6a
push 0
push dword [ebp - 0x1c]
mov eax, edi
call fcn.004091c7
mov esi, eax
test esi, esi
js 0x407d80
cmp dword [ebp - 0x1c], 0
je 0x407d6a
push dword [ebp - 0x1c]
call fcn.0040956f
add byte [ebp - 0x15], 2
and dword [ebp - 0x1c], 0
cmp byte [ebp - 0x15], bl
jb 0x407d17
jmp 0x407d8d
push 0x4045a0
jmp 0x407d85
push 0x4045e0
push esi
call fcn.00408c66
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x407d9e
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x1c], edi
je 0x407dab
push dword [ebp - 0x1c]
call fcn.0040956f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
leave
ret 4
Function at 0x407dc3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
mov ax, word [ecx]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 8], ax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80a]
push eax
call fcn.0041e230
add esp, 0xc
mov esi, 0x400
push esi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x407e2d
xor al, al
jmp 0x407e6b
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00419916
lea eax, [ebp - 0x80c]
push 0x404620
push eax
call fcn.00419932
add esp, 0x10
test eax, eax
jne 0x407e69
lea eax, [ebp - 0x80c]
push 0x404634
push eax
call fcn.00419932
pop ecx
pop ecx
test eax, eax
je 0x407e29
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004195c9
leave
ret
Function at 0x40813c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x404940
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x38], eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 6
mov dword [ebx], eax
pop ecx
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov dword [ebp - 0x40], esi
call edi
mov dword [ebp - 0x3c], eax
or eax, 1
push eax
call edi
mov eax, dword [ebx]
dec eax
dec eax
je 0x4081a1
dec eax
je 0x4081fb
sub eax, 3
jne 0x4081c9
mov dword [ebx], 3
jmp 0x4081fb
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
push esi
push esi
push 3
push esi
push 3
mov word [ebp - 0x10], ax
push SysReAllocString
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x4081cd
mov dword [ebx], esi
jmp 0x4081fb
push esi
lea ecx, [ebp - 0x40]
push ecx
push 0x18
lea ecx, [ebp - 0x34]
push ecx
push esi
push esi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4081f0
cmp dword [ebp - 0x2c], 0xb
je 0x4081fb
push dword [ebp - 0x38]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call edi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004195c9
leave
ret 4