joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2d41
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.00574760
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0
push 4
push 0x7e
mov eax, dword [edi]
push edi
call dword [eax + 0x70]
cmp eax, 0xffffffff
jne 0x4b2d75
xor eax, eax
inc eax
jmp 0x4b2f09
push ebx
push 0x824
lea eax, [ebp - 0x1050]
push eax
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
test ebx, ebx
jne 0x4b2e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4b2f05
push esi
mov esi, dword [edi]
push edi
call dword [esi + 0x18]
push eax
push edi
call dword [esi + 0xa8]
mov ecx, dword [edi]
mov esi, eax
push edi
mov dword [ebp - 0x1054], esi
call dword [ecx + 0x18]
push 0x5c
pop ecx
push ecx
push eax
push esi
call fcn.0056ee08
mov esi, eax
test esi, esi
je 0x4b2e4b
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x1050]
push 0x824
push eax
push dword [ebp - 0x1054]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
push 0x5c
pop eax
mov word [esi], ax
lea eax, [ebx - 1]
cmp eax, 0x823
ja 0x4b2e4b
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
mov ecx, esi
sub ecx, dword [ebp - 0x1054]
sar ecx, 1
sub eax, ecx
lea ecx, [eax + ebx]
mov dword [ebp - 0x1054], ecx
cmp ecx, 0x824
ja 0x4b2e49
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x1050]
lea eax, [eax + ebx*2]
push esi
push eax
call fcn.005761a0
mov ecx, dword [ebp - 0x1054]
add esp, 0xc
mov ebx, ecx
mov eax, dword [edi]
push edi
call dword [eax + 0xac]
pop esi
lea eax, [ebx - 1]
cmp eax, 0x823
ja 0x4b2f05
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.0040e311
test eax, eax
je 0x4b2f05
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
mov dword [ebp - 0x1064], eax
lea ecx, [ebp - 0x1050]
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1058], ecx
push eax
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x105c], str.After
push eax
mov edx, vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x1068], str.Before
push str.Converted_something_to_long_name_
mov dword [ebp - 0x1060], edx
mov ecx, 0x7c7180
mov dword [ebp - 0x106c], edx
mov edx, 0x8b
push 0xf
call fcn.0040c147
cmp ebx, 0x104
ja 0x4b2f05
mov eax, dword [edi]
lea ecx, [ebp - 0x1050]
push ebx
push ecx
push edi
call dword [eax + 0x28]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
jmp 0x4b2f08
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00573599
mov esp, ebp
pop ebp
ret 4
Function at 0x4beeda
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b84a6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6c10c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x10]
call fcn.00410e05
mov edx, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esi + 8], eax
mov eax, dword [edx + 4]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov byte [esi + 0x14], bl
mov eax, dword [ecx]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 4]
lea ecx, [esi + 0x40]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x38], eax
lea eax, [edx + 8]
push eax
mov dword [esi + 0x3c], ebx
call fcn.004978d3
cmp dword [esi + 8], ebx
jne 0x4bef54
push 0x11a278e
call fcn.0056c1fd
cmp dword [esi + 0x10], ebx
jne 0x4bef60
push 0x11a278f
jmp 0x4bef4f
cmp dword [esi + 0xc], ebx
ja 0x4bef6c
push 0x11a2790
jmp 0x4bef4f
mov dl, 1
mov ecx, edi
call fcn.00436820
test al, al
jne 0x4bef8b
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x12d12c9
call dword [eax + 4]
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 0x14
Function at 0x4d227e
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ecx + 0x3c]
push edi
xor edi, edi
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00410255
push edi
push eax
push esi
call fcn.0056d403
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f0f6
cmp dword [ebp - 0x10], edi
je 0x4d2366
push ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x4d22eb
push 1
lea ecx, [ebp - 0x10]
call fcn.004d48e4
test al, al
jne 0x4d22e4
push edi
lea ecx, [ebp - 0x10]
call fcn.004d48e4
test al, al
jne 0x4d22e4
lea ecx, [ebp - 0x10]
call fcn.004d1e51
jmp 0x4d2365
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4d2365
mov eax, dword [ebp - 8]
cmp eax, 1
jbe 0x4d2365
add eax, 0xb
mov dword [ebp - 4], edi
add eax, eax
lea ecx, [ebp - 4]
push eax
call fcn.0040fa23
mov esi, dword [ebp - 4]
test al, al
je 0x4d235a
mov eax, dword [ebp - 8]
add eax, 0xb
push eax
push esi
push str.Cookie:
call fcn.00462942
mov eax, dword [ebp - 8]
add eax, 0xb
push eax
push esi
push ebx
call fcn.0056ee78
mov eax, dword [ebp - 8]
add eax, 0xb
push eax
push esi
push 0x62e740
call fcn.0056ee78
push 0xa0000000
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4d235a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x4d2365
push esi
call fcn.0056eede
pop ecx
pop ebx
lea ecx, [ebp - 0x10]
call fcn.004d1e51
cmp dword [ebp - 0xc], 0
je 0x4d237d
push dword [ebp - 0xc]
call fcn.0056eede
pop ecx
cmp dword [ebp - 0x10], 0
je 0x4d238c
push dword [ebp - 0x10]
call fcn.0056eede
pop ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4dbb81
Capabilities:
Get file size

Disassembly:
push 0x10
mov eax, 0x5c72b1
call fcn.00573e11
mov dword [ebp - 0x14], edx
mov esi, ecx
mov ebx, dword [ebp + 8]
movzx eax, bx
mov dword [ebp - 0x10], eax
cmp eax, 4
jae 0x4dbc6d
mov eax, ebx
mov ecx, 0x7f0000
and eax, 0xffff0000
or eax, ecx
cmp eax, ecx
jne 0x4dbc6d
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4dbbe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x4dbc72
mov edx, dword [ebp - 0x18]
xor edi, edi
mov ecx, dword [ebp - 0x1c]
cmp edx, edi
jg 0x4dbbfe
jl 0x4dbbf7
cmp ecx, edi
jae 0x4dbbfe
mov edi, 0x8000ffff
jmp 0x4dbc72
push dword [ebp - 0x14]
xor eax, eax
mov dword [esi + 0x50], ecx
cmp dword [ebp - 0x10], eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x54], edx
setne al
and ebx, 0x100000
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
call fcn.004dce2b
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x6c], ebx
je 0x4dbc52
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4dbc38
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x4dbc4f
mov dword [esi + 0x6c], edi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x6c], ebx
test dword [ebp + 8], 0x20000
jne 0x4dbc72
push edi
add esi, 0x30
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [esi + 0x18], 1
jmp 0x4dbc72
mov edi, 0x80070057
mov eax, edi
call fcn.00573dda
ret 8
Function at 0x4dc8fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor edx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], edx
cmp dword [ecx + 0x28], edx
je 0x4dc961
cmp edi, 0x40000
jb 0x4dc961
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ecx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push edx
push edi
push dword [ebp + 0xc]
lea edx, [ebp - 0x10]
movlpd qword [ebp - 0x10], xmm0
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x64d748
movlpd qword [ebp - 0x20], xmm0
call fcn.004dafe0
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp - 0x10]
add dword [edx], ecx
jmp 0x4dca94
mov ebx, dword [ebp + 0x1c]
mov edx, 0x10000
mov esi, dword [ebp + 8]
mov eax, edx
cmp edi, edx
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0x1c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x10], esi
cmovb eax, edi
mov dword [ebp - 0x1c], esi
and dword [ebp - 0x14], 0
cmp dword [ebx + 4], 0
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x18], edx
je 0x4dc9ea
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
sub eax, dword [ebx + 0x10]
sbb edx, dword [ebx + 0x14]
mov dword [ebp + 0xc], edx
jne 0x4dc9af
cmp eax, 0xfa
jb 0x4dc9e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 0x18]
call fcn.004e0ebf
test eax, eax
jne 0x4dc9cc
mov esi, 0x80004004
jmp 0x4dc9e2
call esi
mov dword [ebx + 0x10], eax
mov dword [0x6ce828], eax
mov eax, edx
mov dword [ebx + 0x14], edx
mov dword [0x6ce82c], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
jmp 0x4dc9ec
xor esi, esi
test esi, esi
js 0x4dca94
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 8]
push edx
push eax
push dword [ebp + 0x1c]
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x28], 0
je 0x4dca3f
test eax, eax
jne 0x4dca5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4dca43
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
neg eax
sbb eax, eax
neg eax
test eax, eax
jne 0x4dca5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x4dca94
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add dword [ecx], eax
add dword [ebp + 0x10], eax
adc edx, 0
add dword [ebp + 0x1c], eax
mov dword [ebp - 0xc], edx
sub edi, eax
je 0x4dca94
cmp dword [ebp + 0x14], eax
jne 0x4dca8f
mov esi, dword [ebp + 0x10]
mov ecx, 0x10000
mov eax, ecx
cmp edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x4dc97f
mov esi, 0x8000ffff
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4dca9f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x4dcaed
lea eax, [ebp - 8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4dcad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x4dcaed
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4dcaed
mov ecx, dword [ebp - 8]
jg 0x4dcae7
test ecx, ecx
jb 0x4dcaed
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e1535
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
cmp esi, edi
je 0x4e1557
xor eax, eax
mov word [esi], ax
cmp dword [ebp + 8], 0x104
jl 0x4e1574
push esi
push 0
push 0x64d658
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x4e15f9
push ebx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00576720
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x64d658
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
test edi, edi
je 0x4e15f6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4e15af
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp + 8]
jl 0x4e15e6
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3ca797
call dword [eax + 4]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x4e15f8
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00462942
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00573599
mov esp, ebp
pop ebp
ret 4

Function at 0x4e16b1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x904]
mov esi, ecx
push 0
push eax
call fcn.00576720
add esp, 0xc
lea eax, [ebp - 0x804]
xor edi, edi
push 0x400
push eax
push esi
call fcn.00462942
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.005760f8
pop ecx
pop ecx
test eax, eax
je 0x4e1715
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x4e1769
test eax, eax
je 0x4e174d
lea ecx, [ebp - 0x804]
call fcn.004e160b
test eax, eax
js 0x4e16f5
jmp 0x4e174d
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
push 0
mov word [eax], si
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4e1757
cmp edi, 1
jg 0x4e172f
xor eax, eax
inc eax
jmp 0x4e176b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
jmp 0x4e176b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00573599
mov esp, ebp
pop ebp
ret
Function at 0x4e177b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call fcn.00462942
mov edi, eax
push 0x5c
pop ebx
cmp bx, word [edi - 2]
jne 0x4e17b6
add edi, 0xfffffffe
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
mov esi, edi
cmp edi, eax
jbe 0x4e17f1
cmp bx, word [esi]
jne 0x4e17db
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [esi], ax
call fcn.004e169c
test eax, eax
jne 0x4e17ea
sub esi, 2
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x4e17c2
jmp 0x4e17ed
mov word [esi], bx
cmp esi, edi
ja 0x4e1825
xor eax, eax
cmp word [esi], ax
jne 0x4e181e
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e1819
lea ecx, [ebp - 0x20c]
call fcn.004e169c
test eax, eax
je 0x4e1839
mov word [esi], bx
xor eax, eax
add esi, 2
cmp esi, edi
jbe 0x4e17f3
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00573599
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4e1828

Function at 0x4e1939
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
mov word [ebx], ax
call fcn.004e1643
test al, al
jne 0x4e1959
xor eax, eax
jmp 0x4e1a03
call fcn.0056ce24
test eax, eax
jne 0x4e1a00
push ebx
call fcn.00410255
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
jle 0x4e1a0a
push 0x5c
pop eax
mov edi, 0x104
cmp word [ebx + esi*2 - 2], ax
je 0x4e1994
cmp esi, edi
je 0x4e1952
mov word [ebx + esi*2], ax
inc esi
mov dword [ebp - 4], esi
push ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004e1a15
mov ecx, eax
call fcn.004e1a40
cmp dword [eax], edi
jg 0x4e1952
push 6
lea edi, [ebx + esi*2]
mov esi, 0x64da9c
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004e169c
test eax, eax
jne 0x4e19ee
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, ebx
call fcn.004e160b
or eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [ebx + eax*2 + 0x16], cx
xor ecx, ecx
mov word [ebx + eax*2 + 0x18], cx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14428f
call fcn.0056c1fd
int3
Function at 0x4e1c21
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x5c8c12
call fcn.00573e7c
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov word [edi], ax
test esi, esi
jns 0x4e1c45
push 0x3ca4d4
call fcn.0056c1fd
cmp esi, 0x1a
je 0x4e1c7a
cmp esi, 0x1c
je 0x4e1c7a
cmp esi, 0x23
je 0x4e1c7a
cmp esi, 5
je 0x4e1c7a
cmp esi, 0x27
je 0x4e1c7a
cmp esi, 6
je 0x4e1c7a
cmp esi, 0x10
je 0x4e1c7a
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x3ca4d6
call dword [eax + 4]
push ecx
push edi
xor ebx, ebx
mov ecx, 0x6d0f00
push esi
mov dword [ebp - 4], ebx
call fcn.004e1b1e
test eax, eax
je 0x4e1ce0
cmp eax, 2
je 0x4e1cdb
or dword [ebp - 4], 0xffffffff
mov eax, esi
push edi
push ebx
push ebx
or eax, 0x8000
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jns 0x4e1cb5
mov eax, ebx
jmp 0x4e1ce0
push 0x104
push edi
call fcn.0056f61d
push edi
push esi
mov ecx, 0x6d0f00
mov dword [ebp - 4], 2
call fcn.004e1aa9
jmp 0x4e1cb1
mov eax, 0x80004005
call fcn.00573dda
ret

Function at 0x4e2fac
Capabilities:
Hash data using djb2

Disassembly:
mov edx, ecx
test edx, edx
jne 0x4e2fb6
or eax, 0xffffffff
ret
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4e2fd0
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4e2fc3
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x4e3aba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6e6968], 0
push esi
jne 0x4e3b9d
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
mov eax, dword [0x6c865c]
mov ecx, 0x6c865c
push esi
push esi
push 0x19
call dword [eax + 4]
test eax, eax
jne 0x4e3b33
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 2
push 0x655178
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4e3b9d
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x22c], esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x224], 0x4e3bae
mov dword [ebp - 0x220], fcn.0056fe29
call fcn.004e4225
xor ecx, ecx
cmp dword [0x6c6750], 0x16
cmove eax, ecx
test eax, eax
jns 0x4e3b9d
cmp eax, 0x8ff00004
je 0x4e3b9d
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x85e609
call dword [eax + 4]
xor al, al
jmp 0x4e3b9f
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00573599
mov esp, ebp
pop ebp
ret
Function at 0x4e43a0
Capabilities:
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
mov edx, ecx
test edx, edx
jne 0x4e43aa
or eax, 0xffffffff
ret
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4e43d8
cmp ax, 0x41
jb 0x4e43cb
cmp ax, 0x5a
ja 0x4e43cb
movzx eax, ax
add eax, 0x20
jmp 0x4e43ce
movzx eax, ax
imul ecx, ecx, 0x21
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4e43b7
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret
Function at 0x4e5190
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4e519d
xor eax, eax
pop ebp
ret 4
pop ebp
jmp fcn.004e51b0
Function at 0x50a48b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov dh, 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0050a1fb
mov fs, word [edi]
lea ebx, [ecx - 0x73]
inc ebp
test al, 0x50
call fcn.0050a20b
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0050a1c0
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x50a4e9
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
Function at 0x50cce8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x394
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x390], eax
push esi
push 0
push 0x104
mov esi, ecx
call fcn.0040d196
cmp dword [esi + 0x14], 8
jb 0x50cd1b
mov eax, dword [esi]
jmp 0x50cd1d
mov eax, esi
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x50cd48
push 0
push eax
mov ecx, esi
call fcn.0040d196
mov ecx, dword [esp + 0x394]
pop esi
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret
push str.Cannot_get_temp_path
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [esp + 0x14]
call fcn.0050d86a
push 0x6bd4a4
lea eax, [esp + 0xc]
push eax
call fcn.00575c7a
int3

Function at 0x50d19e
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x390
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x38c], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp dword [esi + 0x14], 8
jb 0x50d1c8
mov eax, dword [esi]
jmp 0x50d1ca
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x50d216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x50d216
cmp eax, 5
jne 0x50d20a
push ebx
mov ecx, esi
call fcn.0050d24d
cmp dword [esi + 0x14], 8
jb 0x50d1f7
mov eax, dword [esi]
jmp 0x50d1f9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x50d216
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50d216
test bl, bl
jne 0x50d22c
xor al, al
jmp 0x50d218
mov al, 1
mov ecx, dword [esp + 0x394]
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret
push esi
push str.failed_to_delete_file__s
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0050d8e8
push 0x6bd4a4
lea eax, [esp + 0xc]
push eax
call fcn.00575c7a
int3

Function at 0x50d24d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x394
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x390], eax
push esi
mov esi, ecx
mov ecx, 0x80
mov dword [esp + 4], ecx
cmp dword [esi + 0x14], 8
jb 0x50d27d
mov eax, dword [esi]
jmp 0x50d27f
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x50d290
cmp byte [ebp + 8], al
jne 0x50d2a5
mov ecx, dword [esp + 0x394]
pop esi
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 4]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0050d9f6
push 0x6bd4a4
lea eax, [esp + 0xc]
push eax
call fcn.00575c7a
int3