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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x570e90]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f79af
cmp word [ebx], dx
jne 0x4f79af
or byte [eax + edi + 0x28], 4
jmp 0x4f79b4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4f7b17
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4f7af7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f79f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f7a2b
cmp eax, edx
jae 0x4f7a39
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4f79d0
jmp 0x4f7b17
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f7af2
cmp dword [ebp - 0x18], 0
je 0x4f7af2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x570e90]
test byte [eax + edi + 0x28], 0x48
je 0x4f7ac8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4f7a8c
mov word [esi], cx
jmp 0x4f7ac3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x570e90]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x570e90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x570e90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f7b17
pop eax
cmp word [ebp - 4], ax
jne 0x4f7ad8
cmp esi, ebx
jne 0x4f7ad8
mov word [esi], ax
jmp 0x4f7b14
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f7195
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f7b17
push 0xd
pop eax
jmp 0x4f7ad3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x570e90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f7b11
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f7b17
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f97c9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51cf8c
push 0x51cf84
push str.FlsAlloc
push 0x1f
call fcn.004f95f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f97fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x516de0]
call esi
jmp 0x4f9803
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f9847
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51cf9c
push 0x51cf94
push str.FlsGetValue
push 0x21
call fcn.004f95f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f987e
push dword [ebp + 8]
mov ecx, esi
call dword [0x516de0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f9886
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51cfa4
push 0x51cf9c
push str.FlsSetValue
push 0x22
call fcn.004f95f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f98c0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x516de0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4fd56b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x566040]
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 0x4fd5b6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004fd706
test al, al
jne 0x4fd5b0
sub edx, 2
cmp edx, edi
jne 0x4fd596
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fd5d8
lea eax, [edi + 2]
cmp edx, eax
je 0x4fd5d8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004fd4b7
add esp, 0x10
jmp 0x4fd6d2
push esi
lea ecx, [ebp - 0x255]
call fcn.004fd706
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 0x4fd61b
push dword [ebp - 0x25c]
jmp 0x4fd5c8
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 0x4fd658
cmp word [ebp - 0x226], 0
je 0x4fd679
cmp word [ebp - 0x226], ax
jne 0x4fd658
cmp word [ebp - 0x224], 0
je 0x4fd679
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004fd4b7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4fd6c5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4fd632
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4fd6ad
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4fd6d2
push 0x4fd2e7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00503f90
add esp, 0x10
jmp 0x4fd6a2
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.004d30fe
leave
ret

Function at 0x4fdfcf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4fdfe0
pop esi
ret
push ebx
push edi
push esi
call fcn.004fdf98
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f9ccf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4fe008
push ebx
push esi
push edi
call fcn.004d7980
add esp, 0xc
push 0
call fcn.004f8a91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4fe3d8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fe01d
Function at 0x5008ea
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f7531
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x500959
cmp esi, dword [ebp - 4]
je 0x500954
cmp dword [ebp + 0xc], 0
je 0x500954
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x500931
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0050043c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x50095b
xor eax, eax
inc eax
jmp 0x50095b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5009c0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x566040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004f7531
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f7531
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x500a37
cmp word [ecx], dx
je 0x500a37
mov eax, dword [0x51d53c]
push edi
dec eax
push eax
push 0x51d428
call fcn.0050095f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x500aaa
cmp word [eax], dx
je 0x500aaa
mov eax, dword [edi]
test eax, eax
je 0x500a5b
cmp word [eax], dx
je 0x500a5b
lea eax, [ebp - 0x10]
push eax
call fcn.00500342
jmp 0x500a64
lea eax, [ebp - 0x10]
push eax
call fcn.005003dd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x500ad4
mov eax, dword [0x51d424]
push dword [ebp - 0x14]
dec eax
push eax
push 0x51d118
call fcn.0050095f
add esp, 0xc
test al, al
je 0x500ad4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x500a9f
cmp word [eax], di
je 0x500a9f
lea eax, [ebp - 0x10]
push eax
call fcn.00500342
pop ecx
jmp 0x500ad6
lea eax, [ebp - 0x10]
push eax
call fcn.005003dd
jmp 0x500a9c
mov eax, dword [edi]
test eax, eax
je 0x500ac1
cmp word [eax], dx
je 0x500ac1
lea eax, [ebp - 0x10]
push eax
call fcn.005002f7
pop ecx
jmp 0x500ad4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x500b9f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005007e4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x500b9f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x500b9f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x500b9f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x500b2c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004f9a62
test ebx, ebx
je 0x500b9a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004f9a62
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x500b9f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x500b9f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005045bb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x500ba1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d30fe
leave
ret
Function at 0x5047e5
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00504761
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x504954
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x504954
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x504909
jg 0x504841
test eax, eax
je 0x5048ff
push 1
push 0x1000
call fcn.004f91b1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x504864
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5048f6
push 0x8000
push ebx
call fcn.004f34ed
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x50488d
jg 0x504888
cmp ecx, 0x1000
jb 0x50488d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004fbc02
add esp, 0x10
cmp eax, 0xffffffff
je 0x5048d2
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 0x504888
jl 0x5048b9
test ecx, ecx
jne 0x50487a
push dword [ebp - 0xc]
push ebx
call fcn.004f34ed
push esi
call fcn.004f8a91
add esp, 0xc
xor ebx, ebx
jmp 0x504962
cmp byte [edi + 0x24], 0
je 0x5048e9
cmp dword [edi + 0x20], 5
jne 0x5048e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5048f4
mov ebx, dword [edi + 0x18]
jmp 0x5048f6
xor ebx, ebx
push esi
call fcn.004f8a91
pop ecx
jmp 0x504962
test ecx, ecx
jg 0x5048cb
jl 0x504909
test eax, eax
jae 0x5048cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f7195
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x504929
cmp byte [edi + 0x1c], 0
je 0x5048cb
jmp 0x50495a
push ebx
call fcn.004fe861
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5048cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x504962
cmp byte [edi + 0x1c], 0
je 0x50495f
mov ebx, dword [edi + 0x18]
jmp 0x504962
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f7195
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x505ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x505efd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x505efd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4012d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 8], esi
test esi, esi
je 0x40142f
lea ecx, [esi*8]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [esi*8]
lea eax, [ecx + ecx*2]
add eax, eax
sub edx, eax
sub edx, 2
je 0x401319
sub edx, 2
jne 0x40131c
add ecx, 2
jmp 0x40131c
add ecx, 3
mov eax, dword [ebp + 0xc]
inc ecx
cmp dword [eax], ecx
jge 0x401331
pop esi
mov dword [eax], ecx
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul esi
push edi
mov edi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
xor eax, eax
test ecx, ecx
jle 0x4013c6
dec ecx
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 4], eax
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi + 2], al
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x401362
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, esi
jge 0x401421
movzx edx, byte [ebx]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, esi
jge 0x4013db
movzx ecx, byte [ebx + 1]
jmp 0x4013dd
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi + 1], al
cmp dword [ebp - 0xc], esi
jge 0x401416
and ecx, 0xf
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef]
mov byte [edi + 2], al
jmp 0x40141a
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [edi], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0xf
push 0x20
xor ebx, ebx
mov dword [ebp - 0x13c], edi
push str.b6ea6fafeab598d20dcee0a4135d2933
mov eax, dword [edi + 0x210]
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x214], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call fcn.00408580
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x4031fb
cmp eax, 0x10
jb 0x4031d6
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
mov edi, dword [ebp - 0x13c]
jmp 0x40320d
cmp eax, 0x10
jb 0x40320d
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push 0x114
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.0057ff70
add esp, 0xc
mov dword [ebp - 0x138], 0x114
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 2
jne 0x40324c
mov ecx, edi
call fcn.00402080
jmp 0x403263
xor esi, esi
nop
test ebx, ebx
jne 0x403263
mov ecx, edi
call fcn.004026a0
inc esi
mov ebx, eax
cmp esi, 0xa
jl 0x403250
mov ecx, dword [edi + 0x214]
mov eax, 0x4bda12f7
sub ecx, dword [edi + 0x210]
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 7
xor ecx, ebp
pop edi
mov eax, edx
shr eax, 0x1f
pop esi
add eax, edx
pop ebx
call fcn.00579ec9
mov esp, ebp
pop ebp
ret
Function at 0x4091a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x1c]
push str.ce3654ede8fbcf5dd9f4fd78a0805872
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.00408580
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x409212
cmp eax, 0x10
jb 0x4091fb
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
jmp 0x409224
cmp eax, 0x10
jb 0x409224
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push 0x20
push str.db6cec943a60e5feff55e6b5c7712d4d
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.00408580
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x409278
cmp eax, 0x10
jb 0x409263
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
jmp 0x40928a
cmp eax, 0x10
jb 0x40928a
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push 0x20
push str.29ce4ce357ec38e45cedac8f8be61e71
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.00408580
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x4092e9
cmp eax, 0x10
jb 0x4092c9
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
jmp 0x4092fb
cmp eax, 0x10
jb 0x4092fb
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00408a70
push dword [ebp - 0x20]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x24]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
pop edi
sete cl
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00579ec9
mov esp, ebp
pop ebp
ret 4
Function at 0x4096e0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a4
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
mov word [ebp - 6], ax
lea eax, [ebp - 0x284]
push eax
mov dword [ebp - 0x6a4], 0
movups xmmword [ebp - 0x16], xmm0
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x284]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00586cd0
push 0x208
lea eax, [ebp - 0x694]
push 0
push eax
call fcn.0057ff70
push 0x208
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.0057ff70
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], 0
push 0
push eax
mov dword [ebp - 0x6a0], 0
mov dword [ebp - 0x69c], 0
call fcn.0057ff70
add esp, 0x30
lea eax, [ebp - 0x48c]
push 0x104
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x698]
push eax
push 0x104
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4097f1
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.00401a90
add esp, 0xc
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x7c], 0
jne 0x40980c
xor eax, eax
jmp 0x40981b
lea eax, [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409812
sub eax, edx
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.00408580
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00579ec9
mov esp, ebp
pop ebp
ret 4