joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4752b5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x475352
push ebx
push esi
call fcn.00475271
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00472358
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4752ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x475351
push edi
push eax
call fcn.004681af
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47531f
call fcn.00468175
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x475350
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00472358
add esp, 0x20
test eax, eax
jne 0x47533e
push edi
call fcn.00468175
jmp 0x475346
push ebx
call fcn.00468175
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x475355
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x475366
pop esi
ret
push ebx
push edi
push esi
call fcn.00475271
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004681af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47538e
push ebx
push esi
push edi
call fcn.0042ce10
add esp, 0xc
push 0
call fcn.00468175
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x475c6f
Capabilities:
Set environment variable

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

Function at 0x4824d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4824fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4824fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x407fb0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x407fbd
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x407fcf
pop esi
ret
cmp ecx, 1
jne 0x407fdd
cmp byte [esi], 0x5c
jne 0x407fdd
xor eax, eax
pop esi
ret
push esi
call fcn.00407d60
add esp, 4
test eax, eax
je 0x407ff1
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret

Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.kernel32.dll_VirtualAlloc
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4013e3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ca60
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cc8f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x42
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xef
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x5a
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xd
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xca
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xaf
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x45
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xfd
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xb3
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x17
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x51
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x23
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xe7
push str.dHJdvghcgyhushgjdshgj
push 0x630388
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x61
inc ebx
cmp esi, ebx
jne 0x40ca80
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e4b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40cca0
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x40ccb8
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x40ccc7
mov ecx, edi
jmp 0x40cd23
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x630388
push edi
call fcn.00403ff8
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x40cce0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40cd4c
cmp ecx, 2
je 0x40cd42
cmp ecx, 3
jne 0x40cd5b
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4037ab
Capabilities:
Terminate process

Disassembly:
jmp 0x460d63
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x460d74
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405cf9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4038ff
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a0d07
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0d18
pop esi
ret
push ebx
push edi
push esi
call fcn.004a0bee
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040426e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a0d40
push ebx
push esi
push edi
call fcn.00405ad3
add esp, 0xc
push 0
call fcn.00406703
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405b9b
Capabilities:
Parse pe header

Disassembly:
jmp 0x4229b9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4229f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4229f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4229f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4229f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4229f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49ee19
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x62a1e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49ee64
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049f2db
test al, al
jne 0x49ee5e
sub edx, 2
cmp edx, edi
jne 0x49ee44
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ee86
lea eax, [edi + 2]
cmp edx, eax
je 0x49ee86
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049ea12
add esp, 0x10
jmp 0x49ef80
push esi
lea ecx, [ebp - 0x255]
call fcn.0049f2db
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49eec9
push dword [ebp - 0x25c]
jmp 0x49ee76
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ef06
cmp word [ebp - 0x226], 0
je 0x49ef27
cmp word [ebp - 0x226], ax
jne 0x49ef06
cmp word [ebp - 0x224], 0
je 0x49ef27
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049ea12
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ef73
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49eee0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ef5b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ef80
push 0x49e3fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040590c
add esp, 0x10
jmp 0x49ef50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031d4
leave
ret
Function at 0x4aa40c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e38
mov eax, dword [0x62a1e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004062c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4aa44e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4aa5aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406433
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6317e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004033f5
mov ecx, dword [esi*4 + 0x6317e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4aa5a3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4aa5a3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa5a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033f5
add esp, 0x14
test edx, edx
jl 0x4aa5a3
jg 0x4aa519
test eax, eax
jb 0x4aa5a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4aa5a3
jl 0x4aa533
cmp dword [ebp - 0x1008], eax
ja 0x4aa5a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4aa551
test ebx, ebx
je 0x4aa58a
cmp ecx, edi
jae 0x4aa58a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4aa56b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4aa577
cmp byte [ecx + 1], 0xa
jne 0x4aa577
inc ecx
jmp 0x4aa577
movzx eax, al
movsx eax, byte [eax + 0x62df50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4aa551
cmp edx, ebx
jne 0x4aa551
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4aa5a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004031d4
leave
ret
Function at 0x4b4c3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6317e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b4c7c
cmp byte [ebx], 0xa
jne 0x4b4c7c
or byte [eax + edi + 0x28], 4
jmp 0x4b4c81
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b4d7f
mov al, byte [edx]
cmp al, 0x1a
je 0x4b4d61
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b4cb0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b4cd5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b4cdf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b4c92
jmp 0x4b4d7f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4d5c
cmp dword [ebp - 0xc], 0
je 0x4b4d5c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6317e0]
test byte [eax + edi + 0x28], 0x48
je 0x4b4d36
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b4d21
mov byte [esi], dl
jmp 0x4b4d32
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6317e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b4d7f
cmp byte [ebp - 1], 0xa
jne 0x4b4d45
cmp esi, ebx
jne 0x4b4d45
mov byte [esi], 0xa
jmp 0x4b4d7e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040199c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b4d7f
mov byte [esi], 0xd
jmp 0x4b4d7e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6317e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b4d7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b4d7f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b4ddb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6317e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b4e1e
cmp word [esi], dx
jne 0x4b4e1e
or byte [edi + eax + 0x28], 4
jmp 0x4b4e23
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b4f76
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b4f56
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b4e65
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b4e9b
cmp eax, edx
jae 0x4b4ea7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b4e3d
jmp 0x4b4f76
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4f52
cmp dword [ebp - 0x14], 0
je 0x4b4f52
mov eax, dword [ebx*4 + 0x6317e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b4f2a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b4ef3
mov word [esi], cx
jmp 0x4b4f26
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6317e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6317e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6317e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b4f76
pop ebx
cmp word [ebp - 4], bx
jne 0x4b4f3b
cmp esi, dword [ebp + 0xc]
jne 0x4b4f3b
mov word [esi], bx
jmp 0x4b4f73
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040199c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b4f76
push 0xd
jmp 0x4b4f6f
mov ecx, dword [ebx*4 + 0x6317e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b4f6d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b4f76
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4949b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0047e260
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.004938e0
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x494a1b
mov cl, byte [edx + eax]
test cl, cl
je 0x494a1b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x494a00
jmp 0x494a1f
test esi, esi
jne 0x494a20
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.004937f0
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.0047e260
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4a349c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x494afb
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x494ac3
test dl, dl
je 0x494abf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x494ac3
add eax, 2
add ecx, 2
test dl, dl
jne 0x494aa3
xor eax, eax
jmp 0x494ac8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x494afb
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x494ad6
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x494b05
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4a349c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.00477b1d
add esp, 0x290
ret