joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414fe5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46e848]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415028
cmp word [esi], dx
jne 0x415028
or byte [edi + eax + 0x28], 4
jmp 0x41502d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415180
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415160
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41506f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4150a5
cmp eax, edx
jae 0x4150b1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x415047
jmp 0x415180
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41515c
cmp dword [ebp - 0x14], 0
je 0x41515c
mov eax, dword [ebx*4 + 0x46e848]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415134
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4150fd
mov word [esi], cx
jmp 0x415130
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46e848]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46e848]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46e848]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415180
pop ebx
cmp word [ebp - 4], bx
jne 0x415145
cmp esi, dword [ebp + 0xc]
jne 0x415145
mov word [esi], bx
jmp 0x41517d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415180
push 0xd
jmp 0x415179
mov ecx, dword [ebx*4 + 0x46e848]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415177
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415180
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418094
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x418131
push ebx
push esi
call fcn.0041805d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00416ce2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4180de
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418130
push edi
push eax
call fcn.0041224f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4180fe
call fcn.0041189b
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41812f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416ce2
add esp, 0x20
test eax, eax
jne 0x41811d
push edi
call fcn.0041189b
jmp 0x418125
push ebx
call fcn.0041189b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41dd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dd2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dd2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100023dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100023eb
pop dword [ebp - 0x40]
mov eax, 0x100023eb
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x863ab91a
sub dword [ebp - 0x50], 0x37e873cf
mov dword [ebp - 0x4c], 0xa02142ce
add dword [ebp - 0x4c], 0x92120977
mov dword [ebp - 0x48], 0xacc35d3c
sub dword [ebp - 0x48], 0x6077190e
mov dword [ebp - 0x44], 0xa67428ed
sub dword [ebp - 0x44], 0xa67428ed
lea eax, [ebp - 0x50]
push eax
mov eax, 0xfed0a10b
add eax, 0x112ffef9
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xcf1e35b7
sub dword [ebp - 0x50], 0x5aabcc61
mov dword [ebp - 0x4c], 0x504c2000
sub dword [ebp - 0x4c], 0xedfbe8b
mov dword [ebp - 0x48], 0x5d2484e9
sub dword [ebp - 0x48], 0xf9b5187d
mov dword [ebp - 0x44], 0x27f7af01
add dword [ebp - 0x44], 0xd80850ff
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xdbe48697
add eax, 0x341c1971
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x384db
push 0
call eax
mov ecx, 0x4ecd
mov esi, eax
mov edx, 0x1000f800
add edx, dword [ebp - 0x40]
mov ebx, 0x1b5d8bc8
sub ebx, 0x692810cf
add dword [ebp - 0x30], ebx
mov edi, dword [edx]
add dword [ebp - 4], 0x69d4e825
xor edi, ebx
xor dword [ebp - 0x14], edi
mov dword [esi], edi
xor dword [ebp - 0xc], 0x5af397e8
add esi, 4
add edx, 0x79193944
sub edx, 0x79193940
loop 0x100024fc
add eax, 0x57ee1fe1
sub eax, 0x57ecf1da
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x407a9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x407aab
pop dword [ebp - 0x1c]
mov eax, 0xf2e20507
add eax, 0xd5e75a4
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x1216e40d
sub dword [ebp - 0x2c], 0xc3c49ec2
mov dword [ebp - 0x28], 0xd4ef39e7
add dword [ebp - 0x28], 0x5d44125e
mov dword [ebp - 0x24], 0xb44b1c86
add dword [ebp - 0x24], 0x980127a8
mov dword [ebp - 0x20], 0xd0512f8b
sub dword [ebp - 0x20], 0xd0512f8b
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xb35754a6
sub dword [ebp - 0x2c], 0x3ee4eb50
mov dword [ebp - 0x28], 0x1cd60fdf
add dword [ebp - 0x28], 0x24965196
mov dword [ebp - 0x24], 0xc8579f04
add dword [ebp - 0x24], 0x9b17cd68
mov dword [ebp - 0x20], 0xa3c3301f
sub dword [ebp - 0x20], 0xa3c3301f
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x386ab
push 0
call eax
mov ecx, 0x7801eaca
add ecx, 0x87fe5b90
xor edi, edi
add edi, eax
mov ebx, 0xc13be29d
add ebx, 0x3f07db63
add ebx, dword [ebp - 0x1c]
mov esi, 0x2e85fbc5
xor dword [ebp - 0xc], ecx
mov edx, dword [ebx]
xor dword [ebp - 0x10], 0xa53e8ce4
add edx, esi
mov dword [edi], edx
xor dword [ebp - 4], 0xf5141619
add edi, 0x1374a466
sub edi, 0x1374a462
add ebx, 0xa6f792d5
add ebx, 0x59086d2f
loop 0x407bbf
add eax, 0xdffa0890
sub eax, 0xdff8fc55
mov ebx, eax
add eax, 0x74c243f5
sub eax, 0x74c243f0
mov ecx, 0x497d02a3
sub ecx, 0x493d02a3
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x406080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bc70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1774
call fcn.005de290
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xd0c]
mov dword [ebp - 0x14], esi
test eax, eax
mov dword [ebp - 4], 0
push 0x7cf
je 0x406108
mov ecx, dword [esi + 0xd08]
lea eax, [ebp - 0x1784]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40611c
lea edx, [ebp - 0x7e4]
push 0x7d0
lea eax, [ebp - 0x1784]
push edx
push eax
call fcn.00405570
add esp, 0xc
jmp 0x40611c
mov edx, dword [esi + 0xd08]
lea ecx, [ebp - 0x7e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
mov ecx, esi
push eax
call fcn.00405d30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.005de290
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e0]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 4], 0
test eax, eax
push 0x7cf
je 0x409715
mov ecx, dword [esi + 0x4f4]
lea eax, [ebp - 0x1780]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409729
lea edx, [ebp - 0x7e0]
push 0x7d0
lea eax, [ebp - 0x1780]
push edx
push eax
call fcn.00405570
add esp, 0xc
jmp 0x409729
mov edx, dword [esi + 0x4f4]
lea ecx, [ebp - 0x7e0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e0]
lea ecx, [esi + 0x4d0]
push eax
push 0x6bc090
push ecx
call fcn.005f368b
add esp, 0xc
mov ecx, esi
call fcn.00409d80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a4e0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c3c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x40a677
mov ecx, dword [0x6e7b6c]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x6bc4e8
push eax
call fcn.005f368b
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.005f49f7
inc edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x324]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x320]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x6ed118
jne 0x40a603
mov eax, 0x6ed114
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.005f4af2
mov edx, dword [esi + 0x98]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x70]
mov eax, dword [edx + 0x18]
mov edx, dword [esi + 0x78]
push ecx
push edi
mov ebx, dword [eax + ebx]
push 0x1074
push edx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
call fcn.005f4a79
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005fa859
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x40a521
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a9a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60c45b
push eax
mov dword fs:[0], esp
sub esp, 0x220
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x40aab8
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x40aab8
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x6ec0c8
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40aa4a
lea ecx, [esp + 0x20]
call fcn.004ab420
push 1
push 0x6bc848
lea ecx, [esp + 0x28]
mov dword [esp + 0x240], edi
call fcn.004ab540
lea ecx, [esp + 0x20]
mov dword [esp + 0x238], 0xffffffff
call fcn.004ab530
jmp 0x40aa90
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x6bc840
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x6bc83c
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40a9e7
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x40aab8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x40cca0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 0x14]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ccf5
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x6bcda8
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ccf5
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x40cd04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x40db50
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x6bced8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [esp + 0x14]
mov esi, eax
test esi, esi
je 0x40dba8
push ebx
push 0x6bcec4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40db9c
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
jne 0x40db96
mov edi, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
pop ebx
jne 0x40dbf9
lea eax, [esp + 0x14]
push eax
push 1
push 0
push 0x6bce80
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dbf9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push ebp
push eax
push eax
push 0x6bce64
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dbee
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40e920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60c758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push 0x6bd038
mov byte [esp + 0x40], 1
call fcn.0040e670
add esp, 0x10
test eax, eax
je 0x40e9e1
mov eax, dword [0x6e7b6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x30], 2
cmp eax, ebx
jne 0x40e993
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push 1
push ecx
push eax
call fcn.0040e4f0
add esp, 0xc
test eax, eax
je 0x40e9d3
mov edx, dword [esp + 8]
push 0x2e
push edx
call fcn.005de150
add esp, 8
cmp eax, ebx
je 0x40e9d3
mov byte [eax], bl
mov eax, dword [esp + 8]
push eax
call fcn.005de3d3
add esp, 4
cmp eax, 0x34
jle 0x40e9d3
mov esi, 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.005fa859
call fcn.00445c70
test eax, eax
je 0x40ea93
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
lea ecx, [esp + 0xc]
push 1
lea edx, [esp + 0x14]
push ecx
push edx
push 0x6bd038
mov byte [esp + 0x40], 3
call fcn.0040e670
add esp, 0x10
test eax, eax
je 0x40ea85
mov eax, dword [0x6e7b6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 4
cmp eax, ebx
jne 0x40ea37
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push 1
push ecx
push eax
call fcn.0040e4f0
add esp, 0xc
test eax, eax
je 0x40ea77
mov edx, dword [esp + 8]
push 0x2e
push edx
call fcn.005de150
add esp, 8
cmp eax, ebx
je 0x40ea77
mov byte [eax], bl
mov eax, dword [esp + 8]
push eax
call fcn.005de3d3
add esp, 4
cmp eax, 0x34
jle 0x40ea77
mov esi, 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call fcn.005fa859
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00401070
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.005fa859
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40eff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x64
lea eax, [esp + 0x6c]
push esi
xor esi, esi
push eax
push ecx
push esi
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f0ef
push edi
mov ecx, 0x19
lea edi, [esp + 8]
mov edx, dword [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
lea ecx, [esp + 8]
push eax
push ecx
push esi
push esi
push 0x6bd028
push edx
mov dword [esp + 0x88], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x40f0e4
lea eax, [esp + 4]
push 0x2e
push eax
mov esi, 1
call fcn.005de150
add esp, 8
test eax, eax
je 0x40f070
mov byte [eax], 0
lea ecx, [esp + 4]
push ecx
call fcn.005de3d3
add esp, 4
test eax, eax
je 0x40f0e4
mov edx, dword [esp + 0x84]
cmp eax, 0x34
mov dword [edx], eax
jle 0x40f098
mov eax, dword [esp + 0x80]
jmp 0x40f0de
cmp eax, 0x1a
jle 0x40f0b9
mov ecx, dword [esp + 0x7c]
mov dword [ecx], 1
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x64
ret
cmp eax, 7
jle 0x40f0da
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
push ecx
mov dword [edx], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x64
ret
mov eax, dword [esp + 0x74]
mov dword [eax], 1
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x64
ret
Function at 0x40fe20
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60c88c
push eax
mov dword fs:[0], esp
sub esp, 0xb4
lea eax, [esp + 0xc]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x6bd14c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40fe75
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
add esp, 0xc0
ret
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov word [esp + 0xc], bx
mov esi, dword [0x6ec760]
mov dword [esp + 0xc4], ebx
cmp esi, ebx
jne 0x40fe99
mov esi, 0x6ec764
mov ecx, 0x6bc11c
test ecx, ecx
je 0x40ffd3
cmp esi, ebx
je 0x40ffd3
mov edx, 0x6bd100
test edx, edx
je 0x40ffd3
push ebp
push edi
push ebx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
call fcn.00402d00
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 1
call fcn.0040e020
push 0x6bd100
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd0], 2
call fcn.0040e020
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 3
call fcn.00401070
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov edi, eax
jne 0x40ff1c
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x38]
call fcn.004023d0
push eax
call fcn.005de123
push edi
mov ebp, eax
call fcn.005de123
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40ff9f
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x38]
call fcn.004023d0
push eax
lea ecx, [esp + 0x30]
call fcn.004023d0
push eax
lea ecx, [esp + 0x28]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005de123
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 2
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 1
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], bl
call fcn.00401070
pop edi
pop ebp
lea edx, [esp + 0x3c]
push 0x6bcdc4
push edx
call fcn.005de2e9
lea eax, [esp + 0x44]
push eax
call fcn.005de123
add esp, 0xc
cmp eax, ebx
jle 0x41000e
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
add ecx, 2
xor dx, 0x4d
sub edx, 0xff
dec eax
mov word [ecx - 2], dx
jne 0x40fff7
mov esi, dword [esp + 8]
cmp esi, ebx
je 0x41001a
mov eax, esi
jmp 0x410022
lea eax, [esp + 0xc]
lea esi, [esp + 0xc]
push eax
call fcn.005de123
mov edx, dword [esp + 0x18]
add esp, 4
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x3c]
push eax
push esi
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
jne 0x41004e
mov ebx, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xb8]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret
Function at 0x411c40
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60ca6c
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x411cd2
push 0
lea ecx, [esp + 0x18]
call fcn.0050a330
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.005f6856
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.00602365
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.005f5000
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.0060239d
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.005f6497
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411d24
lea ecx, [esp + 8]
push ecx
push 0x6bd568
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]