joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4513b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov esi, ecx
mov dword [ebp - 0xc], esi
mov ebx, edx
push edi
test edx, edx
je 0x4513dd
cmp byte [edx], al
je 0x4513d5
inc ebx
cmp byte [ebx], al
jne 0x4513d0
sub ebx, edx
and ebx, 0x3fffffff
xor edi, edi
cmp dword [esi + 0x14], eax
jle 0x45147f
mov ecx, edi
cmp edi, 2
jge 0x4513f7
xor ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4513fa
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x45144e
mov edx, ecx
mov ecx, dword [esi + 0x10]
add edx, edx
mov esi, dword [ecx + edx*8]
mov ecx, eax
mov cl, byte [ecx]
test cl, cl
je 0x451430
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x5082e0]
cmp cl, byte [edx + 0x5082e0]
jne 0x451430
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x451413
movzx ecx, byte [esi]
movzx eax, byte [eax]
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + 0x5082e0]
movzx eax, byte [eax + 0x5082e0]
sub eax, ecx
jne 0x45146f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
add ecx, ecx
push ebx
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.0041dd90
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x45147f
jmp 0x451472
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, dword [esi + 0x14]
jl 0x4513e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4515a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, edx
push esi
push edi
test edx, edx
je 0x4515cd
cmp byte [edx], al
je 0x4515c5
jmp 0x4515c0
inc ebx
cmp byte [ebx], al
jne 0x4515c0
sub ebx, edx
and ebx, 0x3fffffff
mov esi, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 0x10], esi
test esi, esi
jle 0x451673
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov eax, edi
cmp edi, 2
jge 0x4515ed
xor eax, 1
add eax, eax
lea esi, [ecx + eax*8]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x45164b
mov esi, dword [esi]
mov eax, ecx
mov cl, byte [ecx]
test cl, cl
je 0x451630
lea esp, [esp]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x5082e0]
cmp cl, byte [edx + 0x5082e0]
jne 0x45162d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x451610
mov edx, dword [ebp - 8]
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x5082e0]
movzx ecx, byte [ecx + 0x5082e0]
sub eax, ecx
jne 0x451660
mov eax, dword [ebp - 0xc]
push ebx
lea ecx, [eax + 0x18]
call fcn.0041dd90
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x451673
jmp 0x451663
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edi
mov ecx, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x10]
jl 0x4515e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4519e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, edx
mov dword [esp + 0x1c], esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
test esi, esi
je 0x451bcd
test edi, edi
je 0x451a0d
cmp dword [edi + 0x200], 0
jne 0x451a1c
mov eax, 0xffff
add word [esi + 0x28], ax
jne 0x451bcd
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x451b6f
jmp 0x451a30
mov esi, dword [ebx + 0x14]
mov dword [esp + 0x18], esi
test edi, edi
je 0x451a48
cmp dword [edi + 0x200], 0
jne 0x451b0f
mov esi, dword [ebx]
mov ecx, esi
mov dword [esp + 0x30], esi
test esi, esi
je 0x451a6e
cmp byte [esi], 0
je 0x451a66
lea esp, [esp]
inc ecx
cmp byte [ecx], 0
jne 0x451a60
sub ecx, esi
and ecx, 0x3fffffff
mov eax, dword [ebx + 0x18]
add eax, 0x18
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov edx, dword [eax]
mov dword [esp + 0x34], edx
test edx, edx
je 0x451ae1
xor eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
test ecx, ecx
jle 0x451ad5
mov ebx, ecx
mov edi, eax
mov ecx, esi
lea ebx, [ebx]
movzx eax, byte [ecx]
lea edx, [edi*8]
dec ebx
lea ecx, [ecx + 1]
movzx esi, byte [eax + 0x5082e0]
xor esi, edx
xor edi, esi
test ebx, ebx
jg 0x451aa0
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
xor edx, edx
div dword [esp + 0x34]
mov eax, dword [esp + 0x14]
jmp 0x451ae3
xor edx, edx
push edx
mov dword [esp + 0x14], edx
mov edx, esi
push ecx
mov ecx, eax
call fcn.0041dc80
add esp, 8
test eax, eax
je 0x451b0b
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.0041dd30
add esp, 4
mov esi, dword [esp + 0x18]
test edi, edi
je 0x451b1c
cmp dword [edi + 0x200], 0
jne 0x451b30
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x451b30
dec dword [eax]
jne 0x451b30
push eax
call fcn.00419c60
add esp, 4
mov edx, dword [ebx + 0x24]
mov ecx, edi
call fcn.00448ac0
mov edx, dword [ebx + 0x10]
mov ecx, edi
call fcn.00419d00
test byte [ebx + 0x38], 0x10
je 0x451b54
mov edx, dword [ebx + 0x20]
mov ecx, edi
call fcn.00419d00
mov edx, ebx
mov ecx, edi
call fcn.00419d00
mov dword [esp + 0x1c], esi
mov ebx, esi
test esi, esi
jne 0x451a30
mov esi, dword [esp + 0x20]
mov edx, esi
mov ecx, edi
call fcn.0045e980
mov edx, esi
mov ecx, edi
call fcn.00451960
mov edx, dword [esi]
mov ecx, edi
call fcn.00419d00
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.00419d00
mov esi, dword [esi + 0xc]
test esi, esi
je 0x451bad
mov edx, esi
mov ecx, edi
call fcn.004677f0
mov edx, esi
mov ecx, edi
call fcn.00419d00
mov esi, dword [esp + 0x20]
mov ecx, edi
mov edx, dword [esi + 0x18]
call fcn.004497a0
mov edx, esi
mov ecx, edi
call fcn.00477720
mov edx, esi
mov ecx, edi
call fcn.00419d00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
push esi
mov eax, dword [ebx]
push edi
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax + 0x10]
mov esi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], eax
lea esp, [esp]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.0041b980
mov ecx, dword [ebx]
lea edx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
je 0x4540c6
lea esp, [esp]
inc edx
cmp byte [edx], 0
jne 0x4540c0
lea eax, [ebp - 0x1c]
xor ebx, ebx
sub edx, eax
mov dword [ebp - 0x34], ebx
mov eax, dword [ecx + 0x14]
and edx, 0x3fffffff
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x44], eax
test eax, eax
jle 0x454201
mov edi, ebx
cmp ebx, 2
jge 0x4540f1
xor edi, 1
test esi, esi
je 0x45414f
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov eax, esi
mov esi, dword [ecx + edx*8]
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx]
test cl, cl
je 0x45412d
lea ebx, [ebx]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x5082e0]
cmp cl, byte [edx + 0x5082e0]
jne 0x45412d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x454110
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x5082e0]
movzx ecx, byte [ecx + 0x5082e0]
sub eax, ecx
jne 0x4541c3
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x10]
add edi, edi
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
mov dword [ebp - 0x20], ecx
cmp dword [ecx + 0xc], 0
je 0x45419b
xor esi, esi
lea ebx, [ebp - 0x1c]
mov edi, edx
test edx, edx
jle 0x454190
nop
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x5082e0]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x454170
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
mov eax, esi
xor edx, edx
div dword [ecx]
jmp 0x45419d
xor edx, edx
push edx
push dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
call fcn.0041dc80
add esp, 8
test eax, eax
je 0x4541bc
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4541e0
jmp 0x4541c6
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4541c6
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
inc ebx
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
cmp ebx, dword [ebp - 0x44]
jl 0x4540e7
test eax, eax
je 0x454201
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x40]
mov ebx, dword [ebp - 0x2c]
push eax
push esi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push ebx
call fcn.004512a0
add esp, 0x18
jmp 0x454204
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 4
jle 0x454090
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x48b130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x48b13b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x48b205
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
dec edi
jne 0x48b150
pop edi
test esi, esi
je 0x48b22a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x50b570]
dec esi
jne 0x48b210
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x48b240
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x50b570]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50b570]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x48b290
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x50b570]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x50b570]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x48bb50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x48bb96
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bb91
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x48bbbe
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x48bba7
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004c1c20
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret

Function at 0x48bbe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x48bc25
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bc20
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x48bc52
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x48bc36
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.004c1c20
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x48bc70
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x48bc5d
cmp byte [esi + 8], 0
je 0x48bc5d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x48bd90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x48bdd9
cmp byte [edi + 1], 0
je 0x48bdc7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x48bddf
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x48be04
cmp byte [edi + 1], 0
je 0x48bdfd
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x48be07
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x48be16
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x48be19
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.004be871
mov esi, eax
add esp, 4
test esi, esi
jne 0x48be41
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x48bf48
jmp 0x48be60
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x48beaa
cmp byte [edi + 1], 0
je 0x48bf48
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x48bead
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x48bed5
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48bed0
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x48befe
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x48bee8
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.004c1c20
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x48bf48
lea eax, [ebx - 3]
test eax, eax
js 0x48bf30
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x48bf2c
cmp byte [eax + esi + 1], 0x4b
jne 0x48bf2c
cmp byte [eax + esi + 2], 5
jne 0x48bf2c
cmp byte [eax + esi + 3], 6
je 0x48bf65
test eax, eax
jns 0x48bf10
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x48bf48
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x48be60
push esi
call fcn.004be015
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.004bd963
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x48bf33
Function at 0x48cda0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x48ce3a
cmp dword [edi + 4], 0xffffffff
jne 0x48ce3a
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48cdd0
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x48cdfc
cmp eax, 0x2f
je 0x48cdfc
mov dword [edi + esi*2 + 0x244], 0x2f
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0048bab0
add esp, 8
test eax, eax
jne 0x48ce1b
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.0048bf70
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48d760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x48d805
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bf306
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d7a4
sub ecx, edx
sar ecx, 1
je 0x48d7e4
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x48d7c7
cmp eax, 0x5c
jne 0x48d7e4
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x48d90c
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48d805
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x48d8fc
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x48d822
cmp ax, 0x5c
jne 0x48d824
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x48d816
cmp esi, edi
je 0x48d86d
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004c1c20
add esp, 0xc
cmp esi, 0x208
jae 0x48d90c
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.0048d760
xor eax, eax
mov word [ebp - 0x414], ax
pop esi
test ebx, ebx
je 0x48d895
push 0x104
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004bf306
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d8a7
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push edi
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push eax
call fcn.004bf306
xor eax, eax
add esp, 0x10
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48d8fc
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret
call fcn.004be506
int3
Function at 0x48e640
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6a88
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x529748]
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
mov esi, dword [ebp + 8]
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x248], eax
push ecx
push eax
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov edi, eax
call fcn.0048e020
mov ebx, dword [ebp - 0x248]
mov dword [ebp - 4], 0
test edi, edi
je 0x48e75a
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
call fcn.004bf63a
add esp, 8
test eax, eax
jne 0x48e744
push dword [ebp - 0x23c]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x48e744
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x18]
cmp ecx, eax
jae 0x48e72a
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
cmp ecx, edx
ja 0x48e72a
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x48e71a
push ecx
mov ecx, esi
call fcn.00497880
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x48e740
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x48e740
cmp eax, dword [esi + 8]
jne 0x48e737
push ecx
mov ecx, esi
call fcn.00497880
mov eax, dword [esi + 4]
test eax, eax
je 0x48e740
mov dword [eax], edi
add dword [esi + 4], 4
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x48e6c2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
xor ecx, ecx
sub eax, dword [esi]
sar eax, 2
cmp ecx, eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
sbb esi, esi
add edi, 0xfffffff0
neg esi
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e795
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x48ea30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x48eae6
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x48eae6
cmp dword [ebp - 8], 0x103
jne 0x48eae6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x48eabf
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x48eaa7
cmp dword [ebp - 8], 0x103
jne 0x48eaa7
mov ecx, 1
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
pop esi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004bd963
mov esp, ebp
pop ebp
ret