joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025958
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1007d700]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002599e
cmp word [ebx], dx
jne 0x1002599e
or byte [eax + edi + 0x28], 4
jmp 0x100259a3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10025b06
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10025ae6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100259e4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10025a1a
cmp eax, edx
jae 0x10025a28
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100259bf
jmp 0x10025b06
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10025ae1
cmp dword [ebp - 0x18], 0
je 0x10025ae1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1007d700]
test byte [eax + edi + 0x28], 0x48
je 0x10025ab7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10025a7b
mov word [esi], cx
jmp 0x10025ab2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1007d700]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1007d700]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1007d700]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10025b06
pop eax
cmp word [ebp - 4], ax
jne 0x10025ac7
cmp esi, ebx
jne 0x10025ac7
mov word [esi], ax
jmp 0x10025b03
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10048e6c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10025b06
push 0xd
pop eax
jmp 0x10025ac2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1007d700]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10025b00
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10025b06
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10028040
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1006f344
push esi
call fcn.10052a42
pop ecx
pop ecx
test eax, eax
jne 0x1002806e
xor al, al
jmp 0x100280eb
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10027c9d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100280a8
push dword [ebp - 0x210]
call fcn.100426da
xor al, al
jmp 0x100280e9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100280ae
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100280ce
push edx
call fcn.10027f77
pop ecx
test al, al
je 0x10028099
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100280dc
mov bl, 1
push dword [ebp - 0x210]
call fcn.100426da
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10016095
leave
ret
Function at 0x1004dc0c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007057c
push 0x10070574
push str.FlsAlloc
push 0x1f
call fcn.1004d8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004dc40
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
jmp 0x1004dc46
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004dc8a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007058c
push 0x10070584
push str.FlsGetValue
push 0x21
call fcn.1004d8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004dcc1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004dcc9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10070594
push 0x1007058c
push str.FlsSetValue
push 0x22
call fcn.1004d8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004dd03
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006e184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004ed4c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004eb5a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004eebb
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004eebb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004ee70
jg 0x1004eda8
test eax, eax
je 0x1004ee66
push 1
push 0x1000
call fcn.100515ec
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004edcb
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004ee5d
push 0x8000
push ebx
call fcn.1004c62e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004edf4
jg 0x1004edef
cmp ecx, 0x1000
jb 0x1004edf4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10049821
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004ee39
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004edef
jl 0x1004ee20
test ecx, ecx
jne 0x1004ede1
push dword [ebp - 0xc]
push ebx
call fcn.1004c62e
push esi
call fcn.1004c40c
add esp, 0xc
xor ebx, ebx
jmp 0x1004eec9
cmp byte [edi + 0x24], 0
je 0x1004ee50
cmp dword [edi + 0x20], 5
jne 0x1004ee50
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004ee5b
mov ebx, dword [edi + 0x18]
jmp 0x1004ee5d
xor ebx, ebx
push esi
call fcn.1004c40c
pop ecx
jmp 0x1004eec9
test ecx, ecx
jg 0x1004ee32
jl 0x1004ee70
test eax, eax
jae 0x1004ee32
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10048e6c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004ee90
cmp byte [edi + 0x1c], 0
je 0x1004ee32
jmp 0x1004eec1
push ebx
call fcn.1004e8c4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004ee32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004eec9
cmp byte [edi + 0x1c], 0
je 0x1004eec6
mov ebx, dword [edi + 0x18]
jmp 0x1004eec9
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10048e6c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10056585
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10056459
Function at 0x1005a3e6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1005a431
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1005a743
test al, al
jne 0x1005a42b
sub edx, 2
cmp edx, edi
jne 0x1005a411
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1005a453
lea eax, [edi + 2]
cmp edx, eax
je 0x1005a453
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1005a0ad
add esp, 0x10
jmp 0x1005a54d
push esi
lea ecx, [ebp - 0x255]
call fcn.1005a743
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005a496
push dword [ebp - 0x25c]
jmp 0x1005a443
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1005a4d3
cmp word [ebp - 0x226], 0
je 0x1005a4f4
cmp word [ebp - 0x226], ax
jne 0x1005a4d3
cmp word [ebp - 0x224], 0
je 0x1005a4f4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1005a0ad
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1005a540
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1005a4ad
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1005a528
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1005a54d
push 0x10059caf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10022320
add esp, 0x10
jmp 0x1005a51d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016095
leave
ret
Function at 0x1005b78b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005b828
push ebx
push esi
call fcn.1005b747
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100511e3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005b7d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b827
push edi
push eax
call fcn.1004c446
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005b7f5
call fcn.1004c40c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b826
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100511e3
add esp, 0x20
test eax, eax
jne 0x1005b814
push edi
call fcn.1004c40c
jmp 0x1005b81c
push ebx
call fcn.1004c40c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005b82b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005b83c
pop esi
ret
push ebx
push edi
push esi
call fcn.1005b747
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004c446
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005b864
push ebx
push esi
push edi
call fcn.1001ff40
add esp, 0xc
push 0
call fcn.1004c40c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005c108
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005bad9

Function at 0x1005f6ae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004cfa6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f71d
cmp esi, dword [ebp - 4]
je 0x1005f718
cmp dword [ebp + 0xc], 0
je 0x1005f718
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005f6f5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005f200
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005f71f
xor eax, eax
inc eax
jmp 0x1005f71f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005f784
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004cfa6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004cfa6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005f7fb
cmp word [ecx], dx
je 0x1005f7fb
mov eax, dword [0x100741c4]
push edi
dec eax
push eax
push 0x100740b0
call fcn.1005f723
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005f86e
cmp word [eax], dx
je 0x1005f86e
mov eax, dword [edi]
test eax, eax
je 0x1005f81f
cmp word [eax], dx
je 0x1005f81f
lea eax, [ebp - 0x10]
push eax
call fcn.1005f106
jmp 0x1005f828
lea eax, [ebp - 0x10]
push eax
call fcn.1005f1a1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005f898
mov eax, dword [0x100740ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10073da0
call fcn.1005f723
add esp, 0xc
test al, al
je 0x1005f898
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005f863
cmp word [eax], di
je 0x1005f863
lea eax, [ebp - 0x10]
push eax
call fcn.1005f106
pop ecx
jmp 0x1005f89a
lea eax, [ebp - 0x10]
push eax
call fcn.1005f1a1
jmp 0x1005f860
mov eax, dword [edi]
test eax, eax
je 0x1005f885
cmp word [eax], dx
je 0x1005f885
lea eax, [ebp - 0x10]
push eax
call fcn.1005f09d
pop ecx
jmp 0x1005f898
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005f963
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005f5a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005f963
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005f963
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005f963
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005f8f0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004df9a
test ebx, ebx
je 0x1005f95e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004df9a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f963
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f963
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10055d80
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005f965
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016095
leave
ret
Function at 0x1005fdcf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005fe12
call fcn.10042628
mov dword [eax], 0xf
call fcn.1004263b
mov dword [eax], 0xd
call fcn.1004ba73
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016095
leave
ret
test eax, eax
jne 0x1005fe19
inc eax
jmp 0x1005fe06
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1005fe04
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005fe06

Function at 0x906058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009061a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x90607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90606a
add dl, dl
jne 0x906089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9060dc
xor eax, eax
add dl, dl
jne 0x906096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90617d
add dl, dl
jne 0x9060a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9060d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x906075
mov eax, 1
add dl, dl
jne 0x9060ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9060e1
sub eax, ebx
mov ebx, 1
jne 0x906128
mov ecx, 1
add dl, dl
jne 0x90610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x906119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906136
cmp eax, 0x7d00
jae 0x90616d
cmp eax, 0x500
jb 0x906168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
cmp eax, 0x7f
ja 0x906170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x906075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa11e70
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0xa11eb9
mov ecx, dword [ecx + 4]
push ecx
mov ecx, esi
call fcn.00a11ed0
mov eax, esi
ret
add ecx, 4
push ecx
mov ecx, esi
call fcn.00a11ed0
mov eax, esi
ret

Function at 0xa12fe0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
lea ecx, [esp + 8]
push ecx
mov ecx, dword [eax + 0x20c]
lea edx, [esp + 8]
push edx
push 0
or ecx, 0x20006
push ecx
push 0
push 0
push 0
lea edx, [eax + 4]
mov eax, dword [eax]
push edx
push eax
xor bl, bl
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xa13049
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 3
push eax
mov eax, dword [esp + 0x14]
push str.6FE14B1E_464E_4942_85C4_5426E2E522B1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xa13049
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0xa13063
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0xa136e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0xad37c9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], edi
mov esi, 1
push ebp
mov dword [esp + 0x6c], esi
call fcn.00a13960
mov dword [esp + 0x18], esi
cmp ebx, edi
je 0xa138c2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xa13746
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x88], eax
jb 0xa138c2
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x7c]
xor eax, eax
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
call fcn.00a11910
mov byte [esp + 0x68], 2
cmp dword [esp + 0x54], edi
jbe 0xa138ae
jmp 0xa137a4
mov ebx, dword [esp + 0x38]
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xa137b0
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
xor eax, eax
lea edx, [esp + 0x44]
call fcn.00a13a70
mov esi, eax
cmp esi, edi
jl 0xa13889
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0xa137e6
lea eax, [esp + 0x44]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.00a11c90
lea eax, [esp + 0x1c]
push eax
mov ebx, ebp
mov byte [esp + 0x6c], 3
call fcn.00a139c0
mov bl, 2
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], 8
jb 0xa1382f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, eax
push esi
lea ecx, [esp + 0x48]
xor edx, edx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.00a11910
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 4
call fcn.00a11910
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], 8
jb 0xa138a4
mov eax, dword [esp + 0x20]
push eax
call fcn.00a7ac28
add esp, 4
jmp 0xa138a4
lea ecx, [esp + 0x40]
push ecx
mov ebx, ebp
call fcn.00a139c0
push edi
push 0xae5e48
lea ecx, [esp + 0x48]
call fcn.00a11c90
cmp dword [esp + 0x54], edi
ja 0xa137a0
cmp dword [esp + 0x58], 8
jb 0xa138c2
mov edx, dword [esp + 0x44]
push edx
call fcn.00a7ac28
add esp, 4
cmp dword [esp + 0x8c], 8
jb 0xa138d9
mov eax, dword [esp + 0x78]
push eax
call fcn.00a7ac28
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00a7a967
add esp, 0x58
ret