joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3330
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d274
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push str.FSS_OPERATORAPP_WAIT_MUTEX
push 1
mov dword [edi + 0x20], vtable.WindowUtilites::WindowSyncHelper.0
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4f33ce
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4f33ce
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f33ce
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], vtable.Presentation::TopmostParentWnd.0
lea ecx, [edi + 0x2c]
mov dword [edi], vtable.Presentation::TopmostParentDlgImpl.0
mov dword [edi + 0x20], vtable.Presentation::TopmostParentDlgImpl.1.0
mov dword [edi + 0x28], vtable.Presentation::TopmostParentDlgImpl.2.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0xf
mov byte [edi + 0x44], 0
push 0xc
push 0x573464
mov byte [ebp - 4], 4
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
call fcn.0040a4a0
push 0x23
push 0x573474
lea ecx, [edi + 0x44]
call fcn.0040a4a0
mov dword [edi + 0x5c], bind
mov eax, edi
mov dword [edi + 0x60], bind
mov dword [edi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f4850
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d3bd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5c8764]
test eax, eax
jne 0x4f4897
push 0x78
call fcn.005189be
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
jmp 0x4f4a2c
cmp eax, 1
jne 0x4f4a18
push 0x88
call fcn.005189be
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x4f49fc
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
push str.FSS_OPERATORAPP_WAIT_MUTEX
push 1
mov dword [edi + 0x24], vtable.WindowUtilites::WindowSyncHelper.0
push 0
mov dword [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4f4936
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4f4936
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f4936
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], vtable.Presentation::TopmostParentWnd.0
lea ecx, [edi + 0x30]
mov dword [edi], vtable.Presentation::TopmostParentWndImpl.0
mov dword [edi + 0x24], vtable.Presentation::TopmostParentWndImpl.1.0
mov dword [edi + 0x2c], vtable.Presentation::TopmostParentWndImpl.2.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
push 0xc
push 0x573464
mov byte [ebp - 4], 8
mov dword [edi + 0x84], 0
call fcn.0040a4a0
push 0x23
push 0x573474
lea ecx, [edi + 0x48]
call fcn.0040a4a0
lea eax, [edi + 0x2c]
mov dword [edi + 0x60], bind
mov dword [edi + 0x64], bind
mov dword [edi + 0x68], 0
neg edi
sbb edi, edi
and eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [edi + 0x2c]
neg edi
sbb edi, edi
and eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x78
call fcn.005189be
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4f4a3b
mov ecx, eax
call fcn.004f3330
mov ecx, eax
jmp 0x4f4a3d
xor ecx, ecx
lea eax, [ecx + 0x28]
neg ecx
sbb ecx, ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f8010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d628
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.Utilities::Singleton_class_Coordinators::SessionCoordinator__class_Utilities::SingletonCreateInteractionObject_.0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00467690
mov dword [esi], vtable.InteractionObjectImpl.0
lea eax, [edi + 0x3c]
mov dword [esi + 4], 0x8c
mov dword [esi + 0xc], 0
mov dword [edi], vtable.Coordinators::SessionCoordinator.1.0
mov dword [esi], vtable.Coordinators::SessionCoordinator.0
push eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x2c], vtable.Coordinators::safeobject_class_DataTransferObjects::UserSessionDTO_.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x54], 0
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
Function at 0x4f92a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d7d5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.Utilities::Singleton_class_Coordinators::StorageCoordinator__class_Utilities::SingletonCreateInteractionObject_.0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00467690
mov dword [esi], vtable.InteractionObjectImpl.0
mov dword [esi + 4], 0x8c
mov dword [esi + 0xc], 0
mov dword [esi], vtable.Coordinators::StorageCoordinator.0
lea eax, [edi + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], vtable.Coordinators::StorageCoordinator.1.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push eax
mov dword [edi + 0x2c], vtable.Coordinators::safevector_class_DataTransferObjects::WarehouseDTO__.0
call esi
lea eax, [edi + 0x64]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
push eax
mov dword [edi + 0x54], vtable.Coordinators::safevector_class_DataTransferObjects::RoomDTO__.0
call esi
lea eax, [edi + 0x8c]
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
push eax
mov dword [edi + 0x7c], vtable.Coordinators::safevector_class_DataTransferObjects::VendorDTO__.0
call esi
lea eax, [edi + 0xb4]
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
push eax
mov dword [edi + 0xa4], vtable.Coordinators::safevector_class_DataTransferObjects::SensorDTO__.0
call esi
lea esi, [edi + 0xd0]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.DataTransferObjects::CalibrationTableDTO.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
add esi, 0x10
mov byte [ebp - 4], 7
mov ecx, esi
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00441300
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0xe8], 0
mov dword [edi + 0xcc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fb8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d858
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.Utilities::Singleton_class_Coordinators::SystemUserCoordinator__class_Utilities::SingletonCreateInteractionObject_.0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00467690
mov dword [esi], vtable.InteractionObjectImpl.0
lea eax, [edi + 0x3c]
mov dword [esi + 4], 0x8c
mov dword [esi + 0xc], 0
mov dword [edi], vtable.Coordinators::SystemUserCoordinator.1.0
mov dword [esi], vtable.Coordinators::SystemUserCoordinator.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push eax
mov dword [edi + 0x2c], vtable.Coordinators::safevector_class_DataTransferObjects::SystemUserDTO__.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
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
Function at 0x4fdc20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cc88
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x64], eax
push 0x43a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 5
push esi
call edi
mov ecx, dword [ebp - 0x64]
push 0
push dword [ecx + 0x7c]
call edi
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
push 0x1f
push eax
push 0x72
push dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x5707b4
push 0x72
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0xa
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00544a5d
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
test eax, eax
je 0x4fdd88
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x68]
cmp ecx, edx
je 0x4fdcdf
nop dword [eax + eax]
cmp dword [ecx], eax
je 0x4fdd88
add ecx, 4
cmp ecx, edx
jne 0x4fdcd0
cmp dword [edi + 0x70], edx
je 0x4fdcef
mov eax, dword [ebp - 0x6c]
mov dword [edx], eax
add dword [edi + 0x6c], 4
jmp 0x4fdcfc
lea eax, [ebp - 0x68]
push eax
push edx
lea ecx, [edi + 0x68]
call fcn.0040aeb0
push dword [ebp - 0x68]
lea eax, [ebp - 0x13]
push eax
call fcn.0040f8c0
lea edx, [ebp - 0x13]
mov dword [ebp - 0x50], 0
add esp, 8
mov byte [ebp - 0x60], 0
mov ecx, 0xf
mov dword [ebp - 0x4c], ecx
cmp eax, edx
je 0x4fdd36
mov ecx, edx
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040a4a0
mov ecx, dword [ebp - 0x4c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x60]
cmp ecx, 0x10
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x60]
push eax
push 0
push 0x143
push esi
call edi
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
push 0xffffffffffffffff
push 0x14d
push esi
call edi
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
call fcn.004fdef0
lea ecx, [ebp - 0x60]
call fcn.00408f00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51bcd9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x54ed67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054ebe6

Function at 0x557f87
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00557c47
Function at 0x522060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcb000]
push edi
jmp 0x52207a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x522081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x522070
mov eax, 1
add ebx, ebx
jne 0x522093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5220a4
jne 0x5220c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5220c3
dec eax
add ebx, ebx
jne 0x5220b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x522088
add ebx, ebx
jne 0x5220bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x522115
xor ecx, ecx
sub eax, 3
jb 0x5220db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52214a
sar eax, 1
mov ebp, eax
jmp 0x5220e6
add ebx, ebx
jne 0x5220e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5220b4
inc ecx
add ebx, ebx
jne 0x5220f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5220b4
add ebx, ebx
jne 0x522101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5220f6
jne 0x522112
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5220f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x522134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x522126
jmp 0x522076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x522134
add edi, ecx
jmp 0x522076
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x522152
cmp byte [edi], 0x11
jne 0x522152
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x522157
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x5221cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16ae30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16afac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x522184
mov ecx, edi
jns 0x5221b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16afb0]
or eax, eax
je 0x5221c9
mov dword [ebx], eax
add ebx, 4
jmp 0x5221a1
call dword [esi + 0x16afc0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x522200
cmp al, 0xef
ja 0x5221f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5221d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5221e2
mov ebp, dword [esi + 0x16afb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x522234
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1e82036a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data_1
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x290319ed
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10013c05
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10013c44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013c44
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013c44
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10013c44
cmp dword [ecx + 0x74], 0xe
jbe 0x10013c44
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001695a
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 0x100169f7
push ebx
push esi
call fcn.10016923
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.100168b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100169a4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100169f6
push edi
push eax
call fcn.10017915
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100169c4
call fcn.10015481
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100169f5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100168b7
add esp, 0x20
test eax, eax
jne 0x100169e3
push edi
call fcn.10015481
jmp 0x100169eb
push ebx
call fcn.10015481
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

Function at 0x10016c64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f348
push 0x1001f340
push str.FlsAlloc
push 0x1f
call fcn.10016b80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016c98
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d150]
call esi
jmp 0x10016c9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016ce2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f358
push 0x1001f350
push str.FlsGetValue
push 0x21
call fcn.10016b80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016d19
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016d21
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f360
push 0x1001f358
push str.FlsSetValue
push 0x22
call fcn.10016b80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016d5b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c2ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c2ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403f94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403ff7
cmp dword [ebp + 0xc], 1
je 0x403fd0
cmp dword [ebp + 0xc], 2
je 0x403fd0
push 0xd
pop eax
jmp 0x403ff7
test edi, edi
mov eax, dword [ebp - 4]
je 0x403ff1
test eax, eax
je 0x403fed
test al, 1
jne 0x403fcb
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x403ff1
jmp 0x403fcb
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4042f6
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x448797
call fcn.004327c0
xor ecx, ecx
inc ecx
mov dword [0x464548], ecx
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jge 0x404334
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00407117
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x4644a0
jmp fcn.004051d5
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x404354
mov dword [ecx], eax
lea ecx, [esi + 0x98]
call fcn.00404b43
push dword [eax]
push esi
call fcn.004042c1
call fcn.00432898
ret

Function at 0x40435a
Capabilities:
Terminate process

Disassembly:
push 0x14
mov eax, 0x448772
call fcn.004327c0
lea ecx, [ebp - 0x14]
call fcn.00401ae0
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x450974
mov ecx, 0x4645f8
call fcn.004222c2
test eax, eax
jne 0x4043a8
push 0xbd3
lea eax, [ebp - 0x20]
push eax
call fcn.00407117
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ecx, 0x4644a0
jmp fcn.004051d5
lea ecx, [ebp - 0x10]
call fcn.00401ae0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
mov edi, esi
jmp 0x4043f2
cmp word [esi], 0x2c
jne 0x4043f0
mov eax, esi
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.0040166d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4043ed
lea ecx, [ebx + 0x98]
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.00424241
lea edi, [esi + 2]
inc esi
inc esi
cmp word [esi], 0
jne 0x4043bb
push edi
call fcn.0042d81f
test eax, eax
pop ecx
je 0x404413
lea ecx, [ebx + 0x98]
mov eax, dword [ecx + 8]
push edi
push eax
call fcn.00424291
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401b17
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b17
call fcn.00432898
ret

Function at 0x404fb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.00424d15
push dword [esp + 0xc]
mov esi, dword [eax + 0xc]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x404fd6
xor eax, eax
jmp 0x404fe9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404fd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 8