joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457e42
Capabilities:
Terminate process

Disassembly:
push 8
push 0x487218
call fcn.00456d70
push 8
call fcn.0045620e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x497e38], esi
jne 0x457e76
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x497e34], esi
mov al, byte [ebp + 0x10]
mov byte [0x497e30], al
cmp dword [ebp + 0xc], edi
jne 0x457ec0
cmp dword [0x4995ac], edi
je 0x457eb0
mov eax, dword [0x4995a8]
sub eax, 4
mov dword [0x4995a8], eax
cmp eax, dword [0x4995ac]
jb 0x457eb0
mov eax, dword [eax]
cmp eax, edi
je 0x457e91
call eax
jmp 0x457e91
push 0x4950a0
mov eax, 0x495098
call fcn.00457dc0
pop ecx
push 0x4950ac
mov eax, 0x4950a4
call fcn.00457dc0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x457ef1
cmp dword [ebp + 0x10], edi
jne 0x457eff
mov dword [0x497e38], esi
push dword [ebp + 8]
call fcn.00457d7e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x457efe
push 8
call fcn.00456159
pop ecx
ret
call fcn.00456dab
ret
Function at 0x45ac38
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 0x45ac66
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 0x45ac6d
cmp ebx, dword [eax + 4]
jae 0x45ac6d
xor eax, eax
jmp 0x45ae5d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45ac7e
xor eax, eax
inc eax
jmp 0x45ae5c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45ac94
cmp ecx, edx
jae 0x45add9
cmp dword [eax + 4], 0
je 0x45ac9d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45ac85
cmp dword [ebp + 8], 0
je 0x45acbf
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45add9
cmp eax, esi
jae 0x45add9
mov eax, dword [0x497e48]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45ace4
cmp dword [esi*4 + 0x497e50], edi
je 0x45addd
inc esi
cmp esi, eax
jl 0x45acd2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45ae59
cmp dword [ebp - 8], 0x1000000
jne 0x45ae59
test byte [ebp - 0xc], 0xcc
je 0x45ad62
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45ae59
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45ae59
cmp word [eax + 0x18], 0x10b
jne 0x45ae59
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45ae59
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45ad62
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45ad62
test byte [ecx + 0x27], 0x80
jne 0x45add9
push 1
push 0x497e90
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45ac76
mov ecx, dword [0x497e48]
test ecx, ecx
mov edx, ecx
jle 0x45ad96
lea eax, [ecx*4 + 0x497e4c]
cmp dword [eax], edi
je 0x45ad96
dec edx
sub eax, 4
test edx, edx
jg 0x45ad8a
test edx, edx
jne 0x45adc7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45ada3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45adbb
lea eax, [edx*4 + 0x497e50]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45ada9
cmp ecx, 0x10
jge 0x45adc7
inc ecx
mov dword [0x497e48], ecx
push 0
push 0x497e90
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45ac76
xor eax, eax
jmp 0x45ae5c
test esi, esi
jle 0x45ac76
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x497e90
call ebx
test eax, eax
jne 0x45ac76
cmp dword [esi*4 + 0x497e50], edi
je 0x45ae33
mov eax, dword [0x497e48]
lea esi, [eax - 1]
test esi, esi
jl 0x45ae21
cmp dword [esi*4 + 0x497e50], edi
je 0x45ae1d
dec esi
jns 0x45ae11
test esi, esi
jge 0x45ae31
cmp eax, 0x10
jge 0x45ae2c
inc eax
mov dword [0x497e48], eax
lea esi, [eax - 1]
jmp 0x45ae33
je 0x45ae4b
xor ecx, ecx
test esi, esi
jl 0x45ae4b
lea eax, [ecx*4 + 0x497e50]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45ae39
push 0
push 0x497e90
call ebx
jmp 0x45ac76
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45afb5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x495f34]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x496560]
je 0x45afec
inc eax
cmp eax, 0x13
jb 0x45afdd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x496560]
jne 0x45b10f
mov eax, dword [0x497c64]
cmp eax, 1
je 0x45b0ea
cmp eax, edx
jne 0x45b01c
cmp dword [0x495f64], 1
je 0x45b0ea
cmp ecx, 0xfc
je 0x45b10f
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45b052
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00459c10
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004556d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45b086
mov eax, edi
push eax
call fcn.004556d0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x48726c
push edi
call fcn.00453460
add esp, 0x10
push edi
call fcn.004556d0
push dword [esi + 0x496564]
mov ebx, eax
call fcn.004556d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004535d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00459c10
push edi
push ebx
call fcn.00459c20
push 0x487268
push ebx
call fcn.00459c20
push dword [esi + 0x496564]
push ebx
call fcn.00459c20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004649a8
add esp, 0x2c
jmp 0x45b10f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x496564]
push dword [esi]
call fcn.004556d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004530e5
add ebp, 0x90
leave
ret
Function at 0x45bad3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x495f34]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x45bb0f
xor eax, eax
jmp 0x45bc79
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x499240]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45bb4d
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00464d29
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45bbe7
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x45bc4a
jmp 0x45bb71
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x45bbac
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45bb9d
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x45bb7d
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45bc0b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x45bc14
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45bb6f
jmp 0x45bc14
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45bc0b
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x45bc14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x45bc74
cmp dword [ebp - 0x68], eax
je 0x45bc47
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x45bc3c
call fcn.00456dbc
mov dword [eax], 9
call fcn.00456dc5
mov dword [eax], esi
jmp 0x45bc6f
push dword [ebp - 0x68]
call fcn.00456dce
pop ecx
jmp 0x45bc6f
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45bc5c
cmp byte [edi], 0x1a
jne 0x45bc5c
xor eax, eax
jmp 0x45bc77
call fcn.00456dbc
mov dword [eax], 0x1c
call fcn.00456dc5
and dword [eax], 0
or eax, 0xffffffff
jmp 0x45bc77
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004530e5
add ebp, 0x3a4
leave
ret
Function at 0x4649a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x498080], ebx
push esi
push edi
jne 0x464a28
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x464a63
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x498080], eax
je 0x464a63
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x498084], eax
call esi
cmp dword [0x497df8], 2
mov dword [0x498088], eax
jne 0x464a28
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x498090], eax
je 0x464a28
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49808c], eax
mov eax, dword [0x49808c]
test eax, eax
je 0x464a6d
call eax
test eax, eax
je 0x464a54
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x498090]
test eax, eax
je 0x464a54
test byte [ebp - 8], 1
jne 0x464a6d
cmp dword [0x497e04], 4
jb 0x464a67
or byte [ebp + 0x12], 0x20
jmp 0x464a8c
xor eax, eax
jmp 0x464a9c
or byte [ebp + 0x12], 4
jmp 0x464a8c
mov eax, dword [0x498084]
test eax, eax
je 0x464a8c
call eax
mov ebx, eax
test ebx, ebx
je 0x464a8c
mov eax, dword [0x498088]
test eax, eax
je 0x464a8c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x498080]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4651e4
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 0x4653ba
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x499240]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4653ba
test cl, 0x48
je 0x46524f
cmp byte [eax + 5], 0xa
je 0x46524f
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 0x4652a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x465289
call fcn.00456dbc
mov dword [eax], 9
call fcn.00456dc5
mov dword [eax], esi
jmp 0x465299
cmp eax, 0x6d
je 0x4653ba
push eax
call fcn.00456dce
pop ecx
or eax, 0xffffffff
jmp 0x4653bc
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4653b5
test eax, eax
je 0x4652c8
cmp byte [ebx], 0xa
jne 0x4652c8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4652d1
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 0x4653af
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46539f
cmp al, 0xd
je 0x465303
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x465391
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46531d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x465318
add dword [ebp + 0x10], 2
jmp 0x465371
mov dword [ebp + 0x10], eax
jmp 0x46538d
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 0x465345
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46538d
cmp dword [ebp - 0xc], 0
je 0x46538d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x465366
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x465371
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x465390
cmp ebx, dword [ebp + 0xc]
jne 0x465376
cmp byte [ebp - 1], 0xa
jne 0x465376
mov byte [ebx], 0xa
jmp 0x465390
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00464d29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x465391
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4652e7
jmp 0x4653af
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4653af
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 0x4653bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x466eb5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x48cdb0
call fcn.00456d70
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x498094], edi
jne 0x466ef9
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x466ee4
mov dword [0x498094], ebx
jmp 0x466ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x466ef9
mov dword [0x498094], 2
mov eax, dword [0x498094]
cmp eax, ebx
jne 0x466f19
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x466fdc
cmp eax, 2
je 0x466f22
cmp eax, edi
jne 0x466f4a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x466f35
mov eax, dword [0x498004]
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 0x466f51
xor eax, eax
jmp 0x466fdc
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004535d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x466f84
cmp esi, edi
jne 0x466f9a
push dword [ebp - 0x20]
call fcn.0045320b
pop ecx
mov esi, eax
cmp esi, edi
je 0x466f4a
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 0x466fcd
cmp dword [ebp + 0x14], edi
jne 0x466fb7
push edi
push edi
jmp 0x466fbd
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 0x466fd9
push esi
call fcn.004530f3
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00456dab
ret
Function at 0x466fe5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x48cdc0
call fcn.00456d70
xor esi, esi
cmp dword [0x498098], esi
jne 0x467029
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x467014
mov dword [0x498098], edi
jmp 0x467029
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x467029
mov dword [0x498098], 2
mov eax, dword [0x498098]
cmp eax, 2
je 0x46710a
cmp eax, esi
je 0x46710a
cmp eax, 1
jne 0x46706e
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x467057
mov eax, dword [0x498004]
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 0x467075
xor eax, eax
jmp 0x46711c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004535d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4670ab
cmp edi, esi
jne 0x4670c6
lea eax, [ebx + ebx]
push eax
call fcn.0045320b
pop ecx
mov edi, eax
cmp edi, esi
je 0x46706e
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 0x4670f9
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4670e3
push esi
push esi
jmp 0x4670e9
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 0x467105
push edi
call fcn.004530f3
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x46711c
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.00456dab
ret
Function at 0x4683d1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004535d0
mov eax, dword [0x495f34]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045c0f7
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x468506
push 2
push esi
push dword [ebp + 8]
call fcn.0045c0f7
add esp, 0xc
cmp eax, ebx
je 0x468506
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4684a6
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00462a60
push 0x8000
push dword [ebp + 8]
call fcn.004687da
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x46845c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0045bad3
add esp, 0xc
cmp eax, 0xffffffff
je 0x46847c
sub edi, eax
test edi, edi
jg 0x468454
jmp 0x468494
call fcn.00456dc5
cmp dword [eax], 5
jne 0x468491
call fcn.00456dbc
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004687da
pop ecx
pop ecx
jmp 0x4684ee
jge 0x4684ee
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045c0f7
push dword [ebp + 8]
call fcn.00464f65
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 0x4684ee
call fcn.00456dbc
mov dword [eax], 0xd
call fcn.00456dc5
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.0045c0f7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x468508
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004530e5
leave
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x402ee4
pop dword [ebp - 0x34]
mov eax, 0x402ee4
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xc247064b
sub dword [ebp - 0x44], 0x73f4c100
mov dword [ebp - 0x40], 0xdf38e9b9
sub dword [ebp - 0x40], 0xad059d74
mov dword [ebp - 0x3c], 0xf766994d
sub dword [ebp - 0x3c], 0xab1a551f
mov dword [ebp - 0x38], 0x9e53d9cc
add dword [ebp - 0x38], 0x61ac2634
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x902967c0
sub dword [ebp - 0x44], 0x1bb6fe6a
mov dword [ebp - 0x40], 0xfe7c1d8c
add dword [ebp - 0x40], 0x42f043e9
mov dword [ebp - 0x3c], 0x4c9bd0f1
add dword [ebp - 0x3c], 0x16d39b7b
mov dword [ebp - 0x38], 0xa62676b5
sub dword [ebp - 0x38], 0xa62676b5
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x9e759d25
sub eax, 0x9e351c25
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x343db
push 0
call eax
mov ecx, 0xaae84c66
sub ecx, 0xaae80f94
mov edx, eax
mov esi, 0xd45f2ef2
add esi, 0x2be7b50e
add esi, dword [ebp - 0x34]
mov ebx, 0xcf2dc14a
sub ebx, 0x6f6591cf
sub dword [ebp - 4], 0x55101503
mov edi, dword [esi]
add dword [ebp - 0xc], ecx
add edi, ebx
add dword [ebp - 0x14], eax
mov dword [edx], edi
xor dword [ebp - 8], 0xfbcb6496
add edx, 0x934ce150
sub edx, 0x934ce14c
add esi, 0x1020f21a
sub esi, 0x1020f216
loop 0x402ffc
add eax, 0xe61b
xor ebx, ebx
add ebx, eax
add eax, 0x8c1ff00c
add eax, 0x73e00ff9
mov ecx, 0xe164285a
sub ecx, 0xe124285a
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4015b0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], ebx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
lea ebx, [eax + 0x10]
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ecx*4 + 0x409c88]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ecx*4 + 0x409c88]
add ecx, eax
xor edx, ecx
add edi, edx
sub ebx, 1
jne 0x4015c6
mov ebx, dword [ebp - 4]
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e27
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401e66
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e66
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e66
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e66
cmp dword [ecx + 0x74], 0xe
jbe 0x401e66
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret