joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d2f0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e069
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1008a8e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
add eax, 4
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
mov dword [ebp - 4], 1
lea esi, [edi + 0x10]
mov dword [edi + 4], 0x10002040
push esi
mov dword [edi], 0x10001f18
mov dword [edi + 4], 0x10001f08
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
add esp, 8
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 1
mov dword [edi + 0x54], 0
mov dword [edi + 0x44], 0
mov dword [ebp - 4], 3
mov dword [edi], 0x10001548
mov dword [edi + 4], 0x10001538
lock inc dword [0x1008af78]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1002e780
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1008afac]
test eax, eax
jne 0x1002e8d4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 9
je 0x1002e800
push 0x800
push 0
push 0x10005dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 1
push eax
mov dword [0x1008afbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
push dword [0x1008afbc]
mov dword [0x1008afb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
push dword [0x1008afbc]
mov dword [0x1008afb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1008afb0], eax
jmp 0x1002e805
mov eax, dword [0x1008afb0]
cmp dword [0x1008afbc], 0
push esi
je 0x1002e8c4
mov esi, dword [0x1008afb8]
test esi, esi
je 0x1002e8c4
cmp dword [0x1008afb4], 0
je 0x1002e8c4
test eax, eax
je 0x1002e8c4
push 0xffffffffffffffff
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x61
push eax
push 0xffffffffffffffff
push eax
push 0x30001
push 0x800
mov ecx, esi
call dword [0x1008c268]
call esi
test eax, eax
je 0x1002e877
mov eax, 2
mov dword [0x1008afac], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
push dword [0x1008afbc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov dword [0x1008afbc], 0
mov dword [0x1008afb8], 0
mov dword [0x1008afb4], 0
mov dword [0x1008afb0], 0
mov dword [0x1008afac], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
mov dword [0x1008afac], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
Function at 0x1002e8f0
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1008a8f4], 2
jne 0x1002e9e8
push esi
mov byte [0x1008af5c], 0
xor esi, esi
mov dword [0x1008af60], 0x1002efb0
push esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x1002e939
inc esi
cmp esi, 0x100
jl 0x1002e923
jmp 0x1002e94a
mov dword [0x1008af60], 0x1002efe0
mov byte [0x1008af5c], 1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
and eax, 0xfffc0000
mov dword [0x1008af54], eax
add eax, 0xff280000
shr eax, 4
imul eax, eax, 0xb
pop esi
cmp eax, 0x100000
jae 0x1002e980
mov eax, 0x100000
add eax, 0x3ffff
shr eax, 2
and eax, 0x3fff0000
cmp eax, 0x40000
jae 0x1002e999
mov eax, 0x40000
add eax, 0x3ffff
and eax, 0xfffc0000
push 0x1008b004
push 1
mov dword [0x1008af4c], eax
mov dword [0x1008af50], eax
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
jns 0x1002e9ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
push 0
push 0x1008afc0
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x1002e9be
dec dword [0x1008a8f4]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
Function at 0x10030d30
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e320
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x10030eb9
mov dword [ebp - 0x128], 0
cmp dword [0x1008aff4], 0
jne 0x10030e67
lea eax, [ebp - 0x128]
push eax
push ecx
lea ecx, [ebp - 0x124]
call fcn.10031b80
test eax, eax
jne 0x10030de1
push edi
call fcn.10031710
push 0x1008af90
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1008afe0], edi
mov dword [0x1008afe4], edi
push 0x1008afe8
push 0
push 0
push 0
push 0
push 0x100029a0
push 0
push 0x10032020
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
jmp 0x10030e67
lea eax, [ebp - 0x124]
mov dword [0x1008a0a0], eax
mov byte [ebp - 0x17], 0
cmp dword [0x1008afc8], 0
jne 0x10030e03
mov dword [0x1008afc8], 0xfff
cmp dword [0x1008aff4], 0
jne 0x10030e26
mov ecx, 0x23fa
call fcn.10031820
cmp dword [0x1008a8f8], 0xffffffff
jne 0x10030e26
push 1
call fcn.10031710
cmp dword [0x1008a008], 0x10031510
jne 0x10030e5d
cmp dword [ebp - 0x128], 0
je 0x10030e5d
push 0x10006588
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x1008a0a0]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10006590
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x1008a0a0], 0x100065b3
mov dword [0x1008af64], 0x28
mov dword [0x1008af8c], 0
push esi
call fcn.10030a50
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov dword [ebp - 4], 0xffffffff
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.1002eb90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jne 0x10030e88
cmp dword [ebp + 0x10], edi
je 0x10030ec7
lea eax, [edi + 1]
jmp 0x10030e9b
mov dword [ebp - 4], 0
call fcn.10035960
call fcn.100317c0
call fcn.10031fd0
jmp 0x10030e88

Function at 0x10031a70
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push edi
mov edi, ecx
push 0x10e
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10031b1b
cmp eax, 0x10e
jae 0x10031b1b
push esi
mov esi, 0x10e
lea edx, [eax + edi]
mov ecx, 0
sub esi, eax
je 0x10031aae
cmp esi, 0x7fffffff
jbe 0x10031ab3
mov ecx, 0x80070057
test ecx, ecx
js 0x10031b0a
mov ecx, esi
test esi, esi
je 0x10031aec
mov edi, SysReAllocString
sub edi, esi
mov esi, 0x10006520
sub esi, edx
jmp 0x10031ad0
lea eax, [edi + ecx]
test eax, eax
je 0x10031ae8
mov al, byte [esi + edx]
test al, al
je 0x10031ae8
mov byte [edx], al
inc edx
sub ecx, 1
jne 0x10031ad0
jmp 0x10031aec
test ecx, ecx
jne 0x10031aed
dec edx
neg ecx
mov byte [edx], 0
pop esi
sbb ecx, ecx
xor eax, eax
and ecx, 0x7ff8ff86
add ecx, 0x8007007a
test ecx, ecx
pop edi
setns al
ret
test esi, esi
je 0x10031b11
mov byte [edx], 0
xor eax, eax
test ecx, ecx
pop esi
setns al
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x10031b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 2
mov dword [esi + 0x14], 0
mov byte [edi], 0
push dword [esi + 8]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test edx, edx
jne 0x10031b6a
cmp dword [ebp - 4], 1
jbe 0x10031b6a
xor ecx, ecx
cmp byte [edi], 0x3a
setne cl
mov dword [esi + 0x14], ecx
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10031f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x10031f83
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x224]
call fcn.10031a70
test eax, eax
je 0x10031fb0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 4

