joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8b7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008b71a8
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 0x8b707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b706a
add dl, dl
jne 0x8b7089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b70dc
xor eax, eax
add dl, dl
jne 0x8b7096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b717d
add dl, dl
jne 0x8b70a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b70b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b70bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b70c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8b70d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8b7075
mov eax, 1
add dl, dl
jne 0x8b70ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b70f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b70e1
sub eax, ebx
mov ebx, 1
jne 0x8b7128
mov ecx, 1
add dl, dl
jne 0x8b710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b7119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b7105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b7075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8b713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b7136
cmp eax, 0x7d00
jae 0x8b716d
cmp eax, 0x500
jb 0x8b7168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b7075
cmp eax, 0x7f
ja 0x8b7170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b7075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8b719e
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 0x8b7075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1002570
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
push 0x10054d0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10025b7
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10025b7
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
pop esi
je 0x10025c6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x100311e
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003d08
call fcn.010032d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100606c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002f33
cmp eax, esi
jne 0x1002f26
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002f36
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002f0d
xor esi, esi
inc esi
mov eax, dword [0x1006068]
cmp eax, esi
jne 0x1002f49
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002f84
mov eax, dword [0x1006068]
test eax, eax
jne 0x1002f7e
mov dword [0x1006068], esi
push 0x100115c
push 0x1001150
call fcn.01002e89
pop ecx
pop ecx
test eax, eax
je 0x1002f84
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100304e
mov dword [0x1005c94], esi
mov eax, dword [0x1006068]
cmp eax, esi
jne 0x1002fa8
push 0x100114c
push 0x100113c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006068], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002fb5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1006070], ebx
je 0x1002fd6
push 0x1006070
call fcn.01003249
pop ecx
test eax, eax
je 0x1002fd6
push ebx
push 2
push ebx
call dword [0x1006070]
push dword [0x1005c7c]
push dword [0x1005c80]
push dword [0x1005c78]
call fcn.01002c70
add esp, 0xc
mov dword [0x1005c90], eax
cmp dword [0x1005c84], ebx
jne 0x1003034
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1005c94], ebx
jne 0x1003042
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005c90]
call fcn.01003319
ret
call fcn.010034c7
jmp 0x1002eeb
Function at 0x1003ae1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x1003b03
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x1003b34
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003b26
cmp dword [ebp - 4], edi
jne 0x1003b37
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x1003afe
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x1003b55
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1003b58
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x1003b28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003b28

Function at 0x1003b6d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
cmp eax, esi
jne 0x1003b9b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1003c08
cmp dword [ebp + 0xc], esi
je 0x1003bc0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1003bbd
cmp dword [ebp - 4], esi
jne 0x1003bc3
push eax
jmp 0x1003b91
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x1003bec
cmp dword [ebp - 0xc], 4
je 0x1003bef
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x1003bfd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc
Function at 0x1005f33d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1005f34c
pop dword [ebp - 0x14]
mov eax, 0x47ed11f6
sub eax, 0x37e71eaa
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x2e06f2b7
sub dword [ebp - 0x24], 0xdfb4ad6c
mov dword [ebp - 0x20], 0x4b3e9812
add dword [ebp - 0x20], 0xe6f4b433
mov dword [ebp - 0x1c], 0x55e178f8
sub dword [ebp - 0x1c], 0x99534ca
mov dword [ebp - 0x18], 0x6aab933c
add dword [ebp - 0x18], 0x95546cc4
lea eax, [ebp - 0x24]
push eax
mov eax, 0xf031f22
add eax, 0x1055112
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x20d460f1
add dword [ebp - 0x24], 0x539e0865
mov dword [ebp - 0x20], 0xab4967cc
sub dword [ebp - 0x20], 0x69dd0657
mov dword [ebp - 0x1c], 0xcd625228
add dword [ebp - 0x1c], 0x960d1a44
mov dword [ebp - 0x18], 0x40c48ca4
sub dword [ebp - 0x18], 0x40c48ca4
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x40337
push 0
call eax
mov ecx, 0x505c
xor edi, edi
add edi, eax
mov edx, 0xab27b43a
sub edx, 0x9b1c243a
add edx, dword [ebp - 0x14]
mov esi, 0x913cc50
xor dword [ebp - 8], edx
mov ebx, dword [edx]
add dword [ebp - 0xc], 0x4ecfb7e8
xor ebx, esi
xor dword [ebp - 0x10], 0x2dbcda43
mov dword [edi], ebx
mov dword [ebp - 8], 0x4b414173
add edi, 4
add edx, 0x6007e82a
add edx, 0x9ff817da
loop 0x1005f45f
add eax, 0x13443
mov ebx, eax
add eax, 0xd5d2508d
sub eax, 0xd5d25088
mov ecx, 0x31329bf9
add ecx, 0xdecd6407
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4178ab
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push 3
add eax, 4
call fcn.004163eb
xor eax, eax
ret
push 4
pop eax
ret
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x4178c8
push eax
call dword [0x430478]
cmp dword [esi], eax
je 0x4178c8
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x4178d8.211
jmp dword [ecx*4 + 0x417903]
mov eax, edi
pop esi
jmp 0x416f7b
push edi
call fcn.004171a4
pop esi
ret
mov eax, edi
pop esi
jmp fcn.00416f88
pop esi
jmp 0x4171a0
mov dword [ebx], eax
pop esi
ret

Function at 0x417cbd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.004243a0
add esp, 0xc
call fcn.00417a8f
push 6
push dword [esi + 4]
call fcn.0040b516
push 0x102
push dword [esi + 4]
call dword [0x430440]
push 1
push dword [esi + 0x58]
push 0x30
push eax
call dword [0x430444]
lea edi, [esi + 0x5c]
call fcn.00416408
mov ebx, dword [0x430420]
push 0
push dword [esi + 0x60]
call ebx
push 0x104
push 0x10
lea eax, [ebp - 0x208]
call fcn.0040b568
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0xbc]
call dword [0x430424]
lea edi, [esi + 0xdc]
call fcn.00416408
push 0
push dword [esi + 0xe0]
call ebx
push 0x104
push 0x12
lea eax, [ebp - 0x208]
call fcn.0040b568
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x13c]
call dword [0x430424]
lea edi, [esi + 0x15c]
call fcn.00416408
push 0
push dword [esi + 0x160]
call ebx
push 0x104
push 0x11
lea eax, [ebp - 0x208]
call fcn.0040b568
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x1bc]
call dword [0x430424]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x417f0c
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, eax
push 5
push dword [esi + 4]
call dword [0x430420]
cmp dword [esp + 0xc], 0
jne 0x417f35
push 7
mov eax, 0xc8
xor edi, edi
call fcn.00409b2d
call fcn.00409b51
cmp dword [esp + 0xc], 1
jne 0x417f4c
call fcn.00409bcb
push 8
pop edi
push edi
xor eax, eax
call fcn.00409b2d
pop edi
pop esi
ret 4

Function at 0x417ff9
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 0x54]
push esi
xor esi, esi
cmp dword [eax + 0x82c], esi
jbe 0x418029
mov ecx, dword [eax + 0x834]
imul ecx, esi
add ecx, dword [eax + 0x828]
push ecx
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
mov eax, dword [edi + 0x54]
inc esi
cmp esi, dword [eax + 0x82c]
jb 0x418007
mov eax, dword [edi + 0x54]
xor ecx, ecx
cmp ecx, dword [eax + 0x82c]
pop esi
sbb eax, eax
neg eax
ret
Function at 0x4180f3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
lea eax, [ebp - 0x218]
call fcn.0040648e
mov eax, dword [esi + 0x54]
add eax, 0x414
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x218]
call fcn.004017f8
pop ecx
pop ecx
push str.advapi32.dll
call dword [sym.imp.l_mt5clwtst__LoadLibraryW]
mov edi, eax
test edi, edi
je 0x418174
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.l_mt5clwtst__GetProcAddress]
test eax, eax
je 0x418174
mov ecx, dword [esi + 0x54]
xor edx, edx
cmp dword [ecx + 0x844], 2
push 0
setne dl
dec edx
and edx, 0xffffff00
add edx, 0x20206
mov ecx, edx
push ecx
push dword [ebp - 0x214]
push 0x80000002
call eax
jmp 0x418185
push dword [ebp - 0x214]
push 0x80000002
call dword [0x43003c]
test edi, edi
je 0x418190
push edi
call dword [sym.imp.l_mt5clwtst__FreeLibrary]
pop edi
leave
ret
Function at 0x1001e33
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001198
call fcn.01001fd0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001e6e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e6e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001e86
cmp eax, 0x20b
je 0x1001e73
mov dword [ebp - 0x1c], edi
jmp 0x1001e9a
cmp dword [ecx + 0x84], 0xe
jbe 0x1001e6e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001e94
cmp dword [ecx + 0x74], 0xe
jbe 0x1001e6e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003014], 0xffffffff
or dword [0x1003018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100300c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100301c], eax
call fcn.01001fcc
cmp dword [section..data], edi
jne 0x1001ef5
push fcn.01001fcc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001fba
push 0x1001134
push 0x1001130
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100112c
push 0x1001128
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001783
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001f6c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001fa1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002009
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4058cc
pop dword [ebp - 0x3c]
mov eax, 0xfcbdc206
sub eax, 0xfc7d693a
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x525942cc
sub dword [ebp - 0x4c], 0x406fd81
mov dword [ebp - 0x48], 0xe075bd38
sub dword [ebp - 0x48], 0xae4270f3
mov dword [ebp - 0x44], 0x5764c054
add dword [ebp - 0x44], 0xf4e783da
mov dword [ebp - 0x40], 0xb3e9aa58
add dword [ebp - 0x40], 0x4c1655a8
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x3c84d8dd
add eax, 0xc3bbf777
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x358979c9
add dword [ebp - 0x4c], 0x3ee8ef8d
mov dword [ebp - 0x48], 0xb435c56b
sub dword [ebp - 0x48], 0x72c963f6
mov dword [ebp - 0x44], 0xf622ef4
add dword [ebp - 0x44], 0x540d3d78
mov dword [ebp - 0x40], 0xfc161c0c
sub dword [ebp - 0x40], 0xfc161c0c
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xfea286da
sub eax, 0xfe61b68e
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x36b0c
push 0
call eax
mov ecx, 0x3345b0ae
add ecx, 0xccba8be5
xor esi, esi
add esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x3c]
mov ebx, 0x962fb1a
add ebx, 0xd43e3868
sub dword [ebp - 0x14], 0x39b41af6
mov edi, dword [edx]
sub dword [ebp - 4], ecx
xor edi, ebx
add dword [ebp - 0x10], 0x89db7cca
mov dword [esi], edi
add esi, 0x3a7ced23
add esi, 0xc58312e1
add edx, 0x4b439032
add edx, 0xb4bc6fd2
loop 0x4059ea
add eax, 0xe51f
mov ebx, eax
add eax, 5
mov ecx, 0x6c4cd7bd
sub ecx, 0x6c0cd7bd
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40104d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401064
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401099
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401095
cmp edi, eax
jae 0x401099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jl 0x4010e1
add dh, byte [ebp - 0xe]
cmp edi, eax
jb 0x40109d
xor eax, eax
jmp 0x4010a7
mov ax, word [edi]

Function at 0x401fde
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x401ff1
push 0x80004005
call fcn.00401000
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401ff8
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x402028
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
invalid
invalid

Function at 0x402080
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
rol dword [eax], 0
add byte [ebx], dh
sar byte [ecx], 0xb5
invalid
Function at 0x402f7e
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b7ce
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x49b390]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x49b390]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.004027ae
mov esi, eax
test esi, esi
jl 0x403443
cmp word [edi], 0x7d
je 0x403441
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x48517c
push edi
mov dword [esp + 0x28], 1
call esi
mov ebx, eax
neg ebx
push 0x4851a0
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40302c
test ebx, ebx
je 0x4030f8
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004027ae
mov esi, eax
test esi, esi
jl 0x403430
cmp dword [ebp + 0x10], 0
je 0x4030f8
push 0x5c
mov eax, edi
call fcn.00402762
test eax, eax
pop ecx
jne 0x403506
push edi
call fcn.00402c0d
test eax, eax
je 0x403079
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00402028
test ebx, ebx
je 0x4030f8
invalid
dec esp
invalid
Function at 0x403270
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov esi, eax
test esi, esi
jl 0x403430
cmp word [edi], 0x7b
jne 0x4030e9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4030e9
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push edi
call fcn.00402f7e
mov esi, eax
test esi, esi
jl 0x403430
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004027ae
mov esi, eax
test esi, esi
jl 0x403430
cmp word [edi], 0x7d
jne 0x402ffb
jmp 0x403430
mov dword [esp + 0x10], ebx
je 0x4032fc
jmp 0x403280
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push dword [esp + 0x2c]
call esi
xor esi, esi
test eax, eax
jne 0x4032b5
cmp ebx, esi
je 0x4032a9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
je 0x4032fc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x40354b
xor eax, eax
cmp ebx, esi
je 0x4032ec
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jne 0x40354b
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004027ae
mov esi, eax
test esi, esi
jl 0x403430
cmp word [edi], 0x3d
jne 0x4030a5
mov ecx, dword [esp + 0x18]
push edi
push 0
lea edx, [esp + 0x18]
call fcn.004028bf
jmp 0x40309b
cmp dword [esp + 0x10], 0
je 0x403441
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0045c29b
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401e64
cmp ebx, esi
mov edi, eax
je 0x40355d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x403443
Function at 0x403c20
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fec]
mov eax, 0x206c
call fcn.0046b070
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0x1fe8], eax
mov eax, dword [ebx]
cmp dword [eax], 0x80000003
push esi
mov esi, ecx
jne 0x403ba3
xor eax, eax
xor eax, eax
cmp dword [esi + 0x5870], 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x486e54
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
jb 0x403bc9
mov eax, dword [esi + 0x585c]
jmp 0x403bcf
lea eax, [esi + 0x585c]
push edi
push eax
lea edi, [ebp - 0x2c]
call fcn.00404696
test eax, eax
jne 0x403bf3
xor edi, edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x486e54
call fcn.00404a3b
mov eax, edi
push 1
call fcn.00403d2d
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x403c14
push eax
mov eax, dword [ebx + 4]
call fcn.00403dd7
test eax, eax
je 0x403d1e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and cl, byte [eax]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ebx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
push 0x2cc
push dword [ebx + 4]
lea eax, [esi + 0x20]
push eax
call fcn.0045c2b0
push 0x5834
lea eax, [esi + 8]
push eax
push dword [ebp - 0x24]
call fcn.0045c2b0
push 0x3c
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x7c], edi
call fcn.0045c920
mov dword [ebp - 0x3c], edi
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
cmp dword [esi + 0x5870], 8
stosd dword es:[edi], eax
jb 0x403c8f
mov ecx, dword [esi + 0x585c]
jmp 0x403c95
lea ecx, [esi + 0x585c]
cmp dword [esi + 0x5854], 8
jb 0x403ca6
mov eax, dword [esi + 0x5840]
jmp 0x403cac
lea eax, [esi + 0x5840]
push ecx
push eax
push 0x486d20
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
call fcn.00404f45
add esp, 0x14
cmp dword [esi + 0x5854], 8
jb 0x403cd2
mov esi, dword [esi + 0x5840]
jmp 0x403cd8
add esi, 0x5840
lea eax, [ebp - 0x3c]
push eax
xor edi, edi
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403d1b
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov dword [ebp - 0x1c], 1
jmp 0x403d1e
mov dword [ebp - 0x1c], edi
push 0
call fcn.00403d2d
mov edi, dword [ebp - 0x1c]
jmp 0x403bdf