joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7030
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x52e098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x140], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e7171
nop dword [eax + eax]
movaps xmm0, xmmword [0x5248d0]
xor ecx, ecx
movups xmmword [ebp - 0x18], xmm0
nop dword [eax]
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0xe
jb 0x4e7090
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x17]
lea eax, [ebp - 0x11c]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4e70d0
test dl, dl
je 0x4e70cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4e70d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4e70b0
xor eax, eax
jmp 0x4e70d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e7139
movaps xmm0, xmmword [0x524f70]
xor eax, eax
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x747f
mov byte [ebp - 6], 0
mov cl, byte [ebp - 0x18]
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0x11
jb 0x4e70f0
mov byte [ebp - 6], 0
lea ecx, [ebp - 0x17]
lea eax, [ebp - 0x11c]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4e7130
test dl, dl
je 0x4e712c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4e7130
add eax, 2
add ecx, 2
test dl, dl
jne 0x4e7110
xor eax, eax
jmp 0x4e7135
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e715b
push dword [ebp - 0x138]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4e715b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4e7080
cmp edi, 0xffffffff
je 0x4e7179
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
Function at 0x4e71c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52e098]
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 0x4e7219
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4e7221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4e7236
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
test esi, esi
jne 0x4e724c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
push 0x52b538
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.004b73e4
int3
Function at 0x4e9dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f47d1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x52e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx ecx, word [esi + 0x2ae]
cmp cx, word [esi + 0x2ac]
jle 0x4e9ea7
movaps xmm0, xmmword [0x524a30]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x5f
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x4e9e22
cmp byte [ebp - 0x23], 0
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jne 0x4e9e4f
xor ecx, ecx
jmp 0x4e9e5e
lea ecx, [ebp - 0x23]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9e55
sub ecx, edx
push ecx
lea eax, [ebp - 0x23]
push eax
lea ecx, [ebp - 0x44]
call fcn.004454e0
lea ecx, [esi + 0x2b0]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4e9e89
push 0xffffffffffffffff
push 0
push eax
call fcn.00444cb0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x4e9e9e
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00445260
mov byte [esi + 0x288], 0
jmp 0x4e9ec9
mov eax, dword [0x53f428]
mov eax, dword [eax]
cmp dword [eax + 4], 0xffffffff
je 0x4e9ec9
push 3
lea eax, [ebp - 0x2c]
mov word [ebp - 0x2b], cx
mov ecx, dword [esi]
push eax
mov byte [ebp - 0x2c], 2
call fcn.004dd5d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret

Function at 0x4e9ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x52e098]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [0x53f6ec], 0x10
lea ecx, [esp + 0x14]
push esi
mov esi, 0x53f6d8
mov eax, esi
cmovae eax, dword [0x53f6d8]
push ecx
push eax
call fcn.004be09f
add esp, 8
test eax, eax
je 0x4e9f3e
xor al, al
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
cmp dword [0x53f6ec], 0x10
push 0
cmovae esi, dword [0x53f6d8]
push 0x80
push 3
push 0
push 2
push 2
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4e9f79
mov al, 1
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [0x524f10]
xor ecx, ecx
movups xmmword [esp + 4], xmm0
mov word [esp + 0x14], 0x6f
mov al, byte [esp + 4]
xor byte [esp + ecx + 5], al
inc ecx
cmp ecx, 0x10
jb 0x4e9f95
mov dl, 1
mov byte [esp + 0x15], 0
lea ecx, [esp + 5]
call fcn.004e6d50
mov ecx, dword [esp + 0x4c]
test al, al
pop esi
sete al
xor ecx, esp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
Function at 0x4e9fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f47fe
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x52e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [0x524ea0]
xor ecx, ecx
mov eax, dword [ebp + 8]
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x33
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x4ea010
sub esp, 0x18
mov byte [ebp - 0x13], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x4ea03e
mov eax, dword [edx]
jmp 0x4ea040
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x4ea04d
xor ecx, ecx
jmp 0x4ea05c
lea ecx, [ebp - 0x23]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ea053
sub ecx, esi
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.004454e0
lea eax, [ebp - 0x40]
push eax
call fcn.004ecdf0
mov ecx, dword [0x53f428]
add esp, 0x20
add ecx, 0x2b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x4ea098
push 0xffffffffffffffff
push 0
push eax
call fcn.00444cb0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4ea0ad
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00445260
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
Function at 0x4ed180
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x52e098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
lea ecx, [eax + 2]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], ecx
lea esi, [ebp - 0x124]
lea ecx, [eax + 3]
xor bl, bl
mov dword [ebp - 0x130], ecx
mov edi, 0x10
nop dword [eax]
movzx ecx, bl
lea esi, [esi + 4]
add bl, 4
movzx edx, byte [ecx + eax]
movzx eax, byte [eax + ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0x12c]
shl edx, 8
movzx eax, byte [eax + ecx]
or edx, eax
mov eax, dword [ebp - 0x130]
shl edx, 8
movzx eax, byte [eax + ecx]
or edx, eax
mov eax, dword [ebp - 0x128]
mov dword [esi - 4], edx
sub edi, 1
jne 0x4ed1c0
lea eax, [ebp - 0x120]
mov ebx, 0x30
nop
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x4ed210
mov ebx, dword [ebp - 0x128]
add ebx, 0x50
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], 0x40
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x14]
nop
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov esi, dword [ebp - 0x20]
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror edi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor edi, eax
mov eax, ebx
ror eax, 6
xor edi, eax
mov eax, dword [ebp - 0x10]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x128]
add edi, ecx
add dword [ebp - 0x128], 4
add edi, dword [eax + 0x524710]
add edi, dword [ebp + eax - 0x124]
add edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, edx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
add ebx, edi
mov eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x20], eax
rol eax, 0xa
ror ecx, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x24]
ror eax, 2
xor ecx, eax
mov eax, esi
or eax, edx
and esi, edx
and eax, dword [ebp - 0x24]
add ecx, edi
or eax, esi
add eax, ecx
sub dword [ebp - 0x12c], 1
mov dword [ebp - 0x24], eax
jne 0x4ed280
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp - 0x130]
mov edx, 8
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x4ed330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
Function at 0x4edc90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.0049e970
mov eax, dword [0x52e098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov bl, byte [edi]
cmp bl, 0x41
jl 0x4edcba
cmp bl, 0x5a
jle 0x4edcc4
cmp bl, 0x61
jl 0x4edcd6
cmp bl, 0x7a
jg 0x4edcd6
cmp byte [edi + 1], 0x3a
jne 0x4edcd6
mov dword [ebp - 0x8008], 1
jmp 0x4edcde
xor eax, eax
mov dword [ebp - 0x8008], eax
push 0x8000
lea eax, [ebp - 0x8004]
push 0
push eax
call fcn.004b6aa0
mov ecx, dword [ebp - 0x8008]
add esp, 0xc
test ecx, ecx
je 0x4edd12
mov al, byte [edi + 1]
mov esi, 2
mov byte [ebp - 0x8004], bl
mov byte [ebp - 0x8003], al
mov al, byte [edi + esi]
add edi, esi
test al, al
je 0x4edd75
nop dword [eax + eax]
cmp esi, 0x7fff
jge 0x4edd75
cmp al, 0x2f
je 0x4edd30
cmp al, 0x5c
jne 0x4edd63
test ecx, ecx
jne 0x4edd3a
test esi, esi
jg 0x4edd3f
jmp 0x4edd63
cmp esi, 2
jle 0x4edd63
lea eax, [ebp - 0x8004]
push eax
call fcn.004be8f7
add esp, 4
cmp eax, 0xffffffff
jne 0x4edd5d
call fcn.004be432
cmp dword [eax], 0x11
jne 0x4edd88
mov ecx, dword [ebp - 0x8008]
movzx eax, byte [edi]
inc edi
mov byte [ebp + esi - 0x8004], al
inc esi
mov al, byte [edi]
test al, al
jne 0x4edd20
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
Function at 0x4ee7a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
test ecx, ecx
je 0x4ee8c5
mov esi, dword [ecx + 0x48]
test esi, esi
je 0x4ee8c5
cmp edx, dword [ecx + 0x10]
jae 0x4ee8c5
cmp dword [ecx + 0x14], 1
jne 0x4ee8c5
mov eax, dword [esi + 0x10]
mov edi, dword [eax + edx*4]
add edi, dword [esi]
je 0x4ee8c5
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4ee8c5
mov dword [ebx], edx
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
movzx edx, word [edi + 0xe]
movzx ecx, word [edi + 0xc]
call fcn.004ef880
mov dword [ebx + 0x10], eax
mov esi, 0x103
mov dword [ebx + 0x14], edx
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x30], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x2a]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.004b6e70
mov byte [esi + ebx + 0x44], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x40], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
add eax, ecx
push esi
push eax
lea eax, [ebx + 0x148]
push eax
call fcn.004b6e70
add esp, 0x18
mov byte [esi + ebx + 0x148], 0
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4f1640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
test esi, esi
jne 0x4f164f
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
not ecx
test edi, edi
je 0x4f1692
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
movzx edx, al
mov eax, edx
shr edx, 4
xor eax, ecx
shr ecx, 4
and eax, 0xf
xor ecx, dword [eax*4 + 0x523c70]
mov eax, ecx
shr ecx, 4
and eax, 0xf
xor edx, eax
xor ecx, dword [edx*4 + 0x523c70]
sub edi, 1
jne 0x4f1660
not ecx
pop edi
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x404292
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x404365
mov dword [ebp + 0x28], edi
test eax, eax
je 0x404332
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x40431c
mov edi, eax
add ecx, 0x10
dec edx
jne 0x404314
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x404335
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404a32
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x40435b
push eax
call fcn.00404ac8
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.00404ac8
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404a32
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4043b1
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.00404b8f
jmp 0x4043b3
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4043e2
test eax, eax
je 0x4043df
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.00404b2c
push ebx
call fcn.00404ac8
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00403ed2
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 0x24
Function at 0x50c81c2
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x50c81f4
mov eax, 0x88760359
jmp 0x50c82d0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x50c8215
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760361
jmp 0x50c82d0
push ebx
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x50c823e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760361
jmp 0x50c82cf
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x50c8268
mov ebx, 0x88760361
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
jmp 0x50c82cf
push 0x24
call fcn.050c5c8c
pop ecx
cmp eax, esi
je 0x50c8287
push dword [ebp - 0xc]
mov ecx, eax
push dword [ebp - 4]
push ebx
push edi
call fcn.050c7f2d
mov ebx, eax
jmp 0x50c8289
xor ebx, ebx
cmp ebx, esi
jne 0x50c829d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x88760356
jmp 0x50c8256
push 0x1c
call fcn.050c5c8c
pop ecx
cmp eax, esi
je 0x50c82b3
push ebx
mov ecx, eax
call fcn.050c76df
jmp 0x50c82b5
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, esi
jne 0x50c82cd
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, 0x88760356
jmp 0x50c82cf
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x50c86e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__vscprintf]
inc eax
cmp eax, 0x400
pop ecx
pop ecx
jle 0x50c8715
xor eax, eax
jmp 0x50c874c
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.msvcrt.dll_vsprintf_s
add esp, 0x10
push 0
lea ecx, [ebp - 0x408]
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.050cafc7
leave
ret

Function at 0x50c8784
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
and eax, 0xff
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 8]
mov ebx, ecx
push eax
push dword [ebx + 4]
call edi
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
sar esi, 8
mov dword [ebp + 8], esi
call edi
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50ca751
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
push 0x50c1850
push 0x50c17c4
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x50ca799
mov eax, 0x88760357
jmp 0x50ca894
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x50ca7cd
mov eax, 0x88760361
jmp 0x50ca893
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50ca7f5
mov dword [ebp - 0x10c], 0x88760361
jmp 0x50ca841
lea ecx, [ebp - 0x138]
call fcn.050ca43d
lea ecx, [ebp - 0x138]
call fcn.050ca4f0
test eax, eax
jne 0x50ca81b
mov dword [ebp - 0x10c], 0x88760356
jmp 0x50ca833
push dword [ebp - 0x114]
lea ecx, [ebp - 0x138]
push esi
call fcn.050ca5c8
mov dword [ebp - 0x10c], eax
push esi
call ebx
lea ecx, [ebp - 0x138]
call fcn.050ca461
push dword [ebp - 0x114]
call ebx
cmp dword [ebp - 0x10c], edi
jge 0x50ca860
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x50ca88d
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x50ca88d
mov dword [ebp - 0x10c], 0x88760361
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.050cafc7
leave
ret

Function at 0x50d32cd
Capabilities:
Encode data using xor

Disassembly:
call 0x50d3246
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x50d3276
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x50d3292
xor edx, 0
jmp 0x50d329d
xor edx, edx
jmp 0x50d32b4
jmp 0x50d32c0
xor eax, eax
push 0x8427d7c0
call 0x50d32cd
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x50d3309
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x50d32e2
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x50d3320
add eax, 0
jno 0x50d3325
add esi, 0
ret 0x10