joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13e7815
Capabilities:
Encode data using base64

Disassembly:
mov dword [esp + ecx - 0x35b9ef2b], 0xdb93788e
push ecx
mov eax, dword [esi + ecx*2 - 0x6b73de56]
sal byte [esp + ecx*2 - 0x6b73de4e], 0xa5
lea edx, [ecx + ecx*4 - 0x5d687f6e]
lea esi, [esi + ecx*2 - 0x6b73de52]
jns 0x131fc1b
xor eax, ebx
imul cx, dx
bts ecx, edx
bts ecx, 0x32
lea eax, [eax + edx - 0x151dc751]
neg eax
xor ecx, 0xd599083f
inc ecx
xadd byte [esp + 2], cl
lea eax, [edx + eax - 0x6515ed61]
jg 0x134789b
call fcn.0130a10f

Function at 0x13f55ef
Capabilities:
Encode data using xor

Disassembly:
btc ax, 0x8b
xor ebx, ecx
add esi, ecx
ror edx, 0xa9
push eax
mov dword [esp + edx - 0x48cb5edb], esi
ret
push edx
rol eax, 1
xchg byte [esp + edx - 0xff31], cl
dec word [esp + edx - 0xff30]
sar dword [esp + edx*4 - 0x3fcdc], 0xe8
dec eax
neg eax
xor ebx, eax
ror cl, 0xc3
lea edi, [edi + edx*2 - 0x1fe76]
ror ecx, 0x14
sbb dl, byte [esp + edx - 0xff2e]
adc edx, ecx
mov dword [edx + edi - 0x3391024b], eax
mov eax, ecx
lea esi, [edx + esi - 0x3391024f]
ror word [esp + edx*2 - 0x67220494], 0x49
mov eax, dword [esi + edx*2 - 0x67220496]
shr cl, 5
xor eax, ebx
and cl, byte [esp + edx - 0x3391024b]
sbb dx, dx
call fcn.011df3e9
xor ecx, ebx
inc ax
cmovge edx, eax
rol ecx, 1
shl dl, 0x63
neg ecx
cwde
dec ecx
neg ecx
inc edx
jno 0xc3e260
Function at 0x1407ad6
Capabilities:
Encode data using xor

Disassembly:
xor eax, ebx
add eax, 0x95199c22
inc cl
xchg ch, cl
movsx edx, cx
xor eax, 0xe8abef17
bswap eax
add ecx, 0x82b148aa
xadd dl, dh
ror dl, 5
xor eax, 0xdf34bb9b
sub edx, 0x5c07d6a7
rol dx, cl
xor ebx, eax
inc cl
push ecx
add ebp, eax
and dx, 0x7123
call fcn.0136623f
rol ecx, 2
mov dword [esp + edx - 0x5ab0ea11], edx
push edx
mov dword [esp + edx - 0x5ab0ea15], 0x7e29e33a
dec ecx
neg ecx
neg dword [esp + edx - 0x5ab0ea15]
xchg dword [esp + edx - 0x5ab0ea0d], edx
movsx eax, dx
xor ebx, ecx
cbw
imul dx, dx
mov dword [esp + edx - 0x5ab065b5], edx
add esi, ecx
mov eax, dword [ebp + edx - 0x5ab065b9]
mov ecx, edx
imul cx, dx
mov ecx, dword fs:[ecx + eax - 0x5ab07fb1]
movzx eax, word [esp + edx - 0x5ab065b1]
mov dword [ebp + eax - 0xea15], ecx
and edx, 0x2594b729
cwde
ror ax, 0xe8
mov dword [esp + edx - 0x902529], esi
ret 8
sal ecx, 0xe3
bswap ecx
bswap eax
not ecx
not cl
call fcn.0129b135
add byte [eax], al
inc ebx
outsd dx, dword [esi]
dec ecx
outsb dx, byte [esi]
imul esi, dword [ecx + ebp*2 + 0x61], 0x657a696c
push ebx
arpl word gs:[ebp + 0x72], si
imul esi, dword [ecx + edi*2], 0xb0d691ba
mov ebx, 0x8bc2b70f
test byte [edi], al
outsd dx, dword [esi]
sub edi, edi
dec dword [edi]
retf 0xca8b
and dl, 0x3e
lea esi, [esi + ecx*2 - 0x1fffa]
or cl, 4
xor eax, ebx
xadd dx, cx
not eax
je 0xc6d82d
adc ecx, ecx
rol eax, 2
jmp 0xcac128
pop edx
adc edi, 4
sal ecx, cl
sal ecx, 0x7a
jae 0xc22d14
mov eax, dword [edi]
mov edx, 0x3c8f29a2
shl dx, 0x6e
lea edi, [edi + edx*2 - 0x791efffc]
sets dl
movsx ecx, dl
sbb dl, 0xf
xor eax, ebx
sub eax, ecx
inc edx
btc ecx, 0x99
bt ecx, 0x24
ror eax, cl
imul dx, dx
sar dl, cl
xor eax, 0x188cce04
dec eax
sar cl, cl
ror eax, 1
shr ecx, 0xb0
add ecx, edx
ror cx, 0xa3
xor ebx, eax
sar edx, cl
adc esi, eax
mov eax, dword [ebp + edx - 0xf]
mov dx, word [eax + edx - 0xf]
sub ecx, ecx
lea ebp, [ebp + ecx*2 + 2]
movsx eax, cl
je 0xb0403f
mov eax, dword [edi]
or ecx, ecx
jne 0x11e24fa
bt edx, 0x94
sar word [esp + edx*2 - 0x3fc], 0x27
mov dword [eax + edx*4 - 0x7fc], ecx
jb 0x11d769b
mov dword [esp + edx - 0x1ff], esi
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.advapi32.dll_CryptCreateHash
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x406a8c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409218
test esi, esi
jne 0x406ac2
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.004093a0
jmp 0x406ae0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069d0
mov edi, eax
test esi, esi
je 0x406ae0
cmp dword [ebx], 0
je 0x406ae0
dec esi
jmp 0x406ac9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407f80
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.00408364
mov byte [esp], al
cmp byte [esp], 0
jne 0x40810a
test edi, edi
je 0x40810a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40804a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408025
cmp edi, 0xffffffff
je 0x407fe5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407fe5
mov byte [esp], 0
jmp 0x40810a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408025
test ebx, ebx
jne 0x408017
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408017
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40810a
lea eax, [esp + 0xc]
call fcn.00407c60
dec ebp
test ebp, ebp
jg 0x407fca
cmp edi, 0xffffffff
je 0x40804a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408048
mov byte [esp], 0
jmp 0x40810a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407f8e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40804a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408178
mov edx, eax
mov ebx, dword [0x5f48fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4080ae
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4080ac
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4080ae
xor edi, edi
cmp byte [esp], 0
je 0x4080d4
mov ebx, dword [esi]
test bl, 1
jne 0x4080ea
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080b4
mov byte [esp + 1], 1
jmp 0x4080ea
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080d4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408061
cmp byte [esp], 0
je 0x40810a
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 0x408eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f405c], 0
je 0x408f17
cmp word [0x5f4348], 0xd7b2
jne 0x408ed9
cmp dword [0x5f4350], 0
jbe 0x408ed9
mov eax, 0x5f4344
call dword [0x5f4360]
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, 0x408f44
call fcn.00409a5c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ee032], 0
jne 0x408f33
push 0
push 0x5ee9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4090d8
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 [0x5ee034], 0
je 0x409103
mov edx, edi
mov eax, esi
call dword [0x5ee034]
mov ebx, eax
jmp 0x409114
mov eax, 8
call fcn.0040670c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4090a0
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 0x409144
mov eax, ebx
call fcn.00406728
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b8c4
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 0x40ba29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409218
cmp si, word [0x5eea00]
jb 0x40b95c
cmp si, word [0x5eec00]
ja 0x40b95c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b95c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5eea00]
jae 0x40b936
mov edi, ebx
dec edi
jmp 0x40b957
cmp si, word [ebx*8 + 0x5eea00]
jbe 0x40b946
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b957
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5eea04]
call fcn.0040b7e4
jmp 0x40b95c
cmp edi, dword [ebp - 8]
jae 0x40b920
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ba0b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ba0b
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.00409dfc
push dword [ebp - 0x160]
push 0x40ba44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409dfc
push dword [ebp - 0x164]
push 0x40ba54
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409dfc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba30
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409278
ret
Function at 0x40bbdc
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 0x40bce0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f6b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f6ba4]
jne 0x40bc28
mov eax, esi
mov edx, 0x5f6ba6
mov ecx, 0x55
call fcn.00409dfc
push 0x5f6b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bcca
push 0x5f6b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409218
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc97
cmp byte [0x5f6b88], 0
je 0x40bc5c
mov edx, esi
mov eax, ebx
call fcn.0040bac0
jmp 0x40bc97
mov edx, esi
mov eax, ebx
call fcn.0040b8c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bc97
cmp dword [esi], 0
je 0x40bc80
mov eax, esi
mov edx, 0x40bcf8
call fcn.00409f54
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b8c4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409f54
push 0x5f6b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f6ba4], bx
mov eax, dword [esi]
call fcn.00409d58
mov ecx, eax
mov eax, 0x5f6ba6
mov edx, 0xaa
call fcn.0040b744
push 0x5f6b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bce7
lea eax, [ebp - 4]
call fcn.00409218
ret
Function at 0x40bf10
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.004092fc
xor eax, eax
push ebp
push 0x40c135
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bf50
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bf6a
mov eax, dword [ebp - 4]
call fcn.00409d58
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b744
cmp word [ebp - 0x21a], 0
je 0x40c11f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c144
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c180
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c180
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c1b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c1e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c11f
xor eax, eax
push ebp
push 0x40c118
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bd20
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 0x40c0a8
mov eax, dword [ebp - 0x10]
call fcn.0040670c
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.00409dc0
jmp 0x40c0f3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c228
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c0f3
mov eax, dword [ebp - 0x10]
call fcn.0040670c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c228
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c11f
cmp dword [ebp - 8], 0
je 0x40c10e
mov eax, dword [ebp - 8]
call fcn.00406728
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 0x40c13c
lea eax, [ebp - 4]
call fcn.00409218
ret
Function at 0x40c424
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.004092fc
xor eax, eax
push ebp
push 0x40c4e4
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.00409dfc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409fac
mov eax, dword [ebx]
call fcn.0040c2ec
test al, al
jne 0x40c4c1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409dfc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409fac
mov eax, dword [ebx]
call fcn.0040c2ec
test al, al
jne 0x40c4c1
mov eax, ebx
call fcn.00409218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4eb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409278
lea eax, [ebp - 4]
call fcn.00409218
ret

Function at 0x4209ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420a45
test eax, edx
je 0x420a48
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420a03
movzx eax, word [eax]
sub eax, ecx
jmp 0x420a2a
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 0x420a2b
add ecx, 4
js 0x420a1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420a28
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420a2a
xor eax, eax
ret
test eax, eax
je 0x420a54
test edx, edx
jne 0x4209f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x421ddc
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 0x421e09
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x421e9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00409d58
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421f43
test esi, 0x400
jne 0x421ed8
test esi, 0x10
setne bl
jmp 0x421f73
cmp byte [esp], 0
je 0x421f0c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421f73
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x421f73
test esi, 0x10
je 0x421f18
mov bl, 1
jmp 0x421f73
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421f3f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x421f73
mov bl, 1
jmp 0x421f73
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x421f6d
cmp eax, 3
je 0x421f6d
cmp eax, 0xa1
je 0x421f6d
cmp eax, 0x7b
je 0x421f6d
cmp eax, 0x35
je 0x421f6d
cmp eax, 0x15
je 0x421f6d
cmp eax, 0x43
jne 0x421f71
xor ebx, ebx
jmp 0x421f73
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425cf8
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 0x425d31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004093a0
jmp 0x425d3a
mov eax, ebx
mov edx, esi
call fcn.004095f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425d44
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 0x425d66
movzx eax, word [esp]
jmp 0x425d68
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x426e1c
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 0x426f41
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426c24
mov esi, eax
mov eax, dword [0x5f2f14]
cmp byte [eax], 0
je 0x426ee9
mov eax, dword [0x5f2c08]
call fcn.00406f94
call fcn.00406880
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 [0x426dec]
call fcn.0040b1d0
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 0x426f5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426f25
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f2b7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5f6c54]
call fcn.0040b3e4
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 0x426f48
lea eax, [ebp - 4]
mov edx, dword [0x426dec]
call fcn.0040b2f4
ret

Function at 0x428074
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffee0
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x428125
cmp dword [esp + 0x10], 6
ja 0x4280a9
cmp dword [esp + 0x10], 6
jne 0x4280d5
cmp dword [esp + 0x14], 1
jbe 0x4280d5
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, esp
call fcn.00427f24
mov eax, dword [esp]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [0x5eeedc], eax
mov eax, dword [esp + 0x10]
mov dword [0x5eeee0], eax
mov eax, dword [esp + 0x14]
mov dword [0x5eeee4], eax
cmp dword [0x5eeedc], 1
jne 0x428109
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x5eeee8], eax
jmp 0x428112
mov eax, dword [esp + 0x18]
mov dword [0x5eeee8], eax
mov eax, 0x5eeeec
lea edx, [esp + 0x20]
mov ecx, 0x80
call fcn.00409dfc
add esp, 0x120
ret