joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3ac
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.0040a86c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a535
test edi, edi
je 0x40a535
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a475
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a450
cmp edi, 0xffffffff
je 0x40a411
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a411
mov byte [esp], 0
jmp 0x40a535
cmp dword [esi], 1
jg 0x40a450
cmp dword [esi], 0
jne 0x40a442
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a442
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a535
lea eax, [esp + 0xc]
call fcn.0040a068
dec ebp
test ebp, ebp
jg 0x40a3f6
cmp edi, 0xffffffff
je 0x40a475
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a473
mov byte [esp], 0
jmp 0x40a535
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a3ba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a475
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a5b0
mov edx, eax
mov ebx, dword [0x8d3900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a4d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a4d7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a4d9
xor edi, edi
cmp byte [esp], 0
je 0x40a4ff
mov ebx, dword [esi]
test bl, 1
jne 0x40a515
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a4df
mov byte [esp + 1], 1
jmp 0x40a515
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a4ff
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a48c
cmp byte [esp], 0
je 0x40a535
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 0x40b510
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8d305c], 0
je 0x40b577
cmp word [0x8d334c], 0xd7b2
jne 0x40b539
cmp dword [0x8d3354], 0
jbe 0x40b539
mov eax, 0x8d3348
call dword [0x8d3364]
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, 0x40b5a4
call fcn.0040c30c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x8bc036], 0
jne 0x40b593
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b774
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 [0x8bc038], 0
je 0x40b79f
mov edx, edi
mov eax, esi
call dword [0x8bc038]
mov ebx, eax
jmp 0x40b7b0
mov eax, 8
call fcn.00407160
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8d305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b73c
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 0x40b7e0
mov eax, ebx
call fcn.0040717c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40fd7c
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 0x40fee8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b8b4
cmp si, word [0x8bca18]
jb 0x40fe19
cmp si, word [0x8bcc18]
ja 0x40fe19
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jl 0x40fe19
mov ebx, edi
add ebx, dword [ebp - 8]
sar ebx, 1
jns 0x40fde4
adc ebx, 0
cmp si, word [ebx*8 + 0x8bca18]
jae 0x40fdf3
mov edi, ebx
dec edi
jmp 0x40fe14
cmp si, word [ebx*8 + 0x8bca18]
jbe 0x40fe03
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40fe14
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x8bca1c]
call fcn.0040fc9c
jmp 0x40fe19
cmp edi, dword [ebp - 8]
jge 0x40fdd8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40fec8
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40fec8
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.0040c8d8
push dword [ebp - 0x160]
push 0x40ff04
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c8d8
push dword [ebp - 0x164]
push 0x40ff14
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c8d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040cb14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40feef
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b914
pop eax
jmp eax
Function at 0x41009c
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 0x4101a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x8d5c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x8d5c30]
jne 0x4100e8
mov eax, esi
mov edx, 0x8d5c32
mov ecx, 0x55
call fcn.0040c8d8
push 0x8d5c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x41018a
push 0x8d5c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b8b4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x410157
cmp byte [0x8d5c14], 0
je 0x41011c
mov edx, esi
mov eax, ebx
call fcn.0040ff80
jmp 0x410157
mov edx, esi
mov eax, ebx
call fcn.0040fd7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x410157
cmp dword [esi], 0
je 0x410140
mov eax, esi
mov edx, 0x4101bc
call fcn.0040ca34
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040fd7c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ca34
push 0x8d5c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x8d5c30], bx
mov eax, dword [esi]
call fcn.0040c824
mov ecx, eax
mov eax, 0x8d5c32
mov edx, 0xaa
call fcn.0040fbfc
push 0x8d5c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4101a9
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax
Function at 0x41091c
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.0040b9a8
xor eax, eax
push ebp
push 0x4109de
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.0040c8d8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ca8c
mov eax, dword [ebx]
call fcn.004107c8
test al, al
jne 0x4109b9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c8d8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ca8c
mov eax, dword [ebx]
call fcn.004107c8
test al, al
jne 0x4109b9
mov eax, ebx
call fcn.0040b8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109e5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b914
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x412458
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 0x41b0d4
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x28]
mov edx, dword [esp]
lea eax, [edx + eax + 0x44]
mov edx, dword [esp]
movzx edx, byte [edx + 0x3d]
shl edx, 3
lea ecx, [eax + edx]
or edx, 0xffffffff
cmp ecx, eax
je 0x41b102
xor edx, dword [eax]
add eax, 4
cmp ecx, eax
jne 0x41b0f9
mov eax, edx
pop edx
ret

Function at 0x41b6ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x41c924
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x41c92e
mov eax, dword [esp + 0x10000]
add esp, 0xfffffff0
mov dword [esp + 0xc], edx
mov ebx, eax
lea edi, [esp + 0x10]
lea ebp, [esp + 0x1000e]
mov esi, edi
mov eax, ebx
cmp al, 0xf
ja 0x41c966
and eax, 0x7f
bt word [0x8bccc5], ax
jae 0x41c97b
push ebp
mov edx, dword [esp + 0x10]
mov ecx, esi
mov eax, dword [0x8bcccc]
call fcn.0041c830
mov esi, eax
mov dword [esp + 4], esi
movzx eax, bl
cmp eax, 0xa
ja case.default.0x41c98b
jmp dword [eax*4 + 0x41c992]
mov eax, dword [0x8bccd8]
mov edx, dword [0x8bccdc]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bccd0]
mov edx, dword [0x8bccdc]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bccd4]
mov edx, dword [0x8bccdc]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x10], 0
je 0x41ca08
mov eax, dword [0x8bcce4]
jmp 0x41ca0d
mov eax, dword [0x8bcce0]
mov edx, dword [0x8bccf0]
mov dword [esp], edx
jmp 0x41cab3
test byte [0x8bccc5], 8
je 0x41ca2b
mov eax, dword [0x8bccec]
jmp 0x41ca30
mov eax, dword [0x8bcce8]
mov edx, dword [0x8bccf0]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bccf4]
mov edx, dword [0x8bcd0c]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bccf8]
mov edx, dword [0x8bcd0c]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bcd00]
mov edx, dword [0x8bcd0c]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0
je 0x41ca7c
mov eax, dword [0x8bcd08]
jmp 0x41ca81
mov eax, dword [0x8bcd04]
mov edx, dword [0x8bcd0c]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bccfc]
mov edx, dword [0x8bcd0c]
mov dword [esp], edx
jmp 0x41cab3
mov eax, dword [0x8bcd10]
mov edx, dword [0x8bcd14]
mov dword [esp], edx
jmp 0x41cab3
xor eax, eax
xor edx, edx
mov dword [esp], edx
push ebp
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.0041c830
mov esi, eax
mov word [esi], 0
mov eax, ebx
cmp al, 0xf
ja 0x41cad7
and eax, 0x7f
bt word [0x8bccc5], ax
jae 0x41cb19
call fcn.0041c8d4
mov byte [esp + 8], al
cmp byte [esp + 8], 0
jne 0x41caf2
call fcn.0041c8e0
test al, al
je 0x41cb0d
lea eax, [esp + 0x10]
mov ecx, esi
sub ecx, eax
sar ecx, 1
jns 0x41cb01
adc ecx, 0
mov edx, edi
mov eax, dword [0x8e7264]
call fcn.0041b92c
cmp byte [esp + 8], 0
jne 0x41cb19
call fcn.0041c904
mov eax, ebx
cmp al, 0xf
ja 0x41cb2a
and eax, 0x7f
bt word [0x8bccc3], ax
jae 0x41cb32
push edi
call sub.kernel32.dll_OutputDebugStringW
cmp bl, 0xf
ja 0x41cb42
and ebx, 0x7f
bt word [0x8bccc7], bx
jae 0x41cb55
call fcn.0041c904
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.0041b768
add esp, 0x10014
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42f078
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42f0d1
test eax, edx
je 0x42f0d4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42f08f
movzx eax, word [eax]
sub eax, ecx
jmp 0x42f0b6
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 0x42f0b7
add ecx, 4
js 0x42f0a7
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
xor eax, eax
ret
test eax, eax
je 0x42f0e0
test edx, edx
jne 0x42f080
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x43057c
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.0040c824
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4305e6
test ah, 4
je 0x4305df
test bl, bl
jne 0x4305a4
mov al, 1
jmp 0x43060d
test al, 0x10
je 0x4305ac
xor eax, eax
jmp 0x43060d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4305d0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x43060d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x43060d
test al, 0x10
sete al
jmp 0x43060d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x430607
cmp ebx, 3
je 0x430607
cmp ebx, 0x7b
je 0x430607
mov eax, esi
call fcn.0043053c
test al, al
jne 0x43060b
xor eax, eax
jmp 0x43060d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x430614
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.0040c824
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4306b2
test esi, 0x400
jne 0x430649
test esi, 0x10
setne bl
jmp 0x4306b2
cmp byte [esp], 0
je 0x43067d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4306b2
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4306b2
test esi, 0x10
je 0x430689
mov bl, 1
jmp 0x4306b2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4306b0
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4306b2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430928
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.0040c824
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x43097d
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x430977
test ah, 4
je 0x430977
test al, 0x10
je 0x430977
mov eax, esi
call fcn.0040c824
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x43097d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x436344
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 0x43637d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ba4c
jmp 0x436386
mov eax, ebx
mov edx, esi
call fcn.0040bca4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x43809c
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 0x4381c3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00437ea4
mov esi, eax
mov eax, dword [0x8d27e4]
cmp byte [eax], 0
je 0x438169
mov eax, dword [0x8d1af4]
call fcn.004081d0
call fcn.00407348
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 [0x43806c]
call fcn.0040f1a0
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 0x4381dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4381a5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8d1938]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8d663c]
call fcn.0040f8a0
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 0x4381ca
lea eax, [ebp - 4]
mov edx, dword [0x43806c]
call fcn.0040f2c4
pop eax
jmp eax
Function at 0x4393d4
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 0x439417
mov eax, dword [ebp - 0x10c]
mov dword [0x8e7500], eax
mov eax, 0x8e7504
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040c8d8
mov eax, 0x8e7508
call fcn.0040b8b4
xor eax, eax
mov dword [0x8e750c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x8e73c4], 0xa
jl 0x43956d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x439578
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x43956d
xor eax, eax
push ebp
push 0x439566
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x4395d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4394c6
cmp dword [ebp - 8], 2
jle 0x4394c6
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x439499
adc edx, 0
mov eax, 0x8e7508
call fcn.0040c9b0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x8e7508]
call fcn.0040c824
push eax
push 0
push 0
push 0x4395d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x439520
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x4395f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x439520
cmp dword [ebp - 8], 2
jle 0x439520
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x4394f5
adc edx, 0
mov eax, 0x8e7508
call fcn.0040c9b0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x8e7508]
call fcn.0040c824
push eax
push 0
push 0
push 0x4395f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x8e750c
push 0
push 0
push 0x439608
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x43954d
xor eax, eax
mov dword [0x8e750c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43956d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x8be480], 1
mov esp, ebp
pop ebp
ret
Function at 0x43970c
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 0x4397e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bcec
lea eax, [ebp - 4]
call fcn.0040be90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4397ce
mov eax, ebx
call fcn.00407160
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4397c7
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.0040c824
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4397af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4397f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4397af
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 0x4397ce
mov eax, dword [ebp - 0x10]
call fcn.0040717c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4397ed
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x43b3ec
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.0040c8d8
add esp, 0x800
pop ebx
ret

Function at 0x43b77c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040b8b4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040c824
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x43b7c1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040ba4c
jmp 0x43b7da
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040c9b0
push ebx
mov eax, dword [esi]
call fcn.0040c824
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43c32c
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 0x43c34a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x43c362
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x43c35d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x43c367
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x43c3d5
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x43c41e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43c393
inc dword [ebp - 0xc]
jmp 0x43c3ab
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x43c3ab
cmp dword [ebp - 0xc], 0
jle 0x43c3ab
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x43c3cd
xor eax, eax
jmp 0x43c3c9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43c3c8
mov eax, esi
jmp 0x43c421
inc eax
cmp eax, ecx
jle 0x43c3b5
inc esi
cmp esi, dword [ebp - 8]
jl 0x43c37f
jmp 0x43c41e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x43c41e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43c3f6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x43c418
xor eax, eax
jmp 0x43c414
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43c413
mov eax, esi
jmp 0x43c421
inc eax
cmp eax, ecx
jle 0x43c400
inc esi
cmp esi, dword [ebp - 8]
jl 0x43c3de
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10