joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076f4
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.0040a3dc
test esi, esi
jne 0x40772a
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.0040a574
jmp 0x407748
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407638
mov edi, eax
test esi, esi
je 0x407748
cmp dword [ebx], 0
je 0x407748
dec esi
jmp 0x407731
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409024
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.004094e4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4091ad
test edi, edi
je 0x4091ad
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090c8
cmp edi, 0xffffffff
je 0x409089
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409089
mov byte [esp], 0
jmp 0x4091ad
cmp dword [esi], 1
jg 0x4090c8
cmp dword [esi], 0
jne 0x4090ba
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4090ba
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4091ad
lea eax, [esp + 0xc]
call fcn.00408cd8
dec ebp
test ebp, ebp
jg 0x40906e
cmp edi, 0xffffffff
je 0x4090ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090eb
mov byte [esp], 0
jmp 0x4091ad
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409032
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409228
mov edx, eax
mov ebx, dword [0x6408fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409151
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40914f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409151
xor edi, edi
cmp byte [esp], 0
je 0x409177
mov ebx, dword [esi]
test bl, 1
jne 0x40918d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409157
mov byte [esp + 1], 1
jmp 0x40918d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409177
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409104
cmp byte [esp], 0
je 0x4091ad
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 0x40a074
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64005c], 0
je 0x40a0db
cmp word [0x640348], 0xd7b2
jne 0x40a09d
cmp dword [0x640350], 0
jbe 0x40a09d
mov eax, 0x640344
call dword [0x640360]
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, 0x40a108
call fcn.0040abf4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x639036], 0
jne 0x40a0f7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a29c
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 [0x639038], 0
je 0x40a2c7
mov edx, edi
mov eax, esi
call dword [0x639038]
mov ebx, eax
jmp 0x40a2d8
mov eax, 8
call fcn.00406fe8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x64005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a264
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 0x40a308
mov eax, ebx
call fcn.00407004
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40db70
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 0x40dcd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a3dc
cmp si, word [0x639a18]
jb 0x40dc08
cmp si, word [0x639c18]
ja 0x40dc08
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dc08
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x639a18]
jae 0x40dbe2
mov edi, ebx
dec edi
jmp 0x40dc03
cmp si, word [ebx*8 + 0x639a18]
jbe 0x40dbf2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dc03
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x639a1c]
call fcn.0040da8c
jmp 0x40dc08
cmp edi, dword [ebp - 8]
jae 0x40dbcc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dcb7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dcb7
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.0040aef4
push dword [ebp - 0x160]
push 0x40dcf4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aef4
push dword [ebp - 0x164]
push 0x40dd04
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aef4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b12c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcde
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a43c
pop eax
jmp eax
Function at 0x40de8c
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 0x40df92
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x642c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x642c30]
jne 0x40ded8
mov eax, esi
mov edx, 0x642c32
mov ecx, 0x55
call fcn.0040aef4
push 0x642c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40df7a
push 0x642c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a3dc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df47
cmp byte [0x642c14], 0
je 0x40df0c
mov edx, esi
mov eax, ebx
call fcn.0040dd70
jmp 0x40df47
mov edx, esi
mov eax, ebx
call fcn.0040db70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40df47
cmp dword [esi], 0
je 0x40df30
mov eax, esi
mov edx, 0x40dfac
call fcn.0040b04c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040db70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b04c
push 0x642c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x642c30], bx
mov eax, dword [esi]
call fcn.0040ae40
mov ecx, eax
mov eax, 0x642c32
mov edx, 0xaa
call fcn.0040d9ec
push 0x642c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df99
lea eax, [ebp - 4]
call fcn.0040a3dc
pop eax
jmp eax
Function at 0x40e1d4
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.0040a4d0
xor eax, eax
push ebp
push 0x40e3fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e21a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e234
mov eax, dword [ebp - 4]
call fcn.0040ae40
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d9ec
cmp word [ebp - 0x21e], 0
je 0x40e3df
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e40c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e303
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e40c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e303
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e448
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e303
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e448
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e303
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e47c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e303
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e3df
xor eax, eax
push ebp
push 0x40e3d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dfd4
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 0x40e366
mov eax, dword [ebp - 0x14]
call fcn.00406fe8
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.0040aea0
jmp 0x40e3b1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e4f0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e3b1
mov eax, dword [ebp - 0x14]
call fcn.00406fe8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e4f0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3df
cmp dword [ebp - 0xc], 0
je 0x40e3cc
mov eax, dword [ebp - 0xc]
call fcn.00407004
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 0x40e403
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a43c
pop eax
jmp eax
Function at 0x40e710
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.0040a4d0
xor eax, eax
push ebp
push 0x40e7d2
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.0040aef4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b0a4
mov eax, dword [ebx]
call fcn.0040e5b8
test al, al
jne 0x40e7ad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aef4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b0a4
mov eax, dword [ebx]
call fcn.0040e5b8
test al, al
jne 0x40e7ad
mov eax, ebx
call fcn.0040a3dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7d9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a43c
lea eax, [ebp - 4]
call fcn.0040a3dc
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x424769
test eax, edx
je 0x42476c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x424727
movzx eax, word [eax]
sub eax, ecx
jmp 0x42474e
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 0x42474f
add ecx, 4
js 0x42473f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42474c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42474e
xor eax, eax
ret
test eax, eax
je 0x424778
test edx, edx
jne 0x424718
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x425bb8
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.0040ae40
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425c22
test ah, 4
je 0x425c1b
test bl, bl
jne 0x425be0
mov al, 1
jmp 0x425c49
test al, 0x10
je 0x425be8
xor eax, eax
jmp 0x425c49
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425c0c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x425c49
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x425c49
test al, 0x10
sete al
jmp 0x425c49
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x425c43
cmp ebx, 3
je 0x425c43
cmp ebx, 0x7b
je 0x425c43
mov eax, esi
call fcn.00425b78
test al, al
jne 0x425c47
xor eax, eax
jmp 0x425c49
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x425c50
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.0040ae40
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x425cee
test esi, 0x400
jne 0x425c85
test esi, 0x10
setne bl
jmp 0x425cee
cmp byte [esp], 0
je 0x425cb9
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425cee
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x425cee
test esi, 0x10
je 0x425cc5
mov bl, 1
jmp 0x425cee
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425cec
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x425cee
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42a650
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 0x42a689
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a574
jmp 0x42a692
mov eax, ebx
mov edx, esi
call fcn.0040a7cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a69c
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 0x42a6c0
movzx eax, word [esp]
jmp 0x42a6c2
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42bde0
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 0x42bf07
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042bbe8
mov esi, eax
mov eax, dword [0x63f144]
cmp byte [eax], 0
je 0x42bead
mov eax, dword [0x63ec98]
call fcn.00407dac
call fcn.0040715c
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 [0x42bdb0]
call fcn.0040d0cc
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 0x42bf20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42bee9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x63ebe8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x64363c]
call fcn.0040d690
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 0x42bf0e
lea eax, [ebp - 4]
mov edx, dword [0x42bdb0]
call fcn.0040d1f0
pop eax
jmp eax
Function at 0x42d3c0
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 0x42d403
mov eax, dword [ebp - 0x10c]
mov dword [0x6438fc], eax
mov eax, 0x643900
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040aef4
mov eax, 0x643904
call fcn.0040a3dc
xor eax, eax
mov dword [0x643908], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6437c0], 0xa
jl 0x42d559
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42d564
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42d559
xor eax, eax
push ebp
push 0x42d552
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42d5c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42d4b2
cmp dword [ebp - 8], 2
jle 0x42d4b2
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42d485
adc edx, 0
mov eax, 0x643904
call fcn.0040afcc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x643904]
call fcn.0040ae40
push eax
push 0
push 0
push 0x42d5c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42d50c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42d5e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42d50c
cmp dword [ebp - 8], 2
jle 0x42d50c
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42d4e1
adc edx, 0
mov eax, 0x643904
call fcn.0040afcc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x643904]
call fcn.0040ae40
push eax
push 0
push 0
push 0x42d5e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x643908
push 0
push 0
push 0x42d5f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42d539
xor eax, eax
mov dword [0x643908], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d559
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x63b710], 1
mov esp, ebp
pop ebp
ret
Function at 0x42d69c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d776
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a814
lea eax, [ebp - 4]
call fcn.0040a934
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae40
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42d75e
mov eax, ebx
call fcn.00406fe8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42d757
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae40
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42d73f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42d788
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42d73f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d75e
mov eax, dword [ebp - 0x10]
call fcn.00407004
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d77d
lea eax, [ebp - 4]
call fcn.0040a3dc
pop eax
jmp eax

Function at 0x42e714
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.0040a8c0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410318
mov edi, eax
cmp edi, 0x104
jbe 0x42e6bf
mov eax, edi
add eax, eax
call fcn.00406fe8
mov esi, eax
jmp 0x42e6c1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410318
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42e6fa
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 0x42e6e4
mov eax, esp
cmp esi, eax
je 0x42e707
mov eax, esi
call fcn.00407004
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 0x42e740
cmp bl, 0
je 0x42e73c
cmp bl, 0x41
jl 0x42e737
cmp bl, 0x5a
jg 0x42e737
or bl, 0x20
xor al, bl
inc esi
jmp 0x42e71b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42e680

Function at 0x42f058
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.0040aef4
add esp, 0x800
pop ebx
ret
Function at 0x431910
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 0x431930
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x43194a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x431945
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x43194f
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x4319bd
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x431a06
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43197b
inc dword [ebp - 0xc]
jmp 0x431993
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x431993
cmp dword [ebp - 0xc], 0
jle 0x431993
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x4319b5
xor eax, eax
jmp 0x4319b1
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4319b0
mov eax, esi
jmp 0x431a09
inc eax
cmp eax, ecx
jle 0x43199d
inc esi
cmp esi, dword [ebp - 8]
jl 0x431967
jmp 0x431a06
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x431a06
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4319de
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x431a00
xor eax, eax
jmp 0x4319fc
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4319fb
mov eax, esi
jmp 0x431a09
inc eax
cmp eax, ecx
jle 0x4319e8
inc esi
cmp esi, dword [ebp - 8]
jl 0x4319c6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10