Function at 0x10035ac0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 4
call fcn.1007c850
mov ebx, esp
lea eax, [ebp - 0x28]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10035b9d
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
lea edi, [eax - 1]
not edi
and edi, ebx
sub edi, eax
lea eax, [esi + 0x2000]
cmp edi, eax
jb 0x10035b9d
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10035b9d
add esi, dword [ebp - 0x1c]
test dword [ebp - 0x18], 0x1000
je 0x10035b20
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x10035b62
mov eax, 1
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
cmp edi, esi
jb 0x10035b9d
mov edi, dword [ebp - 8]
push 4
push 0x1000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100313b2
mov esp, ebp
pop ebp
ret
Function at 0x10035fe0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e908
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1008a8e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 8]
add esi, 0x140
push esi
call dword [sym.imp.MSDART.DLL_UMSEnterCSWraper]
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
jne 0x10036030
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc dword [esi + 0xc]
inc eax
mov dword [esi + 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp dword [ebx], 0
je 0x100360bb
mov dword [ebp - 4], 0xffffffff
dec dword [esi + 0xc]
add dword [esi + 8], 0xffffffff
jne 0x1003605d
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi]
dec dword [eax + 0x1c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x1003607f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x10036124
cmp dword [ebx], 0xffffffff
je 0x10036124
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10036126
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x10036046
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100360e0
movzx edi, di
or edi, 0x80070000
mov dword [ebp - 4], 0xffffffff
dec dword [esi + 0xc]
add dword [esi + 8], 0xffffffff
jne 0x100360f7
mov dword [esi + 4], 0xffffffff
mov ecx, dword [esi]
dec dword [ecx + 0x1c]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jns 0x1003606c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10036140
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e940
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008a8e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x10036199
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10036199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x10036199
movzx ebx, bx
or ebx, 0x80070000
mov eax, dword [ebp - 0x10]
mov esi, dword [esi + 8]
mov edi, dword [ebp + 8]
add esi, 0x140
push esi
cmp edi, dword [eax + 4]
jne 0x1003622d
call dword [sym.imp.MSDART.DLL_UMSEnterCSWraper]
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
jne 0x100361ca
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc dword [esi + 0xc]
inc eax
mov dword [esi + 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov ecx, edx
test eax, eax
je 0x100361ed
mov dword [eax + 0x10], edx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100361f7
mov eax, dword [edi + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [eax + 4], edx
mov dword [ebp - 4], 0xffffffff
dec dword [esi + 0xc]
add dword [esi + 8], 0xffffffff
jne 0x10036222
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi]
dec dword [eax + 0x1c]
add eax, 4
push eax
jmp 0x100362a2
call dword [sym.imp.MSDART.DLL_UMSEnterCSWraper]
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
jne 0x10036249
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc dword [esi + 0xc]
inc eax
mov dword [esi + 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x10036267
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10036274
mov eax, dword [edi + 0x14]
mov dword [ecx + 0x14], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0xffffffff
dec dword [esi + 0xc]
add dword [esi + 8], 0xffffffff
jne 0x10036299
mov dword [esi + 4], 0xffffffff
mov edx, dword [esi]
dec dword [edx + 0x1c]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ecx
mov ecx, edi
call fcn.10035f60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003e520
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1008affc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x284], 0
jne 0x1003e695
xor eax, eax
mov edx, 0x12c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x270]
push esi
mov esi, 0x1000977c
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7ffffed2]
test ecx, ecx
je 0x1003e5b6
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003e5b6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003e596
jmp 0x1003e5ba
test edx, edx
jne 0x1003e5bd
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x270]
lea edx, [ecx + 2]
pop esi
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e5d0
sub ecx, edx
mov eax, 0x12c
sar ecx, 1
sub eax, ecx
push eax
lea eax, [ebp - 0x270]
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x10009790
mov edx, 0x12c
lea ecx, [ebp - 0x270]
call fcn.10042410
lea eax, [ebp - 0x284]
push eax
push 1
push 0
lea eax, [ebp - 0x270]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003e68e
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0x14
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x100097ac
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003e682
lea eax, [ebp - 0x18]
push 0x100097c8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1003e682
mov dword [0x1008b000], 1
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1008affc], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10057130
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push ebx
movsx ebx, byte [ecx + 1]
add al, al
push esi
push edi
push 1
push 0
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x118]
sub al, 3
mov dword [ebp - 0x114], ecx
push 0
push esi
mov byte [ebp + 8], al
lea esi, [ebp - 0x104]
mov al, byte [ecx + 2]
push 0
mov byte [ebp - 0x105], al
neg al
push 0x100
push esi
sbb al, al
mov word [ecx + 1], 0x100
push ecx
and al, 0x80
mov byte [ebp - 5], 0
mov byte [ebp - 0x10d], al
lea ecx, [ebp - 0x10c]
mov eax, dword [0x1008afa8]
push ecx
push edx
push 0x81
mov esi, dword [eax]
push 0x8b
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x1008c268]
call esi
mov ecx, dword [ebp - 0x10c]
mov esi, eax
cmp ecx, 0x100
jae 0x10057240
mov edx, dword [ebp - 0x114]
cmp byte [ebp - 0x105], 0
setne al
mov byte [edx + 1], bl
mov byte [edx + 2], al
test esi, esi
jns 0x10057200
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 8
movzx edx, byte [ebp + 8]
cmp ecx, edx
jbe 0x10057258
cmp byte [ebp + ecx - 0x105], 0x30
mov eax, ebx
jne 0x10057226
cmp ecx, edx
jbe 0x10057226
dec ecx
dec ebx
mov eax, ebx
cmp byte [ebp + ecx - 0x105], 0x30
je 0x10057214
mov ebx, eax
cmp ecx, 0x100
jae 0x10057381
mov byte [ebp + ecx - 0x104], 0
cmp ecx, edx
jbe 0x10057258
pop edi
pop esi
mov eax, 0x80040e07
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp - 0x104]
mov byte [ebp - 0x10c], al
mov al, byte [ebp - 0x103]
mov byte [ebp - 0x10b], al
mov eax, 0x30
cmp ax, word [ebp - 0x10c]
jne 0x1005728c
mov ah, 0x80
mov dword [ebp - 0x10c], 0
jmp 0x100572c3
movzx eax, cl
sub eax, edx
sub eax, ebx
add eax, 0x17d
shl eax, 4
cmp byte [ebp - 0x105], 0
movzx edx, ax
mov dword [ebp - 0x10c], edx
jne 0x100572bd
mov edx, eax
not edx
and edx, 0x1ff0
mov dword [ebp - 0x10c], edx
mov ah, byte [ebp - 0x10d]
mov bl, byte [ebp + 8]
lea esi, [ebp - 0x103]
sub bl, cl
test ah, ah
setne bh
dec ecx
dec bh
mov al, bh
xor al, byte [ebp - 0x104]
and al, 0xf
movzx edx, al
movzx eax, ah
shl ax, 8
or dx, ax
or dx, word [ebp - 0x10c]
movzx edx, dx
mov eax, edx
shr eax, 8
mov byte [edi], al
mov eax, ecx
mov byte [edi + 1], dl
add edi, 2
and eax, 1
je 0x1005730c
dec ecx
mov dword [ebp - 0x114], eax
test ecx, ecx
je 0x10057337
mov dl, byte [esi]
mov al, byte [esi + 1]
add esi, 2
sub al, 0x30
shl dl, 4
or dl, al
mov al, bh
xor al, dl
mov byte [edi], al
inc edi
sub ecx, 2
jne 0x10057316
mov eax, dword [ebp - 0x114]
test bl, bl
je 0x1005736c
test ax, ax
je 0x1005734c
mov al, byte [esi]
shl al, 4
xor al, bh
mov byte [edi], al
inc edi
dec bl
shr bl, 1
je 0x1005736c
mov al, bh
movzx ecx, bl
movzx eax, al
mov esi, ecx
imul eax, eax, 0x1010101
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 8
call fcn.1007c3cf
int3
Function at 0x100605e0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push esi
push eax
mov esi, ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi + 0x108]
test eax, eax
je 0x10060606
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x108], eax
test eax, eax
jne 0x10060625
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x100]
test eax, eax
je 0x10060640
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x10061c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x100], eax
test eax, eax
je 0x1006061e
mov ecx, dword [esi + 0x1c8]
lea eax, [ebp - 0x14]
push eax
push 8
push dword [esi + 0x1d4]
call fcn.100783c0
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 4
ja case.0x10060680.3
jmp dword [eax*4 + 0x100606d4]
mov eax, 0xfffffffe
jmp 0x100606a3
or eax, 0xffffffff
jmp 0x100606a3
mov eax, 1
jmp 0x100606a3
mov eax, 2
jmp 0x100606a3
xor eax, eax
push eax
push dword [esi + 0x100]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0xffffffffffffffff
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret