joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404902
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40497b
cmp dword [ebp + 8], esi
je 0x40497b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x40497f
xor eax, eax
jmp 0x40499d
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x404bad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00406be0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call sub.MSVCR100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x404c43
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x404cb2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x409e14
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x404c71
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404cb4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404ca6
test dx, dx
je 0x404ca2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404ca6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404c80
xor eax, eax
jmp 0x404cab
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.00406b00
add ebp, 0xf8c
leave
ret
Function at 0x404ec8
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x404ee9
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x409f2c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404ee9
inc esi
mov eax, esi
pop esi
ret

Function at 0x405e22
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x407c66
call fcn.00406b0f
push 0x409fc4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x405f00
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR100.dll_free]
cmp dword [0x40c258], 0
pop ecx
je 0x405e7f
xor eax, eax
inc eax
jmp 0x405f02
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x405f00
test eax, eax
je 0x405f00
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f01
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.00401f01
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00404095
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x405ed0
call fcn.004038f6
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x405edb
mov eax, dword [esi]
jmp 0x405edd
xor eax, eax
push 0x40a070
push eax
push 0x40c258
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x405f25
test esi, esi
je 0x405f00
mov ecx, esi
call fcn.004038f6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00406b00
add ebp, 0x20c
leave
ret
test esi, esi
je 0x405e77
mov ecx, esi
call fcn.004038f6
jmp 0x405e77
Function at 0x4061d6
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x407c8e
call fcn.00406b42
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.004045cd
test eax, eax
je 0x406201
call fcn.004061c7
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x408940
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40625c
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.004068bb
pop ecx
pop ecx
push edi
push esi
call fcn.004076e0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.004065cb
push eax
push esi
push 0x408fac
call fcn.004068bb
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x406255
ret
cmp ebx, edi
je 0x406267
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x406318
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4062c4
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x406220
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x406318
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x406318
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x406220
mov eax, esi
call fcn.00406bae
ret
Function at 0x4066f7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.00406be0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call sub.MSVCR100.dll_memset
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x1044]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnwprintf_s]
add esp, 0x20
test eax, eax
jns 0x406759
xor eax, eax
mov word [ebp - 0x846], ax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00406675
push 0x40a2d0
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
xor eax, eax
push esi
push eax
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x842]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x2c
mov eax, edi
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4067a9
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x4067f9
mov ecx, 0x40a2d4
lea eax, [edi + eax*2 - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4067eb
test dx, dx
je 0x4067e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4067eb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4067c5
xor eax, eax
jmp 0x4067f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4067f9
xor esi, esi
inc esi
jmp 0x4067fb
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x406801
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, str.Error:
test esi, esi
jne 0x40681f
mov eax, 0x40a2f4
lea ecx, [ebp - 0x1044]
push ecx
push eax
lea esi, [edi + edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp + esi - 0x844]
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x20
test eax, eax
jns 0x406871
xor eax, eax
movzx ecx, word [eax + 0x40a320]
mov word [ebp + eax - 0x4e], cx
add eax, ebx
test cx, cx
jne 0x40685e
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x844]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x40688e
lea eax, [ebp - 0x844]
mov esi, 0x40a328
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b00
leave
ret

Function at 0x406b00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c148]
jne 0x406b0a
repz ret
jmp fcn.0040704e
Function at 0x10002552
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
and dword [ebp + 8], 0
push edi
mov edi, dword [eax + 4]
mov dword [ebp - 0xc], edi
mov edi, dword [eax]
mov dword [ebp - 8], edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 4], 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
sub dword [ebp + 8], 0x61c88647
dec dword [ebp - 4]
mov eax, edx
shl eax, 4
add eax, dword [ebp - 8]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, edx
xor eax, edi
add ecx, eax
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, ecx
xor eax, edi
add edx, eax
cmp dword [ebp - 4], 0
ja 0x10002587
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
leave
ret

Function at 0x1000280f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x130]
mov dword [esi + 4], edx
mov dword [esi], edx
sub eax, edi
mov ebx, 0x12c
mov cl, byte [edi]
test cl, cl
je 0x10002844
inc edx
mov byte [eax + edi], cl
inc edi
cmp edx, ebx
jb 0x10002835
lea eax, [ebp - 0x130]
push eax
mov byte [ebp + edx - 0x130], 0
call fcn.10002744
mov edi, eax
pop ecx
test edi, edi
je 0x100028f6
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
je 0x100028b0
mov byte [ebp + edi - 0x130], 0x2a
inc edi
mov eax, edi
cmp edi, ebx
jae 0x1000288d
mov cl, byte [edx]
test cl, cl
je 0x1000288d
mov byte [ebp + eax - 0x130], cl
inc eax
inc edx
cmp eax, ebx
jb 0x1000287a
mov byte [ebp + eax - 0x130], 0
lea eax, [ebp + edi - 0x130]
push eax
call fcn.10002744
pop ecx
add edi, eax
jmp 0x100028b0
mov byte [ebp + edi - 0x130], 0
inc edi
mov eax, edi
and eax, 0x80000007
jns 0x100028be
dec eax
or eax, 0xfffffff8
inc eax
jne 0x100028a7
mov eax, edi
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
xor ebx, ebx
test edi, edi
jle 0x100028f6
mov eax, dword [ebp + ebx*8 - 0x130]
xor dword [esi], eax
push dword [ebp + 0x14]
mov eax, dword [ebp + ebx*8 - 0x12c]
xor dword [esi + 4], eax
push esi
call fcn.1000261a
inc ebx
cmp ebx, edi
pop ecx
pop ecx
jl 0x100028d3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100169b4
Capabilities:
Hash data with md5

Disassembly:
xor edx, edx
push 0x40
lea eax, [ecx + 0x18]
push edx
push eax
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
call fcn.1002e8c0
add esp, 0xc
ret
Function at 0x100170d0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], eax
ret

Function at 0x100172be
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov byte [eax + esi + 0x20], 0x80
inc dword [esi + 0x1c]
cmp eax, 0x37
mov eax, dword [esi + 0x1c]
jle 0x1001730b
jmp 0x100172e1
mov byte [eax + esi + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x40
jl 0x100172d6
call fcn.10017104
jmp 0x100172f8
mov eax, dword [esi + 0x1c]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0x38
jl 0x100172ed
jmp 0x10017310
mov byte [eax + esi + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x38
jl 0x10017300
mov eax, dword [esi + 0x18]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0x58], cl
mov ecx, eax
shr eax, 8
mov byte [esi + 0x5a], al
mov al, byte [esi + 0x18]
shr ecx, 0x10
mov byte [esi + 0x59], cl
mov byte [esi + 0x5b], al
mov eax, dword [esi + 0x14]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0x5c], cl
mov ecx, eax
shr ecx, 0x10
shr eax, 8
mov byte [esi + 0x5e], al
mov al, byte [esi + 0x14]
mov byte [esi + 0x5d], cl
mov byte [esi + 0x5f], al
mov ecx, esi
pop esi
jmp fcn.10017104

Function at 0x10017356
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x90], eax
mov dword [ecx + 0x98], eax
mov dword [ecx + 0x9c], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x1001a3ff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 0xc], 0x30
mov byte [ebp - 0xb], 0x31
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0x33
mov byte [ebp - 8], 0x34
mov byte [ebp - 7], 0x35
mov byte [ebp - 6], 0x36
mov byte [ebp - 5], 0x37
mov byte [ebp - 4], 0x38
mov byte [ebp - 3], 0x39
mov esi, edi
test eax, eax
jg 0x1001a461
jl 0x1001a445
test ebx, ebx
jae 0x1001a461
neg ebx
adc eax, 0
mov dword [ebp + 8], 1
neg eax
mov ecx, ebx
or ecx, eax
jne 0x1001a467
mov byte [edi], 0x30
lea esi, [edi + 1]
jmp 0x1001a486
and dword [ebp + 8], 0
jmp 0x1001a453
push 0
push 0xa
push eax
push ebx
call fcn.10030c50
mov cl, byte [ebp + ecx - 0xc]
mov dword [ebp + 0x14], ebx
mov ebx, eax
mov byte [esi], cl
mov eax, edx
mov ecx, ebx
inc esi
or ecx, eax
jne 0x1001a467
cmp dword [ebp + 8], 0
je 0x1001a490
mov byte [esi], 0x2d
inc esi
mov byte [esi], 0
mov eax, edi
mov cl, byte [eax]
dec esi
mov dl, byte [esi]
mov byte [eax], dl
inc eax
mov byte [esi], cl
cmp esi, eax
ja 0x1001a495
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10001350
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x4c6
cmp dword [0x10009c8c], 0
je 0x100013e5
mov dword [ebp - 4], 0
jmp 0x10001378
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [0x10009c8c]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 8]
jae 0x100013e5
push 6
imul eax, dword [ebp - 4], 0x34
mov ecx, dword [0x10009c8c]
mov edx, dword [ecx + eax + 0x14]
call edx
and eax, 2
je 0x100013e3
imul eax, dword [ebp - 4], 0x34
mov ecx, dword [0x10009c8c]
cmp dword [ecx + eax + 0x3c], 0
je 0x100013cb
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
imul ecx, dword [ebp - 4], 0x34
mov edx, dword [0x10009c8c]
mov eax, dword [edx + ecx + 0x3c]
call eax
mov dword [ebp - 8], eax
jmp 0x100013d2
mov dword [ebp - 8], 0x4c6
cmp dword [ebp - 8], 0
je 0x100013e1
cmp dword [ebp - 8], 0x961
jne 0x100013e3
jmp 0x100013e5
jmp 0x1000136f
cmp dword [ebp - 8], 0
jne 0x100014c5
mov ecx, dword [ebp + 0xc]
and ecx, 1
je 0x100014c5
push 0x103
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
push edx
call dword [sym.imp.MSVCRT.dll_iswctype]
add esp, 8
test eax, eax
je 0x100014c5
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x100014c5
lea eax, [ebp - 0xc]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x100014c5
mov ecx, 0x4e
mov word [ebp - 0x20], cx
mov edx, 0x65
mov word [ebp - 0x1e], dx
mov eax, 0x74
mov word [ebp - 0x1c], ax
mov ecx, 0x77
mov word [ebp - 0x1a], cx
mov edx, 0x6f
mov word [ebp - 0x18], dx
mov eax, 0x72
mov word [ebp - 0x16], ax
mov ecx, 0x6b
mov word [ebp - 0x14], cx
mov edx, 0x5c
mov word [ebp - 0x12], dx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx]
mov word [ebp - 0x10], ax
xor ecx, ecx
mov word [ebp - 0xe], cx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call 0x10000000
add esp, 4
push eax
push str.__s___p___p__n
call 0x10000000
add esp, 0x10
cmp dword [ebp + 8], 0
jne 0x1000173a
mov dword [ebp - 4], 0x1e7
jmp 0x1000180a
cmp dword [ebp + 0x10], 0
jne 0x1000174c
mov dword [ebp - 4], 0x1e7
jmp 0x1000180a
cmp dword [ebp + 0xc], 0
jne 0x10001766
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x10001766
mov dword [ebp - 4], 0x1e7
jmp 0x1000180a
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
test ecx, ecx
jne 0x10001785
mov dword [ebp - 4], 0x4b0
jmp 0x1000180a
mov edx, 2
shl edx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
cmp ecx, 0x3a
jne 0x10001803
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, 2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
ja case.default.0x100017b8
mov ecx, dword [ebp - 8]
jmp dword [ecx*4 + 0x10001834]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
push ecx
call fcn.10005b80
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x10001801
push str.file_is_local_n
call 0x10000000
add esp, 4
mov dword [ebp - 4], 0x8ca
jmp 0x10001801
mov dword [ebp - 4], 0x4b0
jmp 0x1000180a
mov dword [ebp - 4], 0x4b0
cmp dword [ebp - 4], 0
je 0x1000181a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
push 0x10009b18
call 0x10000000
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x105e10b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105e1200
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 0x105e10d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e10c2
add dl, dl
jne 0x105e10e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e1134
xor eax, eax
add dl, dl
jne 0x105e10ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e11d5
add dl, dl
jne 0x105e10fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e1108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e1113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e111e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105e112a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105e10cd
mov eax, 1
add dl, dl
jne 0x105e1142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e114d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e1139
sub eax, ebx
mov ebx, 1
jne 0x105e1180
mov ecx, 1
add dl, dl
jne 0x105e1166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e1171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e115d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e10cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105e1197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e11a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e118e
cmp eax, 0x7d00
jae 0x105e11c5
cmp eax, 0x500
jb 0x105e11c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e10cd
cmp eax, 0x7f
ja 0x105e11c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e10cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105e11f6
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 0x105e10cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10016c3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
mov dword [ebp - 4], ebx
jne 0x10017e6
lea eax, [ebp - 4]
push eax
call fcn.0100162e
test eax, eax
jne 0x10017d4
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017e6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10017c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017c8
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10017c7
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x10017c0
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10017c0
cmp dword [esi], ebx
jbe 0x10017b7
lea edi, [esi + 4]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10017ac
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001793
jmp 0x10017b7
xor eax, eax
inc eax
mov dword [0x100a1f4], eax
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10017e3
cmp dword [ebp - 4], ebx
je 0x10017e3
mov dword [0x100a1f4], 1
mov eax, dword [ebp - 4]
pop ebx
leave
ret