joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c61d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ad8
cmp si, word [0x4d5a00]
jb 0x40c550
cmp si, word [0x4d5c00]
ja 0x40c550
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c550
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d5a00]
jae 0x40c52a
mov edi, ebx
dec edi
jmp 0x40c54b
cmp si, word [ebx*8 + 0x4d5a00]
jbe 0x40c53a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c54b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d5a04]
call fcn.0040c3d8
jmp 0x40c550
cmp edi, dword [ebp - 8]
jae 0x40c514
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c5ff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c5ff
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a648
push dword [ebp - 0x160]
push 0x40c638
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a648
push dword [ebp - 0x164]
push 0x40c648
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a648
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c624
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409b38
ret
Function at 0x40c7d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c8d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dbc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dbc28]
jne 0x40c81c
mov eax, esi
mov edx, 0x4dbc2a
mov ecx, 0x55
call fcn.0040a648
push 0x4dbc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c8be
push 0x4dbc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409ad8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c88b
cmp byte [0x4dbc0c], 0
je 0x40c850
mov edx, esi
mov eax, ebx
call fcn.0040c6b4
jmp 0x40c88b
mov edx, esi
mov eax, ebx
call fcn.0040c4b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c88b
cmp dword [esi], 0
je 0x40c874
mov eax, esi
mov edx, 0x40c8ec
call fcn.0040a7a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c4b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a7a0
push 0x4dbc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dbc28], bx
mov eax, dword [esi]
call fcn.0040a5a4
mov ecx, eax
mov eax, 0x4dbc2a
mov edx, 0xaa
call fcn.0040c338
push 0x4dbc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8db
lea eax, [ebp - 4]
call fcn.00409ad8
ret
Function at 0x40cb04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bbc
xor eax, eax
push ebp
push 0x40cd29
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cb44
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cb5e
mov eax, dword [ebp - 4]
call fcn.0040a5a4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c338
cmp word [ebp - 0x21a], 0
je 0x40cd13
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cda8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cddc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cd13
xor eax, eax
push ebp
push 0x40cd0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c914
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cc9c
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a60c
jmp 0x40cce7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ce1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cce7
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ce1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a60c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd13
cmp dword [ebp - 8], 0
je 0x40cd02
mov eax, dword [ebp - 8]
call fcn.00406e20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd30
lea eax, [ebp - 4]
call fcn.00409ad8
ret
Function at 0x40d018
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bbc
xor eax, eax
push ebp
push 0x40d0d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a648
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a7f8
mov eax, dword [ebx]
call fcn.0040cee0
test al, al
jne 0x40d0b5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a648
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a7f8
mov eax, dword [ebx]
call fcn.0040cee0
test al, al
jne 0x40d0b5
mov eax, ebx
call fcn.00409ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0df
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409b38
lea eax, [ebp - 4]
call fcn.00409ad8
ret

Function at 0x40eb58
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41dcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41dd09
test eax, edx
je 0x41dd0c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41dcc7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41dcee
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41dcef
add ecx, 4
js 0x41dcdf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41dcec
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41dcee
xor eax, eax
ret
test eax, eax
je 0x41dd18
test edx, edx
jne 0x41dcb8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41ec50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41ec7d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4226ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4226e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409c60
jmp 0x4226ee
mov eax, ebx
mov edx, esi
call fcn.00409eb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4226f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42271a
movzx eax, word [esp]
jmp 0x42271c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423a18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423b3d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423820
mov esi, eax
mov eax, dword [0x4d8974]
cmp byte [eax], 0
je 0x423ae5
mov eax, dword [0x4d87cc]
call fcn.0040765c
call fcn.00406f58
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4239e8]
call fcn.0040bbec
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x423b58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x423b21
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d8794]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc624]
call fcn.0040bfdc
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423b44
lea eax, [ebp - 4]
mov edx, dword [0x4239e8]
call fcn.0040bd10
ret
Function at 0x424bdc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424cdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409f00
lea eax, [ebp - 4]
call fcn.0040a060
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5a4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x424cc6
mov eax, ebx
call fcn.00406e04
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x424cbf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5a4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x424ca9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x424cf0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x424ca9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424cc6
mov eax, dword [ebp - 0x10]
call fcn.00406e20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424ce3
lea eax, [ebp - 4]
call fcn.00409ad8
ret

Function at 0x425a84
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409fa8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040eb38
mov edi, eax
cmp edi, 0x104
jbe 0x425a2f
mov eax, edi
add eax, eax
call fcn.00406e04
mov esi, eax
jmp 0x425a31
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040eb38
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x425a6a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x425a54
mov eax, esp
cmp esi, eax
je 0x425a77
mov eax, esi
call fcn.00406e20
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x425ab0
cmp bl, 0
je 0x425aac
cmp bl, 0x41
jl 0x425aa7
cmp bl, 0x5a
jg 0x425aa7
or bl, 0x20
xor al, bl
inc esi
jmp 0x425a8b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4259f0

Function at 0x42630c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a648
add esp, 0x800
pop ebx
ret
Function at 0x47d5f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x47d5f8
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4afe10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4afeae
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4afe72
cmp byte [ebx + 0x11], 0
jne 0x4afe72
cmp byte [ebx + 0x24], 0
jne 0x4afe72
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4afe93
lea edx, [ebp - 4]
mov eax, dword [0x4d8930]
call fcn.0040eaa4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48aae4]
call fcn.00423b68
call fcn.004091d4
jmp 0x4afe93
lea edx, [ebp - 8]
mov eax, dword [0x4d8930]
call fcn.0040eaa4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48aae4]
call fcn.00423b68
call fcn.004091d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afeb5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409b38
ret

Function at 0x4b06c8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b0716
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004afc90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b072f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b0738
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004afc90
dec esi
jne 0x4b075a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4cfc60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bcc
xor eax, eax
push ebp
push 0x4cfd21
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.0040a2a8
push eax
call sub.kernel32.dll__lopen
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4cfca1
call fcn.00425c44
xor eax, eax
push ebp
push 0x4cfd04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4cfcc6
call fcn.00425c44
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.0040a2c0
push ebx
mov eax, esi
call fcn.0040a058
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll__lread
cmp eax, 0xffffffff
jne 0x4cfced
call fcn.00425c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfd0b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll__lclose
ret
Function at 0x5c50aa3e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c50d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5c50ac09
xor ebx, ebx
cmp dword [eax], ebx
je 0x5c50ac09
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5c50ac09
cmp dword [eax], ebx
je 0x5c50ac09
mov eax, dword [esi + 8]
sub eax, ebx
je 0x5c50aaa3
sub eax, 1
jne 0x5c50aaaa
push dword [esi + 0x20]
call fcn.5c50a273
push 0x5c502580
push esi
call fcn.5c519fac
pop ecx
pop ecx
jmp 0x5c50aaaa
push 0x37
call fcn.5c50b081
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
mov dword [ebp - 0x94], edi
cmp edi, 0xffffffff
je 0x5c50ac1a
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x98], ebx
cmp dword [ecx], ebx
jbe 0x5c50ac09
mov eax, dword [esi + 0x1c]
mov ecx, ebx
push 0
push 0
mov eax, dword [eax + 0xc]
push dword [eax + ecx*4]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50ac1a
push edi
mov ecx, esi
call fcn.5c50b0d4
push 0
mov ecx, esi
call fcn.5c50b0d4
push 0
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50ac1a
mov eax, dword [esi + 0x18]
mov ecx, ebx
shl ecx, 2
mov eax, dword [eax + 0xc]
add eax, ecx
xor ecx, ecx
push ecx
push 0x8000080
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
je 0x5c50ac1a
and dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x88]
push 0
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c50abdf
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], 0
je 0x5c50abcd
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
push dword [ebp - 0x88]
call fcn.5c50b059
add edi, dword [ebp - 0x88]
lea eax, [ebp - 0x88]
push 0
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5c50ab8a
mov ebx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x94]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, dword [ebp - 0x8c]
inc ebx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
cmp ebx, dword [eax]
jb 0x5c50aad9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50c960
leave
ret
mov eax, 0x88760361
jmp 0x5c50ac0b
Function at 0x5c5144e6
Capabilities:
Encode data using xor

Disassembly:
call 0x5c51445f
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x5c51448f
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x5c5144ab
xor edx, 0
jmp 0x5c5144b6
xor edx, edx
jmp 0x5c5144cd
jmp 0x5c5144d9
xor eax, eax
push 0x8427d7c0
call 0x5c5144e6
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x5c514522
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x5c5144fb
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x5c514539
add eax, 0
jno 0x5c51453e
add esi, 0
ret 0x10

Function at 0x5c5152a7
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x5c5152c9
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x5c51546b
cmp edi, dword [ebp + 0x10]
jb 0x5c51546b
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.5c514d93
inc edi
jmp 0x5c515352
jmp 0x5c51535f
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c514d93
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c514d93
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x5c5153b3
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x5c515397
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.5c5153e1
add dword [eax], 0x39
jle 0x5c5153bd
sub al, 0xf5
mov ch, al
call fcn.5c5153f6
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10