joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e7aace0
Capabilities:
Allocate thread local storage
Link many functions at runtime

Disassembly:
push esi
push 0x1e7b1a48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1e7aad07
push str.AdvAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1e7aadb9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddAccessAllowedAce
push esi
call edi
test eax, eax
je 0x1e7aad1f
mov dword [0x1e7ba7e0], eax
push str.AddAccessDeniedAce
push esi
call edi
test eax, eax
je 0x1e7aad30
mov dword [0x1e7ba7e4], eax
push str.AddAccessAllowedAceEx
push esi
call edi
test eax, eax
je 0x1e7aad41
mov dword [0x1e7ba7e8], eax
push str.AddMandatoryAce
push esi
call edi
test eax, eax
je 0x1e7aad52
mov dword [0x1e7ba7f0], eax
push str.AddAccessAllowedObjectAce
push esi
call edi
test eax, eax
je 0x1e7aad63
mov dword [0x1e7ba7f4], eax
push str.AddAccessDeniedAceEx
push esi
call edi
test eax, eax
je 0x1e7aad74
mov dword [0x1e7ba7ec], eax
push str.AddAccessDeniedObjectAce
push esi
call edi
test eax, eax
je 0x1e7aad85
mov dword [0x1e7ba7f8], eax
push str.AddAuditAccessAceEx
push esi
call edi
test eax, eax
je 0x1e7aad96
mov dword [0x1e7ba7fc], eax
push str.AddAuditAccessObjectAce
push esi
call edi
test eax, eax
je 0x1e7aada7
mov dword [0x1e7ba800], eax
push str.SetSecurityDescriptorControl
push esi
call edi
pop edi
test eax, eax
je 0x1e7aadb9
mov dword [0x1e7ba814], eax
mov eax, dword [esp + 0xc]
sub eax, 0
pop esi
je 0x1e7aade6
sub eax, 1
jne 0x1e7aadfd
push 0x1e7ba82c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1e7ba8c8], eax
mov eax, 1
ret 0xc
push 0x1e7ba82c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x1e7ba8c8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, 1
ret 0xc
Function at 0x1e7ab410
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1e7ba8c8]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1e7ab44c
cmp dword [esi + 4], edi
je 0x1e7ab44c
mov ecx, dword [esi]
push ecx
call dword [sym.imp.python27.dll_PyThreadState_Delete]
mov edx, dword [0x1e7ba8c8]
add esp, 4
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_ApiError]
mov dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], edi
cmp eax, edi
je 0x1e7ab472
dec dword [eax]
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_ApiError]
cmp dword [eax], edi
jne 0x1e7ab472
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_COMError]
mov dword [sym.pywintypes27.dll_struct__object__PyWinExc_ApiError], edi
cmp eax, edi
je 0x1e7ab498
dec dword [eax]
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_COMError]
cmp dword [eax], edi
jne 0x1e7ab498
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov dword [sym.pywintypes27.dll_struct__object__PyWinExc_COMError], edi
pop edi
pop esi
ret
Function at 0x406627
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40664b
xor eax, eax
test eax, eax
je 0x40665d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665d
xor ecx, ecx
jmp 0x406660
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40674c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x406783
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40675d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406758
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x406796
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4080c8
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.004084ac
mov byte [esp], al
cmp byte [esp], 0
jne 0x408252
test edi, edi
je 0x408252
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408192
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40816d
cmp edi, 0xffffffff
je 0x40812d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40812d
mov byte [esp], 0
jmp 0x408252
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40816d
test ebx, ebx
jne 0x40815f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40815f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408252
lea eax, [esp + 0xc]
call fcn.00407da8
dec ebp
test ebp, ebp
jg 0x408112
cmp edi, 0xffffffff
je 0x408192
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408190
mov byte [esp], 0
jmp 0x408252
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4080d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408192
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004082c0
mov edx, eax
mov ebx, dword [0x5e28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4081f6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4081f4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4081f6
xor edi, edi
cmp byte [esp], 0
je 0x40821c
mov ebx, dword [esi]
test bl, 1
jne 0x408232
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081fc
mov byte [esp + 1], 1
jmp 0x408232
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40821c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4081a9
cmp byte [esp], 0
je 0x408252
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 0x408ff8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e205c], 0
je 0x40905f
cmp word [0x5e2348], 0xd7b2
jne 0x409021
cmp dword [0x5e2350], 0
jbe 0x409021
mov eax, 0x5e2344
call dword [0x5e2360]
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, 0x40908c
call fcn.00409ba0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5dc032], 0
jne 0x40907b
push 0
push 0x5dc9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40921c
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 [0x5dc034], 0
je 0x409247
mov edx, edi
mov eax, esi
call dword [0x5dc034]
mov ebx, eax
jmp 0x409258
mov eax, 8
call fcn.004066e0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091e4
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 0x409288
mov eax, ebx
call fcn.004066fc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ba14
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 0x40bb79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040935c
cmp si, word [0x5dca00]
jb 0x40baac
cmp si, word [0x5dcc00]
ja 0x40baac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40baac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5dca00]
jae 0x40ba86
mov edi, ebx
dec edi
jmp 0x40baa7
cmp si, word [ebx*8 + 0x5dca00]
jbe 0x40ba96
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40baa7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5dca04]
call fcn.0040b934
jmp 0x40baac
cmp edi, dword [ebp - 8]
jae 0x40ba70
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bb5b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb5b
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.00409f44
push dword [ebp - 0x160]
push 0x40bb94
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f44
push dword [ebp - 0x164]
push 0x40bba4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f44
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a17c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb80
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004093bc
ret
Function at 0x40bd2c
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 0x40be30
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5e4b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5e4ba4]
jne 0x40bd78
mov eax, esi
mov edx, 0x5e4ba6
mov ecx, 0x55
call fcn.00409f44
push 0x5e4b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40be1a
push 0x5e4b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040935c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bde7
cmp byte [0x5e4b88], 0
je 0x40bdac
mov edx, esi
mov eax, ebx
call fcn.0040bc10
jmp 0x40bde7
mov edx, esi
mov eax, ebx
call fcn.0040ba14
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bde7
cmp dword [esi], 0
je 0x40bdd0
mov eax, esi
mov edx, 0x40be48
call fcn.0040a09c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a09c
push 0x5e4b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5e4ba4], bx
mov eax, dword [esi]
call fcn.00409ea0
mov ecx, eax
mov eax, 0x5e4ba6
mov edx, 0xaa
call fcn.0040b894
push 0x5e4b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be37
lea eax, [ebp - 4]
call fcn.0040935c
ret
Function at 0x40c060
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.00409440
xor eax, eax
push ebp
push 0x40c285
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c0a0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c0ba
mov eax, dword [ebp - 4]
call fcn.00409ea0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b894
cmp word [ebp - 0x21a], 0
je 0x40c26f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c294
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c189
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c294
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c189
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c189
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c189
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c304
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c189
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c338
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c26f
xor eax, eax
push ebp
push 0x40c268
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be70
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 0x40c1f8
mov eax, dword [ebp - 0x10]
call fcn.004066e0
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.00409f08
jmp 0x40c243
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c378
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c243
mov eax, dword [ebp - 0x10]
call fcn.004066e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c378
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c26f
cmp dword [ebp - 8], 0
je 0x40c25e
mov eax, dword [ebp - 8]
call fcn.004066fc
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 0x40c28c
lea eax, [ebp - 4]
call fcn.0040935c
ret
Function at 0x40c574
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.00409440
xor eax, eax
push ebp
push 0x40c634
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.00409f44
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a0f4
mov eax, dword [ebx]
call fcn.0040c43c
test al, al
jne 0x40c611
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409f44
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a0f4
mov eax, dword [ebx]
call fcn.0040c43c
test al, al
jne 0x40c611
mov eax, ebx
call fcn.0040935c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c63b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004093bc
lea eax, [ebp - 4]
call fcn.0040935c
ret

Function at 0x420ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420bf9
test eax, edx
je 0x420bfc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420bb7
movzx eax, word [eax]
sub eax, ecx
jmp 0x420bde
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 0x420bdf
add ecx, 4
js 0x420bcf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420bdc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420bde
xor eax, eax
ret
test eax, eax
je 0x420c08
test edx, edx
jne 0x420ba8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x425d4c
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_1
test eax, eax
jle 0x425d85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004094e4
jmp 0x425d8e
mov eax, ebx
mov edx, esi
call fcn.0040973c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425d98
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_1
test eax, eax
jle 0x425dba
movzx eax, word [esp]
jmp 0x425dbc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426e48
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 0x426f6d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426c50
mov esi, eax
mov eax, dword [0x5e0e84]
cmp byte [eax], 0
je 0x426f15
mov eax, dword [0x5e0b78]
call fcn.00407014
call fcn.00406854
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x426e18]
call fcn.0040b320
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x426f88
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426f51
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5e0af4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5e4c54]
call fcn.0040b534
push eax
call sub.user32.dll_LoadStringW_1
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 0x426f74
lea eax, [ebp - 4]
mov edx, dword [0x426e18]
call fcn.0040b444
ret
Function at 0x427fac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428082
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409784
lea eax, [ebp - 4]
call fcn.004098e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409ea0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42806c
mov eax, ebx
call fcn.004066e0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428065
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409ea0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42804f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428094
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42804f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42806c
mov eax, dword [ebp - 0x10]
call fcn.004066fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428089
lea eax, [ebp - 4]
call fcn.0040935c
ret

Function at 0x4289e8
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.0040982c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cf64
mov edi, eax
cmp edi, 0x104
jbe 0x42898f
mov eax, edi
add eax, eax
call fcn.004066e0
mov esi, eax
jmp 0x428991
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cf64
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4289cc
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 0x4289b6
mov eax, esp
cmp esi, eax
je 0x4289d9
mov eax, esi
call fcn.004066fc
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 0x428a14
cmp bl, 0
je 0x428a10
cmp bl, 0x41
jl 0x428a0b
cmp bl, 0x5a
jg 0x428a0b
or bl, 0x20
xor al, bl
inc esi
jmp 0x4289ef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428950

Function at 0x429290
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_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409f44
add esp, 0x800
pop ebx
ret