joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6711c900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x67145de3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67221378]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, 1
mov dword [esp + 0x18], eax
test byte [esi + 0x30], al
je 0x6711c946
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x6711c946
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esi + 0x58]
test edi, edi
je 0x6711c95d
mov ecx, edi
call sym.QtCore4.dll_public:_void___thiscall_QTextDecoder::destructor_void_
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esi + 0x34]
mov byte [esp + 0x18], 0
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x6711c97a
mov eax, dword [esi + 0x34]
push eax
call sym.QtCore4.dll_void___cdecl_qFree_void__
add esp, 4
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.6711b120
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x6711fe00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x67145de3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67221378]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.6711f860
push 0x20
xor edi, edi
push 4
lea ecx, [esi + 0x34]
mov dword [esp + 0x20], edi
call sym.QtCore4.dll_public:_void___thiscall_QByteArray::constructor_int__char_
mov eax, dword [esp + 0x20]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
and dword [esi + 0x30], 0xfffffffe
push 0x6a
mov byte [esp + 0x1c], 1
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call sym.QtCore4.dll_public:_static_class_QTextCodec____cdecl_QTextCodec::codecForMib_int_
mov dword [esi + 0x54], eax
mov eax, esp
mov dword [eax], 1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x24], esp
call sym.QtCore4.dll_public:_class_QTextDecoder____thiscall_QTextCodec::makeDecoder_class_QFlags_enum_QTextCodec::ConversionFlag__const
and dword [esi + 0x30], 0xffffffc1
mov dword [esi + 0x58], eax
mov dword [esi + 0x50], 1
mov dword [esi + 0x5c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x671212a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x67132728
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x67221378]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx]
mov dword [esp + 8], sym.QtCore4.dll_struct_QString::Data_QString::shared_null
mov eax, sym.QtCore4.dll_struct_QString::Data_QString::shared_null
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.671205c0
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], 0xffffffff
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x67121315
mov eax, dword [esp + 8]
push eax
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
or dword [esi + 0x30], 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x671300ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x67221378]
jne 0x671300b6
repz ret
jmp fcn.67130abe
Function at 0x4070a8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x408670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408afc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4087f9
test edi, edi
je 0x4087f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408739
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408714
cmp edi, 0xffffffff
je 0x4086d5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4086d5
mov byte [esp], 0
jmp 0x4087f9
cmp dword [esi], 1
jg 0x408714
cmp dword [esi], 0
jne 0x408706
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408706
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4087f9
lea eax, [esp + 0xc]
call fcn.0040832c
dec ebp
test ebp, ebp
jg 0x4086ba
cmp edi, 0xffffffff
je 0x408739
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408737
mov byte [esp], 0
jmp 0x4087f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40867e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408739
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408868
mov edx, eax
mov ebx, dword [0x4e88f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40879d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40879b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40879d
xor edi, edi
cmp byte [esp], 0
je 0x4087c3
mov ebx, dword [esi]
test bl, 1
jne 0x4087d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4087a3
mov byte [esp + 1], 1
jmp 0x4087d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4087c3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408750
cmp byte [esp], 0
je 0x4087f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40943c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4eab98
cmp dword [ebp + 0xc], 2
jl 0x409450
mov ebx, 0x4eabc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409488
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x4e801c], eax
mov eax, 0x4050d4
mov dword [0x4e8020], eax
mov eax, ebx
call fcn.00409320
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4094bd
cmp al, 3
jge 0x4094bd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4094ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4094d9
call dword [ecx + eax*4]
cmp dword [0x4e8040], 0
jne 0x4094ef
mov byte [0x4e8048], 1
fnstcw word [0x4e0028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409788
call fcn.004093d0
ret 4

Function at 0x4096f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e8058], 0
je 0x409757
cmp word [0x4e8344], 0xd7b2
jne 0x409719
cmp dword [0x4e834c], 0
jbe 0x409719
mov eax, 0x4e8340
call dword [0x4e835c]
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
mov eax, 0x409784
call fcn.0040a2bc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e0032], 0
jne 0x409773
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409918
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4e0034], 0
je 0x409943
mov edx, edi
mov eax, esi
call dword [0x4e0034]
mov ebx, eax
jmp 0x409954
mov eax, 8
call fcn.00406e04
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4098e0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409984
mov eax, ebx
call fcn.00406e20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c5b0
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 0x40c715
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a58
cmp si, word [0x4e0a00]
jb 0x40c648
cmp si, word [0x4e0c00]
ja 0x40c648
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c648
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e0a00]
jae 0x40c622
mov edi, ebx
dec edi
jmp 0x40c643
cmp si, word [ebx*8 + 0x4e0a00]
jbe 0x40c632
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c643
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e0a04]
call fcn.0040c4d0
jmp 0x40c648
cmp edi, dword [ebp - 8]
jae 0x40c60c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c6f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c6f7
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.0040a6d0
push dword [ebp - 0x160]
push 0x40c730
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a6d0
push dword [ebp - 0x164]
push 0x40c740
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a6d0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c71c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409ab8
ret
Function at 0x40c8c8
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 0x40c9cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4eac10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4eac28]
jne 0x40c914
mov eax, esi
mov edx, 0x4eac2a
mov ecx, 0x55
call fcn.0040a6d0
push 0x4eac10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c9b6
push 0x4eac10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409a58
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c983
cmp byte [0x4eac0c], 0
je 0x40c948
mov edx, esi
mov eax, ebx
call fcn.0040c7ac
jmp 0x40c983
mov edx, esi
mov eax, ebx
call fcn.0040c5b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c983
cmp dword [esi], 0
je 0x40c96c
mov eax, esi
mov edx, 0x40c9e4
call fcn.0040a828
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c5b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a828
push 0x4eac10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4eac28], bx
mov eax, dword [esi]
call fcn.0040a62c
mov ecx, eax
mov eax, 0x4eac2a
mov edx, 0xaa
call fcn.0040c430
push 0x4eac10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9d3
lea eax, [ebp - 4]
call fcn.00409a58
ret
Function at 0x40cbfc
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.00409b3c
xor eax, eax
push ebp
push 0x40ce21
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cc3c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cc56
mov eax, dword [ebp - 4]
call fcn.0040a62c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c430
cmp word [ebp - 0x21a], 0
je 0x40ce0b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd25
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ced4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ce0b
xor eax, eax
push ebp
push 0x40ce04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ca0c
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 0x40cd94
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.0040a694
jmp 0x40cddf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cf14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cddf
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 0x40cf14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce0b
cmp dword [ebp - 8], 0
je 0x40cdfa
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 0x40ce28
lea eax, [ebp - 4]
call fcn.00409a58
ret
Function at 0x40d110
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.00409b3c
xor eax, eax
push ebp
push 0x40d1d0
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.0040a6d0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a880
mov eax, dword [ebx]
call fcn.0040cfd8
test al, al
jne 0x40d1ad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a6d0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a880
mov eax, dword [ebx]
call fcn.0040cfd8
test al, al
jne 0x40d1ad
mov eax, ebx
call fcn.00409a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1d7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409ab8
lea eax, [ebp - 4]
call fcn.00409a58
ret

Function at 0x40ee28
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 0x41dfc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e021
test eax, edx
je 0x41e024
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41dfdf
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e006
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 0x41e007
add ecx, 4
js 0x41dff7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e004
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e006
xor eax, eax
ret
test eax, eax
je 0x41e030
test edx, edx
jne 0x41dfd0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41ef68
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 0x41ef95
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x41f068
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a62c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f0d2
test ah, 4
je 0x41f0cb
test bl, bl
jne 0x41f090
mov al, 1
jmp 0x41f0f9
test al, 0x10
je 0x41f098
xor eax, eax
jmp 0x41f0f9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41f0bc
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x41f0f9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41f0f9
test al, 0x10
sete al
jmp 0x41f0f9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41f0f3
cmp ebx, 3
je 0x41f0f3
cmp ebx, 0x7b
je 0x41f0f3
mov eax, esi
call fcn.0041f028
test al, al
jne 0x41f0f7
xor eax, eax
jmp 0x41f0f9
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422a9c
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 0x422ad5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409be0
jmp 0x422ade
mov eax, ebx
mov edx, esi
call fcn.00409e38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422ae8
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 0x422b0a
movzx eax, word [esp]
jmp 0x422b0c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423e08
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 0x423f2d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423c10
mov esi, eax
mov eax, dword [0x4e7148]
cmp byte [eax], 0
je 0x423ed5
mov eax, dword [0x4e6fa0]
call fcn.0040755c
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 [0x423dd8]
call fcn.0040bce4
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 0x423f48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x423f11
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e6f64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4eb634]
call fcn.0040c0d4
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 0x423f34
lea eax, [ebp - 4]
mov edx, dword [0x423dd8]
call fcn.0040be08
ret
Function at 0x424fcc
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 0x4250cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409e80
lea eax, [ebp - 4]
call fcn.0040a00c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a62c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4250b6
mov eax, ebx
call fcn.00406e04
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4250af
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.0040a62c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x425099
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4250e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x425099
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 0x4250b6
mov eax, dword [ebp - 0x10]
call fcn.00406e20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4250d3
lea eax, [ebp - 4]
call fcn.00409a58
ret

Function at 0x425e74
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.00409f54
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ee08
mov edi, eax
cmp edi, 0x104
jbe 0x425e1f
mov eax, edi
add eax, eax
call fcn.00406e04
mov esi, eax
jmp 0x425e21
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ee08
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x425e5a
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 0x425e44
mov eax, esp
cmp esi, eax
je 0x425e67
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 0x425ea0
cmp bl, 0
je 0x425e9c
cmp bl, 0x41
jl 0x425e97
cmp bl, 0x5a
jg 0x425e97
or bl, 0x20
xor al, bl
inc esi
jmp 0x425e7b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x425de0

Function at 0x4266fc
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.0040a6d0
add esp, 0x800
pop ebx
ret