joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd01f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xd01ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd02035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00d01e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xd01fc5
mov edi, 0xd1c8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd02035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00d01e00
add edi, 4
add esp, 0xc
cmp edi, 0xd1c8c0
jb 0xd02000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xd02070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00d08082
mov esi, eax
add esp, 8
test esi, esi
je 0xd02107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xd02102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00d07946
add esp, 8
test eax, eax
je 0xd020e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xd020e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00d07946
add esp, 8
test eax, eax
jne 0xd020c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xd02102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xd02f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd179fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd03002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d06dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd03002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00cfe6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d0720b
push 0x10
call fcn.00d071d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd02fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00cf31c0
jmp 0xd02fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d02b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd02ff0
mov ecx, edi
call fcn.00cf32c0
push edi
call fcn.00d071c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd03021
inc ebx
cmp ebx, 0x20
jb 0xd02f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd04250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd18808
push 0xd08288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd04329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd04329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d071d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd04329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd04329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd0432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d04351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd04d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd04d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd04d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd04d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd04d94
push eax
push esi
call fcn.00d0720b
add esp, 8
pop esi
ret 0x10

Function at 0xd04da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd04e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd04e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd1d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d06dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd04dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd04e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd04ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd04eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd1d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d06dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd04eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd04e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd05000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd05131
push esi
call fcn.00d08145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00cf7080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd05131
push 0
push ebp
call fcn.00cf73a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cf7260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd0508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00cf72f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd05121
push 0xd1d918
push edi
call fcn.00d063f0
push eax
push ebx
push esi
call fcn.00d04f60
push 0xd1d8f8
push edi
call fcn.00d063f0
push eax
push ebx
push esi
call fcn.00d04f60
push 0xd1d8d8
push edi
call fcn.00d063f0
push eax
push ebx
push esi
call fcn.00d04f60
push 0xd1d8c0
push edi
call fcn.00d063f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d04f60
push 0xd1d8a0
push edi
call fcn.00d063f0
push eax
push ebx
push esi
call fcn.00d04f60
push 0xd1d888
push edi
call fcn.00d063f0
push eax
push ebx
push esi
call fcn.00d04f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd061b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d06140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d06140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d06140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d06140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd06bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd06c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd1887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd06c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd06c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x100019f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100353e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10041280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
call fcn.100031d0
mov ecx, dword [ebp - 0x34]
add ecx, 0xc
call fcn.100033d0
push 0x1003d344
mov eax, dword [ebp + 8]
push eax
call fcn.1000d5b6
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10001a50
or eax, 0xffffffff
jmp 0x10001b7e
push 2
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000d69f
add esp, 0xc
test eax, eax
je 0x10001a7a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000d78e
add esp, 4
mov eax, 0xfffffffe
jmp 0x10001b7e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000db95
add esp, 4
mov dword [ebp - 0x38], eax
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000d69f
add esp, 0xc
test eax, eax
je 0x10001ab3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000d78e
add esp, 4
mov eax, 0xfffffffd
jmp 0x10001b7e
mov eax, dword [ebp - 0x38]
push eax
call fcn.1000dc3e
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10001ade
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000d78e
add esp, 4
mov eax, 0xfffffffc
jmp 0x10001b7e
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1000deb0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x38]
je 0x10001b1e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000d78e
add esp, 4
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1000c4dd
add esp, 4
mov eax, 0xfffffffb
jmp 0x10001b7e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000d78e
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10002bf0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.10001ba0
mov eax, dword [ebp - 0x30]
push eax
call fcn.1000c4dd
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.10001d70
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d60
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c244
mov esp, ebp
pop ebp
ret 4
Function at 0x10009640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.10013ac0
mov eax, dword [0x10041280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x102c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1038], eax
lea eax, [ebp - 0x1040]
push eax
call fcn.100095a0
add esp, 4
lea ecx, [ebp - 0x1040]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.10009580
add esp, 8
push 0
push 0
lea eax, [ebp - 0x1034]
push eax
push 0
mov ecx, dword [ebp - 0x1038]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x1034]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1024]
push ecx
mov edx, dword [ebp - 0x1020]
push edx
mov eax, dword [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x1018]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x1014]
add edx, 0x76c
push edx
push str.__04d__02d__02d__02d__02d__02d__s__d__s:_r_nSYS:__s
lea eax, [ebp - 0x1004]
push eax
call fcn.1000e80b
add esp, 0x30
add eax, dword [ebp - 0x102c]
mov dword [ebp - 0x102c], eax
mov ecx, dword [ebp - 0x1034]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp + 0x18]
mov dword [ebp - 0x1030], edx
mov eax, dword [ebp - 0x1030]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x102c]
lea eax, [ebp + edx - 0x1004]
push eax
call fcn.1000e9f5
add esp, 0xc
add eax, dword [ebp - 0x102c]
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1030], 0
push str._r_n_r_n
mov ecx, dword [ebp - 0x102c]
lea edx, [ebp + ecx - 0x1004]
push edx
call fcn.1000e80b
add esp, 8
add eax, dword [ebp - 0x102c]
mov dword [ebp - 0x102c], eax
mov eax, dword [0x10043628]
push eax
mov ecx, dword [ebp - 0x102c]
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.1000eb66
add esp, 0x10
mov eax, dword [0x10043628]
push eax
call fcn.1000ec9b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c244
mov esp, ebp
pop ebp
ret

Function at 0x1000a020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x1000a06f
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000a064
jmp 0x1000a06f
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000a034
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x1000a090
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0xffffffff
xor al, al
jmp 0x1000a092
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000a0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x1000a0ef
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000a0e4
jmp 0x1000a0ef
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000a0b4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x1000a110
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
jmp 0x1000a115
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000a120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.10015040
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1003d5b0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000a192
push str.Start_account_auth.exe_failed
push str.StartProcess
push 0x153
push 0x1003d5e4
call fcn.10009640
add esp, 0x10
xor eax, eax
jmp 0x1000a19f
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x1000a1b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10041280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x1000a1e3
xor eax, eax
jmp 0x1000a30c
mov dword [ebp - 0x230], 0x22c
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x240], eax
jmp 0x1000a22d
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x1000a2fd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x238], ecx
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
mov cx, word [eax]
mov word [ebp - 0x244], cx
mov edx, dword [ebp - 0x238]
cmp cx, word [edx]
jne 0x1000a2b5
cmp word [ebp - 0x244], 0
je 0x1000a2a9
mov eax, dword [ebp - 0x23c]
mov cx, word [eax + 2]
mov word [ebp - 0x242], cx
mov edx, dword [ebp - 0x238]
cmp cx, word [edx + 2]
jne 0x1000a2b5
add dword [ebp - 0x23c], 4
add dword [ebp - 0x238], 4
cmp word [ebp - 0x242], 0
jne 0x1000a24f
mov dword [ebp - 0x248], 0
jmp 0x1000a2c0
sbb eax, eax
or eax, 1
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
cmp dword [ebp - 0x24c], 0
jne 0x1000a2f8
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x1000a30c
jmp 0x1000a213
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c244
mov esp, ebp
pop ebp
ret
Function at 0x1000a6a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10041280]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 0x10c], 0
push 0x104
push 0
lea eax, [ebp - 0x10b]
push eax
call fcn.10015040
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x10c]
add edx, 0xffffffff
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
mov cl, byte [eax + 1]
mov byte [ebp - 0x110], cl
add dword [ebp - 0x114], 1
cmp byte [ebp - 0x110], 0
jne 0x1000a6f3
mov edi, dword [ebp - 0x114]
mov edx, dword [str.Xiaomi]
mov dword [edi], edx
mov eax, dword [0x1003d730]
mov dword [edi + 4], eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.10033b04
add esp, 4
lea edx, [ebp - 0x10c]
add edx, 0xffffffff
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
mov cl, byte [eax + 1]
mov byte [ebp - 0x10f], cl
add dword [ebp - 0x120], 1
cmp byte [ebp - 0x10f], 0
jne 0x1000a746
mov edi, dword [ebp - 0x120]
mov edx, dword [str._account_auth]
mov dword [edi], edx
mov eax, dword [0x1003d738]
mov dword [edi + 4], eax
mov ecx, dword [0x1003d73c]
mov dword [edi + 8], ecx
mov dx, word [0x1003d740]
mov word [edi + 0xc], dx
lea eax, [ebp - 0x10c]
push eax
call fcn.10033b04
add esp, 4
lea ecx, [ebp - 0x10c]
add ecx, 0xffffffff
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov al, byte [edx + 1]
mov byte [ebp - 0x10d], al
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x10d], 0
jne 0x1000a7ad
mov edi, dword [ebp - 0x11c]
mov ecx, dword [str.Log]
mov dword [edi], ecx
mov dl, byte [0x1003d748]
mov byte [edi + 4], dl
lea eax, [ebp - 0x10c]
push eax
call fcn.10033b04
add esp, 4
lea ecx, [ebp - 0x10c]
add ecx, 0xffffffff
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x118]
mov al, byte [edx + 1]
mov byte [ebp - 0x10e], al
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x10e], 0
jne 0x1000a801
mov edi, dword [ebp - 0x118]
mov ecx, dword [str.MTK.Log]
mov dword [edi], ecx
mov edx, dword [0x1003d750]
mov dword [edi + 4], edx
mov al, byte [0x1003d754]
mov byte [edi + 8], al
lea ecx, [ebp - 0x10c]
push ecx
call fcn.100095c0
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c244
mov esp, ebp
pop ebp
ret
Function at 0x100200e9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
div ecx
test edx, edx
je 0x100200f7
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1001fe09
push esp
sub ebp, dword ss:[ecx - 0x73]
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x1002025f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
loop 0x100202b4
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1001fe19
push eax
push esi
push dword [ebp + 8]
call fcn.1001fdce
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1001fe09
retf 0xef50
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1001fe09
mov edi, 0x8da9d627
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid