joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41deec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41df45
test eax, edx
je 0x41df48
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41df03
movzx eax, word [eax]
sub eax, ecx
jmp 0x41df2a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41df2b
add ecx, 4
js 0x41df1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41df28
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41df2a
xor eax, eax
ret
test eax, eax
je 0x41df54
test edx, edx
jne 0x41def4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41f1a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41f1d1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x422c60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x422c99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409c40
jmp 0x422ca2
mov eax, ebx
mov edx, esi
call fcn.00409e98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422cac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x422cce
movzx eax, word [esp]
jmp 0x422cd0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423fcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4240f1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423dd4
mov esi, eax
mov eax, dword [0x4dd9b4]
cmp byte [eax], 0
je 0x424099
mov eax, dword [0x4dd800]
call fcn.0040758c
call fcn.00406f60
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423f9c]
call fcn.0040bb74
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42410c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4240d5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4dd7c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e1634]
call fcn.0040bf64
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4240f8
lea eax, [ebp - 4]
mov edx, dword [0x423f9c]
call fcn.0040bc98
ret
Function at 0x425190
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x425290
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409ee0
lea eax, [ebp - 4]
call fcn.00409ff4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a538
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42527a
mov eax, ebx
call fcn.00406e0c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x425273
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a538
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42525d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4252a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42525d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42527a
mov eax, dword [ebp - 0x10]
call fcn.00406e28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425297
lea eax, [ebp - 4]
call fcn.00409ab8
ret

Function at 0x42612c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409f88
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ec98
mov edi, eax
cmp edi, 0x104
jbe 0x4260d7
mov eax, edi
add eax, eax
call fcn.00406e0c
mov esi, eax
jmp 0x4260d9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ec98
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x426112
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4260fc
mov eax, esp
cmp esi, eax
je 0x42611f
mov eax, esi
call fcn.00406e28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x426158
cmp bl, 0
je 0x426154
cmp bl, 0x41
jl 0x42614f
cmp bl, 0x5a
jg 0x42614f
or bl, 0x20
xor al, bl
inc esi
jmp 0x426133
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426098

Function at 0x4269b4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a5dc
add esp, 0x800
pop ebx
ret
Function at 0x47dc9c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x47dca4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4b5298
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b5336
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4b52fa
cmp byte [ebx + 0x11], 0
jne 0x4b52fa
cmp byte [ebx + 0x24], 0
jne 0x4b52fa
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b531b
lea edx, [ebp - 4]
mov eax, dword [0x4dd970]
call fcn.0040ec04
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48d354]
call fcn.0042411c
call fcn.00409134
jmp 0x4b531b
lea edx, [ebp - 8]
mov eax, dword [0x4dd970]
call fcn.0040ec04
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48d354]
call fcn.0042411c
call fcn.00409134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b533d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409b18
ret

Function at 0x4b5b50
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b5b9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b5118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5bb7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b5bc0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b5118
dec esi
jne 0x4b5be2
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d5400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4d5408
xor eax, eax
push ebp
push 0x4d55b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.004d53dc
mov dl, 1
mov eax, dword [0x4865fc]
call fcn.004a549c
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x4865fc]
call fcn.004a549c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
call fcn.004d5198
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.004256a8
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d55cc
push 0x4d55e0
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040a814
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d55f0
push 0
push 0x4d5604
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.0040a814
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d55cc
push 0x4d55e0
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.0040a814
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, dword [0x4dd6f0]
call fcn.0041f71c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x30]
push 0x4d5618
push 0x4d5628
mov ecx, dword [0x4e1634]
mov dl, 1
mov eax, dword [0x489e54]
call fcn.004a84e4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.004a8184
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d5644
push 0x4d5658
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.0040a814
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x80]
push 0
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d5644
push 0x4d5658
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.0040a814
mov eax, dword [ebp - 0x40]
call fcn.0040a538
push eax
push 0x4d5660
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
call fcn.00409918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d55bc
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00409b18
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409b18
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409b18
ret
Function at 0x17a4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017a41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x17a407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17a406a
add dl, dl
jne 0x17a4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17a40dc
xor eax, eax
add dl, dl
jne 0x17a4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17a417d
add dl, dl
jne 0x17a40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17a40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17a40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17a40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17a40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17a4075
mov eax, 1
add dl, dl
jne 0x17a40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17a40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17a40e1
sub eax, ebx
mov ebx, 1
jne 0x17a4128
mov ecx, 1
add dl, dl
jne 0x17a410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17a4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17a4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17a4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17a413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17a414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17a4136
cmp eax, 0x7d00
jae 0x17a416d
cmp eax, 0x500
jb 0x17a4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17a4075
cmp eax, 0x7f
ja 0x17a4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17a4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17a419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x17a4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xa3de3eeb
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ecx + 0xa8], edx
mov eax, dword [ebp - 4]
mov dword [eax], 0x8e6
mov dword [ebp - 8], 0x40
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x40], 0
je 0x4011a4
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [eax + 0xa4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xf4], 0xff75cad7
mov dword [ebp - 8], 0xe1b8d419
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x88], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xe8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa4], 0
je 0x401189
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jae 0x401187
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 4
jae 0x40116d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
jae 0x40116d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x88]
xor ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov edx, dword [ebp - 8]
mov byte [eax + edx], cl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jae 0x40116b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x401107
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xd8]
add ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + 0xd8], ecx
jmp 0x4010ef
jmp 0x401192
mov eax, dword [ebp - 4]
push eax
call 0x4011b0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x48], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x401ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x409
push 0x69
push 3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x60]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x94], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x108], eax
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edx + 0xfc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
add ecx, dword [edx + 0x3c]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov dword [eax + 0xd0], 0x40c000
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401040
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40512c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004030e0
and dword [ebp - 4], 0
cmp dword [0x4651d4], 0
mov ebx, eax
jne 0x4051dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40528e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40528e
push eax
call fcn.0040306e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4651d4], eax
call esi
push eax
call fcn.0040306e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4651d8], eax
call esi
push eax
call fcn.0040306e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4651dc], eax
call esi
push eax
call fcn.0040306e
pop ecx
mov dword [0x4651e4], eax
test eax, eax
je 0x4051dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040306e
pop ecx
mov dword [0x4651e0], eax
mov eax, dword [0x4651e0]
cmp eax, ebx
je 0x405235
cmp dword [0x4651e4], ebx
je 0x405235
push eax
call fcn.004030e9
push dword [0x4651e4]
mov esi, eax
call fcn.004030e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405235
test edi, edi
je 0x405235
call esi
test eax, eax
je 0x40522c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40522c
test byte [ebp - 0xc], 1
jne 0x405235
or dword [ebp + 0x10], 0x200000
jmp 0x40526e
mov eax, dword [0x4651d8]
cmp eax, ebx
je 0x40526e
push eax
call fcn.004030e9
pop ecx
test eax, eax
je 0x40526e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40526e
mov eax, dword [0x4651dc]
cmp eax, ebx
je 0x40526e
push eax
call fcn.004030e9
pop ecx
test eax, eax
je 0x40526e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4651d4]
call fcn.004030e9
pop ecx
test eax, eax
je 0x40528e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405290
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40634a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4642e0]
jne 0x406354
repz ret
jmp fcn.004079a0
Function at 0x1002aa5
Capabilities:
Accept command line arguments

Disassembly:
push 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call fcn.0100554a
add esp, 0x10
ret

Function at 0x1002ac0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100a11c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x98], esi
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x98]
inc esi
push eax
mov dword [0x100a4a8], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1002b6f
push 2
pop eax
cmp dword [ebp - 0x88], eax
jne 0x1002b6f
cmp dword [ebp - 0x94], 5
jne 0x1002b52
cmp dword [ebp - 0x90], 0
je 0x1002b6a
cmp dword [ebp - 0x90], esi
jne 0x1002b3e
mov dword [0x100a4a8], 3
jmp 0x1002b6f
cmp dword [ebp - 0x90], eax
jne 0x1002b6f
mov dword [0x100a4a8], 4
jmp 0x1002b6f
cmp dword [ebp - 0x94], 6
jb 0x1002b6f
cmp dword [ebp - 0x8c], 0x1b58
sbb eax, eax
add eax, 6
mov dword [0x100a4a8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100816f
leave
ret

Function at 0x1002d9f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
call fcn.010056eb
test eax, eax
je 0x1002edf
push 0x1001758
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x100a478], eax
jne 0x1002de0
push 0x1001734
push 0x10015b8
push 0x100171c
call fcn.01007e69
add esp, 0xc
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100170c
push eax
call esi
push 0x10016fc
push dword [0x100a478]
mov dword [0x100a484], eax
call esi
push 0x10016e4
push dword [0x100a478]
mov dword [0x100a488], eax
call esi
push 0x10016d0
push dword [0x100a478]
mov dword [0x100a48c], eax
call esi
push 0x10016c0
push dword [0x100a478]
mov dword [0x100a490], eax
call esi
push 0x10016b0
push dword [0x100a478]
mov dword [0x100a494], eax
call esi
push 0x10016a0
push dword [0x100a478]
mov dword [0x100a498], eax
call esi
push 0x100168c
push dword [0x100a478]
mov dword [0x100a49c], eax
call esi
push 0x100167c
push dword [0x100a478]
mov dword [0x100a4a0], eax
call esi
cmp dword [0x100a484], edi
mov dword [0x100a4a4], eax
pop esi
je 0x1002ec9
cmp dword [0x100a488], edi
je 0x1002ec9
cmp dword [0x100a48c], edi
je 0x1002ec9
cmp dword [0x100a490], edi
je 0x1002ec9
cmp dword [0x100a494], edi
je 0x1002ec9
cmp dword [0x100a498], edi
je 0x1002ec9
cmp dword [0x100a49c], edi
je 0x1002ec9
cmp dword [0x100a4a0], edi
je 0x1002ec9
cmp eax, edi
jne 0x1002edf
push dword [0x100a478]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1001648
jmp 0x1002dca
xor eax, eax
inc eax
pop edi
ret
Function at 0x1003928
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a11c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x100a4a8], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
jne 0x100395d
call fcn.01002ac0
cmp dword [0x100a4a8], 3
jg 0x100396b
xor eax, eax
inc eax
jmp 0x10039b0
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10039ad
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10039a4
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100816f
leave
ret