joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407190
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x24], eax
push str.WtsApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x40720a
cmp dword [ebp - 0x14], 0
jne 0x40721b
mov dword [ebp - 0xc], 0
jmp 0x4072d7
push str.ProcessIdToSessionId
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.WTSQuerySessionInformation
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push str.WTSFreeMemory
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x407263
cmp dword [ebp - 0x20], 0
je 0x407263
cmp dword [ebp - 4], 0
jne 0x40726e
mov dword [ebp - 0xc], 0
jmp 0x4072d7
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 8]
push edx
push 5
mov eax, dword [ebp - 0x18]
push eax
push 0
call dword [ebp - 0x20]
test eax, eax
je 0x4072d0
mov dword [ebp - 0x28], 0x202
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040c4e6
add esp, 8
neg eax
sbb eax, eax
neg eax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 4]
cmp dword [ebp - 0x24], 0
je 0x4072ee
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x14], 0
je 0x407305
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x4073f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41907a
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00408380
mov dword [ebp - 4], 0
call fcn.00405e60
movzx eax, al
test eax, eax
je 0x4074cf
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x4074cf
push str.SHGetKnownFolderPath
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4074c2
lea edx, [ebp - 0x220]
push edx
push 0
push 0x8000
push 0x41b634
call dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jl 0x4074c2
cmp dword [ebp - 0x220], 0
je 0x4074c2
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408140
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.00408360
test eax, eax
je 0x40750e
push 1
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40750e
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00408140
push str.LocalLow
lea ecx, [ebp - 0x10]
call fcn.00409180
push 0x41b688
lea ecx, [ebp - 0x10]
call fcn.00409180
lea ecx, [ebp - 0x10]
call fcn.00407b30
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40753f
lea ecx, [ebp - 0x10]
call fcn.00407b30
push eax
call fcn.00405700
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00407b30
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x230], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407b40
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x4088b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4088b9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4088fc
mov eax, dword [ebp - 0xc]
jmp 0x408959
cmp dword [ebp - 4], 1
je 0x40890f
cmp dword [ebp - 4], 2
je 0x40890f
mov eax, 0xd
jmp 0x408959
cmp dword [ebp + 0xc], 0
je 0x40894d
cmp dword [ebp - 8], 0
je 0x408945
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40893c
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x408943
mov eax, 0xd
jmp 0x408959
jmp 0x40894d
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4095e0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4095c6
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
jmp 0x4095d4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4095e9
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4095e4
xor eax, eax
jmp 0x4095e9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x409780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4097b4
xor eax, eax
jmp 0x4097b9
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ab41
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040aad6
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040b3d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40ab90
cmp dword [ebp - 0x1c], 5
jb 0x40aba8
jmp 0x40aba4
cmp dword [ebp - 0x10], 1
jne 0x40aba8
cmp dword [ebp - 0x1c], 4
ja 0x40aba4
jne 0x40aba8
cmp dword [ebp - 0x18], 0
jbe 0x40aba8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41bb04
call fcn.0040a9aa
test eax, eax
jge 0x40abc9
mov byte [0x4215e8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b382
add ebp, 0x78
leave
ret

Function at 0x40b382
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42031c]
jne 0x40b38c
repz ret
jmp fcn.0040f1ec
Function at 0x40cf41
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x420350]
je 0x40cf5c
inc edi
cmp edi, 0x17
jb 0x40cf4d
cmp edi, 0x17
jae 0x40d0dc
push ebp
push 3
call fcn.004130af
cmp eax, 1
pop ecx
je 0x40d0a8
push 3
call fcn.004130af
test eax, eax
pop ecx
jne 0x40cf90
cmp dword [0x4202f8], 1
je 0x40d0a8
cmp ebx, 0xfc
je 0x40d0db
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4216c8
push ebp
call fcn.004109e2
add esp, 0xc
test eax, eax
je 0x40cfc6
push esi
push esi
push esi
push esi
push esi
call fcn.0040b983
add esp, 0x14
push 0x104
mov esi, 0x4216e1
push esi
push 0
mov byte [0x4217e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d00a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004109e2
add esp, 0xc
test eax, eax
je 0x40d00a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b983
add esp, 0x14
push esi
call fcn.0040b780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d04f
push esi
call fcn.0040b780
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4219dc
push 0x41c144
sub ecx, eax
push ecx
push eax
call fcn.00412ffc
add esp, 0x14
test eax, eax
je 0x40d04f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b983
add esp, 0x14
jmp 0x40d051
xor esi, esi
push 0x41c140
push ebx
push ebp
call fcn.00412f8b
add esp, 0xc
test eax, eax
je 0x40d071
push esi
push esi
push esi
push esi
push esi
call fcn.0040b983
add esp, 0x14
push dword [edi*8 + 0x420354]
push ebx
push ebp
call fcn.00412f8b
add esp, 0xc
test eax, eax
je 0x40d093
push esi
push esi
push esi
push esi
push esi
call fcn.0040b983
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00412dce
add esp, 0xc
jmp 0x40d0db
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40d0db
cmp ebp, 0xffffffff
je 0x40d0db
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x420354]
push dword [esi]
call fcn.0040b780
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x412dce
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040db05
xor ebx, ebx
cmp dword [0x422104], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x412ea4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412f84
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412f84
push eax
call fcn.0040da97
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422104], eax
call esi
push eax
call fcn.0040da97
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422108], eax
call esi
push eax
call fcn.0040da97
mov dword [0x42210c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ccce
test eax, eax
pop ecx
pop ecx
je 0x412e72
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b983
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x412ea4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040da97
cmp eax, ebx
pop ecx
mov dword [0x422114], eax
je 0x412ea4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040da97
pop ecx
mov dword [0x422110], eax
mov eax, dword [0x422110]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x412f29
cmp dword [0x422114], ecx
je 0x412f29
push eax
call fcn.0040db0e
push dword [0x422114]
mov esi, eax
call fcn.0040db0e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x412f29
cmp edi, ebx
je 0x412f29
call esi
cmp eax, ebx
je 0x412ef6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412ef6
test byte [ebp - 0x18], 1
jne 0x412f29
lea eax, [ebp - 0x10]
push eax
call fcn.0040cd05
test eax, eax
pop ecx
je 0x412f11
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b983
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x412f20
or dword [ebp + 0x10], 0x200000
jmp 0x412f64
or dword [ebp + 0x10], 0x40000
jmp 0x412f64
mov eax, dword [0x422108]
cmp eax, dword [ebp - 8]
je 0x412f64
push eax
call fcn.0040db0e
cmp eax, ebx
pop ecx
je 0x412f64
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412f64
mov eax, dword [0x42210c]
cmp eax, dword [ebp - 8]
je 0x412f64
push eax
call fcn.0040db0e
cmp eax, ebx
pop ecx
je 0x412f64
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422104]
call fcn.0040db0e
cmp eax, ebx
pop ecx
je 0x412f84
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412f86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b645
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
mov ecx, ecx
call fcn.0043b683
or ecx, ecx
xor dword [ebx], edi
push eax
mov eax, dword [esp]
add esp, 4
or ecx, eax
add eax, 0x4c1f0462
add ebx, 1
dec eax
and eax, eax
cmp ebx, esi
jne fcn.0043b645
dec ecx
push 0x15da9ec6
pop ecx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001317b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1001626f
jmp 0x10013185
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x1001b046
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001b068
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001b066
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x1001b072
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x100248ce
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10024903
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10024901
push 0xcfe
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1002494f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
push 0
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.10023fa5
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x100297cc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100297ff
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100297fd
push 0
push 0x1099
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10029844
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0x1d96
push 0x17aa
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp - 0x20]
push dword [eax]
push 1
call fcn.10023709
add esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x1002ab4d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002ab93
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x1002ab9d
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x1002ac56
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002ac7a
xor eax, eax
jmp 0x1002adb4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002ac98
xor eax, eax
jmp 0x1002adb4
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6121
call fcn.1002aacd
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1002acbc
xor eax, eax
jmp 0x1002adb4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0x52bd
call fcn.1002a984
add esp, 0x1c
push 0
push dword [ebp - 8]
push 0x1f8c
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10025cb3
add esp, 0x14
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002ab4d
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x1002ad28
push 0x50bf
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.1002abf4
add esp, 0x10
push dword [ebp - 4]
call fcn.1002a3fc
pop ecx
test eax, eax
jne 0x1002ad39
xor eax, eax
jmp 0x1002adb4
push 1
push 0x1f56
lea eax, [ebp - 4]
push eax
call fcn.1002aba1
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002ad9c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002ad6b
xor eax, eax
jmp 0x1002adb4
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002ad84
xor eax, eax
jmp 0x1002adb4
lea eax, [ebp - 4]
push eax
push 0xb7
push 1
push 0x34dc
call fcn.1002abf4
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002adad
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002adb1
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret