joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ce0
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
mov ebx, 1
push 2
mov dword [ebp - 0x710], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x401d26
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x708]
mov dword [ebp - 0x708], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401d13
lea eax, [ebp - 0x70c]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401dd0
lea eax, [ebp - 0x718]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401dba
mov eax, dword [ebp - 0x718]
push 0
push 0
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x714]
push 0
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x70c]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x70c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401dd0
push 0x2b4
lea eax, [ebp - 0x4d8]
push 0
push eax
call fcn.0040b750
add esp, 0xc
lea eax, [ebp - 0x4d8]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401e5d
push dword [ebp - 0x700]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x710]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x708]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401dd0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409348
mov esp, ebp
pop ebp
ret
Function at 0x404750
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40475b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x404825
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
dec edi
jne 0x404770
pop edi
test esi, esi
je 0x40484a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x420bd0]
dec esi
jne 0x404830
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x404f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x404fb3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404fa5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x404fc4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0040cb20
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x40502b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405026
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x405058
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40503c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0040cb20
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x40506c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x405063
cmp byte [esi + 8], 0
je 0x405063
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x405164
cmp byte [edi + 1], 0
je 0x40515d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40516a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x40518f
cmp byte [edi + 1], 0
je 0x405188
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x405192
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4051a1
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x4051a4
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.00409b25
mov esi, eax
add esp, 4
test esi, esi
jne 0x4051bf
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x4052bf
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x405220
cmp byte [edi + 1], 0
je 0x4052bf
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x405223
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x40524b
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405246
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x405274
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x40525e
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0040cb20
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4052bf
lea eax, [ebx - 3]
test eax, eax
jle 0x4052ae
dec eax
cmp byte [eax + esi], 0x50
jne 0x4052a0
cmp byte [eax + esi + 1], 0x4b
jne 0x4052a0
cmp byte [eax + esi + 2], 5
jne 0x4052a0
cmp byte [eax + esi + 3], 6
je 0x4052a6
test eax, eax
jg 0x405284
jmp 0x4052ae
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x4052bf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x4051d6
push esi
call fcn.00409357
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x340
call fcn.00409aaf
mov edi, eax
add esp, 4
test edi, edi
je 0x4067a2
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x134], 0xffffffff
jmp 0x4067a4
xor edi, edi
cmp dword [edi], 0
jne 0x4067fa
cmp dword [edi + 4], 0xffffffff
jne 0x4067fa
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4206fc
push 0x104
push esi
call fcn.0040938f
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00404f20
add esp, 8
test eax, eax
jne 0x4067ea
mov eax, dword [ebp - 4]
jmp 0x4067ff
mov ecx, eax
call fcn.004052e0
mov dword [edi], eax
mov eax, dword [0x58709c]
jmp 0x4067ff
mov eax, 0x1000000
mov dword [0x587098], eax
test eax, eax
je 0x406819
push edi
call fcn.00409343
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.00409aaf
add esp, 4
mov dword [eax + 4], edi
pop edi
mov dword [eax], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x10b8
call fcn.00409aaf
mov edi, eax
add esp, 4
test edi, edi
je 0x40729d
push str.http:__tj.114caijing.com:8800_
push 0x824
push edi
call fcn.004093fb
add esp, 0xc
lea eax, [edi + 0x104c]
push str.wenguanjia_REPORT
push 0x32
push eax
call fcn.004093fb
add esp, 0xc
mov dword [edi + 0x10b0], 0xb
call fcn.004072b0
push 1
mov dword [edi + 0x10b4], eax
call fcn.00409aaf
add esp, 4
mov dword [0x5870a0], eax
mov ecx, edi
call fcn.00407730
push 0x586c88
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40729d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040b750
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [edi + 0x1048]
push 0x42267c
push eax
call fcn.00407fc0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x586c88
push eax
push str.Service_Value
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [edi + 0x10b4]
lea eax, [ebp - 0x210]
push 0x42267c
push eax
call fcn.00407fc0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x586c88
push eax
push str.InstallID
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00409348
mov esp, ebp
pop ebp
ret
Function at 0x4074a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.00414020
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40757d
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x2888], 0x2880
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40757d
lea eax, [ebp - 0x2884]
nop
cmp byte [eax + 0x194], 0
jne 0x40753d
cmp byte [eax + 0x195], 0
jne 0x40753d
cmp byte [eax + 0x196], 0
jne 0x40753d
cmp byte [eax + 0x197], 0
jne 0x40753d
cmp byte [eax + 0x198], 0
jne 0x40753d
cmp byte [eax + 0x199], 0
jne 0x40753d
mov eax, dword [eax]
test eax, eax
jne 0x4074f0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret 4
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
push 0x32
push esi
call fcn.0040aac1
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409348
mov esp, ebp
pop ebp
ret 4

Function at 0x407660
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x40766b
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x407672
sub edi, ecx
inc edi
push edi
call fcn.00409b25
push edi
mov esi, eax
push 0
push esi
call fcn.0040b750
push ebx
push edi
push esi
call fcn.0040a304
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x4076aa
mov edi, edi
xor byte [esi], 0x20
inc eax
inc esi
cmp byte [esi], 0
jne 0x4076a0
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x408740
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408857
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408857
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jb 0x408857
push esi
xor eax, eax
xor esi, esi
mov dword [ebp + 8], eax
test ebx, ebx
je 0x40884c
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 3
shr cl, 2
movzx ecx, cl
shl dl, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
cmp esi, ebx
jae 0x408835
mov ecx, dword [ebp + 0xc]
mov bl, byte [esi + ecx]
inc esi
mov cl, bl
and bl, 0xf
shr cl, 4
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
cmp esi, dword [ebp + 0x10]
jae 0x408812
mov ecx, dword [ebp + 0xc]
shl bl, 2
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 0x3f
shr cl, 6
add bl, cl
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
movzx ecx, dl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 3], cl
add eax, 4
mov ecx, dword [ebp + 8]
add ecx, 3
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov ecx, dword [ebp + 0xc]
jb 0x408777
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
shl bl, 2
movzx ecx, bl
pop esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
add eax, 4
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
mov word [eax + edi + 2], 0x3d3d
add eax, 4
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x408860
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
mov dword [0x5870d0], 1
mov byte [0x5870a4], 0
call fcn.00409b25
add esp, 4
mov dword [0x5870c8], eax
test eax, eax
je 0x4088bc
mov ecx, esi
mov dword [0x5870cc], eax
mov dword [0x5870e0], 0x67452301
mov dword [0x5870e4], 0xefcdab89
mov dword [0x5870e8], 0x98badcfe
mov dword [0x5870ec], 0x10325476
pop esi
jmp fcn.00409110
pop esi
ret
Function at 0x4142a2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040e5bb
mov dword [ebp - 0x14], eax
cmp dword [0x586a08], esi
jne 0x414395
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414322
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414475
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414475
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414475
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x586a08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x586a0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x586a10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x586a18], eax
test eax, eax
je 0x414392
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x586a14], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4143ba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4143ad
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4143cf
push 4
pop eax
jmp 0x414477
cmp dword [ebp - 0x14], esi
je 0x4143cf
push dword [0x586a08]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4143b4
mov eax, dword [0x586a14]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41442d
cmp dword [0x586a18], edi
je 0x41442d
push eax
call ebx
push dword [0x586a18]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41442d
test eax, eax
je 0x41442d
call ecx
test eax, eax
je 0x414422
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414422
test byte [ebp - 8], 1
jne 0x41442d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41445d
mov eax, dword [0x586a0c]
cmp eax, edi
je 0x41445a
push eax
call ebx
test eax, eax
je 0x41445a
call eax
mov esi, eax
test esi, esi
je 0x41445a
mov eax, dword [0x586a10]
cmp eax, edi
je 0x41445a
push eax
call ebx
test eax, eax
je 0x41445a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x586a08]
call ebx
test eax, eax
je 0x414475
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414477
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409348
mov esp, ebp
pop ebp
ret
Function at 0x100012f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1001e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10001313
xor eax, eax
jmp 0x10001427
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x7c]
mov al, byte [edx]
mov byte [ebp - 0x81], al
add dword [ebp - 0x7c], 1
cmp byte [ebp - 0x81], 0
jne 0x10001322
mov ecx, dword [ebp - 0x7c]
sub ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x1000135c
xor eax, eax
jmp 0x10001427
mov eax, dword [ebp - 8]
add eax, 3
push eax
call fcn.10002e88
add esp, 4
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add eax, 3
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10004590
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10005277
add esp, 0xc
mov eax, 0x614
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x12], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x100013e9
mov dword [ebp - 0x7c], 1
jmp 0x100013f0
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.10002e91
add esp, 4
cmp dword [ebp - 0x78], 0
jne 0x10001417
mov dword [ebp - 0x7c], 0
jmp 0x10001424
mov dword [ebp - 0xc], 0x8123
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003098
mov esp, ebp
pop ebp
ret
Function at 0x10001440
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1001e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001471
xor eax, eax
jmp 0x100014f8
lea eax, [ebp - 0x10]
push eax
push 0x1001725c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10001494
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100014f8
mov dword [ebp - 0x20], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov dword [ebp + ecx - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp + ecx - 0x18], eax
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0x14], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100014e9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100014f8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003098
mov esp, ebp
pop ebp
ret

Function at 0x10001510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001534
xor eax, eax
jmp 0x10001550
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001750
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x1001e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x10001778
cmp dword [ebp + 0xc], 0
je 0x10001778
cmp dword [ebp + 0x10], 0
jne 0x1000177f
xor eax, eax
jmp 0x100018cd
mov byte [ebp - 0x10c], 0
push 0x105
push 0
lea eax, [ebp - 0x10b]
push eax
call fcn.10004590
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.10001170
add esp, 8
push str._PreDB
lea eax, [ebp - 0x10c]
push eax
call fcn.100010e0
add esp, 8
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
mov word [ebp - 0x11c], ax
xor eax, eax
mov dword [ebp - 0x11a], eax
mov dword [ebp - 0x116], eax
mov dword [ebp - 0x112], eax
mov word [ebp - 0x10e], ax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov byte [ebp - 0x19c], 0
push 0x7f
push 0
lea eax, [ebp - 0x19b]
push eax
call fcn.10004590
add esp, 0xc
movzx eax, word [ebp - 0x10e]
push eax
movzx ecx, word [ebp - 0x110]
push ecx
movzx edx, word [ebp - 0x112]
push edx
movzx eax, word [ebp - 0x114]
push eax
movzx ecx, word [ebp - 0x116]
push ecx
movzx edx, word [ebp - 0x11a]
push edx
movzx eax, word [ebp - 0x11c]
cdq
mov ecx, 0x64
idiv ecx
push edx
push str._.2d_.2d_.2d_.2d_.2d_.2d_.4d
lea edx, [ebp - 0x19c]
push edx
call fcn.100010a0
add esp, 0x24
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.100010e0
add esp, 8
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x10017298
lea eax, [ebp - 0x10c]
push eax
call fcn.100010e0
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.100010e0
add esp, 8
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.SetupPackageTool.dll_SetupRenameDirectory
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003098
mov esp, ebp
pop ebp
ret 0xc