joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408204
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x408381
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x92
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x355]
push esi
call fcn.00561d60
add esp, 0xc
mov ecx, ebx
call fcn.00406e4b
push 0
mov ecx, ebx
call fcn.00406ceb
test eax, eax
je 0x408369
push edi
mov edi, dword [eax]
mov ecx, eax
call fcn.00406a36
mov bl, al
mov ecx, 0x674df0
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x525]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00407a22
test eax, eax
je case.0x408298.10
movzx ecx, word [edi + 0x2a]
cmp ecx, 0x78
jg case.0x408298.10
je 0x40834d
sub ecx, 3
cmp ecx, 0x10
ja case.0x408298.10
jmp dword [ecx*4 + 0x408388]
movzx ecx, word [edi + 0x2c]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x408298.10
movzx ecx, word [edi + 0x2c]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x408298.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x408298.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x408298.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x82], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x86], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8a], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x8e], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00406ceb
test eax, eax
jne 0x40824d
pop edi
mov ecx, dword [0x6a749c]
call fcn.0045ae1f
mov ecx, dword [0x6a749c]
call fcn.0045ac38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40829f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x408381
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x92
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x355]
push esi
call fcn.00561d60
add esp, 0xc
mov ecx, ebx
call fcn.00406e4b
push 0
mov ecx, ebx
call fcn.00406ceb
test eax, eax
je 0x408369
push edi
mov edi, dword [eax]
mov ecx, eax
call fcn.00406a36
mov bl, al
mov ecx, 0x674df0
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x525]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00407a22
test eax, eax
je case.0x408298.10
movzx ecx, word [edi + 0x2a]
cmp ecx, 0x78
jg case.0x408298.10
je 0x40834d
sub ecx, 3
cmp ecx, 0x10
ja case.0x408298.10
jmp dword [ecx*4 + 0x408388]
movzx ecx, word [edi + 0x2c]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x408298.10
movzx ecx, word [edi + 0x2c]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x408298.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x408298.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x408298.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x82], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x86], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8a], eax
jmp case.0x408298.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x8e], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00406ceb
test eax, eax
jne 0x40824d
pop edi
mov ecx, dword [0x6a749c]
call fcn.0045ae1f
mov ecx, dword [0x6a749c]
call fcn.0045ac38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ceb6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x724], esi
mov dword [ebp - 0x728], eax
push edi
mov edi, ecx
test esi, esi
jne 0x40ceea
xor eax, eax
jmp 0x40d007
test eax, eax
je 0x40cee3
push esi
push 1
lea eax, [ebp - 0x71d]
push 1
push eax
call fcn.00562797
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00561d60
add esp, 0x1c
add edi, 0x10
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cf1d
push ebx
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push edi
push eax
call fcn.005612c0
push 0x100
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x71c]
push eax
call fcn.0040dcf9
mov ebx, dword [ebp + 0x14]
xor edi, edi
add esp, 0x18
cmp dword [ebp + 0x10], edi
jle 0x40cfb7
push esi
push 0x10
lea eax, [ebp - 0x604]
push 1
push eax
call fcn.00562797
add esp, 0x10
cmp eax, 0x10
jne 0x40cfe2
lea eax, [ebp - 0x604]
push eax
push eax
lea eax, [ebp - 0x71c]
push 0
push eax
call fcn.0040d0ea
mov esi, dword [ebp - 0x728]
add esp, 0x10
xor edx, edx
mov cl, byte [ebp + edx - 0x604]
lea eax, [esi + edx]
add bl, cl
mov byte [eax + edi], cl
inc edx
cmp edx, 0x10
jl 0x40cf94
mov esi, dword [ebp - 0x724]
add edi, 0x10
cmp edi, dword [ebp + 0x10]
jl 0x40cf5a
push esi
push 1
lea eax, [ebp - 0x71e]
push 1
push eax
call fcn.00562797
mov cl, byte [ebp - 0x71d]
add esp, 0x10
cmp cl, byte [ebp - 0x71e]
jne 0x40cff0
cmp cl, bl
jne 0x40cff0
xor eax, eax
inc eax
jmp 0x40d006
push 0
push str.Error__
push str.fread_Error__
jmp 0x40cffc
push 0
push str.Error__
push str.CheckCrc_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00560d94
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dab7
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
inc ebx
push edi
mov dword [ebp - 0x808], ebx
mov edx, ebx
mov edi, 0xff
mov eax, edx
mov dword [ebp + esi*4 - 0x804], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x404], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, edi
inc esi
cmp esi, 0x100
jl 0x40dadf
mov esi, ebx
mov edx, 0x677388
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, edi
cmp edx, 0x6773b0
jl 0x40db14
mov byte [0x675188], 0x63
mov byte [0x6762eb], 0
mov ecx, dword [ebp + ebx*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, edi
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, edi
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, edi
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [ebp - 0x808]
xor ecx, 0x63
and ecx, edi
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x675188], bl
mov byte [ebx + 0x676288], al
mov ebx, eax
inc ebx
mov dword [ebp - 0x808], ebx
cmp ebx, 0x100
jl 0x40db43
xor esi, esi
movzx edx, byte [esi + 0x675188]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, edi
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x676288]
mov dword [esi*4 + 0x675288], eax
rol eax, 8
mov dword [esi*4 + 0x675688], eax
rol eax, 8
mov dword [esi*4 + 0x675a88], eax
rol eax, 8
mov dword [esi*4 + 0x675e88], eax
test ecx, ecx
je 0x40dc35
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3cc]
cdq
idiv edi
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
jmp 0x40dc3c
and dword [ebp - 0x808], 0
test ecx, ecx
je 0x40dc59
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3e0]
cdq
idiv edi
mov ebx, dword [ebp + edx*4 - 0x804]
jmp 0x40dc5b
xor ebx, ebx
test ecx, ecx
je 0x40dc78
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3d0]
cdq
idiv edi
mov edi, dword [ebp + edx*4 - 0x804]
jmp 0x40dc7a
xor edi, edi
test ecx, ecx
je 0x40dc9c
mov eax, dword [ebp + ecx*4 - 0x404]
mov ecx, 0xff
add eax, dword [ebp - 0x3d8]
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x40dc9e
xor eax, eax
shl eax, 8
xor eax, edi
mov edi, 0xff
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, dword [ebp - 0x808]
mov dword [esi*4 + 0x676388], eax
rol eax, 8
mov dword [esi*4 + 0x676788], eax
rol eax, 8
mov dword [esi*4 + 0x676b88], eax
rol eax, 8
mov dword [esi*4 + 0x676f88], eax
inc esi
cmp esi, 0x100
jl 0x40dbb7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00560d94
mov esp, ebp
pop ebp
ret
Function at 0x40dcf9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, 0x80
je 0x40dd3b
sub eax, 0x40
je 0x40dd33
sub eax, 0x40
jne 0x40de0f
mov dword [edi], 0xe
jmp 0x40dd41
mov dword [edi], 0xc
jmp 0x40dd41
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push ecx
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0040de1e
mov edx, dword [ebp - 0x11c]
add esp, 0xc
shl edx, 4
add edx, dword [ebp - 0x118]
push 4
pop ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
sub edx, 0x1c
mov dword [esi], eax
add esi, ecx
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x40ddf4
push ebx
mov ebx, ecx
movzx eax, byte [edx + 3]
push 4
movzx ecx, byte [eax + 0x675188]
movzx eax, byte [edx + 2]
mov ecx, dword [ecx*4 + 0x676f88]
movzx eax, byte [eax + 0x675188]
xor ecx, dword [eax*4 + 0x676b88]
movzx eax, byte [edx + 1]
movzx eax, byte [eax + 0x675188]
xor ecx, dword [eax*4 + 0x676788]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x675188]
xor ecx, dword [eax*4 + 0x676388]
mov dword [esi], ecx
pop ecx
add esi, ecx
add edx, ecx
dec ebx
jne 0x40dd98
dec edi
sub edx, 0x20
test edi, edi
jg 0x40dd96
pop ebx
mov eax, dword [edx]
mov dword [esi], eax
add esi, ecx
add edx, ecx
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + ecx]
mov dword [esi + ecx], eax
mov eax, dword [edx + ecx + 4]
mov dword [esi + ecx + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00560d94
mov esp, ebp
pop ebp
ret
Function at 0x40f180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6773b8], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push esi
je 0x40f1db
push eax
push dword [ebp + 0xc]
mov esi, 0x6773c0
push ecx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40f2cf
int3
test eax, eax
je 0x40f1fa
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d__msg:_s_
push eax
call fcn.005623bc
add esp, 0x14
jmp 0x40f212
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d_
push eax
call fcn.005623bc
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00561d60
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x20e]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
lea eax, [ebp - 0x104]
push str.._Log_Assert__4d_02d_02d.txt
push eax
call fcn.005623bc
add esp, 0x14
cmp dword [0x677510], 0
jne 0x40f2cf
push edi
push 0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f298
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f2ce
lea eax, [ebp - 0x2a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x2a0]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x677510]
xor ecx, ecx
inc ecx
cmp esi, 0xf4240
cmova eax, ecx
mov dword [0x677510], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00560d94
mov esp, ebp
pop ebp
ret
Function at 0x40f2de
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x303]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x1ff
push ebx
push eax
mov byte [ebp - 0x304], bl
call fcn.00561d60
add esp, 0xc
lea eax, [ebp - 0x304]
test edi, edi
je 0x40f336
push edi
push dword [ebp + 0xc]
push esi
push str._s_line:_d__msg:_s_
push eax
call fcn.005623bc
add esp, 0x14
jmp 0x40f348
push dword [ebp + 0xc]
push esi
push str._s_line:_d_
push eax
call fcn.005623bc
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.00561d60
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x30e]
push eax
movzx eax, word [ebp - 0x312]
push eax
movzx eax, word [ebp - 0x314]
push eax
lea eax, [ebp - 0x104]
push str.._Log_Debug__4d_02d_02d.txt
push eax
call fcn.005623bc
add esp, 0x14
cmp dword [0x677758], ebx
jne 0x40f43b
push ebx
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f3cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f3f5
lea eax, [ebp - 0x3a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x3a0]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
ja 0x40f431
lea eax, [ebp - 0x104]
push 0x58d298
push eax
call fcn.005621eb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f43b
call fcn.0040ea1b
push eax
lea eax, [ebp - 0x304]
push eax
push str._stime:_s_n
push esi
call fcn.00562245
push esi
call fcn.005620b0
add esp, 0x14
jmp 0x40f43b
mov dword [0x677758], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00560d94
mov esp, ebp
pop ebp
ret
Function at 0x42244a
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x698830]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, 1
jne 0x4224db
mov dword [ebp - 4], 0x58f6f8
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
mov dword [ebp - 0xc], eax
cmp byte [eax + 0x13], bl
je 0x4224c1
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, eax
mov eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test esi, esi
je 0x4224b9
mov ebx, ecx
sub edi, ebx
lea ecx, [eax + ebx]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edx + 0xf]
jb 0x422499
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [edx + 0xf]
mov edi, ecx
mov byte [ecx + eax], bl
push 0x200030
push dword [0x6987ac]
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x42253a
mov dword [ebp - 0xc], 0x58f778
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov dword [ebp - 4], eax
cmp byte [eax + 0x13], bl
je 0x4224c1
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, dword [ebp - 4]
pop ecx
mov ecx, eax
mov eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4224b9
mov ebx, ecx
sub edi, ebx
lea ecx, [eax + ebx]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0xf]
jb 0x42251a
jmp 0x4224b4
mov dword [ebp - 0xc], 0x58f6f8
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov dword [ebp - 4], eax
cmp byte [eax + 0x13], bl
je 0x4224c1
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, dword [ebp - 4]
pop ecx
mov ecx, eax
mov eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4224b9
mov ebx, ecx
sub edi, ebx
lea ecx, [eax + ebx]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0xf]
jb 0x42257c
jmp 0x4224b4

Function at 0x42259c
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [0x68f7b4], edi
jne 0x4225b7
push edi
push edi
push edi
push 0x4243d3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x68f7b0], edi
jne 0x4225cf
push edi
push edi
push edi
push 0x4225d3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop edi
ret
Function at 0x4226ec
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00423445
mov eax, dword [0x698830]
xor ebx, ebx
cmp eax, 1
jne 0x422782
mov dword [ebp - 4], 0x58f5c0
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
mov dword [ebp - 0xc], eax
cmp byte [eax + 0x13], bl
je 0x422768
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, eax
mov eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test esi, esi
je 0x422760
mov ebx, ecx
sub edi, ebx
lea ecx, [eax + ebx]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edx + 0xf]
jb 0x422740
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [edx + 0xf]
mov edi, ecx
mov byte [ecx + eax], bl
push 0x200030
push dword [0x6987ac]
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x4227e1
mov dword [ebp - 0xc], 0x58f658
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov dword [ebp - 4], eax
cmp byte [eax + 0x13], bl
je 0x422768
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, dword [ebp - 4]
pop ecx
mov ecx, eax
mov eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test esi, esi
je 0x422760
mov ebx, ecx
sub edi, ebx
lea ecx, [eax + ebx]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0xf]
jb 0x4227c1
jmp 0x42275b
mov dword [ebp - 0xc], 0x58f5c0
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov dword [ebp - 4], eax
cmp byte [eax + 0x13], bl
je 0x422768
mov esi, dword [eax + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, dword [ebp - 4]
pop ecx
mov ecx, eax
mov eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test esi, esi
je 0x422760
mov ebx, ecx
sub edi, ebx
lea ecx, [eax + ebx]
and eax, 7
mov al, byte [eax + edx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0xf]
jb 0x422823
jmp 0x42275b
Function at 0x4228a7
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0x58f8a0
push ebx
mov ebx, dword [ebp - 4]
push edi
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x422908
push esi
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.00565205
mov edx, eax
xor eax, eax
pop ecx
test esi, esi
mov dword [ebp - 4], eax
pop esi
je 0x4228fc
sub edi, edx
lea ecx, [eax + edx]
and eax, 7
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 0xf]
jb 0x4228e1
mov eax, dword [ebx + 0xf]
mov edi, edx
xor ebx, ebx
mov byte [edx + eax], bl
jmp 0x42290a
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422954
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.MoveImages
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42294f
mov dword [0x68f7b4], 1
jmp 0x422954
call fcn.004229f2
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422a0a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x422a62
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x422a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x422a7b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x422a92
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
pop ebx
call fcn.00560d94
mov esp, ebp
pop ebp
ret
push 0x5c22d0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.00560da3
int3

Function at 0x422aa4
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x422ab7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret