joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410810
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edx, 1
lea ecx, [ecx]
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
inc esi
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, 0xff
cmp esi, 0x100
jl 0x410830
mov esi, 1
mov edx, 0x6de9b8
lea esp, [esp]
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, 0xff
cmp edx, 0x6de9e0
jl 0x410870
mov eax, 1
mov byte [0x6dc7b8], 0x63
mov byte [0x6dd91b], 0
mov dword [ebp - 0x808], eax
mov edi, edi
mov ecx, dword [ebp + eax*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, 0xff
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, 0xff
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, 0xff
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [ebp - 0x808]
xor ecx, 0x63
and ecx, 0xff
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x6dc7b8], bl
mov byte [ebx + 0x6dd8b8], al
inc eax
mov dword [ebp - 0x808], eax
cmp eax, 0x100
jl 0x4108b0
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 0x80c], ebx
lea esp, [esp]
movzx edx, byte [esi + 0x6dc7b8]
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, 0xff
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 + 0x6dd8b8]
mov dword [esi*4 + 0x6dc8b8], eax
rol eax, 8
mov dword [esi*4 + 0x6dccb8], eax
rol eax, 8
mov dword [esi*4 + 0x6dd0b8], eax
rol eax, 8
mov dword [esi*4 + 0x6dd4b8], eax
test ecx, ecx
je 0x410a03
mov ecx, dword [ebp + ecx*4 - 0x404]
mov eax, dword [ebp - 0x3cc]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e0]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x804]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d0]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv dword [ebp - 0x80c]
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x3d8]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x410a0f
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x808], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x808]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x6dd9b8], eax
rol eax, 8
mov dword [esi*4 + 0x6dddb8], eax
rol eax, 8
mov dword [esi*4 + 0x6de1b8], eax
rol eax, 8
mov dword [esi*4 + 0x6de5b8], eax
inc esi
cmp esi, 0x100
jl 0x410940
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
Function at 0x410a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, 0x80
je 0x410ab4
sub eax, 0x40
je 0x410aac
sub eax, 0x40
jne 0x410c60
mov dword [edi], 0xe
jmp 0x410aba
mov dword [edi], 0xc
jmp 0x410aba
mov dword [edi], 0xa
push esi
push ecx
push edx
lea eax, [ebp - 0x11c]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.00410c90
mov eax, dword [ebp - 0x11c]
add esp, 0xc
shl eax, 4
add eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0xc]
sub eax, 0x10
mov dword [esi + 0xc], ecx
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x410c49
jmp 0x410b10
movzx ecx, byte [eax + 3]
dec edi
movzx edx, byte [ecx + 0x6dc7b8]
movzx ecx, byte [eax + 2]
mov edx, dword [edx*4 + 0x6de5b8]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de1b8]
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6dddb8]
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6dd9b8]
mov dword [esi], edx
movzx ecx, byte [eax + 4]
movzx edx, byte [ecx + 0x6dc7b8]
movzx ecx, byte [eax + 7]
mov edx, dword [edx*4 + 0x6dd9b8]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de5b8]
movzx ecx, byte [eax + 6]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de1b8]
movzx ecx, byte [eax + 5]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6dddb8]
mov dword [esi + 4], edx
movzx ecx, byte [eax + 8]
movzx edx, byte [ecx + 0x6dc7b8]
movzx ecx, byte [eax + 0xb]
mov edx, dword [edx*4 + 0x6dd9b8]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de5b8]
movzx ecx, byte [eax + 0xa]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de1b8]
movzx ecx, byte [eax + 9]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6dddb8]
mov dword [esi + 8], edx
movzx ecx, byte [eax + 0xc]
movzx edx, byte [ecx + 0x6dc7b8]
movzx ecx, byte [eax + 0xf]
mov edx, dword [edx*4 + 0x6dd9b8]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de5b8]
movzx ecx, byte [eax + 0xe]
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6de1b8]
movzx ecx, byte [eax + 0xd]
sub eax, 0x10
movzx ecx, byte [ecx + 0x6dc7b8]
xor edx, dword [ecx*4 + 0x6dddb8]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x410b10
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
Function at 0x413300
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6de9e8], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
je 0x413366
push eax
push dword [ebp + 0xc]
push ecx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push 0x6de9f0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x6de9f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x41346b
int3
test eax, eax
je 0x413385
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d__msg:_s_
push eax
call fcn.005b7fdc
add esp, 0x14
jmp 0x41339d
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d_
push eax
call fcn.005b7fdc
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.005b7980
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.005b7fdc
add esp, 0x14
cmp dword [0x6deb40], 0
jne 0x41346b
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 0x413430
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
push esi
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 [0x6deb40]
cmp esi, 0xf4240
mov ecx, 1
cmova eax, ecx
pop esi
mov dword [0x6deb40], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
Function at 0x413480
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x303]
push edi
mov edi, dword [ebp + 0x10]
push 0x1ff
push 0
push eax
mov byte [ebp - 0x304], 0
call fcn.005b7980
add esp, 0xc
lea eax, [ebp - 0x304]
test edi, edi
je 0x4134d7
push edi
push dword [ebp + 0xc]
push esi
push str._s_line:_d__msg:_s_
push eax
call fcn.005b7fdc
add esp, 0x14
jmp 0x4134e9
push dword [ebp + 0xc]
push esi
push str._s_line:_d_
push eax
call fcn.005b7fdc
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.005b7980
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.005b7fdc
add esp, 0x14
cmp dword [0x6ded88], 0
jne 0x4135ed
push 0
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 0x4135bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push 0x5e9260
push eax
call fcn.005b7e0b
mov esi, eax
add esp, 8
test esi, esi
je 0x4135ed
call fcn.00412940
push eax
lea eax, [ebp - 0x304]
push eax
push str._stime:_s_n
push esi
call fcn.005b7e65
push esi
call fcn.005b7cd0
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
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
jbe 0x413570
mov dword [0x6ded88], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
Function at 0x421640
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8cfd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d5760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0xa
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.005b2240
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0041f880
lea edi, [esi + 0x94]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea ebx, [esi + 0xb8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea eax, [esi + 0xdc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x100]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x124]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 0
push 0x80
push 0x5ea204
push 0x62c118
mov byte [ebp - 4], 9
call fcn.005b7b40
add esp, 0xc
mov dword [0x62c114], 0x32
cmp dword [0x62c10c], 0
jne 0x42184d
push 0x64
push 0x62c10c
call fcn.00421ac0
mov eax, dword [0x62c10c]
add esp, 8
mov dword [0x62c110], eax
push 0x1e
mov ecx, edi
mov dword [esi + 0x64], 0
call fcn.004159f0
push 0x1e
mov ecx, ebx
call fcn.004159f0
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.004159f0
push 0x1e
lea ecx, [esi + 0x100]
call fcn.004159f0
push 3
lea ecx, [esi + 0x124]
call fcn.004159f0
mov dword [esi + 0x16e], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8aab
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d5760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CSkillObjectTargetList.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 1
mov dword [ebp - 4], 0
call fcn.004159f0
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xb7]
mov word [esi + 0x30], ax
movzx eax, word [ecx + 0xad]
mov word [esi + 0x32], ax
mov dword [esi + 0x2c], 0
movzx eax, word [ecx + 0x27]
mov word [esi + 0x34], ax
movzx eax, word [ecx + 0x29]
mov word [esi + 0x36], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42b1a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d95fe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d5760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
push 0x40
mov byte [ebp - 4], 2
call fcn.004159f0
push 0x40
lea ecx, [ebx + 0x24]
call fcn.004159f0
push 0x40
lea ecx, [ebx + 0x48]
call fcn.004159f0
mov ecx, ebx
call fcn.0042ada0
mov ecx, ebx
call fcn.0042abe0
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
Function at 0x42d2a0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7046f8]
push ebx
push esi
push edi
cmp eax, 1
jne 0x42d321
mov dword [ebp - 4], 0x5eb6c0
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42d305
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.005b96b2
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x42d2fc
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0xf]
jb 0x42d2e3
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200030
push dword [0x704674]
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x42d396
mov dword [ebp - 4], 0x5eb740
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42d37a
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.005b96b2
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x42d371
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0xf]
jb 0x42d358
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200030
push dword [0x704674]
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], 0x5eb6c0
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42d3ea
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.005b96b2
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x42d3e1
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0xf]
jb 0x42d3c8
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200030
push dword [0x704674]
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42d5c0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.0042ea00
mov eax, dword [0x7046f8]
cmp eax, 1
jne 0x42d646
mov dword [ebp - 4], 0x5eb588
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42d62a
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.005b96b2
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x42d621
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0xf]
jb 0x42d608
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200030
push dword [0x704674]
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x42d6be
mov dword [ebp - 4], 0x5eb620
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42d6a2
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.005b96b2
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x42d699
sub edi, ecx
lea ecx, [ecx]
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0xf]
jb 0x42d680
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200030
push dword [0x704674]
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], 0x5eb588
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x42d712
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call fcn.005b96b2
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x42d709
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0xf]
jb 0x42d6f0
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200030
push dword [0x704674]
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42d860
Capabilities:
Check os version
Encode data using xor
Query or enumerate registry value

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x42d875
mov dword [0x6fb680], 1
ret
jmp fcn.0042d7a0

Function at 0x42d9b0
Capabilities:
Create thread

Disassembly:
call fcn.0042da10
test eax, eax
je 0x42d9f8
cmp dword [0x6fb67c], 0
jne 0x42d9d7
push 0
push 0
push 0
push 0x42fd60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x6fb678], 0
jne 0x42da0d
push 0
push 0
push 0
push fcn.0042d410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
ret
push 0
push 0
push 0
push 0x42dab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
ret
Function at 0x42da10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42da69
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42da71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42da86
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
test esi, esi
jne 0x42da9c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.005b6a74
mov esp, ebp
pop ebp
ret
push 0x61f1b4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.005b6a83
int3

Function at 0x42db90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7c28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6d5760]
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, ecx
cmp dword [ebx + 0x40], 0
je 0x42dcb5
cmp byte [ebx + 0x45], 0
je 0x42dcb5
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x42dbe4
xor al, al
jmp 0x42dcb7
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42dc4e
dec eax
je 0x42dc52
sub eax, 2
je 0x42dc9e
xor bl, bl
jmp 0x42dca0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x42dc84
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005b86ce
add esp, 0x10
cmp esi, eax
jne 0x42dc4a
cmp byte [ebx + 0x45], 0
je 0x42dc9e
test esi, esi
jne 0x42dc14
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0042e660
jmp 0x42dc14
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x42dcb1
push dword [ebp - 0x28]
call fcn.005b62e5
add esp, 4
mov al, bl
jmp 0x42dcb7
mov al, 1
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.005b6a74
mov esp, ebp
pop ebp
ret
Function at 0x42f250
Capabilities:
Create thread
Terminate process

Disassembly:
push 0
push 0
push 0
push 0x42f280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]