joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b89c
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 [0x74c038], 0
je 0x40b8c7
mov edx, edi
mov eax, esi
call dword [0x74c038]
mov ebx, eax
jmp 0x40b8d8
mov eax, 8
call fcn.00406e94
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x75e05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b864
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 0x40b908
mov eax, ebx
call fcn.00406eb0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40fcd0
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 0x40fe37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b9dc
cmp si, word [0x74ca20]
jb 0x40fd68
cmp si, word [0x74cc20]
ja 0x40fd68
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40fd68
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x74ca20]
jae 0x40fd42
mov edi, ebx
dec edi
jmp 0x40fd63
cmp si, word [ebx*8 + 0x74ca20]
jbe 0x40fd52
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40fd63
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x74ca24]
call fcn.0040fbf0
jmp 0x40fd68
cmp edi, dword [ebp - 8]
jae 0x40fd2c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40fe17
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40fe17
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.0040c8ec
push dword [ebp - 0x160]
push 0x40fe54
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c8ec
push dword [ebp - 0x164]
push 0x40fe64
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c8ec
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040cb24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe3e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ba3c
pop eax
jmp eax
Function at 0x40ffec
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 0x4100f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x760c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x760c30]
jne 0x410038
mov eax, esi
mov edx, 0x760c32
mov ecx, 0x55
call fcn.0040c8ec
push 0x760c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4100da
push 0x760c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b9dc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4100a7
cmp byte [0x760c14], 0
je 0x41006c
mov edx, esi
mov eax, ebx
call fcn.0040fed0
jmp 0x4100a7
mov edx, esi
mov eax, ebx
call fcn.0040fcd0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4100a7
cmp dword [esi], 0
je 0x410090
mov eax, esi
mov edx, 0x41010c
call fcn.0040ca44
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040fcd0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ca44
push 0x760c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x760c30], bx
mov eax, dword [esi]
call fcn.0040c850
mov ecx, eax
mov eax, 0x760c32
mov edx, 0xaa
call fcn.0040fb50
push 0x760c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4100f9
lea eax, [ebp - 4]
call fcn.0040b9dc
pop eax
jmp eax
Function at 0x410334
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.0040bad0
xor eax, eax
push ebp
push 0x41055c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x41037a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x410394
mov eax, dword [ebp - 4]
call fcn.0040c850
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040fb50
cmp word [ebp - 0x21e], 0
je 0x41053f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41056c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410463
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41056c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410463
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4105a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410463
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4105a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410463
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4105dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x410463
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x410610
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x41053f
xor eax, eax
push ebp
push 0x410538
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.00410134
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 0x4104c6
mov eax, dword [ebp - 0x14]
call fcn.00406e94
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.0040c8b0
jmp 0x410511
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x410650
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x410511
mov eax, dword [ebp - 0x14]
call fcn.00406e94
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x410650
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c8b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41053f
cmp dword [ebp - 0xc], 0
je 0x41052c
mov eax, dword [ebp - 0xc]
call fcn.00406eb0
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 0x410563
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ba3c
pop eax
jmp eax
Function at 0x41086c
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.0040bad0
xor eax, eax
push ebp
push 0x41092e
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.0040c8ec
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ca9c
mov eax, dword [ebx]
call fcn.00410718
test al, al
jne 0x410909
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c8ec
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ca9c
mov eax, dword [ebx]
call fcn.00410718
test al, al
jne 0x410909
mov eax, ebx
call fcn.0040b9dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410935
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ba3c
lea eax, [ebp - 4]
call fcn.0040b9dc
pop eax
jmp eax

Function at 0x412598
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 0x427804
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.0043255c
test al, al
je 0x4278ce
xor edx, edx
mov eax, ebx
call fcn.0042914c
test al, al
je 0x4278ce
mov eax, ebx
call fcn.00428f00
test al, 0x20
je 0x4278ce
mov eax, ebx
call fcn.0040c850
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4278ce
test ah, 4
je 0x4278ce
test al, 0x10
je 0x42786b
mov edi, 0x2000000
jmp 0x42786d
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040c850
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4278ce
xor eax, eax
push ebp
push 0x4278c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00427548
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4278ce
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 0x427b28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x427b81
test eax, edx
je 0x427b84
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x427b3f
movzx eax, word [eax]
sub eax, ecx
jmp 0x427b66
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 0x427b67
add ecx, 4
js 0x427b57
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x427b64
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x427b66
xor eax, eax
ret
test eax, eax
je 0x427b90
test edx, edx
jne 0x427b30
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x428f00
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 0x429054
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x428ea0]
call fcn.0040f0f4
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x428ed0]
call fcn.0040f0f4
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004291e4
test al, al
jne 0x428f76
mov dl, 1
mov eax, esi
call fcn.0042914c
test al, al
je 0x429000
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00429944
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00432a10
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.0040c850
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x428ffb
test byte [ebp - 0x14], 1
je 0x428fc6
or bl, 1
test byte [ebp - 0x14], 2
je 0x428fcf
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x428fd8
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x428fec
dec eax
je 0x428ff1
dec eax
je 0x428ff6
dec eax
jne 0x429018
or bl, 0x10
jmp 0x429018
or bl, 4
jmp 0x429018
or bl, 8
jmp 0x429018
call fcn.00433a64
push esi
mov ecx, dword [0x75d560]
mov dl, 1
mov eax, dword [0x4213d0]
call fcn.0043175c
call fcn.0040b088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42905b
lea eax, [ebp - 0x1c]
call fcn.0040b9dc
lea eax, [ebp - 0xc]
mov edx, dword [0x428ed0]
call fcn.0040f218
lea eax, [ebp - 8]
mov edx, dword [0x428ea0]
call fcn.0040f218
lea eax, [ebp - 4]
call fcn.0040b9dc
pop eax
jmp eax

Function at 0x42914c
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.0040c850
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4291b6
test ah, 4
je 0x4291af
test bl, bl
jne 0x429174
mov al, 1
jmp 0x4291dd
test al, 0x10
je 0x42917c
xor eax, eax
jmp 0x4291dd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4291a0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4291dd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4291dd
test al, 0x10
sete al
jmp 0x4291dd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4291d7
cmp ebx, 3
je 0x4291d7
cmp ebx, 0x7b
je 0x4291d7
mov eax, esi
call fcn.0042910c
test al, al
jne 0x4291db
xor eax, eax
jmp 0x4291dd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4291e4
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.0040c850
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x429282
test esi, 0x400
jne 0x429219
test esi, 0x10
setne bl
jmp 0x429282
cmp byte [esp], 0
je 0x42924d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429282
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x429282
test esi, 0x10
je 0x429259
mov bl, 1
jmp 0x429282
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429280
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x429282
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429388
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42942f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040c850
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x429412
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00427804
test al, al
je 0x429412
mov eax, dword [ebp - 4]
call fcn.00429ac8
test al, al
je 0x429402
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00429808
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00432a10
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040ca9c
mov eax, dword [ebp - 4]
call fcn.0040c850
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429436
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040ba3c
pop eax
jmp eax
Function at 0x429440
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 0x429515
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040be14
cmp byte [ebp - 9], 0
je 0x4294d1
mov eax, ebx
call fcn.0040c850
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4294d1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00427804
test al, al
je 0x4294d1
mov eax, dword [ebp - 8]
call fcn.00429ac8
test al, al
je 0x4294c6
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00429808
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00432a10
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040ca9c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040be14
push edi
mov eax, dword [ebp - 4]
call fcn.0040c850
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4294eb
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42951c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ba3c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ba3c
pop eax
jmp eax

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

Function at 0x42eeb8
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 0x42eef1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040bb74
jmp 0x42eefa
mov eax, ebx
mov edx, esi
call fcn.0040bdcc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ef04
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 0x42ef28
movzx eax, word [esp]
jmp 0x42ef2a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x430c20
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 0x430d47
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00430a28
mov esi, eax
mov eax, dword [0x75d3cc]
cmp byte [eax], 0
je 0x430ced
mov eax, dword [0x75cdc8]
call fcn.00408214
call fcn.00407008
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 [0x430bf0]
call fcn.0040f0f4
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 0x430d60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x430d29
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x75cce4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x76163c]
call fcn.0040f7f4
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 0x430d4e
lea eax, [ebp - 4]
mov edx, dword [0x430bf0]
call fcn.0040f218
pop eax
jmp eax
Function at 0x4322ac
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 0x4322ef
mov eax, dword [ebp - 0x10c]
mov dword [0x7618fc], eax
mov eax, 0x761900
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040c8ec
mov eax, 0x761904
call fcn.0040b9dc
xor eax, eax
mov dword [0x761908], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x7617c0], 0xa
jl 0x432445
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x432450
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x432445
xor eax, eax
push ebp
push 0x43243e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x4324ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x43239e
cmp dword [ebp - 8], 2
jle 0x43239e
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x432371
adc edx, 0
mov eax, 0x761904
call fcn.0040c9c4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x761904]
call fcn.0040c850
push eax
push 0
push 0
push 0x4324ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x4323f8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x4324cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4323f8
cmp dword [ebp - 8], 2
jle 0x4323f8
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x4323cd
adc edx, 0
mov eax, 0x761904
call fcn.0040c9c4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x761904]
call fcn.0040c850
push eax
push 0
push 0
push 0x4324cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x761908
push 0
push 0
push 0x4324e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x432425
xor eax, eax
mov dword [0x761908], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432445
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x74e770], 1
mov esp, ebp
pop ebp
ret