joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9b0d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4f0108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0x8000
push 0x4dd784
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x47759d
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x4775b2
xor ecx, ecx
jmp 0x4775c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4775b7
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040b5b5
test esi, esi
je 0x4775db
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x496e01
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c500c
push 0x4c5004
push str.FlsAlloc
push 0x1e
call fcn.00496c2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x496e35
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf3b4]
call esi
jmp 0x496e3b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x496e7f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c501c
push 0x4c5014
push str.FlsGetValue
push 0x20
call fcn.00496c2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x496eb6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf3b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4995a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00499411
Function at 0x49aaff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00479970
mov eax, dword [0x4f0108]
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.004980a4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49ab41
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49ac9d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004796a0
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 + 0x4faf08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0049a694
mov ecx, dword [esi*4 + 0x4faf08]
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 0x49ac96
cmp eax, dword [edi + ecx + 0x24]
jne 0x49ac96
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 0x49ac96
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049a694
add esp, 0x14
test edx, edx
jl 0x49ac96
jg 0x49ac0c
test eax, eax
jb 0x49ac96
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49ac96
jl 0x49ac26
cmp dword [ebp - 0x1008], eax
ja 0x49ac96
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49ac44
test ebx, ebx
je 0x49ac7d
cmp ecx, edi
jae 0x49ac7d
mov al, byte [ecx]
cmp al, 0xd
jne 0x49ac5e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49ac6a
cmp byte [ecx + 1], 0xa
jne 0x49ac6a
inc ecx
jmp 0x49ac6a
movzx eax, al
movsx eax, byte [eax + 0x4f46a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49ac44
cmp edx, ebx
jne 0x49ac44
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49ac9b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret
Function at 0x49ad3c
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 + 0x4faf08]
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 0x49ad7c
cmp byte [ebx], 0xa
jne 0x49ad7c
or byte [eax + edi + 0x28], 4
jmp 0x49ad81
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49ae7f
mov al, byte [edx]
cmp al, 0x1a
je 0x49ae61
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49adb0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49add5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49addf
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 0x49ad92
jmp 0x49ae7f
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 0x49ae5c
cmp dword [ebp - 0xc], 0
je 0x49ae5c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4faf08]
test byte [eax + edi + 0x28], 0x48
je 0x49ae36
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49ae21
mov byte [esi], dl
jmp 0x49ae32
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4faf08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49ae7f
cmp byte [ebp - 1], 0xa
jne 0x49ae45
cmp esi, ebx
jne 0x49ae45
mov byte [esi], 0xa
jmp 0x49ae7e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049a6b2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49ae7f
mov byte [esi], 0xd
jmp 0x49ae7e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4faf08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49ae7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ae7f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49ae88
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 + 0x4faf08]
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 0x49aecb
cmp word [esi], dx
jne 0x49aecb
or byte [edi + eax + 0x28], 4
jmp 0x49aed0
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 0x49b023
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 0x49b003
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49af12
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49af48
cmp eax, edx
jae 0x49af54
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 0x49aeea
jmp 0x49b023
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 0x49afff
cmp dword [ebp - 0x14], 0
je 0x49afff
mov eax, dword [ebx*4 + 0x4faf08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49afd7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49afa0
mov word [esi], cx
jmp 0x49afd3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4faf08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4faf08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4faf08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49b023
pop ebx
cmp word [ebp - 4], bx
jne 0x49afe8
cmp esi, dword [ebp + 0xc]
jne 0x49afe8
mov word [esi], bx
jmp 0x49b020
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049a6b2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49b023
push 0xd
jmp 0x49b01c
mov ecx, dword [ebx*4 + 0x4faf08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b01a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b023
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 0x49cadf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f0108]
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 0x49cb2a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049cc7e
test al, al
jne 0x49cb24
sub edx, 2
cmp edx, edi
jne 0x49cb0a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49cb4c
lea eax, [edi + 2]
cmp edx, eax
je 0x49cb4c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049ca2b
add esp, 0x10
jmp 0x49cc46
push esi
lea ecx, [ebp - 0x255]
call fcn.0049cc7e
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 0x49cb8f
push dword [ebp - 0x25c]
jmp 0x49cb3c
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 0x49cbcc
cmp word [ebp - 0x226], 0
je 0x49cbed
cmp word [ebp - 0x226], ax
jne 0x49cbcc
cmp word [ebp - 0x224], 0
je 0x49cbed
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049ca2b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49cc39
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49cba6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49cc21
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49cc46
push 0x49c85b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a51d0
add esp, 0x10
jmp 0x49cc16
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.00478c0a
leave
ret

Function at 0x49d56a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49d57b
pop esi
ret
push ebx
push edi
push esi
call fcn.0049d533
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00497235
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49d5a3
push ebx
push esi
push edi
call fcn.0047e460
add esp, 0xc
push 0
call fcn.004971fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x49d967
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d5b8
Function at 0x4a5fa5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a5f21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4a611d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4a611d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4a60cc
jg 0x4a5ffe
test eax, eax
je 0x4a60c2
push 1
push 0x1000
call fcn.004985ed
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4a6024
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4a60b9
push 0x8000
push ebx
call fcn.00493607
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4a6050
jg 0x4a604b
cmp ecx, 0x1000
jb 0x4a6050
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0049a26b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a6095
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4a604b
jl 0x4a607c
test ecx, ecx
jne 0x4a603d
push dword [ebp - 0xc]
push ebx
call fcn.00493607
push esi
call fcn.004971fb
add esp, 0xc
xor edi, edi
jmp 0x4a612e
cmp byte [edi + 0x24], 0
je 0x4a60ac
cmp dword [edi + 0x20], 5
jne 0x4a60ac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4a60b7
mov edi, dword [edi + 0x18]
jmp 0x4a60b9
xor edi, edi
push esi
call fcn.004971fb
pop ecx
jmp 0x4a612e
test ecx, ecx
jg 0x4a608e
jl 0x4a60cc
test eax, eax
jae 0x4a608e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049a6b2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a60ef
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a608e
jmp 0x4a6126
push ebx
call fcn.0049ddf0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4a608e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4a612e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a612b
mov edi, dword [edi + 0x18]
jmp 0x4a612e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0049a6b2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a7720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.004a6910
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push edi
push dword [esi]
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x4a7793
push dword [esi]
call fcn.004631e0
mov dword [esi], 0
push 0x4c037c
push dword [edi]
call fcn.00479693
add esp, 0xc
mov dword [esi], eax
push edi
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4a77ba
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4bf3b4]
mov ecx, edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a7820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba3e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f0108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a796a
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
jb 0x4a796a
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp ecx, 1
jne 0x4a78bf
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.004a6eb0
mov ebx, eax
test ebx, ebx
jne 0x4a78db
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0x10], esi
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0047941c
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x4a78fd
lea ebx, [eax + 8]
jmp 0x4a7942
cmp ecx, 7
jne 0x4a789b
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.004a6cf0
mov ebx, eax
test ebx, ebx
je 0x4a7892
mov esi, dword [ebp - 0x10]
push esi
call fcn.004631e0
add esp, 4
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 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
call fcn.004a72e0
mov ebx, eax
test ebx, ebx
jne 0x4a7942
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004a6910
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edi
push 3
push ebx
push dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004a6b20
push edi
call fcn.004631e0
add esp, 4
push esi
call fcn.004631e0
add esp, 4
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 0x10
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4af5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4af615
xor ecx, ecx
cmp cx, word [eax]
je 0x4af615
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4af615
test al, 0x10
je 0x4af615
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x4affb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baaad
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f0108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040583a
mov edi, eax
test edi, edi
je 0x4b00e6
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4bf3b4]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
xor edi, edi
nop dword [eax]
lea edx, [edi + 1]
test edx, edx
js 0x4b00dc
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4b0038
push edx
lea ecx, [ebp - 0x10]
call fcn.0040b77b
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x4b004c
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040b808
mov esi, dword [ebp - 0x10]
push esi
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x4b0095
push dword [esi - 8]
push esi
call fcn.00482280
add esp, 8
test eax, eax
js 0x4b00dc
cmp eax, dword [esi - 8]
jg 0x4b00dc
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, dword [esi - 0xc]
ja 0x4b0010
add esi, 0xfffffff0
push esi
call fcn.00470bb0
mov ebx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x4b00a7
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x4cd6c0
call fcn.0040aeed
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b00c8
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4bf3b4]
mov ecx, edi
call esi
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
push 0x80070057
call fcn.0040560b
push 0x80004005
call fcn.0040560b
int3
Function at 0x4b03a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
test edx, edx
je 0x4b04c6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b04c6
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jb 0x4b04c6
cmp dword [esi + 0xc], 0
je 0x4b04c6
cmp dword [esi + 0x10], 0
je 0x4b04c6
test ecx, ecx
jle 0x4b04ba
sub edx, eax
push ebx
mov dword [ebp + 8], edx
push edi
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
test ecx, ecx
jle 0x4b044d
mov ecx, dword [esi]
call fcn.004b0640
mov byte [edi], al
lea edi, [edi + 1]
mov ecx, dword [esi]
call fcn.004b0640
mov byte [ebx], al
lea ebx, [ebx + 1]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jl 0x4b0413
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
dec ecx
mov eax, dword [ebp + 0xc]
mov al, byte [ebx + eax]
mov ebx, dword [esi + 8]
add edx, ebx
test ecx, ecx
jle 0x4b0495
mov ecx, dword [ebp - 0x10]
sub ecx, ebx
sub ecx, dword [ebp - 8]
dec ecx
add ecx, edx
sub ebx, edx
lea esi, [ebx + edi]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
nop dword [eax]
sub al, byte [edx]
lea edx, [edx - 1]
xor al, byte [ebx + edx + 1]
dec ecx
test ecx, ecx
jg 0x4b0480
mov ecx, dword [ebp - 4]
mov edx, edi
jmp 0x4b049b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub al, byte [ecx]
xor al, byte [edx]
mov ecx, dword [ebp + 0xc]
xor al, byte [esi + 0x15]
mov byte [ecx], al
inc ecx
xor byte [esi + 0x15], al
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], ecx
jne 0x4b03f1
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b08c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x4b1120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baf0d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f0108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040583a
mov edi, eax
test edi, edi
je 0x4b11f9
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4bf3b4]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
sub ecx, 0
je 0x4b11c2
sub ecx, 1
je 0x4b1199
sub ecx, 1
je 0x4b1192
mov eax, str._s__d_:__UNKNOWN_:___s_:__s_n
jmp 0x4b119e
mov eax, str._s__d_:__ERROR_:___s_:__s_n
jmp 0x4b119e
mov eax, 0x4ccfe0
mov esi, dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004752d0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4b11e6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4bf3b4]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040560b
int3