joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4260d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451390]
jne 0x4260de
repz ret
jmp fcn.0042dab2

Function at 0x43b8cd
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.0042e12f
and dword [ebp - 4], 0
cmp dword [0x454908], 0
mov ebx, eax
jne 0x43b97e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43ba2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43ba2f
push eax
call fcn.0042e0bd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x454908], eax
call esi
push eax
call fcn.0042e0bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45490c], eax
call esi
push eax
call fcn.0042e0bd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454910], eax
call esi
push eax
call fcn.0042e0bd
pop ecx
mov dword [0x454918], eax
test eax, eax
je 0x43b97e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e0bd
pop ecx
mov dword [0x454914], eax
mov eax, dword [0x454914]
cmp eax, ebx
je 0x43b9d6
cmp dword [0x454918], ebx
je 0x43b9d6
push eax
call fcn.0042e138
push dword [0x454918]
mov esi, eax
call fcn.0042e138
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43b9d6
test edi, edi
je 0x43b9d6
call esi
test eax, eax
je 0x43b9cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b9cd
test byte [ebp - 0xc], 1
jne 0x43b9d6
or dword [ebp + 0x10], 0x200000
jmp 0x43ba0f
mov eax, dword [0x45490c]
cmp eax, ebx
je 0x43ba0f
push eax
call fcn.0042e138
pop ecx
test eax, eax
je 0x43ba0f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43ba0f
mov eax, dword [0x454910]
cmp eax, ebx
je 0x43ba0f
push eax
call fcn.0042e138
pop ecx
test eax, eax
je 0x43ba0f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454908]
call fcn.0042e138
pop ecx
test eax, eax
je 0x43ba2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ba31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438cb4
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
push ebx
pop edi
add edi, ebx
or ebx, edi
call fcn.00438cee
sub esp, 4
mov dword [esp], edi
pop edi
xor dword [edx], esi
add edi, edi
dec edi
sub esp, 4
mov dword [esp], edi
mov edi, dword [esp]
add esp, 4
inc edx
inc ebx
cmp edx, ecx
jne fcn.00438cb4
inc ebx
add edi, edi
ret
Function at 0x432930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x43294a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x432951
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x432940
mov eax, 1
add ebx, ebx
jne 0x432963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x432958
jne 0x432974
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432958
xor ecx, ecx
sub eax, 3
jb 0x432988
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4329fa
mov ebp, eax
add ebx, ebx
jne 0x432993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4329a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4329c4
inc ecx
add ebx, ebx
jne 0x4329b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4329a5
jne 0x4329c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4329a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4329e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4329d5
jmp 0x432946
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4329e4
add edi, ecx
jmp 0x432946
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x432a02
cmp byte [edi], 0x12
jne 0x432a02
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 0x432a07
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x432a7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3f9c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3faa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x432a34
mov ecx, edi
jns 0x432a63
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 + 0x3faa8]
or eax, eax
je 0x432a79
mov dword [ebx], eax
add ebx, 4
jmp 0x432a51
call dword [esi + 0x3faa4]
mov ebp, dword [esi + 0x3faac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x432ab3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x405e40
Capabilities:
Query environment variable

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [0xd740c1b0]
push eax
call 0x3a405e50
mov edi, dword [ebp + 0x10]
add esp, 0xffffffca
test edi, edi
je 0x405e4e
lea esi, [eax*4 + 4]
push esi
call dword [0x40c19c]
add esp, 4
mov dword [edi], eax
call dword [0x3c124]
mov edx, 0x8b878b3f
xor byte [ebx + 0x2e93b14], cl
invalid
jmp 0x405db3
nop
mov word [eax - 0x75], gs
in al, dx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
inc esi
test ebx, ebx
push edi
lds ebx, [eax]
mov ebx, 1
popfd
cmp dword [eax], 0x75
or byte [esi + 0x42], ah
js 0x405e72
bound esi, qword [esi + eax + 0x43]
push es
inc ebx
add eax, 2
jmp 0x405e66

Function at 0x406d1e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
rcr dword [eax + 0x2c], 1
and byte [eax - 0x6ff2303f], dl

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
ror byte [ebx + 0x8458bec], 1
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a410
mov esi, edx
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, 0x561e75c0
mov ebp, dword [edi - 0x68]
rol byte [eax], 0x9c
salc
test eax, eax
jne 0x40a3fe
pop esi
pop ebp
in al, 8
add bh, bh
and dword [0x300afc80], eax
jae 0x40a464
or byte [eax], al
jmp dword [ecx]
dec eax
or byte [ecx], ch
push ss
rcr byte [ebp - 0x3e], 8
add byte [eax + 0x4e3b], bh
mov eax, 0x4e3b
pop ebp
jne 0x40a420
add byte [eax - 0x6f6fcf70], dl
nop
pop esp
ret
nop
nop
salc
nop
nop
nop
loope 0x40a3fc
nop
nop
cmp cl, byte [ecx - 0x3af8d71d]
add bh, bh
adc eax, sym.imp.KERNEL32.dll_DeleteCriticalSection
xor eax, eax
or al, 0x90
push ebx
push ebp
mov ebp, esp
sti
inc ebp
or byte [edi + 0x69e181c8], bh
out 0, al
push ebx
cmp ecx, 0xc0000000
salc
push ebx
test eax, 0x3fff0600
sub al, 2
iretd
Function at 0x2927058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.029271a8
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 0x292707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x292706a
add dl, dl
jne 0x2927089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x29270dc
xor eax, eax
add dl, dl
jne 0x2927096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x292717d
add dl, dl
jne 0x29270a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x29270b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x29270bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x29270c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x29270d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2927075
mov eax, 1
add dl, dl
jne 0x29270ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x29270f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x29270e1
sub eax, ebx
mov ebx, 1
jne 0x2927128
mov ecx, 1
add dl, dl
jne 0x292710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2927119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2927105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2927075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x292713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x292714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2927136
cmp eax, 0x7d00
jae 0x292716d
cmp eax, 0x500
jb 0x2927168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2927075
cmp eax, 0x7f
ja 0x2927170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2927075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x292719e
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 0x2927075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4146e1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x27c
mov eax, 0x42c036
call fcn.0042baa2
mov edi, ecx
and dword [ebp - 0x274], 0
xor esi, esi
mov ebx, dword [ebp + 8]
inc esi
test edi, edi
je 0x414706
and dword [edi], 0
cmp dword [0x42e7c8], 0
je 0x41474b
cmp dword [ebp + 0x10], esi
jne 0x41472e
cmp dword [ebp + 0xc], 0x2bc
je 0x41495d
cmp dword [ebp + 0xc], 0x2bd
je 0x41495d
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_rand]
xor edx, edx
div dword [0x42e3a0]
test edx, edx
jne 0x41495d
xor esi, esi
jmp 0x41495d
lea eax, [ebp - 0x274]
push eax
push esi
push 0
push 0x4017d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41495d
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 4
push eax
lea eax, [ebp - 0x278]
xor ecx, ecx
push eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], ecx
push eax
push ecx
push ebx
push dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414951
mov eax, dword [ebp - 0x278]
test edi, edi
je 0x4147bc
mov dword [edi], eax
cmp dword [ebp + 0x10], eax
jb 0x414951
cmp dword [0x42e7d4], 0
jne 0x414951
cmp dword [0x42e75c], 0
jne 0x414951
cmp dword [0x42e388], 0
jne 0x4147ef
xor esi, esi
jmp 0x414951
mov ecx, dword [0x42e780]
test ecx, ecx
je 0x41485a
cmp dword [0x42e740], 0
je 0x41485a
cmp dword [ebp + 0x14], 0
jne 0x41485a
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x8003
push ecx
mov dword [0x42e78c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x42e760]
mov dword [ebp - 0x288], eax
mov eax, dword [0x42e740]
push 0xffffffffffffffff
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x288]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb esi, esi
not esi
and esi, dword [0x42e754]
jmp 0x414951
lea ecx, [ebp - 0x270]
call fcn.004158f0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1d8]
call fcn.004158f0
lea ecx, [ebp - 0x140]
call fcn.004158f0
lea ecx, [ebp - 0xa8]
call fcn.004158f0
mov ebx, 0x104
mov byte [ebp - 4], 3
push ebx
lea eax, [ebp - 0x270]
push eax
push 0x64
pop edx
call fcn.0041647c
lea eax, [ebp - 0x140]
mov edx, 0x258
push ebx
push eax
call fcn.0041647c
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.0041647c
push dword [ebp - 0x9c]
lea eax, [ebp - 0x1d8]
push dword [ebp - 0x9c]
push dword [ebp - 0x134]
push eax
call fcn.0041576a
add esp, 0x28
push ebx
push dword [ebp - 0x264]
push dword [ebp - 0x1cc]
push dword [0x42e780]
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 6
lea ecx, [ebp - 0xa8]
neg eax
mov ebx, 0x4010f8
mov dword [ebp - 0xa8], ebx
sbb eax, eax
and esi, eax
call fcn.0041585e
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], ebx
call fcn.0041585e
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1d8], ebx
call fcn.0041585e
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x270], ebx
call fcn.0041585e
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x414968
test esi, esi
je 0x414968
and dword [edi], 0
mov eax, esi
call fcn.0042ba3f
ret
Function at 0x414976
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x4017d8
push SysReAllocString
mov edi, edx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414a06
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4149e1
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jbe 0x4149dd
inc esi
test esi, esi
je 0x4149fd
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414a11
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 3
push edi
push 0x4017d8
push SysReAllocString
mov esi, edx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414a80
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414a77
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jb 0x414a77
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x414a8a
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push 1
xor esi, esi
mov edi, ecx
push esi
push 0x4017d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414ad8
push ecx
push 0x401c3c
push dword [ebp - 4]
mov ecx, edi
call fcn.004157c6
test eax, eax
js 0x414acb
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x414b14
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x401c50
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414b14
push ecx
push 0x401cd4
push dword [ebp - 8]
mov ecx, edi
call fcn.004157c6
test eax, eax
js 0x414b0b
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x414ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push edi
push eax
push 1
xor edi, edi
push edi
push 0x4017d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415161
push esi
push 4
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push eax
push 0x42e7d4
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
push edi
push 0x401ce4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e7c4
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401cfc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e7c8
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401d14
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e7dc
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401d38
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e7cc
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401d60
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e7d0
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401d84
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e3a8
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401db0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e3a4
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401de0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e3ac
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401e14
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x42e3a0
lea eax, [ebp - 0xc]
push eax
push edi
push 0x401e40
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret
Function at 0x416228
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x42e340]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xb4], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xa4]
push esi
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
call fcn.004158f0
test edi, edi
je 0x4162af
mov ecx, edi
call fcn.00415c83
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
push eax
mov edx, esi
call fcn.0040e3ba
test eax, eax
mov eax, esi
js 0x41629a
mov eax, dword [ebp - 0xa8]
cmp eax, esi
jae 0x4162a0
mov esi, eax
push esi
push edi
lea ecx, [ebp - 0xa4]
call fcn.0041617d
jmp 0x4162c0
mov eax, dword [ebp - 0x98]
xor ecx, ecx
mov word [eax], cx
and dword [ebp - 0x94], ecx
push dword [ebp - 0xac]
push dword [ebx + 0xc]
push dword [ebp - 0xb0]
push 0
push dword [ebp - 0x98]
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x4010f8
mov esi, eax
call fcn.0041585e
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a920
leave
ret 0x14

Function at 0x4163f6
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x42e340]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x108], 2
jne 0x416468
cmp word [ebp - 0x13c], 6
je 0x416463
cmp word [ebp - 0x13c], 9
je 0x416463
cmp word [ebp - 0x13c], 0xc
jne 0x416468
xor eax, eax
inc eax
jmp 0x41646a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
leave
ret
Function at 0x416529
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x42e340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x42e780]
lea ecx, [ebp - 0xa0]
push edi
call fcn.004158f0
lea ecx, [ebp - 0x268]
call fcn.004158f0
lea ecx, [ebp - 0x138]
call fcn.004158f0
lea ecx, [ebp - 0x1d0]
call fcn.004158f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
lea ecx, [ebp - 0xa0]
call fcn.0041669d
mov edi, 0x401eb8
mov ecx, edi
call fcn.00415c83
push eax
push edi
lea ecx, [ebp - 0xa0]
call fcn.004161cd
push dword [ebp - 0x90]
lea ecx, [ebp - 0x138]
push dword [ebp - 0x94]
call fcn.0041617d
mov edi, 0x401ed4
mov ecx, edi
call fcn.00415c83
push eax
push edi
lea ecx, [ebp - 0x138]
call fcn.004161cd
push dword [ebp - 0x90]
lea ecx, [ebp - 0x1d0]
push dword [ebp - 0x94]
call fcn.0041617d
push 1
push dword [ebp - 0x1c4]
push dword [ebp - 0x25c]
push dword [ebp - 0x12c]
push 0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
mov edi, 0x4010f8
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x1d0], edi
call fcn.0041585e
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], edi
call fcn.0041585e
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x268], edi
call fcn.0041585e
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.0041585e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a920
leave
ret

Function at 0x41669d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
push 0
push 0x105
mov esi, ecx
call fcn.004154cb
mov ecx, dword [esi + 0xc]
test eax, eax
jns 0x4166bc
xor edx, edx
mov word [ecx], dx
jmp 0x4166d7
push dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4166dd
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov word [eax], cx
mov eax, 0x80004005
and dword [esi + 0x10], 0
pop esi
ret
mov ecx, esi
call fcn.0041613c
xor eax, eax
pop esi
ret

Function at 0x416aba
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x416b19
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push 0x4017d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x416b1e
mov eax, 0x80004005
pop esi
leave
ret 8
Function at 0x416b29
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x416b8b
push esi
mov esi, 0x402300
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push 0x402314
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
jmp 0x416b90
mov eax, 0x80004005
pop edi
leave
ret 0xc