joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor ecx, ecx
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x415014
cmp dword [ebp - 4], 1
je 0x414fbb
cmp dword [ebp - 4], 2
je 0x414fbb
push 0xd
pop esi
jmp 0x415014
mov eax, dword [ebp - 8]
push ebx
push edi
mov edi, dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0xc], eax
inc eax
push eax
mov ecx, dword [edi]
push edi
call dword [ecx + 0xa8]
mov ebx, eax
test ebx, ebx
je 0x41500f
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov word [ebx + eax*2], cx
test esi, esi
je 0x415004
xor eax, eax
mov word [ebx], ax
mov eax, dword [edi]
push edi
call dword [eax + 0xac]
jmp 0x415012
push 0xe
pop esi
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415074
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
test edi, edi
jne 0x415096
push 0x323658
jmp 0x4150b1
cmp dword [esi + 4], 6
jae 0x4150a6
push 0x323659
call fcn.0044bfe4
cmp dword [esi + 0x10], 2
je 0x4150b6
push 0x32365a
call fcn.0044bfe4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x420f5b
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x420f6a
or eax, 0xffffffff
jmp 0x420fa7
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x420f84
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x420f77
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x421822
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
cmp dword [ebp + 8], eax
je 0x42186a
push 0xea
push 1
push dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x42184f
xor eax, eax
jmp 0x42186a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42184b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 4

Function at 0x423698
Capabilities:
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4236a7
or eax, 0xffffffff
jmp 0x4236f8
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4236d5
cmp ax, 0x41
jb 0x4236c8
cmp ax, 0x5a
ja 0x4236c8
movzx eax, ax
add eax, 0x20
jmp 0x4236cb
movzx eax, ax
imul ecx, ecx, 0x21
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4236b4
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4
Function at 0x429221
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x174], eax
xor esi, esi
test dword [ebp + 0x1c], 0x200
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x164], edx
jne 0x4293bb
push ebx
push edi
lea edx, [ebp - 0x160]
mov dword [ebp - 0x168], esi
push edx
push ecx
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
call fcn.0042276c
mov ebx, eax
xor eax, eax
mov word [ebp - 0x15c], ax
test ebx, ebx
je 0x429334
lea edi, [ebx + ebx]
push 0x2d
pop eax
cmp ax, word [ebp + edi - 0xb0]
jne 0x42930f
cmp edi, 0xaa
jae 0x4293ce
xor eax, eax
mov word [ebp + edi - 0xb0], ax
mov eax, dword [ebp + 0x1c]
or eax, 0x200
push eax
push dword [ebp - 0x164]
lea eax, [ebp - 0x168]
push eax
push 0x55
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004291b3
mov esi, eax
test esi, esi
jne 0x42931b
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 2
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, eax
test esi, esi
jne 0x42931b
sub edi, 2
sub ebx, 1
jne 0x42929d
test esi, esi
je 0x429334
push 0xffffffffffffffff
push 0x45bc38
lea eax, [ebp - 0x15c]
push 0x55
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
mov edi, dword [ebp - 0x170]
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x16c]
lea eax, [ebp - 0xb0]
push edi
push 0x55
push eax
call fcn.0042276c
lea eax, [ebp - 0xb0]
push eax
call fcn.0042a27d
push 0xffffffffffffffff
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push 0x55
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test esi, esi
je 0x42939a
push 0xffffffffffffffff
push 0x45bc40
lea eax, [ebp - 0x15c]
push 0x55
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x15c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x174]
call fcn.0042276c
pop edi
mov esi, eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044c025
mov esp, ebp
pop ebp
ret 0x18
call fcn.0044c871
int3

Function at 0x42ac22
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 2
push str.office.odf
push 0x45bca0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8
Function at 0x434402
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x474300], 0x20
push esi
push edi
mov esi, ecx
je 0x434443
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x463988
push dword [0x47430c]
push dword [0x474308]
call fcn.004370ed
push 0x1c135e
call fcn.0044bfe4
lea eax, [esi + 8]
mov ecx, dword [eax]
mov esi, ecx
mov edi, dword [eax + 4]
mov edx, edi
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
mov dword [ebp - 0x10], esi
shl eax, 0xc
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
mov eax, esi
mov esi, dword [ebp - 4]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x10]
jne 0x43448b
cmp ecx, edi
je 0x4344bb
mov esi, eax
mov dword [ebp - 0x10], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 4]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x43448b
cmp ecx, dword [ebp - 0x10]
jne 0x43448b
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4359dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x4359f7
mov eax, 0x80004005
jmp 0x435bc7
cmp byte [esi + 0x180], bl
je 0x435a06
xor eax, eax
jmp 0x435bc7
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1c]
call fcn.0042f194
test al, al
jne 0x435a33
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
test eax, eax
je 0x435a33
push 0x1c1417
call fcn.0044bfe4
push edi
call fcn.0043a51e
test al, al
jne 0x435ab5
push 0x2710
lea ecx, [esi + 0x38]
call fcn.004371da
test eax, eax
je 0x435ab5
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x435a90
sub eax, 1
je 0x435aab
sub eax, 1
je 0x435a90
sub eax, 1
je 0x435a78
push 0x1c1418
call fcn.0044bfe4
jmp 0x435a86
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x80004005
jmp 0x435bc6
or ecx, 0xffffffff
mov eax, 0x4e20
cmp dword [ebp + 8], ebx
cmove eax, ecx
lea ecx, [esi + 0x38]
push eax
call fcn.004371da
test eax, eax
je 0x435ab5
mov eax, 0x80004004
jmp 0x435bc6
mov ecx, dword [esi + 0x24]
mov byte [esi + 0x180], 1
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edi, [esi + 0x124]
cmp dword [edi + 8], ebx
je 0x435af7
cmp dword [edi], ebx
je 0x435af7
jmp 0x435ae8
mov ecx, dword [ebp - 8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.0042eee7
test al, al
jne 0x435ad5
push 0x464d74
lea eax, [esi + 0x10]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 4]
call fcn.00433c4e
test eax, eax
js 0x435b1b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x435b2b
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x435b37
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x435b43
call fcn.0043baa9
lea edi, [esi + 0x7c]
cmp dword [edi + 8], ebx
je 0x435b72
cmp dword [edi], ebx
je 0x435b72
jmp 0x435b63
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.0042eee7
test al, al
jne 0x435b51
lea edi, [esi + 0xd0]
cmp dword [edi + 8], ebx
je 0x435b9b
cmp dword [edi], ebx
je 0x435b9b
jmp 0x435b8c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0042eee7
test al, al
jne 0x435b83
cmp dword [esi + 0x17c], ebx
je 0x435bc4
call fcn.0042f194
test al, al
je 0x435bba
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 0x17c], ebx
jmp 0x435bc4
push 0x1c141d
call fcn.0044bfe4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x438c22
Capabilities:
Encode data using xor

Disassembly:
push esi
lea esi, [ecx + 0x10]
mov edx, dword [esi]
mov eax, edx
mov ecx, edx
and eax, 0xffffc000
add eax, 0x4000
xor eax, edx
and eax, 0xfffc000
xor edx, eax
mov eax, ecx
lock cmpxchg dword [esi], edx
mov edx, eax
cmp edx, ecx
jne 0x438c28
pop esi
ret

Function at 0x4396f5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x439711
mov ebx, 0x80004005
jmp 0x4397c9
mov eax, dword [esi + 0x38]
push edi
cmp eax, dword [esi + 0x34]
ja 0x439741
lea eax, [eax*4 + 0x14]
push eax
lea edi, [esi + 0x2c]
push edi
call fcn.004308bf
pop ecx
pop ecx
test eax, eax
jne 0x43973b
mov ebx, 0x8007000e
jmp 0x4397c8
add dword [esi + 0x38], 5
mov dword [edi], eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004397d1
mov ebx, eax
test ebx, ebx
js 0x4397ba
mov ecx, dword [esi + 0x40]
or ecx, dword [esi + 0x44]
jne 0x439766
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov edi, dword [ebp - 4]
lock inc dword [edi + 0x908]
lea eax, [edi + 0x8f0]
push eax
xor eax, eax
push eax
push edi
push 0x439b7a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43979a
mov ecx, edi
call fcn.00439992
mov ebx, 0x80004005
jmp 0x4397bd
mov dword [edi + 0x8ec], eax
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
push 0x3e
mov dword [eax + ecx*4], edi
xor edi, edi
inc dword [esi + 0x34]
lea eax, [esi + 0x30]
pop ecx
lock xadd dword [eax], ecx
jmp 0x4397bd
mov edi, dword [ebp - 4]
test edi, edi
je 0x4397c8
mov ecx, edi
call fcn.00439992
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43fc87
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [edi + 8]
mov dword [ebp - 0x24], eax
cmp eax, dword [edx + 4]
jne 0x43fcfd
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
and ecx, 0x7ff
cmp ecx, dword [edi + 0x14]
jne 0x43fcfd
mov eax, dword [edi + 8]
inc dword [eax + 8]
test byte [0x474300], 0x80
je 0x43fcea
mov eax, dword [edi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
push 0x463a08
push dword [0x47430c]
push dword [0x474308]
call fcn.0043a10f
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c025
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov byte [ebp - 8], 0
push ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x15], al
push esi
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
mov eax, ecx
xor ebx, ebx
and eax, 0x7ff
mov edx, ecx
cmp eax, 0x7fb
sete bl
test ebx, ebx
jne 0x43fd4a
test eax, eax
je 0x43fd4a
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
cmp byte [ebp - 0x15], bl
jne 0x43fd74
and ecx, 0xfffff800
add ecx, 0x800
and ecx, 0xfffff800
jmp 0x43fd72
mov eax, dword [edi + 0x14]
xor eax, ecx
mov dword [ebp - 0x20], 1
and eax, 0x7ff
xor ecx, eax
cmp byte [ebp - 0x15], 0
je 0x43fd74
mov eax, ecx
shr eax, 0xb
dec eax
shl eax, 0xb
and ecx, 0x7ff
or ecx, eax
mov esi, dword [edi + 8]
mov eax, edx
lock cmpxchg dword [esi], ecx
mov ecx, eax
cmp ecx, edx
jne 0x43fd10
cmp dword [ebp - 0x20], 0
mov eax, dword [edi + 8]
jne 0x43fe39
mov eax, dword [eax]
and eax, 0xfffff800
cmp eax, 0x28f5800
jb 0x43fda8
push 0x1c124c
call fcn.0044bfe4
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x43fde0
cmp byte [ebp - 0x15], 0
jne 0x43fdc7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
jne 0x43fde0
jmp 0x43fdca
mov esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, ebx
jae 0x43fdfd
sub ebx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x10], ebx
call fcn.0043ffce
jmp 0x43fd0b
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov esi, dword [edi + 8]
mov ecx, eax
shr ecx, 0xb
mov edx, eax
dec ecx
and eax, 0x7ff
shl ecx, 0xb
or ecx, eax
mov eax, edx
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x43fe02
pop esi
pop ebx
mov eax, 0x102
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c025
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
mov dword [eax + 8], 1
test byte [0x474300], 0x80
je 0x43fe72
mov eax, dword [edi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
push 0x463a08
push dword [0x47430c]
push dword [0x474308]
call fcn.0043a10f
mov ecx, dword [ebp - 4]
neg ebx
pop esi
sbb ebx, ebx
xor ecx, ebp
and ebx, 0x80
mov eax, ebx
pop ebx
pop edi
call fcn.0044c025
mov esp, ebp
pop ebp
ret 8
Function at 0x44373d
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
inc ecx
cmp byte [ebp + 0xc], 0
mov word [ebp - 0x28], cx
je 0x44376c
xor eax, eax
mov dword [ebp - 0x24], 0x20
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 8]
jmp 0x4437a6
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
push 2
pop eax
push 6
mov word [ebp - 0x1c], cx
pop ecx
push 0xd
mov word [ebp - 0x1a], cx
pop ecx
mov word [ebp - 0x10], cx
xor ecx, ecx
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 8]
push 3
mov word [ebp - 0xe], cx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], eax
pop ecx
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.0044c025
mov esp, ebp
pop ebp
ret 8
Function at 0x4496ef
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x23c], ecx
lea eax, [ebp - 0x214]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x46728c]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, edi
mov eax, dword [0x467290]
mov esi, edi
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
push edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x449844
lea eax, [ebp - 0x214]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4497a5
lea ebx, [ebp - 0x214]
jmp 0x4497aa
push 2
pop eax
add ebx, eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x214]
push eax
push 3
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov dword [ebp - 0x220], eax
test eax, eax
je 0x44983e
push eax
call fcn.0043092c
mov esi, eax
pop ecx
test esi, esi
je 0x44983e
push esi
push dword [ebp - 0x220]
lea eax, [ebp - 0x214]
push edi
push eax
push 3
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x44983e
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x451f60
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44983e
cmp dword [ebp - 0x224], 0x34
jne 0x44983e
mov eax, dword [ebp - 0x228]
movzx ecx, word [eax + 8]
movzx edi, word [eax + 0xa]
mov dword [ebp - 0x234], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x218]
test ecx, ecx
mov eax, ecx
push 7
pop edx
cmove eax, edx
xor ecx, ecx
add eax, 0x1d
push 2
pop edx
mov dword [ebp - 0x220], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043092c
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x23c]
mov dword [eax + 4], ecx
test ecx, ecx
jne 0x449882
mov edi, 0x8007000e
jmp 0x4498d5
cmp dword [ebp - 0x218], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x22c]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x230]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x234]
movzx eax, ax
push eax
movzx eax, di
push eax
mov eax, str.Unknown
cmovne eax, ebx
push eax
push str._s__d._d._d._d__s_s
push dword [ebp - 0x220]
push ecx
call fcn.00449a85
add esp, 0x28
mov edi, eax
test esi, esi
je 0x4498e0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c025
mov esp, ebp
pop ebp
ret
Function at 0x44ab13
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x408], eax
test esi, esi
jne 0x44ab5c
xor eax, eax
jmp 0x44acc2
and dword [esi], 0
push ebx
push edi
xor edi, edi
inc edi
push edi
push eax
push ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.0044bd67
mov edx, dword [ebp - 0x408]
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x418], ecx
shr eax, 0x1a
xor ebx, ebx
and dword [ebp - 0x41c], ebx
not eax
and eax, edi
mov dword [ebp - 0x414], eax
test ecx, ecx
je 0x44abc3
mov eax, edx
shr eax, 0x17
push ecx
and eax, edi
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edx, dword [ebp - 0x408]
mov dword [esi], eax
mov eax, dword [ebp - 0x414]
cmp dword [esi], ebx
jne 0x44ac66
test eax, eax
je 0x44ac66
xor eax, eax
push edi
lea eax, [ebp - 0x40c]
push eax
push edx
call fcn.0044bb1d
test eax, eax
je 0x44ac56
mov eax, dword [ebp - 0x408]
push dword [ebp - 0x418]
shr eax, 0x19
and eax, edi
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x40c]
push edi
push eax
push dword [ebp - 0x408]
call fcn.0044bc51
mov eax, dword [ebp - 0x410]
cmp eax, 5
jne 0x44ac58
cmp dword [ebp - 0x41c], ebx
jne 0x44ac58
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 0x41c], edi
jmp 0x44ab9d
mov eax, ebx
cmp dword [esi], ebx
je 0x44ac66
xor ebx, ebx
cmp eax, 0xb7
setne bl
cmp dword [esi], 0
je 0x44ac70
cmp dword [esi], 0xffffffff
jne 0x44ac8a
cmp dword [ebp - 0x414], 0
je 0x44ac83
push 0x1631e1
call fcn.0044bfe4
and dword [esi], 0
xor ebx, ebx
xor edi, edi
mov edx, dword [ebp - 0x420]
test edx, edx
je 0x44acb2
mov ecx, dword [ebp - 0x418]
mov eax, 0x460802
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp + 0x14]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x44acbe
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044c025
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44b97a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x54], esi
push edi
test ebx, ebx
jne 0x44b9a6
push 0x15b3c8
jmp 0x44b9de
cmp dword [0x484bf8], esi
je 0x44b9bd
mov eax, dword [0x46fb78]
xor edi, edi
mov dword [ebx], eax
inc edi
jmp 0x44bae9
lea eax, [ebp - 0x50]
mov dword [ebx], esi
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44b9ea
push 0x15b3c9
call fcn.0044bfe4
mov edi, esi
jmp 0x44bae9
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 2
push dword [ebp - 0x50]
call edi
test eax, eax
je 0x44ba08
push 0x15b3ca
jmp 0x44b9de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x44ba1a
push 0x15b3cb
jmp 0x44b9de
push dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
call fcn.004121be
mov esi, dword [ebp - 0x4c]
test al, al
jne 0x44ba3d
push 0x15b3cc
call fcn.0044bfe4
xor edi, edi
jmp 0x44badc
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x50]
call edi
test eax, eax
jne 0x44ba57
push 0x15b3cd
jmp 0x44ba31
push 0x44
pop edi
push edi
lea eax, [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x44ba89
push 0x15b3ce
jmp 0x44ba31
xor ecx, ecx
mov dword [ebp - 0x58], ecx
test esi, esi
je 0x44bb0f
lea eax, [esi + 4]
xor edi, edi
mov dword [ebp - 0x4c], eax
inc edi
cmp ecx, dword [esi]
jae 0x44bacf
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x44babe
mov eax, dword [ebp - 0x4c]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44bacd
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x58], ecx
add eax, 8
jmp 0x44ba95
mov dword [ebx], edi
mov dword [0x484bf8], edi
mov eax, dword [ebx]
mov dword [0x46fb78], eax
test esi, esi
je 0x44bae7
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
xor esi, esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x44bafa
push eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c025
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov dword [0], 1
int 0x29