joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov ecx, dword [esi]
cmp dword [ecx + 4], 2
jne 0x4db7b9
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4db7ac
pop edi
pop esi
pop ebp
ret
push dword [ecx + 8]
push dword [ebp + 8]
push 1
push edi
call eax
jmp 0x4db7ec
mov eax, dword [esi + 8]
test eax, eax
jne 0x4db7df
push 0x6f15a8
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4db7df
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4db80f
mov eax, dword [esi + 8]
test eax, eax
je 0x4db809
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4ddcd0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, ecx
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0x4ddd02
push 0x2e
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x4ddd00
mov byte [eax], 0
xor eax, eax
pop esi
ret
Function at 0x4e1cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ebp + 8]
push ebx
mov dword [esp + 0xc], edx
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
push esi
push edi
test al, al
je 0x4e1e75
mov bx, word [ebp + 0xc]
nop dword [eax + eax]
test al, 1
je 0x4e1e65
mov eax, dword [edx + 0x30]
mov dword [esp + 0x24], eax
cmp eax, ecx
jge 0x4e1db8
nop word [eax + eax]
mov ebx, dword [edx + eax*4 + 0x11a4]
xor esi, esi
mov eax, dword [edx + eax*4 + 0x11a8]
mov dword [esp + 0x1c], eax
mov ax, word [ebp + 0xc]
cmp si, ax
jae 0x4e1da0
movzx eax, ax
mov dword [esp + 0x20], eax
mov edi, dword [ebx]
mov edx, 0x20202020
mov esi, dword [ebx + 4]
mov eax, edi
mov ecx, esi
add ebx, 8
shrd eax, ecx, 7
shr ecx, 7
and eax, 0x1010101
and ecx, 0x1010101
sub edx, eax
mov eax, 0x202020
sbb eax, ecx
mov ecx, dword [esp + 0x1c]
and edi, 0x7f7f7f7f
and esi, 0xff7f7f7f
shld esi, edi, 1
and edx, 0x1d1d1d1d
and eax, 0x1d1d1d1d
add edi, edi
xor eax, esi
xor edx, edi
mov dword [ecx + 4], eax
mov dword [ecx], edx
add ecx, 8
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], ecx
jne 0x4e1d34
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x4e1d10
mov bx, word [ebp + 0xc]
mov dword [edx + 0x30], ecx
mov eax, dword [esp + 0x14]
xor edi, edi
mov edx, dword [edx + ecx*4 + 0x11a4]
movzx esi, bx
test esi, esi
je 0x4e1e3e
cmp esi, 8
jb 0x4e1e3e
lea ecx, [esi - 1]
lea ecx, [edx + ecx*8]
cmp eax, ecx
ja 0x4e1de7
mov ecx, eax
add ecx, 0xfffffff8
lea ecx, [ecx + esi*8]
cmp ecx, edx
jae 0x4e1e3a
mov ecx, esi
and ecx, 0xfffffff8
nop dword [eax]
movups xmm1, xmmword [eax]
add edi, 8
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [eax], xmm1
movups xmm1, xmmword [eax + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [eax + 0x10], xmm1
movups xmm1, xmmword [eax + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + 0x30]
add edx, 0x40
movups xmmword [eax + 0x20], xmm1
movups xmm1, xmmword [eax + 0x30]
pxor xmm1, xmm0
movups xmmword [eax + 0x30], xmm1
add eax, 0x40
cmp edi, ecx
jl 0x4e1df0
mov ecx, dword [esp + 0x10]
cmp edi, esi
jge 0x4e1e5e
sub edx, eax
sub esi, edi
mov ecx, dword [edx + eax]
xor dword [eax], ecx
mov ecx, dword [edx + eax + 4]
xor dword [eax + 4], ecx
add eax, 8
sub esi, 1
jne 0x4e1e46
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov al, byte [ebp + 8]
inc ecx
shr al, 1
mov dword [esp + 0x10], ecx
mov byte [ebp + 8], al
jne 0x4e1cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e3fa0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0xd4
mov edi, edx
call dword [0x74b958]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e3fc4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], fcn.00595460
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ecx + 0x5c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, 0x40
jbe 0x4e400c
push ecx
call fcn.00595460
push ebx
push edi
push dword [esi + 4]
call fcn.005954c0
mov edi, dword [esi + 8]
push dword [esi + 4]
add edi, 0x5c
push edi
call fcn.00595340
mov ecx, dword [esi + 4]
mov ebx, 0x10
add esp, 0x18
mov dword [ebp + 8], ebx
push ecx
call fcn.00595460
push dword [esi + 8]
call fcn.00595460
add esp, 8
xor eax, eax
test ebx, ebx
je 0x4e4070
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
nop dword [eax]
movzx eax, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call fcn.005954c0
movzx eax, byte [edi]
lea edi, [edi + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call fcn.005954c0
add esp, 0x18
sub ebx, 1
jne 0x4e4030
cmp dword [ebp + 8], 0x40
jae 0x4e40a6
mov eax, dword [ebp - 0xc]
mov edi, 0x40
sub edi, eax
nop word [eax + eax]
push 1
push 0x6d3ab2
push dword [esi + 4]
call fcn.005954c0
push 1
push 0x6d3aa3
push dword [esi + 8]
call fcn.005954c0
add esp, 0x18
sub edi, 1
jne 0x4e4080
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e4ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, edx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea esi, [eax + 8]
test edi, edi
jle 0x4e4c48
cmp edi, 8
jb 0x4e4c2b
push ebx
lea eax, [eax + edi*8]
lea ebx, [edi - 1]
lea ebx, [ecx + ebx*8]
cmp ecx, eax
ja 0x4e4bce
cmp ebx, esi
jae 0x4e4c2a
mov eax, edi
and eax, 0x80000007
jns 0x4e4bdc
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, edi
sub ebx, eax
movups xmm0, xmmword [ecx]
add edx, 8
movups xmm1, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [esi + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [esi + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [esi + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, ebx
jl 0x4e4be0
pop ebx
cmp edx, edi
jge 0x4e4c48
sub esi, ecx
sub edi, edx
mov eax, dword [esi + ecx]
lea ecx, [ecx + 8]
xor dword [ecx - 8], eax
mov eax, dword [esi + ecx - 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4e4c33
pop edi
pop esi
pop ebp
ret
Function at 0x4e5f10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x108], edx
push edi
mov edi, dword [ebp + 8]
test esi, esi
jg 0x4e5f46
jl 0x4e602b
test edi, edi
je 0x4e602b
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop word [eax + eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x4e5f60
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x104]
call fcn.004e5eb0
lea edx, [ebp - 0x104]
lea ecx, [ebp - 0x84]
call fcn.004e5eb0
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x104]
call fcn.004e5eb0
mov eax, edi
and eax, 1
or eax, 0
je 0x4e5fcd
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x4e5fcb
mov edx, ebx
test bl, 1
je 0x4e5fc1
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x4e5fb8
mov ebx, ecx
shrd edi, esi, 1
sar esi, 1
mov eax, edi
or eax, esi
je 0x4e6025
lea edx, [ebp - 0x104]
lea ecx, [ebp - 0x84]
call fcn.004e5eb0
mov eax, edi
and eax, 1
or eax, 0
je 0x4e6015
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x4e6013
mov edx, ebx
test bl, 1
je 0x4e6009
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x4e6000
mov ebx, ecx
shrd edi, esi, 1
sar esi, 1
mov eax, edi
or eax, esi
jne 0x4e5f91
xor ebx, dword [ebp - 0x108]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
Function at 0x4eaff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6772e1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x74b738]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x4eb184
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eb145
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4eb137
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4eb145
add eax, 0x10
push 0x74fe70
push eax
mov dword [ebp - 0x20], eax
call fcn.0066a2f5
mov esi, eax
add esp, 8
test esi, esi
je 0x4eb145
push dword [ebp - 0x20]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4eb0fa
push esi
call fcn.00669a38
add esp, 4
jmp 0x4eb145
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb100
sub ecx, edx
sar ecx, 1
je 0x4eb12e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb116
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00441d80
push esi
call fcn.00669a38
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4eb145
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4eb164
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00669a1e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00422220
int3
Function at 0x4eb190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4eb1b4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4eb216
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x4eb216
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4eb231
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ecd20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ecd71
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x4ece4f
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 8], 0
push eax
push esi
call ebx
test eax, eax
je 0x4ece4f
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x4ece4f
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x4ece4f
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
test eax, eax
je 0x4ece4f
mov eax, 0x8664
cmp word [ebp - 0x14c], ax
jne 0x4ece69
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
push esi
call edi
cmp eax, 0xffffffff
je 0x4ece4f
push 0
lea eax, [ebp - 8]
push eax
push 0x108
lea eax, [ebp - 0x258]
push eax
push esi
call ebx
test eax, eax
je 0x4ece4f
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x4ece4f
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x4ece7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x4ece4f
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x4ece4f
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x4ece4f
cmp ecx, eax
jb 0x4ece4f
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4ece4f
lea eax, [ebp - 0x259]
mov byte [ebp - 0x259], 0
push eax
mov eax, dword [ebp - 0x260]
mov ecx, eax
push eax
push edi
call fcn.004eb900
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 8]
push 0
push eax
push edi
push dword [ecx]
push esi
call ebx
test eax, eax
je 0x4ece4f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
Function at 0x4ed090
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x150
push ebx
push esi
xor esi, esi
add edx, 0x1f
push edi
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x150], ecx
inc esi
cmp esi, 0x10
jl 0x4ed0a4
lea eax, [ebp - 0x148]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x4ed0e0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x5a827999
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
mov edi, dword [ebp - 0xc]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x4ed116
mov dword [ebp - 4], 0x14
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 4], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x4ed162
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0xc]
add ecx, dword [ebp + eax*4 - 0x150]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x3c
jl 0x4ed1a5
mov dword [ebp - 4], 0x3c
nop dword [eax]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 8], ebx
add eax, dword [ebp + ecx*4 - 0x150]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0xc]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x50
jl 0x4ed1f0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, edx
add dword [ecx + 4], edi
add dword [ecx + 8], esi
add dword [ecx + 0xc], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add dword [ecx + 0x10], eax
xor eax, eax
pop edi
pop esi
mov word [ecx + 0x1c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed250
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4ed261
mov eax, 1
pop ebp
ret
mov dword [eax + 0x14], 0
xor ecx, ecx
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret
Function at 0x5084a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x679b1a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x508664
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x50866e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x508678
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x508582
xor ecx, ecx
jmp 0x5085a0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x508590
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00441d80
push edi
mov ecx, ebx
call fcn.00436f20
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5085bc
xor ecx, ecx
jmp 0x5085d4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5085c4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00441d80
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00508ea0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00436f20
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x508615
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x50864e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50864e
cmp dword [esi + 0x10], 0
je 0x508645
push dword [edi]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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 0xc
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
int3
Function at 0x508ca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x679c28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x508e74
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x508cf5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x508e74
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x508d13
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x508e74
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x508d31
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x508e74
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x508d4f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x508e74
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x508e74
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x508d74
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x508da7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x508dbf
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x508dfd
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0042bb60
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x686018
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0045a0a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x508e2b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x508e64
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x508e64
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0043eaa0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.0042c3a0
lea ecx, [ebp - 0x28]
call fcn.0042c3a0
lea ecx, [ebp - 0x34]
call fcn.00440430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 4