joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6aab
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4c6ad9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4c6ae0
cmp ebx, dword [eax + 4]
jae 0x4c6ae0
xor eax, eax
jmp 0x4c6cd0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4c6af1
xor eax, eax
inc eax
jmp 0x4c6ccf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4c6b07
cmp ecx, edx
jae 0x4c6c4c
cmp dword [eax + 4], 0
je 0x4c6b10
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4c6af8
cmp dword [ebp + 8], 0
je 0x4c6b32
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4c6c4c
cmp eax, esi
jae 0x4c6c4c
mov eax, dword [0x53d738]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4c6b57
cmp dword [esi*4 + 0x53d740], edi
je 0x4c6c50
inc esi
cmp esi, eax
jl 0x4c6b45
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4c6ccc
cmp dword [ebp - 8], 0x1000000
jne 0x4c6ccc
test byte [ebp - 0xc], 0xcc
je 0x4c6bd5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4c6ccc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4c6ccc
cmp word [eax + 0x18], 0x10b
jne 0x4c6ccc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4c6ccc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4c6bd5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4c6bd5
test byte [ecx + 0x27], 0x80
jne 0x4c6c4c
push 1
push 0x53d780
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x4c6ae9
mov ecx, dword [0x53d738]
test ecx, ecx
mov edx, ecx
jle 0x4c6c09
lea eax, [ecx*4 + 0x53d73c]
cmp dword [eax], edi
je 0x4c6c09
dec edx
sub eax, 4
test edx, edx
jg 0x4c6bfd
test edx, edx
jne 0x4c6c3a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4c6c16
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4c6c2e
lea eax, [edx*4 + 0x53d740]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4c6c1c
cmp ecx, 0x10
jge 0x4c6c3a
inc ecx
mov dword [0x53d738], ecx
push 0
push 0x53d780
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x4c6ae9
xor eax, eax
jmp 0x4c6ccf
test esi, esi
jle 0x4c6ae9
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x53d780
call ebx
test eax, eax
jne 0x4c6ae9
cmp dword [esi*4 + 0x53d740], edi
je 0x4c6ca6
mov eax, dword [0x53d738]
lea esi, [eax - 1]
test esi, esi
jl 0x4c6c94
cmp dword [esi*4 + 0x53d740], edi
je 0x4c6c90
dec esi
jns 0x4c6c84
test esi, esi
jge 0x4c6ca4
cmp eax, 0x10
jge 0x4c6c9f
inc eax
mov dword [0x53d738], eax
lea esi, [eax - 1]
jmp 0x4c6ca6
je 0x4c6cbe
xor ecx, ecx
test esi, esi
jl 0x4c6cbe
lea eax, [ecx*4 + 0x53d740]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4c6cac
push 0
push 0x53d780
call ebx
jmp 0x4c6ae9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c8872
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4c8a46
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x53e640]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4c8a46
test cl, 0x48
je 0x4c88dd
cmp byte [eax + 5], 0xa
je 0x4c88dd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4c892f
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4c8917
call fcn.004c1cff
mov dword [eax], 9
call fcn.004c1d08
mov dword [eax], esi
jmp 0x4c8927
cmp eax, 0x6d
je 0x4c8a46
push eax
call fcn.004c1d11
pop ecx
or eax, 0xffffffff
jmp 0x4c8a48
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4c8a41
test eax, eax
je 0x4c8956
cmp byte [ebx], 0xa
jne 0x4c8956
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4c895f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4c8a3b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4c8a2b
cmp al, 0xd
je 0x4c8991
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4c8a1d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4c89ab
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4c89a6
add dword [ebp + 0x10], 2
jmp 0x4c89ff
mov dword [ebp + 0x10], eax
jmp 0x4c8a19
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4c89d3
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4c8a19
cmp dword [ebp - 0xc], 0
je 0x4c8a19
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4c89f4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4c89ff
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4c8a1c
cmp ebx, dword [ebp + 0xc]
jne 0x4c8a04
cmp byte [ebp - 1], 0xa
jne 0x4c8a04
mov byte [ebx], 0xa
jmp 0x4c8a1c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c8674
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4c8a1d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4c8975
jmp 0x4c8a3b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4c8a3b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4c8a48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cd6f9
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4fed88
call fcn.004c46d4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x53d928], edi
jne 0x4cd73d
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cd728
mov dword [0x53d928], ebx
jmp 0x4cd73d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x4cd73d
mov dword [0x53d928], 2
mov eax, dword [0x53d928]
cmp eax, ebx
jne 0x4cd75d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x4cd820
cmp eax, 2
je 0x4cd766
cmp eax, edi
jne 0x4cd78e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4cd779
mov eax, dword [0x53d8ac]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4cd795
xor eax, eax
jmp 0x4cd820
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004c0220
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4cd7c8
cmp esi, edi
jne 0x4cd7de
push dword [ebp - 0x20]
call fcn.004c0d29
pop ecx
mov esi, eax
cmp esi, edi
je 0x4cd78e
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x4cd811
cmp dword [ebp + 0x14], edi
jne 0x4cd7fb
push edi
push edi
jmp 0x4cd801
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4cd81d
push esi
call fcn.004c0d3b
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004c470f
ret
Function at 0x4cd829
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4fed98
call fcn.004c46d4
xor esi, esi
cmp dword [0x53d92c], esi
jne 0x4cd86d
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cd858
mov dword [0x53d92c], edi
jmp 0x4cd86d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x4cd86d
mov dword [0x53d92c], 2
mov eax, dword [0x53d92c]
cmp eax, 2
je 0x4cd94e
cmp eax, esi
je 0x4cd94e
cmp eax, 1
jne 0x4cd8b2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4cd89b
mov eax, dword [0x53d8ac]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4cd8b9
xor eax, eax
jmp 0x4cd960
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004c0220
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4cd8ef
cmp edi, esi
jne 0x4cd90a
lea eax, [ebx + ebx]
push eax
call fcn.004c0d29
pop ecx
mov edi, eax
cmp edi, esi
je 0x4cd8b2
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cd93d
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4cd927
push esi
push esi
jmp 0x4cd92d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4cd949
push edi
call fcn.004c0d3b
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4cd960
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004c470f
ret
Function at 0x4cdaa6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004c0220
mov eax, dword [0x50db60]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004c8674
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4cdbd9
push 2
push esi
push dword [ebp + 8]
call fcn.004c8674
add esp, 0xc
cmp eax, ebx
je 0x4cdbd9
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4cdb79
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004c47e0
push 0x8000
push dword [ebp + 8]
call fcn.004ce431
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4cdb2f
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004c6832
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cdb4f
sub edi, eax
test edi, edi
jg 0x4cdb27
jmp 0x4cdb67
call fcn.004c1d08
cmp dword [eax], 5
jne 0x4cdb64
call fcn.004c1cff
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004ce431
pop ecx
pop ecx
jmp 0x4cdbc1
jge 0x4cdbc1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c8674
push dword [ebp + 8]
call fcn.004cc5bf
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4cdbc1
call fcn.004c1cff
mov dword [eax], 0xd
call fcn.004c1d08
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004c8674
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4cdbdb
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004bff5b
leave
ret
Function at 0x4ce8eb
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4ce904
or eax, 0xffffffff
jmp 0x4ce965
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4ce961
push 0x3d
push esi
call fcn.004ceaeb
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4ce961
cmp esi, eax
je 0x4ce961
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x53d444]
sete cl
cmp eax, dword [0x53d448]
mov dword [ebp - 8], ecx
jne 0x4ce947
mov edi, eax
call fcn.004ce88a
mov dword [0x53d444], eax
cmp eax, ebx
jne 0x4ce9a0
cmp dword [ebp + 0xc], ebx
je 0x4ce969
cmp dword [0x53d44c], ebx
je 0x4ce969
call fcn.004ce07b
test eax, eax
je 0x4ce9a0
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4ce972
xor eax, eax
jmp 0x4ce964
push 4
call fcn.004c0d29
cmp eax, ebx
pop ecx
mov dword [0x53d444], eax
je 0x4ce961
mov dword [eax], ebx
cmp dword [0x53d44c], ebx
jne 0x4ce9a0
push 4
call fcn.004c0d29
cmp eax, ebx
pop ecx
mov dword [0x53d44c], eax
je 0x4ce961
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x53d444]
call fcn.004ce83d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4cea01
cmp dword [esi], ebx
je 0x4cea01
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004c0d3b
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4ce9e4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4cea42
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4ce9db
mov eax, edi
shl eax, 2
push eax
push dword [0x53d444]
call fcn.004c267e
cmp eax, ebx
pop ecx
pop ecx
je 0x4cea42
jmp 0x4cea3d
cmp dword [ebp - 8], ebx
jne 0x4ceaad
cmp edi, ebx
jge 0x4cea10
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x53d444]
call fcn.004c267e
cmp eax, ebx
pop ecx
pop ecx
je 0x4ce961
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x53d444], eax
cmp dword [ebp + 0xc], ebx
je 0x4cea97
push dword [ebp - 4]
call fcn.004c2290
inc eax
inc eax
push eax
call fcn.004c0d29
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4cea97
push dword [ebp - 4]
push esi
call fcn.004c23b0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4cea90
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004c0d3b
pop ecx
cmp dword [ebp - 8], ebx
je 0x4ceaa5
push dword [ebp - 4]
call fcn.004c0d3b
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4ce964
push dword [ebp - 4]
call fcn.004c0d3b
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4ce96e
Function at 0x40b190
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52299e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x40b354
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], ch
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x40b295
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, ch
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop dword [eax + eax]
cmp dword [0x56eb70], 0x10
mov ecx, 0x56eb5c
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x56eb5c]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0040b8f0
inc esi
cmp esi, 4
jl 0x40b260
mov edx, dword [ebp - 0x1c]
xor esi, esi
mov ch, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b200
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40b354
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
cmp esi, 3
jge 0x40b2d6
push eax
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004fec40
mov dl, byte [ebp - 0x12]
add esp, 0xc
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x40b2d9
mov dl, byte [ebp - 0xf]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
lea eax, [esi + 1]
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x40b340
xor esi, esi
cmp dword [0x56eb70], 0x10
mov ecx, 0x56eb5c
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x56eb5c]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0040b8f0
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40b313
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x40b354
push 0x3d
mov ecx, edi
call fcn.0040b8f0
sub dword [ebp + 8], 1
jne 0x40b345
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522c0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004e535d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ca86
push eax
push esi
call fcn.004e569e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004e4c40
int3
Function at 0x414d80
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5242a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x18], 1
xor edx, edx
mov byte [ebp - 0x10], 0xc2
mov edi, 0xf
mov byte [ebp - 0xf], 0xd3
mov byte [ebp - 0xe], 0xbb
mov al, byte [ebp - 0x10]
mov dword [ebp - 0x14], edx
nop dword [eax]
mov al, byte [ebp + edx - 0x10]
mov ecx, edx
and ecx, edi
mov byte [ebp - 0xd], al
cmp ecx, edi
mov eax, 0xec92e0b9
mov edx, 0x210f6849
cmovae ecx, edi
shl ecx, 2
call fcn.00522040
mov edx, dword [ebp - 0x14]
and al, 0xf
lea ecx, [edx - 0x47]
xor al, cl
xor al, byte [ebp - 0xd]
mov byte [ebp + edx - 0x10], al
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 3
jb 0x414e00
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x10]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.00502ab0
mov edi, eax
add esp, 8
test edi, edi
je 0x414ec3
push 2
push 0
push edi
call fcn.0050688c
push edi
call fcn.0050263b
push 0
push 0
push edi
mov dword [ebp - 0x14], eax
call fcn.0050688c
mov ecx, dword [esi + 0x10]
add esp, 0x1c
mov eax, dword [ebp - 0x14]
cmp eax, ecx
ja 0x414e97
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x414e8e
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x414ea6
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0048d300
mov eax, dword [ebp - 0x14]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x414eb0
mov ecx, dword [esi]
push edi
push eax
push 1
push ecx
call fcn.0050b330
push edi
call fcn.0050633e
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x414ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52419d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov dword [ebp - 4], 0
xor edi, edi
mov byte [ebp - 0xf], 0xc2
xor edx, edx
mov byte [ebp - 0xe], 0xd3
mov esi, 0xf
mov byte [ebp - 0xd], 0xbb
mov al, byte [ebp - 0xf]
mov dword [ebp - 0x14], edx
push ebx
mov bl, byte [ebp + edx - 0xf]
mov ecx, edx
and ecx, esi
mov eax, 0xec92e0b9
cmp ecx, esi
mov edx, 0x210f6849
cmovae ecx, esi
shl ecx, 2
call fcn.00522040
mov edx, dword [ebp - 0x14]
mov cl, al
and cl, 0xf
lea eax, [edx - 0x47]
xor cl, al
xor cl, bl
mov byte [ebp + edx - 0xf], cl
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 3
jb 0x414f30
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xf]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.00502ab0
add esp, 8
mov esi, eax
pop ebx
test esi, esi
je 0x414fa5
push 2
push 0
push esi
call fcn.0050688c
push esi
call fcn.0050263b
push esi
mov edi, eax
call fcn.0050633e
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret