joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407cf8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405ef8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cff
lea eax, [ebp - 0xc]
call fcn.00403ea0
ret

Function at 0x408adc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408b59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x400
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040435c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
call fcn.00404310
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, dword [ebx]
call fcn.00404310
call fcn.00406024
mov edx, eax
mov eax, ebx
call fcn.0040435c
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.00405cb0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00403ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b60
lea eax, [ebp - 8]
call fcn.00403ea0
ret
Function at 0x433a5f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x567830], 0
mov dword [ebp - 4], ecx
jne 0x433a75
xor eax, eax
jmp 0x433aaf
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x433a85
call fcn.00408f33
mov esi, dword [eax + 0xc]
push edi
push dword [0x5685b0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x433aab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x433ab3
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x433ad1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x433aad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00433981
mov esi, eax
jmp 0x433ac3

Function at 0x43cb4d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00413439
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x43cc08
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call edi
push str.GetThemeColor
push dword [esi + 0x48]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x48]
mov dword [esi + 0x58], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x48]
mov dword [esi + 0x5c], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x48]
mov dword [esi + 0x60], eax
call edi
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.0043c6e2
jmp 0x43cc1d
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
pop edi
mov eax, esi
pop esi
ret
Function at 0x40c650
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40cb08
call fcn.0040c94c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c6b0
cmp eax, 0xffffffff
je 0x40c6b0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40c6a9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40c6a9
cmp edx, 0x10000000
jae 0x40c6a9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40c6a6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40c730
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40c76e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40c766
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40c770
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40c756
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40c850
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c87f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c87f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1001a97
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov esi, eax
call dword [fcn.010010f4]
push eax
mov eax, dword [esi + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.010010e4]
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop esi
je 0x1002e1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [fcn.010010f0]
xor eax, eax
pop ebp
ret 0xc

Function at 0x1001d05
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0x18]
push dword [ebp + 8]
mov ebx, dword [0x1001100]
mov dword [ebp - 8], esi
call ebx
movzx edi, byte [eax]
lea eax, [edi + 1]
push eax
call dword [fcn.010010f4]
push eax
push 0
push esi
mov dword [ebp - 4], eax
call dword [fcn.010010e4]
test eax, eax
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
je 0x1002e28
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call dword [fcn.0100111c]
test eax, eax
push dword [esi]
mov dword [ebp + 8], eax
jl 0x1002e32
call ebx
inc byte [eax]
push edi
push dword [esi]
call dword [fcn.010010f8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401b40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x589308
push 0x104
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push 0x420700
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
jne 0x401b96
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x41b2a0
push 1
push 0
push 0x41b2c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401be6
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409348
mov esp, ebp
pop ebp
ret

Function at 0x401c00
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
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 0
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4206fc
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040938f
add esp, 0xc
lea eax, [ebp - 0x210]
push str.wenguanjia_
push 0x104
push eax
call fcn.0040938f
add esp, 0xc
push 0x589510
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x401cae
push 0x589308
push 0x104
push 0x589510
push 0x420700
push str.StartMenuPath
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x589510
call fcn.00401910
call fcn.00401b40
lea ecx, [ebp - 0x210]
call fcn.00401910
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
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 [0x58971c]
jmp 0x4067ff
mov eax, 0x1000000
mov dword [0x589718], 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 [0x589720], eax
mov ecx, edi
call fcn.00407730
push 0x589308
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 0x589308
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 0x589308
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 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 [0x589750], 1
mov byte [0x589724], 0
call fcn.00409b25
add esp, 4
mov dword [0x589748], eax
test eax, eax
je 0x4088bc
mov ecx, esi
mov dword [0x58974c], eax
mov dword [0x589760], 0x67452301
mov dword [0x589764], 0xefcdab89
mov dword [0x589768], 0x98badcfe
mov dword [0x58976c], 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 [0x589088], 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 [0x589088], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x58908c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x589090], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x589098], eax
test eax, eax
je 0x414392
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x589094], 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 [0x589088]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4143b4
mov eax, dword [0x589094]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41442d
cmp dword [0x589098], edi
je 0x41442d
push eax
call ebx
push dword [0x589098]
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 [0x58908c]
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 [0x589090]
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 [0x589088]
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 0x403a7e
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea edx, [ebp - 0x10]
push ebx
push edx
lea edx, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
xor eax, eax
push edx
lea edx, [ebp - 8]
push eax
push edx
push eax
push ecx
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
jne 0x403b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403b13
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push dword [ebp - 8]
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
push 8
call esi
push eax
call edi
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0
call ebx
mov ebx, eax
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
pop edi
pop esi
je 0x403b13
mov eax, dword [ebp - 0xc]
jmp 0x403b15
xor eax, eax
pop ebx
leave
ret

Function at 0x403b98
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.00407300
test al, al
jne 0x403bbf
xor bl, bl
jmp 0x403bf5
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x403bbb
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403bbb
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00407321
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40409b
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x452a0c
call fcn.00452450
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov edi, ecx
call fcn.00406a5f
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x4040d0
push dword [ebp - 0x10]
push edi
call esi
test eax, eax
je 0x4040d0
mov al, 1
jmp 0x40411a
test ebx, ebx
je 0x404118
lea ecx, [ebp - 0x1c]
call fcn.00401f28
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.00406b68
test al, al
je 0x40410f
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call esi
mov esi, eax
push dword [ebp - 0x1c]
call fcn.004026ee
test esi, esi
pop ecx
setne al
jmp 0x40411a
push dword [ebp - 0x1c]
call fcn.004026ee
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404129
Capabilities:
Delete directory

Disassembly:
mov eax, 0x452a20
call fcn.00452450
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406a5f
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x404158
push edi
call esi
test eax, eax
je 0x404158
mov al, 1
jmp 0x40419c
test ebx, ebx
je 0x40419a
lea ecx, [ebp - 0x18]
call fcn.00401f28
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00406b68
test al, al
push dword [ebp - 0x18]
je 0x404194
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.004026ee
test esi, esi
pop ecx
setne al
jmp 0x40419c
call fcn.004026ee
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4041ab
Capabilities:
Move file

Disassembly:
mov eax, 0x452a3c
call fcn.00452450
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00406a5f
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00406a5f
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x4041f4
cmp eax, ebx
je 0x4041f4
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4041f4
mov al, bl
jmp 0x40426b
test esi, esi
jne 0x4041fd
cmp dword [ebp - 0x14], esi
je 0x404269
lea ecx, [ebp - 0x30]
call fcn.00401f28
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401f28
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x40421d
cmp dword [ebp - 0x14], ebx
jne 0x40421f
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004070d4
test al, al
push dword [ebp - 0x24]
je 0x40425a
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.004026ee
push dword [ebp - 0x30]
call fcn.004026ee
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x40426b
call fcn.004026ee
push dword [ebp - 0x30]
call fcn.004026ee
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404376
Capabilities:
Create directory

Disassembly:
mov eax, 0x452a6c
call fcn.00452450
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406a5f
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x4043b4
push 0
push edi
call esi
test eax, eax
je 0x4043a7
mov al, 1
jmp 0x4043fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4043fb
test ebx, ebx
je 0x4043fb
lea ecx, [ebp - 0x18]
call fcn.00401f28
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00406b68
test al, al
je 0x4043f2
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.004026ee
test esi, esi
pop ecx
setne al
jmp 0x4043fd
push dword [ebp - 0x18]
call fcn.004026ee
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret