joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6edd00
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp + 0x10], eax
inc ecx
lea ebx, [ecx + 0x83]
cld
mov ebx, eax
lea edx, [ebx + edi]
jmp 0x6edd62
pop si
mov dword [esp + 0x2f], esi
jmp 0x6edce8
xchg ebp, eax
popal
bsr si, bp
lea esp, [esp + 1]
lea edx, [eax*4]
jmp 0x6eddb8
neg bh
mov cx, 0x1473
mov byte [esp + 0x1b], ah
push word [esp + 0x19]
mov dh, byte [esp + 0x10]
bswap ecx
jmp 0x6edd2d
push dword [esp + 0x2a]
xchg dword [esp + 0xe], edi
add esp, 5
add al, dh
pop bx
btr ebp, esp
jmp 0x6edd45
lea ecx, reloc.WINMM.dll_midiStreamOut
mov ch, byte [esp + 0x11]
sub esp, 0x1c
lea eax, [eax - 0x21]
push word [esp + 7]
jmp 0x6edde8
xchg byte [esp + 4], bl
mov bh, byte [esp + 0xb]
mov edx, dword [esp + 5]
mov cl, 0xba
lea edx, [edi*4]
pop dx
jmp 0x6edd76
mov byte [esp + 0x10], dh
cmc
mov ebx, 0x738f037e
push word [esp + 0xb]
not esi
mov cx, word [esp + 0xe]
jmp 0x6edd95
xor ax, 0x26fc
ror ecx, 0x17
mov dh, byte [esp + 0xb]
pop dword [esp + 0xc]
bswap edx
jmp 0x6ee66e
mov ax, 0xba57
mov dh, byte [esp + 0xf]
mov ebx, dword [esp + 0x25]
clc
push edx
jmp 0x6eddd0
setge bh
mov edx, dword [esp + 3]
sub esp, 0
pushal
pop dword [esp + 0x1c]
push dword [esp + 3]
jmp 0x6edee2
mov bp, word [esp + 1]
mov esi, dword [esp + 2]
rol bx, cl
pop dx
xchg edx, eax
xchg bp, bx
jmp 0x6ede06
rdtsc
call fcn.006ede99
loope 0x6edf6a
out dx, eax
mov bh, byte [ecx + 0x30]
leave
push eax
invalid
lea ebx, [edx*4]
rdtsc
bsf bp, ax
pop ecx
lea esp, [esp + 8]
add byte [eax], al
add byte [edi], cl
xor dword [esi + 0xf], esp
mov esp, 0x648d59e8
and al, 8
xchg byte [esp + 2], bl
jmp 0x6ede1f
xchg ah, bl
not bx
setge ah
not eax
rdtsc
bsf bp, ax
jmp 0x6edfc6
call 0x28f8395a
dec ebx
loop 0x6edeff
adc al, 0x95
add byte [eax], al
add byte [eax], al
push edx
mov dword [esp + 1], ebp
lea esp, [esp + 3]
mov ebx, esi
bswap ebp
jmp 0x6edf5b
sub esp, 0x1c
lea edx, [edx + edi]
cpuid
mov bp, sp
add esp, 0xb
lea ebp, [edx*4]
jmp 0x6ee198
mov al, 0xd6
call fcn.006edff6
cpuid
xchg word [esp + 2], bx
mov ecx, eax
rdtsc
lea edi, [esi*4]
inc bx
jmp 0x6ee145
rdtsc
mov bh, byte [esp]
cld
xchg dh, al
mov edi, dword [esp]
mov dx, 0x346d
jmp 0x6ee00c
push word [esp + 0x1a]
call int.006ee08e
xlatb
push ebp
lds ebp, [edi + ebx*2 + 0x54c647bc]
xor ecx, esi
sub al, 0xf7
ficomp word [edi + 0x66]
pop edi
pop edi
pop di
xchg dword [esp + 0x14], edx
xchg word [esp + 2], dx
mov word [esp + 4], di
btc esi, ebx
jmp 0x6ee043
xchg ch, dl
add esp, 4
mov cl, ch
sub esp, 0x16
btr ebp, edx
bsr bp, bp
jmp 0x6ee05b
rol si, cl
rcr eax, 0x1b
push dword [esp + 4]
push esp
push word [esp + 2]
lea ebx, [esi*4]
jmp 0x6ee0a7
mov bp, bx
mov dword [esp + 9], ebp
lea esp, [esp + 0xb]
lea esp, [esp + 6]
neg bh
cmc
jmp 0x6ee032
mov byte [esp + 0x13], ch
xchg bx, ax
xchg byte [esp + 6], bl
btr edx, esp
pop ebp
xchg dword [esp + 2], edx
jmp 0x6ee16a
cpuid
lea ecx, [esi + 0x45]
pop word [esp + 1]
neg ebx
pop bp
mov bx, word [esp + 0xa]
jmp 0x6edefb
lea ebx, [ebp + 0x47]
bsf dx, si
lea esp, [esp + 0x15]
mov ax, bx
lea eax, [ecx*4]
mov bp, sp
jmp 0x6ee1bd
Function at 0x6ede7c
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc dl
push dword [esp]
pop dx
mov byte [esp + 4], dh
and edi, ecx
mov byte [esp], dh
jmp 0x6ede59
btr esi, esp
xchg ebp, edx
neg ah
pop si
jmp 0x6ede39
Function at 0x6ee5a9
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x6ee5ff
lea ebx, reloc.WINMM.dll_midiStreamOut
xchg bp, bx
inc dx
xchg bh, cl
cpuid
stc
jmp 0x6ee5de
neg ecx
pop dword [esp + 0x1c]
bsr bp, cx
add bx, 0x9516
mov esi, 0xbad42cba
xchg dword [esp + 6], edx
jmp 0x6ee5ab

Function at 0x6ee818
Capabilities:
Execute anti-debugging instructions

Disassembly:
cld
pop dword [esp]
xchg byte [esp + 4], cl
xchg word [esp], bx
neg bh
jmp 0x6ee84f
xchg byte [esp], dl
btr eax, esp
cmc
rdtsc
bsr si, cx
xchg dword [esp], ebp
jmp 0x6ee8d3
lea ecx, [edi*4]
mov ebx, dword [esp + 7]
bsf di, ax
not edi
jmp 0x6ee8a8
lea edx, [esp + ebp]
push esp
setg dh
pop word [esp + 5]
push word [esp + 0xc]
lea esp, [esp + 2]
jmp 0x6ee8bd
sub esp, 6
xchg dx, di
pop esi
sub bx, 0x8be0
mov dx, sp
xchg dword [esp + 4], ecx
jmp 0x6ee88d
lea esp, [esp + 1]
lea esp, [esp + 0xc]
popal
push esp
lea esp, [esp + 3]
jmp 0x6ee903
pop word [esp]
mov di, bx
mov eax, ebp
lea ecx, [ecx + 0x33]
push dword [esp + 1]
rdtsc
jmp 0x6ee861
mov byte [esp], dh
add esp, 0
mov byte [esp], dh
clc
cld
call fcn.006ee8ea
add esp, 3
lea esp, [esp + 2]
popfd
jmp 0x6eec1c
push 0x6e4c1a9f
add dword [esp], reloc.WINMM.dll_midiStreamOut
call fcn.006ee9d6

Function at 0x6f150d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp]
cpuid
mov edi, 0xe7211a58
mov cl, ch
mov bp, word [esp]
xchg ebp, eax
jmp 0x6f1536
clc
mov si, 0xff1b
mov byte [esp], bh
add esp, 0
xchg byte [esp], al
xchg byte [esp], bl
jmp 0x6f14be
mov eax, 0xc9b12f52
bswap ecx
bswap eax
mov bx, di
xchg byte [esp], dl
not ah
jmp 0x6f14db
mov bx, word [esp + 2]
lea esp, [esp + 3]
mov al, ah
jmp 0x6f14f4

Function at 0x6f2ad7
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 3]
not esi
btr edx, edx
mov word [esp + 0xd], sp
jmp 0x6f2a07
xchg word [esp], cx
cpuid
xchg dx, cx
inc dx
mov bp, word [esp + 0x17]
xchg bx, si
jmp 0x6f2ac9
cpuid
rdtsc
xchg word [esp + 0x12], bp
call fcn.006f2aa2
push word [esp + 1]
neg edx
push dword [esp]
jmp 0x6f2b59
mov al, 6
sub esp, 0xe
mov dword [esp + 5], ebp
call 0x6f2ad7
fild dword [ecx - 0x2f]
mov al, 0x43
test byte [eax - 0x789905bd], 0x54
and al, 1
xchg word [esp + 1], dx
mov dword [esp], ecx
cpuid
xchg word [esp + 3], bp
pop word [esp + 1]
pop word [esp]
jmp 0x6f2aef
sub esp, 4
pop word [esp + 1]
mov dword [esp], eax
mov byte [esp + 1], bh
xchg dword [esp], eax
mov ah, byte [esp + 3]
jmp 0x6f2b06
mov si, sp
mov ch, byte [esp + 3]
inc cl
xchg ecx, ebx
not bh
mov di, word [esp + 0x16]
jmp 0x6f2bae
xchg ah, bl
xchg ah, bl
pop dword [esp + 0xa]
push esp
mov word [esp], bx
bswap edx
jmp 0x6f2b40
add al, dh
shr edi, 9
lea ecx, [eax*4]
btr edi, esp
mov bh, byte [esp + 0x1a]
btr esi, esp
jmp 0x6f2bbf
rdtsc
shr dh, 7
sub esi, eax
inc ebx
mov bl, 0xf8
lea esp, [esp + 1]
jmp 0x6f2b6a
mov ebx, eax
clc
push word [esp + 1]
cpuid
rcr ebp, 0x1b
cpuid
jmp 0x6f2b8e
mov word [esp + 0x17], dx
rdtsc
neg cx
mov di, word [esp + 0x17]
call fcn.006f2c11
fdivr dword [ebx]
mov esi, dword [esp + 1]
lea edi, [edx + ebx]
xchg word [esp + 1], cx
mov edx, esi
xchg dh, al
xchg byte [esp + 1], bl
jmp 0x6f2b28
Function at 0x6f2dc9
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov si, 0x732f
mov dl, 0x24
mov si, 0xb1d
push dword [esp + 2]
mov esi, 0x875983f0
pop word [esp + 1]
jmp 0x6f2dd8
xchg esi, eax
mov cx, word [esp + 6]
popal
lea ecx, [ecx - 0xfb]
jmp 0x6f2da6
lea esp, [esp + 1]
xor dl, ch
push word [esp + 2]
mov si, 0xcb29
xchg bh, cl
pop word [esp + 1]
jmp 0x6f2e21
mov di, dx
xchg word [esp + 1], cx
xchg ebx, edi
pop ecx
btr ecx, esp
xchg si, cx
jmp 0x6f2e05

Function at 0x6f314b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 9], dx
rdtsc
jmp 0x6f3177

Function at 0x6f3337
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bx, word [esp]
lea esi, [ecx*4]
pop ax
mov bp, word [esp]
mov word [esp], di
mov bp, word [esp + 2]
lea esi, [edx*4]
jmp 0x6f300a
setle ah
xchg byte [esp + 2], dl
rol si, cl
mov cx, word [esp + 8]
not cx
pop dword [esp]
jmp 0x6f3032
rdtsc
xor di, 0xdb04
mov ax, sp
mov edi, dword [esp + 5]
setp bh
neg cx
jmp 0x6f30b1
jmp 0x6f312f

Function at 0x6f35f7
Capabilities:
Execute anti-debugging instructions
Parse pe header

Disassembly:
mov word [esp], di
lea esp, [esp + 1]
mov byte [esp + 2], ch
jmp 0x6f35bd
lea esp, [esp + 3]
lea esp, [esp + 3]
mov dword [esp + 0x30], ebp
call 0x6f35f7
xor ebx, eax
push ebx
lds ebp, ss:[eax]
push es
mov cl, 0x66
mov dword [esp], edi
push dword [esp + 2]
mov byte [esp + 5], ch
mov dword [esp + 0x34], esp
call fcn.006f35a2
mov edi, 0x32c7a032
sal dword [ebx - reloc.WINMM.dll_midiStreamOut], 1
mov byte [esp], ch
jmp 0x6f35d6
mov dword [esp], ebp
pushal
mov byte [esp + 0x1f], ah
jmp 0x6f3722
pop dword [esp + 8]
call fcn.006f3705

Function at 0x6f3705
Capabilities:
Check for peb beingdebugged flag
Execute anti-debugging instructions
Parse pe header

Disassembly:
pop word [esp + 1]
push esp
mov dword [esp + 3], eax
mov word [esp + 4], di
pop word [esp + 1]
jmp 0x6f369d
mov word [esp + 0x26], sp
lea esp, [esp + 2]
mov dword [esp + 0x54], esi
push esp
push edx
pop word [esp + 1]
jmp 0x6f36c8
mov word [esp], dx
push dword [esp + 0x1c]
push word [esp + 0x21]
mov byte [esp + 0x1f], bh
mov dword [esp + 0x25], ebp
jmp 0x6f36e4
Function at 0x4030d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x412200]
push ebp
mov ebp, dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x58]
push edi
mov dword [esp + 0x48], eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [str.SOFTWAREKWMUSIC]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], 1
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403172
mov ecx, dword [0x4120ec]
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x64]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403167
mov byte [esi], 0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403177
sub eax, edx
mov dword [esp + 0x60], eax
jne 0x40327c
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403a00
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x54], 0
ja 0x4031c2
cmp dword [esp + 0x44], 0x10
jb 0x4031bb
mov edx, dword [esp + 0x30]
push edx
call fcn.00405f98
add esp, 4
xor al, al
jmp 0x403283
mov ecx, dword [esp + 0x44]
mov edi, 0x10
cmp ecx, edi
mov ecx, dword [esp + 0x30]
jae 0x4031d7
lea ecx, [esp + 0x30]
cmp byte [ecx + eax - 1], 0x5c
jne 0x40321b
dec eax
push eax
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.00401870
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.00401650
cmp dword [esp + 0x28], edi
mov byte [esp + 0x54], 0
jb 0x40321b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x403229
lea eax, [esp + 0x30]
mov edx, dword [0x4120ec]
push eax
mov eax, dword [str.SOFTWAREKWMUSIC]
push edx
push eax
push 0x80000002
call fcn.00404b90
mov eax, dword [esp + 0x54]
add esp, 0x10
cmp eax, edi
mov eax, dword [esp + 0x30]
jae 0x403254
lea eax, [esp + 0x30]
push eax
push 0x40f294
lea ecx, [ebp - 1]
push ecx
push esi
call fcn.00405f9d
mov eax, dword [esp + 0x54]
add esp, 0x10
cmp eax, edi
jb 0x40327c
mov edx, dword [esp + 0x30]
push edx
call fcn.00405f98
add esp, 4
mov byte [esi + ebp - 1], 0
mov al, 1
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40]
pop ebp
call fcn.00405b2e
add esp, 0x4c
ret
Function at 0x403340
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x412200]
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x118]
push edi
mov dword [esp + 0x110], eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004032a0
add esp, 8
test al, al
je 0x4033aa
lea ecx, [esp + 0xc]
push ecx
push esi
push ebx
push 0
push str.Version
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4033c2
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.00405b2e
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
mov byte [ebx + esi - 1], 0
pop esi
mov al, 1
pop ebx
call fcn.00405b2e
add esp, 0x108
ret

Function at 0x4034c0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x10
mov eax, dword [0x412200]
mov dword [esp + 0xc], eax
xor eax, eax
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push ecx
push eax
mov eax, dword [esp + 0x24]
push 0xc
lea edx, [esp + 0x14]
push edx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0xc]
call fcn.00405b2e
add esp, 0x10
ret
Function at 0x403530
Capabilities:
Get disk information

Disassembly:
sub esp, 0x160
mov eax, dword [0x412200]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x174]
test esi, esi
mov dword [esp + 0x168], eax
push edi
jle 0x40356a
mov edi, dword [esp + 0x174]
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edi, edi
dec esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
cmp ebx, dword [esp + 0x18]
jge 0x4036b8
mov eax, dword [esp + 0x14]
mov ebp, 1
mov ecx, edi
shl ebp, cl
test eax, ebp
je case.0x4035ca.0
lea esi, [edi + 0x41]
push esi
lea ecx, [esp + 0x20]
push str._c:_
push ecx
call fcn.00406844
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x4035ca.0
jmp dword [eax*4 + 0x4036d0]
mov ecx, ebp
xor al, al
test cl, 1
jne 0x4035e2
shr ecx, 1
inc al
cmp al, 0x1a
jl 0x4035d5
mov ecx, dword [esp + 0x174]
add al, 0x41
mov byte [ebx + ecx], al
jmp 0x4036a9
push esi
push str.__c:
lea edx, [esp + 0x48]
push 0x12b
push edx
call fcn.00405f9d
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x187], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je case.0x4035ca.0
push 0x227
call fcn.004053f9
mov edi, eax
push edi
push esi
mov dword [edi + 4], 0x227
call fcn.004034c0
add esp, 0xc
test eax, eax
je 0x40366f
cmp dword [edi + 0x1c], 7
jne 0x40366f
push ebp
call fcn.00403510
mov ecx, dword [esp + 0x178]
add esp, 4
mov byte [ebx + ecx], al
inc ebx
push edi
call fcn.00405f98
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
jmp case.0x4035ca.0
mov ecx, ebp
xor al, al
lea esp, [esp]
test cl, 1
jne 0x40369d
shr ecx, 1
inc al
cmp al, 0x1a
jl 0x403690
mov edx, dword [esp + 0x174]
add al, 0x41
mov byte [ebx + edx], al
inc ebx
inc edi
cmp edi, 0x20
mov dword [esp + 0x10], edi
jb 0x403581
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00405b2e
add esp, 0x160
ret
Function at 0x403c00
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x403d2d
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403d2d
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov eax, ebp
cdq
mov edi, 3
idiv edi
mov edi, ebp
mov ecx, ebx
sub edi, edx
test edi, edi
jle 0x403c9f
lea edx, [edi - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
movzx ebx, byte [esi + 1]
xor eax, eax
mov al, byte [esi]
shr ebx, 4
inc ecx
add esi, 3
and eax, 3
shl eax, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
movzx ebx, byte [esi - 1]
xor eax, eax
mov al, byte [esi - 2]
shr ebx, 6
inc ecx
and eax, 0xf
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
xor eax, eax
mov al, byte [esi - 1]
inc ecx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
inc ecx
dec edx
jne 0x403c41
mov ebx, dword [esp + 0x14]
sub ebp, edi
cmp ebp, 1
jne 0x403cdc
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
xor edx, edx
mov dl, byte [esi]
inc ecx
pop edi
pop ebp
pop esi
and edx, 3
shl edx, 4
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, ecx
sub eax, ebx
mov byte [ecx], 0
pop ebx
ret
cmp ebp, 2
jne 0x403d21
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
movzx eax, byte [esi + 1]
xor edx, edx
mov dl, byte [esi]
shr eax, 4
inc ecx
and edx, 3
shl edx, 4
mov dl, byte [edx + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], dl
xor eax, eax
mov al, byte [esi + 1]
inc ecx
and eax, 0xf
mov dl, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
pop ebp
mov eax, ecx
pop esi
sub eax, ebx
mov byte [ecx], 0
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x404710
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40e4e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
push esi
call fcn.004053f9
add esp, 4
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, ebx
jle 0x404812
mov esi, ebp
mov edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x14], eax
mov edi, edi
mov al, byte [esi]
push edi
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], bl
call ebp
cmp eax, 3
jne 0x4047f9
lea eax, [esp + 0x10]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4047a3
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401740
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x44], ebx
call fcn.004043c0
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x40], 0xffffffff
jb 0x4047e9
mov eax, dword [esp + 0x20]
push eax
call fcn.00405f98
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x14]
add esi, 4
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x404770
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00405f98
mov ecx, dword [esp + 0x3c]
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x404a40
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], eax
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x404a61
mov eax, dword [edi]
jmp 0x404a63
mov eax, edi
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404adf
mov eax, dword [ebp + 0x18]
mov ecx, 0x10
cmp eax, ecx
jb 0x404a8d
mov ebp, dword [ebp + 4]
jmp 0x404a90
add ebp, 4
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x404a9e
mov eax, dword [eax + 4]
jmp 0x404aa1
add eax, 4
mov edx, dword [esp + 0x10]
push edx
push ebp
push 1
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x404ad0
mov ecx, dword [esp + 0x24]
push ecx
call esi
test eax, eax
je 0x404b72
mov edx, dword [esp + 0x24]
push edx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x404b81
push esi
push ebx
call fcn.004049f0
add esp, 8
test al, al
je 0x404b81
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x18], 0x10
jb 0x404b0b
mov eax, dword [edi]
jmp 0x404b0d
mov eax, edi
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b81
mov eax, dword [ebp + 0x18]
mov ecx, 0x10
cmp eax, ecx
jb 0x404b33
mov ebp, dword [ebp + 4]
jmp 0x404b36
add ebp, 4
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x404b44
mov eax, dword [eax + 4]
jmp 0x404b47
add eax, 4
mov edx, dword [esp + 0x10]
push edx
push ebp
push 1
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x404b7a
mov ecx, dword [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x404b7a
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x1c]
push edx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x404d80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x412200]
push ebx
mov ebx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x118]
push edi
mov dword [esp + 0x114], eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004032a0
add esp, 8
test al, al
je 0x404dff
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push 0
push str.userfile
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x404dff
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404df0
sub eax, edx
mov dword [esp + 0xc], eax
jne 0x404e17
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.00405b2e
add esp, 0x10c
ret
mov ecx, dword [esp + 0x114]
pop edi
mov byte [esi + ebx - 1], 0
pop esi
mov al, 1
pop ebx
call fcn.00405b2e
add esp, 0x10c
ret

Function at 0x404e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x412200]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
shr ecx, 2
push esi
push edi
mov dword [esp + 0x224], eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x404ebb
lea ecx, [esp + 0x118]
push 0x104
push ecx
call fcn.00404d80
add esp, 8
test al, al
jne 0x404ed0
xor al, al
mov ecx, dword [esp + 0x224]
call fcn.00405b2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404ee0
mov edi, ebx
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404ef0
mov dx, word [0x40f49c]
lea eax, [esp + 0x118]
mov word [edi], dx
mov edx, eax
jmp 0x404f10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f10
sub eax, edx
dec ebx
mov edi, ebx
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404f20
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x224]
mov al, 1
call fcn.00405b2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret