joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003841b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [ebp + 0x24], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov byte [ebp - 8], cl
je 0x100384ff
test cl, cl
je 0x100384d3
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x28]
push 1
pop ebx
mov eax, dword [eax]
push 0
pop esi
mov ecx, dword [eax]
xor eax, eax
cmp ecx, 0x2b5725d3
setne al
sub eax, ecx
cmp eax, 0x80db959c
sbb eax, eax
xor edx, edx
neg eax
cmp ecx, eax
mov eax, dword [edi]
setl dl
xor ecx, ecx
cmp edx, eax
setne cl
imul eax, ecx, 0x2f3d
cmp eax, dword [edi]
jle 0x10038485
mov eax, dword [ebp + 0x20]
mov ecx, ebx
cmp dword [eax], esi
jne 0x10038487
mov ecx, esi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [eax]
lea eax, [ecx - 3]
sub eax, edx
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, edx
mov eax, dword [ebp + 0x14]
setge cl
add ecx, edx
mov dword [eax], ecx
xor ecx, ecx
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
inc edx
mov eax, dword [eax]
imul edx, dword [eax]
mov eax, dword [edi]
cmp eax, edx
mov eax, dword [ebp + 0x10]
setle cl
mov eax, dword [eax]
cmp ecx, dword [eax]
jge 0x100384c7
cmp dword [edi], esi
jne 0x100384c9
mov ebx, esi
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
jmp 0x100385d4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [edx], 2
jge 0x100385d4
mov esi, dword [ebp + 0x1c]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x5710
inc dword [edx]
cmp dword [edx], 2
jl 0x100384e8
jmp 0x100385d4
mov dword [ebp - 0x18], 0x6460
cmp dword [ebp - 0x18], 0x6715
push 0
pop esi
jle 0x1003858e
mov edi, esi
xor ebx, ebx
mov dword [ebp - 0x14], edi
inc ebx
mov eax, esi
mov dword [ebp - 0x10], esi
mov ecx, eax
xor ecx, edi
mov edi, esi
mov dword [ebp - 0xc], ecx
mov eax, esi
mov dword [ebp + 0x24], esi
and eax, edi
or eax, ecx
lea ecx, [ebp - 0x30]
cdq
push edx
push eax
call fcn.10002811
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10038546
mov eax, dword [eax]
push eax
call fcn.100402ca
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x30]
call fcn.10001571
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp + 0x24], eax
cmp eax, 0x62e
jl 0x1003852d
inc edi
cmp edi, 0x2878
jl 0x10038528
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x108a
jl 0x1003851f
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x61b8
jl 0x1003851a
cmp byte [ebp + 0x18], 0
je 0x100385ac
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x100385c0
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x100385c0
push esi
push 0x61b
push esi
push esi
push 0x10e8
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp - 0x18], 0x624b
jge 0x100385d4
push str.zkva_histgvlls_cofwlxhpl_sfgoikcc_ppghy_cnyyj_vsuh_rafsp
call fcn.100402ca
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d34
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.00409bec
test esi, esi
jne 0x406d6a
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.00409d74
jmp 0x406d88
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406c18
mov edi, eax
test esi, esi
je 0x406d88
cmp dword [ebx], 0
je 0x406d88
dec esi
jmp 0x406d71
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408874
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.00408cd4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089fe
test edi, edi
je 0x4089fe
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40893e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408919
cmp edi, 0xffffffff
je 0x4088d9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088d9
mov byte [esp], 0
jmp 0x4089fe
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408919
test ebx, ebx
jne 0x40890b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40890b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089fe
lea eax, [esp + 0xc]
call fcn.00408554
dec ebp
test ebp, ebp
jg 0x4088be
cmp edi, 0xffffffff
je 0x40893e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40893c
mov byte [esp], 0
jmp 0x4089fe
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408882
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40893e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a6c
mov edx, eax
mov ebx, dword [0x7ce8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4089a2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4089a0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4089a2
xor edi, edi
cmp byte [esp], 0
je 0x4089c8
mov ebx, dword [esi]
test bl, 1
jne 0x4089de
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089a8
mov byte [esp + 1], 1
jmp 0x4089de
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089c8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408955
cmp byte [esp], 0
je 0x4089fe
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 0x409840
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7ce05c], 0
je 0x4098a7
cmp word [0x7ce348], 0xd7b2
jne 0x409869
cmp dword [0x7ce350], 0
jbe 0x409869
mov eax, 0x7ce344
call dword [0x7ce360]
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, 0x4098d4
call fcn.0040a4b0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7c0034], 0
jne 0x4098c3
push 0
push 0x7c09ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409aac
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 [0x7c0038], 0
je 0x409ad7
mov edx, edi
mov eax, esi
call dword [0x7c0038]
mov ebx, eax
jmp 0x409ae8
mov eax, 8
call fcn.00406948
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7ce05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a74
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 0x409b18
mov eax, ebx
call fcn.00406964
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c84c
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 0x40c9b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409bec
cmp si, word [0x7c0a28]
jb 0x40c8e4
cmp si, word [0x7c0c28]
ja 0x40c8e4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8e4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7c0a28]
jae 0x40c8be
mov edi, ebx
dec edi
jmp 0x40c8df
cmp si, word [ebx*8 + 0x7c0a28]
jbe 0x40c8ce
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8df
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7c0a2c]
call fcn.0040c76c
jmp 0x40c8e4
cmp edi, dword [ebp - 8]
jae 0x40c8a8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c993
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c993
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.0040a8c8
push dword [ebp - 0x160]
push 0x40c9cc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a8c8
push dword [ebp - 0x164]
push 0x40c9dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a8c8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ab00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9b8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c4c
ret
Function at 0x40cb64
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 0x40cc68
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7d0b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7d0ba4]
jne 0x40cbb0
mov eax, esi
mov edx, 0x7d0ba6
mov ecx, 0x55
call fcn.0040a8c8
push 0x7d0b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc52
push 0x7d0b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409bec
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc1f
cmp byte [0x7d0b88], 0
je 0x40cbe4
mov edx, esi
mov eax, ebx
call fcn.0040ca48
jmp 0x40cc1f
mov edx, esi
mov eax, ebx
call fcn.0040c84c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc1f
cmp dword [esi], 0
je 0x40cc08
mov eax, esi
mov edx, 0x40cc80
call fcn.0040aa20
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c84c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa20
push 0x7d0b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7d0ba4], bx
mov eax, dword [esi]
call fcn.0040a80c
mov ecx, eax
mov eax, 0x7d0ba6
mov edx, 0xaa
call fcn.0040c6cc
push 0x7d0b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc6f
lea eax, [ebp - 4]
call fcn.00409bec
ret
Function at 0x40ce98
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.00409cd0
xor eax, eax
push ebp
push 0x40d0bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ced8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cef2
mov eax, dword [ebp - 4]
call fcn.0040a80c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c6cc
cmp word [ebp - 0x21a], 0
je 0x40d0a7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d108
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d108
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d13c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d170
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d0a7
xor eax, eax
push ebp
push 0x40d0a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cca8
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 0x40d030
mov eax, dword [ebp - 0x10]
call fcn.00406948
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.0040a874
jmp 0x40d07b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d1b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d07b
mov eax, dword [ebp - 0x10]
call fcn.00406948
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d1b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0a7
cmp dword [ebp - 8], 0
je 0x40d096
mov eax, dword [ebp - 8]
call fcn.00406964
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 0x40d0c4
lea eax, [ebp - 4]
call fcn.00409bec
ret
Function at 0x40d3ac
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.00409cd0
xor eax, eax
push ebp
push 0x40d46c
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.0040a8c8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aa78
mov eax, dword [ebx]
call fcn.0040d274
test al, al
jne 0x40d449
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a8c8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aa78
mov eax, dword [ebx]
call fcn.0040d274
test al, al
jne 0x40d449
mov eax, ebx
call fcn.00409bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d473
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409c4c
lea eax, [ebp - 4]
call fcn.00409bec
ret

Function at 0x4226c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42271d
test eax, edx
je 0x422720
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4226db
movzx eax, word [eax]
sub eax, ecx
jmp 0x422702
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 0x422703
add ecx, 4
js 0x4226f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422700
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422702
xor eax, eax
ret
test eax, eax
je 0x42272c
test edx, edx
jne 0x4226cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x423b9c
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_1
test eax, eax
jne 0x423bc9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x423c9c
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.0040a80c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423d06
test ah, 4
je 0x423cff
test bl, bl
jne 0x423cc4
mov al, 1
jmp 0x423d2d
test al, 0x10
je 0x423ccc
xor eax, eax
jmp 0x423d2d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x423cf0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x423d2d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423d2d
test al, 0x10
sete al
jmp 0x423d2d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x423d27
cmp ebx, 3
je 0x423d27
cmp ebx, 0x7b
je 0x423d27
mov eax, esi
call fcn.00423c5c
test al, al
jne 0x423d2b
xor eax, eax
jmp 0x423d2d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x423d34
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.0040a80c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x423ddb
test esi, 0x400
jne 0x423d70
test esi, 0x10
setne bl
jmp 0x423e0b
cmp byte [esp], 0
je 0x423da4
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x423e0b
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x423e0b
test esi, 0x10
je 0x423db0
mov bl, 1
jmp 0x423e0b
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x423dd7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x423e0b
mov bl, 1
jmp 0x423e0b
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x423e05
cmp eax, 3
je 0x423e05
cmp eax, 0xa1
je 0x423e05
cmp eax, 0x7b
je 0x423e05
cmp eax, 0x35
je 0x423e05
cmp eax, 0x15
je 0x423e05
cmp eax, 0x43
jne 0x423e09
xor ebx, ebx
jmp 0x423e0b
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x423f18
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040a80c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x423f6d
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423f67
test ah, 4
je 0x423f67
test al, 0x10
je 0x423f67
mov eax, esi
call fcn.0040a80c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x423f6d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4284d8
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 0x428511
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409d74
jmp 0x42851a
mov eax, ebx
mov edx, esi
call fcn.00409fcc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x428524
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 0x428546
movzx eax, word [esp]
jmp 0x428548
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x429698
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 0x4297bd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004294a0
mov esi, eax
mov eax, dword [0x7ccdac]
cmp byte [eax], 0
je 0x429765
mov eax, dword [0x7cc600]
call fcn.00407680
call fcn.00406abc
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 [0x429668]
call fcn.0040bf00
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 0x4297d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4297a1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7cc4e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7d0c54]
call fcn.0040c36c
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 0x4297c4
lea eax, [ebp - 4]
mov edx, dword [0x429668]
call fcn.0040c024
ret
Function at 0x42aaa0
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 0x42ab76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a014
lea eax, [ebp - 4]
call fcn.0040a17c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a80c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ab60
mov eax, ebx
call fcn.00406948
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ab59
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.0040a80c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42ab43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ab88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42ab43
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 0x42ab60
mov eax, dword [ebp - 0x10]
call fcn.00406964
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ab7d
lea eax, [ebp - 4]
call fcn.00409bec
ret

Function at 0x42b798
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.0040a0bc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040de78
mov edi, eax
cmp edi, 0x104
jbe 0x42b743
mov eax, edi
add eax, eax
call fcn.00406948
mov esi, eax
jmp 0x42b745
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040de78
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42b77e
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 0x42b768
mov eax, esp
cmp esi, eax
je 0x42b78b
mov eax, esi
call fcn.00406964
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 0x42b7c4
cmp bl, 0
je 0x42b7c0
cmp bl, 0x41
jl 0x42b7bb
cmp bl, 0x5a
jg 0x42b7bb
or bl, 0x20
xor al, bl
inc esi
jmp 0x42b79f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42b704