joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a280
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 [0x4d5038], 0
je 0x40a2ab
mov edx, edi
mov eax, esi
call dword [0x4d5038]
mov ebx, eax
jmp 0x40a2bc
mov eax, 8
call fcn.00406f78
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d9059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a248
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 0x40a2ec
mov eax, ebx
call fcn.00406f94
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d9b0
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 0x40db17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a3c0
cmp si, word [0x4d5a18]
jb 0x40da48
cmp si, word [0x4d5c18]
ja 0x40da48
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40da48
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d5a18]
jae 0x40da22
mov edi, ebx
dec edi
jmp 0x40da43
cmp si, word [ebx*8 + 0x4d5a18]
jbe 0x40da32
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40da43
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d5a1c]
call fcn.0040d8cc
jmp 0x40da48
cmp edi, dword [ebp - 8]
jae 0x40da0c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40daf7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40daf7
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.0040aec0
push dword [ebp - 0x160]
push 0x40db34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aec0
push dword [ebp - 0x164]
push 0x40db44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aec0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b0f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db1e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a420
pop eax
jmp eax
Function at 0x40dccc
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 0x40ddd2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dbc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dbc2c]
jne 0x40dd18
mov eax, esi
mov edx, 0x4dbc2e
mov ecx, 0x55
call fcn.0040aec0
push 0x4dbc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ddba
push 0x4dbc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a3c0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd87
cmp byte [0x4dbc10], 0
je 0x40dd4c
mov edx, esi
mov eax, ebx
call fcn.0040dbb0
jmp 0x40dd87
mov edx, esi
mov eax, ebx
call fcn.0040d9b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dd87
cmp dword [esi], 0
je 0x40dd70
mov eax, esi
mov edx, 0x40ddec
call fcn.0040b018
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d9b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b018
push 0x4dbc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dbc2c], bx
mov eax, dword [esi]
call fcn.0040ae24
mov ecx, eax
mov eax, 0x4dbc2e
mov edx, 0xaa
call fcn.0040d82c
push 0x4dbc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddd9
lea eax, [ebp - 4]
call fcn.0040a3c0
pop eax
jmp eax
Function at 0x40e014
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a4b4
xor eax, eax
push ebp
push 0x40e23c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e05a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e074
mov eax, dword [ebp - 4]
call fcn.0040ae24
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d82c
cmp word [ebp - 0x21e], 0
je 0x40e21f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e24c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e143
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e24c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e143
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e143
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e288
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e143
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e2bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e143
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e2f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e21f
xor eax, eax
push ebp
push 0x40e218
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040de14
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e1a6
mov eax, dword [ebp - 0x14]
call fcn.00406f78
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae84
jmp 0x40e1f1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e330
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e1f1
mov eax, dword [ebp - 0x14]
call fcn.00406f78
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e330
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e21f
cmp dword [ebp - 0xc], 0
je 0x40e20c
mov eax, dword [ebp - 0xc]
call fcn.00406f94
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e243
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a420
pop eax
jmp eax
Function at 0x40e550
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.0040a4b4
xor eax, eax
push ebp
push 0x40e612
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.0040aec0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b070
mov eax, dword [ebx]
call fcn.0040e3f8
test al, al
jne 0x40e5ed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aec0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b070
mov eax, dword [ebx]
call fcn.0040e3f8
test al, al
jne 0x40e5ed
mov eax, ebx
call fcn.0040a3c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e619
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a420
lea eax, [ebp - 4]
call fcn.0040a3c0
pop eax
jmp eax

Function at 0x4100e8
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 0x420ee0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x421010
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x420fe8
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x420fd1
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040aec0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b284
test eax, eax
jle 0x420fd1
mov eax, dword [ebp - 4]
test eax, eax
je 0x420f85
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x420f93
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040b1e0
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ae84
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040b070
jmp 0x420fe8
add ebx, 2
cmp word [ebx], 0
jne 0x420fce
add ebx, 4
test ebx, ebx
je 0x420fe2
cmp word [ebx], 0
jne 0x420f32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421017
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a420
lea eax, [ebp - 4]
call fcn.0040a3c0
pop eax
jmp eax
Function at 0x4213c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00429ec4
test al, al
je 0x42148e
xor edx, edx
mov eax, ebx
call fcn.00422690
test al, al
je 0x42148e
mov eax, ebx
call fcn.00422444
test al, 0x20
je 0x42148e
mov eax, ebx
call fcn.0040ae24
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42148e
test ah, 4
je 0x42148e
test al, 0x10
je 0x42142b
mov edi, 0x2000000
jmp 0x42142d
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040ae24
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42148e
xor eax, eax
push ebp
push 0x421487
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0042110c
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42148e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42153c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421595
test eax, edx
je 0x421598
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421553
movzx eax, word [eax]
sub eax, ecx
jmp 0x42157a
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 0x42157b
add ecx, 4
js 0x42156b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421578
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42157a
xor eax, eax
ret
test eax, eax
je 0x4215a4
test edx, edx
jne 0x421544
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x422444
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 0x422598
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4223e4]
call fcn.0040cf3c
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x422414]
call fcn.0040cf3c
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00422728
test al, al
jne 0x4224ba
mov dl, 1
mov eax, esi
call fcn.00422690
test al, al
je 0x422544
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00422b0c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042a2a0
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.0040ae24
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42253f
test byte [ebp - 0x14], 1
je 0x42250a
or bl, 1
test byte [ebp - 0x14], 2
je 0x422513
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42251c
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422530
dec eax
je 0x422535
dec eax
je 0x42253a
dec eax
jne 0x42255c
or bl, 0x10
jmp 0x42255c
or bl, 4
jmp 0x42255c
or bl, 8
jmp 0x42255c
call fcn.0042b2a4
push esi
mov ecx, dword [0x4d8cb0]
mov dl, 1
mov eax, dword [0x41b304]
call fcn.00429368
call fcn.00409ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42259f
lea eax, [ebp - 0x1c]
call fcn.0040a3c0
lea eax, [ebp - 0xc]
mov edx, dword [0x422414]
call fcn.0040d060
lea eax, [ebp - 8]
mov edx, dword [0x4223e4]
call fcn.0040d060
lea eax, [ebp - 4]
call fcn.0040a3c0
pop eax
jmp eax

Function at 0x422690
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.0040ae24
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4226fa
test ah, 4
je 0x4226f3
test bl, bl
jne 0x4226b8
mov al, 1
jmp 0x422721
test al, 0x10
je 0x4226c0
xor eax, eax
jmp 0x422721
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4226e4
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x422721
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422721
test al, 0x10
sete al
jmp 0x422721
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42271b
cmp ebx, 3
je 0x42271b
cmp ebx, 0x7b
je 0x42271b
mov eax, esi
call fcn.00422650
test al, al
jne 0x42271f
xor eax, eax
jmp 0x422721
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x422728
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.0040ae24
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4227c6
test esi, 0x400
jne 0x42275d
test esi, 0x10
setne bl
jmp 0x4227c6
cmp byte [esp], 0
je 0x422791
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4227c6
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4227c6
test esi, 0x10
je 0x42279d
mov bl, 1
jmp 0x4227c6
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4227c4
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4227c6
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4227d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4228a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a7f8
cmp byte [ebp - 9], 0
je 0x422861
mov eax, ebx
call fcn.0040ae24
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x422861
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004213c4
test al, al
je 0x422861
mov eax, dword [ebp - 8]
call fcn.00422c1c
test al, al
je 0x422856
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00422a40
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042a2a0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040b070
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a7f8
push edi
mov eax, dword [ebp - 4]
call fcn.0040ae24
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x42287b
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4228ac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a420
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a420
pop eax
jmp eax

Function at 0x4229e4
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.0040ae24
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x422a39
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422a33
test ah, 4
je 0x422a33
test al, 0x10
je 0x422a33
mov eax, esi
call fcn.0040ae24
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x422a39
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x427164
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 0x42719d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a558
jmp 0x4271a6
mov eax, ebx
mov edx, esi
call fcn.0040a7b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4271b0
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 0x4271d4
movzx eax, word [esp]
jmp 0x4271d6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4288f4
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 0x428a1b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004286fc
mov esi, eax
mov eax, dword [0x4d8c34]
cmp byte [eax], 0
je 0x4289c1
mov eax, dword [0x4d8a74]
call fcn.00407df4
call fcn.004070ec
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 [0x4288c4]
call fcn.0040cf3c
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 0x428a34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4289fd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d8a38]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc634]
call fcn.0040d4d0
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 0x428a22
lea eax, [ebp - 4]
mov edx, dword [0x4288c4]
call fcn.0040d060
pop eax
jmp eax
Function at 0x42b0ec
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.0040a8a4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004100c8
mov edi, eax
cmp edi, 0x104
jbe 0x42b097
mov eax, edi
add eax, eax
call fcn.00406f78
mov esi, eax
jmp 0x42b099
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004100c8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42b0d2
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 0x42b0bc
mov eax, esp
cmp esi, eax
je 0x42b0df
mov eax, esi
call fcn.00406f94
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 0x42b118
cmp bl, 0
je 0x42b114
cmp bl, 0x41
jl 0x42b10f
cmp bl, 0x5a
jg 0x42b10f
or bl, 0x20
xor al, bl
inc esi
jmp 0x42b0f3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42b058

Function at 0x42ba10
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040aec0
add esp, 0x800
pop ebx
ret
Function at 0x42e240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e260
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42e27a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e275
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42e27f
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42e2ed
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42e336
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e2ab
inc dword [ebp - 0xc]
jmp 0x42e2c3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42e2c3
cmp dword [ebp - 0xc], 0
jle 0x42e2c3
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42e2e5
xor eax, eax
jmp 0x42e2e1
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e2e0
mov eax, esi
jmp 0x42e339
inc eax
cmp eax, ecx
jle 0x42e2cd
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e297
jmp 0x42e336
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42e336
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e30e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42e330
xor eax, eax
jmp 0x42e32c
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e32b
mov eax, esi
jmp 0x42e339
inc eax
cmp eax, ecx
jle 0x42e318
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e2f6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10