joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4294d0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.00416bf0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x4295bf
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x429663
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x4295f8
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4295f0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x429660
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x42967a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x429632
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x429632
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x429632
Function at 0x4075a8
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.0040ab08
test esi, esi
jne 0x4075de
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.0040aca0
jmp 0x4075fc
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407488
mov edi, eax
test esi, esi
je 0x4075fc
cmp dword [ebx], 0
je 0x4075fc
dec esi
jmp 0x4075e5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409740
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.00409c00
mov byte [esp], al
cmp byte [esp], 0
jne 0x4098c9
test edi, edi
je 0x4098c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409809
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4097e4
cmp edi, 0xffffffff
je 0x4097a5
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4097a5
mov byte [esp], 0
jmp 0x4098c9
cmp dword [esi], 1
jg 0x4097e4
cmp dword [esi], 0
jne 0x4097d6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4097d6
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4098c9
lea eax, [esp + 0xc]
call fcn.004093d8
dec ebp
test ebp, ebp
jg 0x40978a
cmp edi, 0xffffffff
je 0x409809
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409807
mov byte [esp], 0
jmp 0x4098c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40974e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409809
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409944
mov edx, eax
mov ebx, dword [0x5888fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40986d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40986b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40986d
xor edi, edi
cmp byte [esp], 0
je 0x409893
mov ebx, dword [esi]
test bl, 1
jne 0x4098a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409873
mov byte [esp + 1], 1
jmp 0x4098a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409893
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409820
cmp byte [esp], 0
je 0x4098c9
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 0x40a7a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x588058], 0
je 0x40a807
cmp word [0x588348], 0xd7b2
jne 0x40a7c9
cmp dword [0x588350], 0
jbe 0x40a7c9
mov eax, 0x588344
call dword [0x588360]
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, 0x40a834
call fcn.0040b370
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x580036], 0
jne 0x40a823
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a9c8
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 [0x580038], 0
je 0x40a9f3
mov edx, edi
mov eax, esi
call dword [0x580038]
mov ebx, eax
jmp 0x40aa04
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x588059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a990
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 0x40aa34
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e68c
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 0x40e7f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ab08
cmp si, word [0x580a18]
jb 0x40e724
cmp si, word [0x580c18]
ja 0x40e724
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e724
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x580a18]
jae 0x40e6fe
mov edi, ebx
dec edi
jmp 0x40e71f
cmp si, word [ebx*8 + 0x580a18]
jbe 0x40e70e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e71f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x580a1c]
call fcn.0040e5ac
jmp 0x40e724
cmp edi, dword [ebp - 8]
jae 0x40e6e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e7d3
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40e7d3
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.0040b674
push dword [ebp - 0x160]
push 0x40e810
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b674
push dword [ebp - 0x164]
push 0x40e820
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b674
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b8b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7fa
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ab68
pop eax
jmp eax
Function at 0x40e9a8
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 0x40eaae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x58ac14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x58ac2c]
jne 0x40e9f4
mov eax, esi
mov edx, 0x58ac2e
mov ecx, 0x55
call fcn.0040b674
push 0x58ac14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40ea96
push 0x58ac14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040ab08
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40ea63
cmp byte [0x58ac10], 0
je 0x40ea28
mov edx, esi
mov eax, ebx
call fcn.0040e88c
jmp 0x40ea63
mov edx, esi
mov eax, ebx
call fcn.0040e68c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ea63
cmp dword [esi], 0
je 0x40ea4c
mov eax, esi
mov edx, 0x40eac8
call fcn.0040b7d0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e68c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b7d0
push 0x58ac14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x58ac2c], bx
mov eax, dword [esi]
call fcn.0040b5c0
mov ecx, eax
mov eax, 0x58ac2e
mov edx, 0xaa
call fcn.0040e50c
push 0x58ac14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eab5
lea eax, [ebp - 4]
call fcn.0040ab08
pop eax
jmp eax
Function at 0x40ecf0
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.0040abfc
xor eax, eax
push ebp
push 0x40ef18
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ed36
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40ed50
mov eax, dword [ebp - 4]
call fcn.0040b5c0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e50c
cmp word [ebp - 0x21e], 0
je 0x40eefb
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee1f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee1f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee1f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee1f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee1f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40efcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40eefb
xor eax, eax
push ebp
push 0x40eef4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040eaf0
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 0x40ee82
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
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.0040b620
jmp 0x40eecd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f00c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40eecd
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f00c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eefb
cmp dword [ebp - 0xc], 0
je 0x40eee8
mov eax, dword [ebp - 0xc]
call fcn.00406e58
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 0x40ef1f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ab68
pop eax
jmp eax
Function at 0x40f228
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.0040abfc
xor eax, eax
push ebp
push 0x40f2ea
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.0040b674
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b828
mov eax, dword [ebx]
call fcn.0040f0d4
test al, al
jne 0x40f2c5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b674
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b828
mov eax, dword [ebx]
call fcn.0040f0d4
test al, al
jne 0x40f2c5
mov eax, ebx
call fcn.0040ab08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2f1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ab68
lea eax, [ebp - 4]
call fcn.0040ab08
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x422289
test eax, edx
je 0x42228c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422247
movzx eax, word [eax]
sub eax, ecx
jmp 0x42226e
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 0x42226f
add ecx, 4
js 0x42225f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42226c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42226e
xor eax, eax
ret
test eax, eax
je 0x422298
test edx, edx
jne 0x422238
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42354c
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.0040b5c0
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4235b6
test ah, 4
je 0x4235af
test bl, bl
jne 0x423574
mov al, 1
jmp 0x4235dd
test al, 0x10
je 0x42357c
xor eax, eax
jmp 0x4235dd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4235a0
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4235dd
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4235dd
test al, 0x10
sete al
jmp 0x4235dd
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4235d7
cmp ebx, 3
je 0x4235d7
cmp ebx, 0x7b
je 0x4235d7
mov eax, esi
call fcn.0042350c
test al, al
jne 0x4235db
xor eax, eax
jmp 0x4235dd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4235e4
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.0040b5c0
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x423682
test esi, 0x400
jne 0x423619
test esi, 0x10
setne bl
jmp 0x423682
cmp byte [esp], 0
je 0x42364d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x423682
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x423682
test esi, 0x10
je 0x423659
mov bl, 1
jmp 0x423682
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x423680
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x423682
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42368c
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.0040b5c0
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4236e1
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4236db
test ah, 4
je 0x4236db
test al, 0x10
je 0x4236db
mov eax, esi
call fcn.0040b5c0
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4236e1
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4285c4
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 0x4285fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040aca0
jmp 0x428606
mov eax, ebx
mov edx, esi
call fcn.0040aef8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x42a32c
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 0x42a453
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a134
mov esi, eax
mov eax, dword [0x587cc0]
cmp byte [eax], 0
je 0x42a3f9
mov eax, dword [0x587774]
call fcn.00407fec
call fcn.00406fb4
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 [0x42a2fc]
call fcn.0040dae0
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 0x42a46c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42a435
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5876c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x58b634]
call fcn.0040e1b0
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 0x42a45a
lea eax, [ebp - 4]
mov edx, dword [0x42a2fc]
call fcn.0040dc04
pop eax
jmp eax
Function at 0x42b9d8
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 0x42ba1b
mov eax, dword [ebp - 0x10c]
mov dword [0x58b8ec], eax
mov eax, 0x58b8f0
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b674
mov eax, 0x58b8f4
call fcn.0040ab08
xor eax, eax
mov dword [0x58b8f8], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x58b7b0], 0xa
jl 0x42bb71
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42bb7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42bb71
xor eax, eax
push ebp
push 0x42bb6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42bbd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42baca
cmp dword [ebp - 8], 2
jle 0x42baca
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42ba9d
adc edx, 0
mov eax, 0x58b8f4
call fcn.0040b74c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x58b8f4]
call fcn.0040b5c0
push eax
push 0
push 0
push 0x42bbd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42bb24
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42bbf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42bb24
cmp dword [ebp - 8], 2
jle 0x42bb24
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42baf9
adc edx, 0
mov eax, 0x58b8f4
call fcn.0040b74c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x58b8f4]
call fcn.0040b5c0
push eax
push 0
push 0
push 0x42bbf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x58b8f8
push 0
push 0
push 0x42bc0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42bb51
xor eax, eax
mov dword [0x58b8f8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bb71
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x582720], 1
mov esp, ebp
pop ebp
ret