joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411190
cmp edx, dword [eax]
je 0x40d78b
add eax, 8
inc ecx
cmp eax, 0x411220
jl 0x40d77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411190]
jne 0x40d8b9
mov eax, dword [0x411bb0]
cmp eax, 1
je 0x40d893
test eax, eax
jne 0x40d7bc
cmp dword [0x4110e4], 1
je 0x40d893
cmp edx, 0xfc
je 0x40d8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41045c
push edi
call fcn.0040ef00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e680
lea eax, [ebp - 0xa0]
push 0x41043c
push eax
call fcn.0040e680
push dword [esi + 0x411194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ee75
add esp, 0x2c
pop edi
jmp 0x40d8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x411194]
push 0
push eax
push dword [esi]
call fcn.0040e490
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]
pop esi
leave
ret
Function at 0x411019
Capabilities:
Terminate process

Disassembly:
jmp 0x411e10
jmp fcn.00412580
cmp ecx, dword [0x418010]
jne 0x411e1a
repz ret
jmp 0x4110a5
Function at 0x411790
Capabilities:
Check for peb beingdebugged flag
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
movzx eax, byte ds:[eax + 2]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4117f1
mov esi, esp
push str.________nWARNING_n________n
call dword [sym.imp.MSVCR100D.dll_printf]
add esp, 4
cmp esi, esp
call fcn.0041116d
mov esi, esp
push 0
call dword [sym.imp.MSVCR100D.dll_exit]
cmp esi, esp
call fcn.0041116d
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041116d
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x652630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x192000]
push edi
or ebp, 0xffffffff
jmp 0x652652
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x652659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x652648
mov eax, 1
add ebx, ebx
jne 0x65266b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x65267c
jne 0x65269b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65269b
dec eax
add ebx, ebx
jne 0x652688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x652660
add ebx, ebx
jne 0x652697
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6526ed
xor ecx, ecx
sub eax, 3
jb 0x6526b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x652722
sar eax, 1
mov ebp, eax
jmp 0x6526be
add ebx, ebx
jne 0x6526be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65268c
inc ecx
add ebx, ebx
jne 0x6526cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65268c
add ebx, ebx
jne 0x6526d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6526ce
jne 0x6526ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6526ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x65270c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6526fe
jmp 0x65264e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x65270c
add edi, ecx
jmp 0x65264e
pop esi
mov edi, esi
mov ecx, 0xc23a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x65272a
cmp byte [edi], 0x15
jne 0x65272a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x65272f
lea edi, [esi + 0x23e000]
mov eax, dword [edi]
or eax, eax
je 0x6527a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x259e84]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25a014]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x65275c
mov ecx, edi
jns 0x65278b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25a018]
or eax, eax
je 0x6527a1
mov dword [ebx], eax
add ebx, 4
jmp 0x652779
call dword [esi + 0x25a028]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6527d8
cmp al, 0xef
ja 0x6527cb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6527ad
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6527ba
mov ebp, dword [esi + 0x25a01c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x65280c
sub esp, 0xffffff80
jmp 0x55d7b8
Function at 0xc36e94
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36e94
ret

Function at 0x4260f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0042617b
jae 0x426106
xor ecx, ecx
call fcn.0042617b
jae 0x426135
xor eax, eax
call fcn.0042617b
jae 0x426145
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0042617b
adc al, al
jae 0x426127
jne 0x426171
stosb byte es:[edi], al
jmp 0x426109
call fcn.00426187
sub ecx, ebx
jne 0x42614e
call fcn.00426185
jmp 0x42616d
lodsb al, byte [esi]
shr eax, 1
je 0x426197
adc ecx, ecx
jmp 0x42616a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00426185
cmp eax, 0x7d00
jae 0x42616a
cmp ah, 5
jae 0x42616b
cmp eax, 0x7f
ja 0x42616c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x426109
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x582c1779
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x76c32f3c
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40467c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407768
test esi, esi
jne 0x4046b4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004078a4
jmp 0x4046d2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404560
mov edi, eax
test esi, esi
je 0x4046d2
cmp dword [ebx], 0
je 0x4046d2
dec esi
jmp 0x4046bb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404704
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x619008], 0x8088405
inc edx
mov dword [ebx + 0x619008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62c054], 0
je 0x4065d5
cmp word [0x62c330], 0xd7b2
jne 0x40659d
cmp dword [0x62c338], 0
jbe 0x40659d
mov eax, 0x62c32c
call dword [0x62c348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x619034], 0
jne 0x4065f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x61903c], 0
je 0x4067a6
mov edx, esi
mov eax, ebx
call dword [0x61903c]
jmp 0x4067b5
mov eax, 8
call fcn.004042a8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x62c055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406748
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4098d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409a3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407768
cmp si, word [0x6197e4]
jb 0x40996e
cmp si, word [0x6199e4]
ja 0x40996e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40996e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x6197e4]
jae 0x409948
mov edi, ebx
dec edi
jmp 0x409969
cmp si, word [ebx*8 + 0x6197e4]
jbe 0x409958
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409969
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x6197e8]
call fcn.004097e4
jmp 0x40996e
cmp edi, dword [ebp - 0xc]
jae 0x409932
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409a1d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a1d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407978
push dword [ebp - 0x164]
push 0x409a58
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407978
push dword [ebp - 0x168]
push 0x409a68
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407978
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a42
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407760
ret
Function at 0x409bf4
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 0x409cf9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x62eb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x62eb74]
jne 0x409c40
mov eax, esi
mov edx, 0x62eb78
mov ecx, 0x55
call fcn.00407978
push 0x62eb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409ce3
push 0x62eb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407768
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409cb1
cmp byte [0x62eb58], 0
je 0x409c76
mov edx, esi
mov eax, ebx
call fcn.00409ad4
jmp 0x409cb1
mov edx, esi
mov eax, ebx
call fcn.004098d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409cb1
cmp dword [esi], 0
je 0x409c9a
mov eax, esi
mov edx, 0x409d14
call fcn.00407b8c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004098d4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407b8c
push 0x62eb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x62eb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004077f4
push eax
push 0x62eb78
call sub.kernel32.dll_lstrcpynW
push 0x62eb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d00
lea eax, [ebp - 4]
call fcn.00407758
ret
Function at 0x409f38
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.00407750
xor eax, eax
push ebp
push 0x40a11d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409f78
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409f92
push 0x105
mov eax, dword [ebp - 4]
call fcn.004077f4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a107
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a12c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a021
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a12c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a021
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a160
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a021
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a194
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a107
xor eax, eax
push ebp
push 0x40a100
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409d3c
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 0x40a090
mov eax, dword [ebp - 0x10]
call fcn.004042a8
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.00407924
jmp 0x40a0db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a1d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a0db
mov eax, dword [ebp - 0x10]
call fcn.004042a8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a1d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407924
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a107
cmp dword [ebp - 8], 0
je 0x40a0f6
mov eax, dword [ebp - 8]
call fcn.004042c4
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 0x40a124
lea eax, [ebp - 4]
call fcn.00407758
ret
Function at 0x40a3e8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407750
mov eax, dword [ebp - 0x21c]
call fcn.00407750
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a587
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407768
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004077f4
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40a488
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a49a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a485
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a553
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40a4c3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409f38
cmp dword [ebp - 0x220], 0
je 0x40a4fb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a2dc
pop ecx
mov ebx, eax
jmp 0x40a553
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409bf4
mov eax, dword [ebp - 0x224]
call fcn.0040a2dc
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a546
cmp byte [0x62eb58], 0
jne 0x40a546
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409bf4
mov eax, dword [ebp - 0x228]
call fcn.0040a2dc
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a553
push ebp
call fcn.0040a38c
pop ecx
mov ebx, eax
test bl, bl
je 0x40a569
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a58e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407760
ret
Function at 0x40e8f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407000
xor eax, eax
push ebp
push 0x40e9ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00408ff4
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x40e93c
test esi, esi
jle 0x40e93c
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.004068ac
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40e110]
call fcn.004091bc
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.00406850
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9b2
lea eax, [ebp - 4]
call fcn.004067fc
ret
Function at 0x411434
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x4114d4
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004072f4
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00407088
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x41145e
cmp byte [esp], 0
je 0x4114a3
mov eax, edi
call fcn.00407088
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x4114e0
mov eax, edi
call fcn.00407088
push eax
mov eax, edi
call fcn.00407088
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00404460
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004072f4
jmp 0x4114e0
mov eax, edi
mov edx, 0x4114f4
call fcn.00406850
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412164
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x619c30], 0
jne 0x412198
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x412191
movzx eax, byte [esp]
mov byte [0x619c30], al
jmp 0x412198
mov byte [0x619c30], 0x2c
movzx eax, byte [0x619c30]
pop edx
ret

Function at 0x4126ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00406850
mov eax, ebx
call fcn.00407080
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x412714
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x412728
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x41271d
pop edx
pop esi
pop ebx
ret
Function at 0x41296c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x412ab6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x412994
cmp dword [ebx + 4], 0
jne 0x412ab6
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4129ba
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4129ba
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.004128c0
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x412ab6
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x412a69
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x412a0f
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.00412900
test al, al
je 0x412a5f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x412a5f
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x412a5f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x412a87
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x412a87
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00412954
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x412ab6
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00416d20
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret