joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4505c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x493218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048b949
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044ff20
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048b877
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00488138
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00488138
push 1
push 0
push 0
mov ecx, esi
call fcn.004880e0
push 1
push 0
push 1
mov ecx, esi
call fcn.004880e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048b9bb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x450740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x493238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048b949
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044ff20
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048b877
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x450804
cmp dword [esp + 0x40], 1
jne 0x450802
cmp ecx, eax
jge 0x450804
mov eax, ecx
cmp eax, 0xc8
jge 0x450810
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004505c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048b9bb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x451010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4932e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00486558
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048bbf1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048d10d
test eax, eax
je 0x45112c
mov ecx, dword [esp + 0x3c]
call fcn.0048bc1e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4510f0
push edi
mov ecx, esi
call fcn.0048927f
mov ecx, esi
call fcn.004512d0
cmp dword [esp + 0x38], 1
jne 0x451125
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004893ba
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x453300
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453333
push esi
call fcn.004616c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45332c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4533b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4533a2
mov eax, dword [esi + 8]
test eax, eax
je 0x453357
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45339e
cmp eax, 2
je 0x4533a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45334a
cmp eax, 3
je 0x45337d
cmp eax, 1
jne 0x45334a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45334a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45334a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004533e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4533c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004533e0
add esp, 4
pop esi
ret

Function at 0x453c60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x453c81
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x453c81
mov eax, dword [eax + 0x44]
test eax, eax
je 0x453c81
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46f6d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46f773
test eax, eax
jbe 0x46f773
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46f773
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46f71e
xor esi, esi
jmp 0x46f724
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46f74f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040f8c0
add esi, eax
push esi
mov ebx, esi
call fcn.0040f8c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46f730
pop ebp
test edi, edi
pop edi
jne 0x46f773
test ebx, ebx
je 0x46f773
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00475730
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46f895
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46f9ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f9ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004869aa
mov esi, eax
test esi, esi
je 0x46f9ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46f9ad
mov ecx, esi
call fcn.0046f820
cmp edi, eax
jge 0x46f9ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46f933
mov dword [esp + 0x34], 1
jmp 0x46f98e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46f9ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046eda0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48734e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x487386
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004853db
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004853b3
jmp 0x487392
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x488a3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x488a7e
call fcn.0048e4fd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488a7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488a75
xor eax, eax
jmp 0x488a86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488a8c
pop edi
pop esi
pop ebx
ret 4
Function at 0x48ea2d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48ea5b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ea79
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e993
jmp 0x48ea79
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ea79
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e993
test edi, edi
mov eax, edi
jne 0x48ea63
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100043b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call fcn.10007b80
push eax
call fcn.1000b824
add esp, 8
mov dword [ebp - 0x10], 8
mov eax, 0x2c7
mov word [0x10024668], ax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.SoftwareCPWKey_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000440b
xorps xmm0, xmm0
movlpd qword [0x1002466a], xmm0
jmp 0x10004447
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.CPW_VALUE
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [0x1002466a], ecx
or ecx, eax
mov dword [0x1002466e], eax
jne 0x10004506
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 1
push 0
push 0
push str.SoftwareCPWKey_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000447e
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
jmp 0x100044fb
push esi
push edi
push 0
call fcn.10007b80
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1000b803
imul esi, eax
call fcn.1000b803
imul eax, edi
push 0
xor eax, esi
mov dword [ebp - 0x14], eax
call fcn.10007b80
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1000b803
imul esi, eax
call fcn.1000b803
imul eax, edi
push 8
xor eax, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.CPW_VALUE
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword [0x1002466a], ecx
mov dword [0x1002466e], eax
push 0x8adfff
mov dword [0x100245f8], 0
mov dword [0x100245fc], 0
mov dword [0x10024600], 0
mov dword [0x10024644], 0
mov dword [0x10024648], 0
call fcn.1000bd88
push 0x1026db
mov dword [0x1002463c], eax
call fcn.1000bd88
push 0x8adfff
push 0x401000
push dword [0x1002463c]
mov dword [0x10024640], eax
call fcn.100075c0
push 0x1026db
push 0xcaf924
push dword [0x10024640]
call fcn.100075c0
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
xor ecx, ebp
mov dword [0x1002465c], 0
add esp, 0x20
mov dword [0x10024660], 0xe457d0
movups xmmword [0x1002464c], xmm0
mov byte [0x10024664], 0
xor eax, eax
mov dword [0x10024604], 0
mov dword [0x10024608], 0
mov dword [0x1002460c], 0
call fcn.10004bfe
mov esp, ebp
pop ebp
ret
Function at 0x100045e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100245f4], 0
push esi
je 0x10004651
xor esi, esi
nop
cmp esi, 0x50
jae 0x1000460f
inc esi
cmp byte [esi + str.vm_text____START___n], 0
jne 0x10004600
test esi, esi
je 0x10004651
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x10004651
push dword [ebp - 0x10c]
push esi
push 1
push str.vm_text____START___n
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push 0x40
push 0x8adfff
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100046f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104]
push str.VirtualProtect___Error_Code:__d_n
push eax
call fcn.10004b50
add esp, 0xc
cmp byte [0x100245f4], 0
je 0x100046f5
xor esi, esi
cmp byte [ebp - 0x104], 0
je 0x100046f5
cmp esi, 0x50
jae 0x100046b1
inc esi
cmp byte [ebp + esi - 0x104], 0
jne 0x100046a1
test esi, esi
je 0x100046f5
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x100046f5
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push esi
push 1
push eax
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
call fcn.10003ca0
push 0
push dword [ebp - 0x108]
push 0x8adfff
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100047a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104]
push str.VirtualProtect___Error_Code:__d_n
push eax
call fcn.10004b50
add esp, 0xc
cmp byte [0x100245f4], 0
je 0x10004801
xor esi, esi
cmp byte [ebp - 0x104], 0
je 0x100047a4
nop dword [eax]
cmp esi, 0x50
jae 0x10004760
inc esi
cmp byte [ebp + esi - 0x104], 0
jne 0x10004750
test esi, esi
je 0x100047a4
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x100047a4
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push esi
push 1
push eax
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
cmp byte [0x100245f4], 0
je 0x10004801
xor esi, esi
nop
cmp esi, 0x50
jae 0x100047bf
inc esi
cmp byte [esi + str.vm_text____OK___n], 0
jne 0x100047b0
test esi, esi
je 0x10004801
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x10004801
push dword [ebp - 0x10c]
push esi
push 1
push str.vm_text____OK___n
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10004bfe
mov esp, ebp
pop ebp
ret
Function at 0x10004810
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100245f4], 0
push esi
je 0x10004881
xor esi, esi
nop
cmp esi, 0x50
jae 0x1000483f
inc esi
cmp byte [esi + str.vm_rdata____START___n], 0
jne 0x10004830
test esi, esi
je 0x10004881
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x10004881
push dword [ebp - 0x10c]
push esi
push 1
push str.vm_rdata____START___n
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push 0x40
push 0x1026db
push 0xcaf924
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104]
push str.VirtualProtect___Error_Code:__d_n
push eax
call fcn.10004b50
add esp, 0xc
cmp byte [0x100245f4], 0
je 0x10004925
xor esi, esi
cmp byte [ebp - 0x104], 0
je 0x10004925
cmp esi, 0x50
jae 0x100048e1
inc esi
cmp byte [ebp + esi - 0x104], 0
jne 0x100048d1
test esi, esi
je 0x10004925
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x10004925
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push esi
push 1
push eax
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
push 0
push dword [ebp - 0x108]
push 0x1026db
push 0xcaf924
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100049cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104]
push str.VirtualProtect___Error_Code:__d_n
push eax
call fcn.10004b50
add esp, 0xc
cmp byte [0x100245f4], 0
je 0x10004a28
xor esi, esi
cmp byte [ebp - 0x104], 0
je 0x100049cc
cmp esi, 0x50
jae 0x10004988
inc esi
cmp byte [ebp + esi - 0x104], 0
jne 0x10004978
test esi, esi
je 0x100049cc
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x100049cc
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push esi
push 1
push eax
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
cmp byte [0x100245f4], 0
je 0x10004a28
xor esi, esi
cmp esi, 0x50
jae 0x100049e6
inc esi
cmp byte [esi + str.vm_rdata____OK___n], 0
jne 0x100049d7
test esi, esi
je 0x10004a28
push 0x1002089c
lea eax, [ebp - 0x10c]
push str.._elementclient.log
push eax
call fcn.1000b8ed
add esp, 0xc
test eax, eax
jne 0x10004a28
push dword [ebp - 0x10c]
push esi
push 1
push str.vm_rdata____OK___n
call fcn.1000bbf9
push dword [ebp - 0x10c]
call fcn.1000bd58
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10004bfe
mov esp, ebp
pop ebp
ret
Function at 0x10004a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x10004a83
call fcn.100045e0
call fcn.10004810
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x10004290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.100043b0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10004bfe
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000c4d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000c518
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000c518
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c518
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000c518
cmp dword [ecx + 0x74], 0xe
jbe 0x1000c518
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000d4e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c610
push 0x1001c608
push str.FlsAlloc
push 0x1f
call fcn.1000d404
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d51c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b144]
call esi
jmp 0x1000d522
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d566
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c620
push 0x1001c618
push str.FlsGetValue
push 0x21
call fcn.1000d404
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d59d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000d5a5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c628
push 0x1001c620
push str.FlsSetValue
push 0x22
call fcn.1000d404
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d5df
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012389
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012426
push ebx
push esi
call fcn.10012352
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100122e6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100123d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012425
push edi
push eax
call fcn.1000d744
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100123f3
call fcn.1000d70a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012424
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100122e6
add esp, 0x20
test eax, eax
jne 0x10012412
push edi
call fcn.1000d70a
jmp 0x1001241a
push ebx
call fcn.1000d70a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret