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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x10176120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.100da4a0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.100bb8f0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100bc49a
mov al, byte [edi + ecx]
test al, al
je 0x100bc49a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100bc481
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x100bc4bb
inc eax
sub ecx, 1
jne 0x100bc4b0
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x100bc510
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x100bc505
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x100bc504
mov bl, byte [edi + ecx]
test bl, bl
je 0x100bc504
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x100bc4f0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.100da4a0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1014b568
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x100bc5ca
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x100bc594
test cl, cl
je 0x100bc590
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x100bc594
add eax, 2
add esi, 2
test cl, cl
jne 0x100bc574
xor eax, eax
jmp 0x100bc599
sbb eax, eax
or eax, 1
test eax, eax
je 0x100bc5ca
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bc5a6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bc5d3
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x1014b568
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10031a8d
mov esp, ebp
pop ebp
ret
Function at 0x100bd910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x100bd9d7
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x100bd925
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100bf160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130d23
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10176120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x101764f0]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100bf050
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x100bf341
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.100da4a0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x1014ca00
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100bf341
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x100bf235
cmp eax, 2
jne 0x100bf341
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x100bf256
test cl, 1
jne 0x100bf341
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x100bf25c
jmp 0x100bf341
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x100bf341
call fcn.100086e0
mov ecx, eax
test ecx, ecx
je 0x100bf36c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.100bd380
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x1014ca08
push eax
call fcn.100bf760
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.100bd910
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x100bf325
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100bf2c6
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.100bf380
push dword [0x101764f8]
lea eax, [ebp - 0x74]
push dword [0x101764f4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x100bf302
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100bf31e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x100bf343
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100bf341
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x100bf34e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10031a8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008440
int3
Function at 0x100bf460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130d58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10176120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x101764f0]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100bf050
test eax, eax
je 0x100bf588
mov esi, dword [ebp - 0x18]
mov edi, dword [0x101764f0]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x100bf533
cmp dword [esi], 0
je 0x100bf526
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100bf4f3
mov eax, 1
jmp 0x100bf554
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100bf52c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x100bf554
cmp dword [esi + 4], 0
jne 0x100bf533
mov eax, 1
jmp 0x100bf554
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100bf57e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100bf566
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x100bf58b
xor ebx, ebx
jmp 0x100bf62f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x100bf62f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x100bf5e8
mov ecx, dword [ebx]
test ecx, ecx
je 0x100bf64e
push ecx
push eax
call fcn.100f1b0d
add esp, 8
test eax, eax
je 0x100bf5e8
mov edx, dword [edi]
test edx, edx
je 0x100bf5e8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bf5c0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x100bf5f3
lea eax, [edx + 0xd]
jmp 0x100bf628
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bf600
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x1014ca00
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x100bf63a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008440
int3
Function at 0x100c0d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c0de1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100c0daf
cmp eax, 2
jne 0x100c0dcb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x100c0ddb
test ecx, ecx
je 0x100c0dd6
test cl, 1
jne 0x100c0dcb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100c0ddb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100c5621
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x100f7c53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f7ad0

Function at 0x100f8405
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x10182b30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100f8446
cmp byte [edx], 0xa
jne 0x100f8446
or byte [eax + edi + 0x28], 4
jmp 0x100f844b
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x100f853c
mov al, byte [ebx]
cmp al, 0x1a
je 0x100f851d
cmp al, 0xd
je 0x100f8474
mov byte [esi], al
inc esi
inc ebx
jmp 0x100f8512
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x100f8494
cmp byte [eax], 0xa
jne 0x100f8489
push 2
mov byte [esi], 0xa
pop eax
jmp 0x100f848f
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x100f8512
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f850b
cmp dword [ebp - 0x14], 0
je 0x100f850b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10182b30]
test byte [eax + edi + 0x28], 0x48
je 0x100f84e2
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x100f84d2
mov byte [esi], dl
jmp 0x100f850e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10182b30]
mov byte [eax + edi + 0x2a], dl
jmp 0x100f850e
cmp byte [ebp - 1], 0xa
jne 0x100f84f4
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x100f84f4
mov byte [esi], 0xa
jmp 0x100f8491
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ebf8e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100f850f
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x100f845d
jmp 0x100f853c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10182b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100f8537
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100f853c
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f8547
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x10182b30]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x100f858b
cmp word [edx], bx
jne 0x100f858b
or byte [edi + eax + 0x28], 4
jmp 0x100f8590
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x100f86e4
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x100f86c4
cmp ax, word [ebp - 0x10]
je 0x100f85c9
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x100f86b9
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x100f85ef
push 0xa
pop ecx
cmp word [eax], cx
jne 0x100f85df
push ecx
pop eax
push 4
jmp 0x100f85e4
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x100f86b3
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f86aa
cmp dword [ebp - 0x18], 0
je 0x100f86aa
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x10182b30]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x100f8676
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x100f863a
mov word [esi], ax
jmp 0x100f866e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x10182b30]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x10182b30]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x10182b30]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x100f86b9
cmp word [ebp - 4], ax
jne 0x100f868b
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x100f868b
mov word [esi], ax
add esi, 2
jmp 0x100f86b9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ebf8e
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100f86b6
jmp 0x100f86ad
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x100f85a9
jmp 0x100f86e4
mov ecx, dword [ecx*4 + 0x10182b30]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x100f86db
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x100f86e4
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100fcfb3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100fcc55
Function at 0x41cf70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x41cf7f
pop dword [ebp - 0x40]
mov eax, 0x41cf7f
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3b33a
push 0
mov eax, 0x8646a957
sub eax, 0x8604573f
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xe14e8611
sub ecx, 0xe14e4847
xor esi, esi
add esi, eax
mov edx, 0x7d43d9cb
sub edx, 0x7d0085cb
add edx, dword [ebp - 0x40]
mov edi, 0xa57670be
sub edi, 0x26bbb43a
mov dword [ebp - 0x14], 0xb4954566
mov ebx, dword [edx]
sub dword [ebp - 0x2c], 0xd8be05d7
xor ebx, edi
add dword [ebp - 8], 0x3154e7cf
mov dword [esi], ebx
xor dword [ebp - 8], eax
add esi, 4
add edx, 0x36583fd
add edx, 0xfc9a7c07
loop 0x41cfdb
add eax, 0xe9fb
xor ebx, ebx
add ebx, eax
add eax, 0xa66c3de6
add eax, 0x5993c21f
mov ecx, 0xfc35cbbe
add ecx, 0x40a3442
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401640
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
test edi, edi
je 0x40167d
mov ebx, eax
xor ecx, ecx
lea esi, [esi]
nop
mov eax, ecx
sub edx, edx
div ebx
movzx eax, byte [ebp + edx]
xor byte [esi + ecx], al
add ecx, 1
cmp edi, ecx
jne 0x401668
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401690
Capabilities:
Get token membership

Disassembly:
sub esp, 0x4c
mov eax, 0x500
mov word [esp + 0x3e], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3a]
mov dword [esp + 0x30], 0
mov dword [esp + 0x3a], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
jne 0x401718
add esp, 0x4c
ret
lea eax, [esp + 0x30]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
test eax, eax
jne 0x401744
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
sub esp, 4
mov eax, dword [esp + 0x30]
add esp, 0x4c
ret

Function at 0x401760
Capabilities:
Create process on windows

Disassembly:
push edi
push ebx
sub esp, 0x154
lea ebx, [esp + 0x4c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
test eax, eax
jne 0x4015d8
add esp, 0x154
pop ebx
pop edi
ret
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0xe
mov dword [esp + 0x10], 0x3c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], str.runas
mov dword [esp + 0x2c], 1
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
sub esp, 4
test eax, eax
jne 0x401628
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x4015cc
lea esi, [esi]
mov dword [esp], 0
call sub.msvcrt.dll_exit
lea esi, [esi]
lea esi, [esi]
nop
sub esp, 0xc
call fcn.00401690
test eax, eax
je 0x401770
add esp, 0xc
ret
add esp, 0xc
jmp 0x4015a0

Function at 0x401a00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402770
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402770
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406064]
test esi, esi
jle 0x401b80
mov edi, dword [0x406068]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a94
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b19
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401a80
mov dword [esp], eax
mov ebx, eax
call fcn.004023f0
mov edi, eax
test eax, eax
je 0x401ba7
mov eax, dword [0x406068]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402500
mov edx, dword [0x406068]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b12
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401b20
add dword [0x406064], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406068]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401a00
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x401a9e
mov eax, dword [0x406068]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401a00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401a00
mov esi, esi
lea edi, [edi]

Function at 0x402030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406078]
sub esp, 4
test ebx, ebx
je 0x402085
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40207e
test esi, esi
je 0x40207e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402060
mov dword [esp], 0x406080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret