joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x53392d4b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x633037b1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x2da0213f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2f050b4e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x408d7c
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.0040923c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408f05
test edi, edi
je 0x408f05
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408e45
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408e20
cmp edi, 0xffffffff
je 0x408de1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408de1
mov byte [esp], 0
jmp 0x408f05
cmp dword [esi], 1
jg 0x408e20
cmp dword [esi], 0
jne 0x408e12
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408e12
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408f05
lea eax, [esp + 0xc]
call fcn.00408a30
dec ebp
test ebp, ebp
jg 0x408dc6
cmp edi, 0xffffffff
je 0x408e45
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e43
mov byte [esp], 0
jmp 0x408f05
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408d8a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e45
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408f80
mov edx, eax
mov ebx, dword [0x4f88f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408ea9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408ea7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408ea9
xor edi, edi
cmp byte [esp], 0
je 0x408ecf
mov ebx, dword [esi]
test bl, 1
jne 0x408ee5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408eaf
mov byte [esp + 1], 1
jmp 0x408ee5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ecf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408e5c
cmp byte [esp], 0
je 0x408f05
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 0x409b94
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4fab9c
cmp dword [ebp + 0xc], 2
jl 0x409ba8
mov ebx, 0x4fabcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409be0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405218
mov dword [0x4f801c], eax
mov eax, 0x405220
mov dword [0x4f8020], eax
mov eax, ebx
call fcn.00409a78
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409c15
cmp al, 3
jge 0x409c15
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409c26
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409c31
call dword [ecx + eax*4]
cmp dword [0x4f8040], 0
jne 0x409c47
mov byte [0x4f8048], 1
fnstcw word [0x4f3028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409ee4
call fcn.00409b28
ret 4

Function at 0x409e4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f8058], 0
je 0x409eb3
cmp word [0x4f8344], 0xd7b2
jne 0x409e75
cmp dword [0x4f834c], 0
jbe 0x409e75
mov eax, 0x4f8340
call dword [0x4f835c]
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, 0x409ee0
call fcn.0040a9cc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f3032], 0
jne 0x409ecf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a074
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 [0x4f3034], 0
je 0x40a09f
mov edx, edi
mov eax, esi
call dword [0x4f3034]
mov ebx, eax
jmp 0x40a0b0
mov eax, 8
call fcn.00406f78
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4f8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a03c
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 0x40a0e0
mov eax, ebx
call fcn.00406f94
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d88c
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 0x40d9f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a1b4
cmp si, word [0x4f3a08]
jb 0x40d924
cmp si, word [0x4f3c08]
ja 0x40d924
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d924
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4f3a08]
jae 0x40d8fe
mov edi, ebx
dec edi
jmp 0x40d91f
cmp si, word [ebx*8 + 0x4f3a08]
jbe 0x40d90e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d91f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f3a0c]
call fcn.0040d7a8
jmp 0x40d924
cmp edi, dword [ebp - 8]
jae 0x40d8e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d9d3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d9d3
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.0040acb4
push dword [ebp - 0x160]
push 0x40da10
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040acb4
push dword [ebp - 0x164]
push 0x40da20
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040acb4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aeec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9fa
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a214
pop eax
jmp eax
Function at 0x40dba8
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 0x40dcae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fac14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4fac2c]
jne 0x40dbf4
mov eax, esi
mov edx, 0x4fac2e
mov ecx, 0x55
call fcn.0040acb4
push 0x4fac14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dc96
push 0x4fac14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a1b4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc63
cmp byte [0x4fac10], 0
je 0x40dc28
mov edx, esi
mov eax, ebx
call fcn.0040da8c
jmp 0x40dc63
mov edx, esi
mov eax, ebx
call fcn.0040d88c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dc63
cmp dword [esi], 0
je 0x40dc4c
mov eax, esi
mov edx, 0x40dcc8
call fcn.0040ae0c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d88c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ae0c
push 0x4fac14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4fac2c], bx
mov eax, dword [esi]
call fcn.0040ac18
mov ecx, eax
mov eax, 0x4fac2e
mov edx, 0xaa
call fcn.0040d708
push 0x4fac14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcb5
lea eax, [ebp - 4]
call fcn.0040a1b4
pop eax
jmp eax
Function at 0x40def0
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.0040a2a8
xor eax, eax
push ebp
push 0x40e118
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40df36
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40df50
mov eax, dword [ebp - 4]
call fcn.0040ac18
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d708
cmp word [ebp - 0x21e], 0
je 0x40e0fb
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e128
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e01f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e128
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e01f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e164
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e01f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e164
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e01f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e198
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e01f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e0fb
xor eax, eax
push ebp
push 0x40e0f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dcf0
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 0x40e082
mov eax, dword [ebp - 0x14]
call fcn.00406f78
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ac78
jmp 0x40e0cd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e20c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e0cd
mov eax, dword [ebp - 0x14]
call fcn.00406f78
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e20c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ac78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0fb
cmp dword [ebp - 0xc], 0
je 0x40e0e8
mov eax, dword [ebp - 0xc]
call fcn.00406f94
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e11f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a214
pop eax
jmp eax
Function at 0x40e42c
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.0040a2a8
xor eax, eax
push ebp
push 0x40e4ee
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.0040acb4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae64
mov eax, dword [ebx]
call fcn.0040e2d4
test al, al
jne 0x40e4c9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040acb4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae64
mov eax, dword [ebx]
call fcn.0040e2d4
test al, al
jne 0x40e4c9
mov eax, ebx
call fcn.0040a1b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4f5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a214
lea eax, [ebp - 4]
call fcn.0040a1b4
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x42269d
test eax, edx
je 0x4226a0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42265b
movzx eax, word [eax]
sub eax, ecx
jmp 0x422682
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 0x422683
add ecx, 4
js 0x422673
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422680
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422682
xor eax, eax
ret
test eax, eax
je 0x4226ac
test edx, edx
jne 0x42264c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x427ee4
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 0x427f1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a34c
jmp 0x427f26
mov eax, ebx
mov edx, esi
call fcn.0040a5a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427f30
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 0x427f54
movzx eax, word [esp]
jmp 0x427f56
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429674
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 0x42979b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042947c
mov esi, eax
mov eax, dword [0x4f7604]
cmp byte [eax], 0
je 0x429741
mov eax, dword [0x4f73f0]
call fcn.00407b6c
call fcn.004070ec
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x429644]
call fcn.0040cde8
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 0x4297b4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42977d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f73b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fb634]
call fcn.0040d3ac
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 0x4297a2
lea eax, [ebp - 4]
mov edx, dword [0x429644]
call fcn.0040cf0c
pop eax
jmp eax
Function at 0x42ab10
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 0x42ab53
mov eax, dword [ebp - 0x10c]
mov dword [0x4fb8f8], eax
mov eax, 0x4fb8fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040acb4
mov eax, 0x4fb900
call fcn.0040a1b4
xor eax, eax
mov dword [0x4fb904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4fb7bc], 0xa
jl 0x42aca9
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42acb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42aca9
xor eax, eax
push ebp
push 0x42aca2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ad10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42ac02
cmp dword [ebp - 8], 2
jle 0x42ac02
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42abd5
adc edx, 0
mov eax, 0x4fb900
call fcn.0040ad8c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fb900]
call fcn.0040ac18
push eax
push 0
push 0
push 0x42ad10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42ac5c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ad30
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42ac5c
cmp dword [ebp - 8], 2
jle 0x42ac5c
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42ac31
adc edx, 0
mov eax, 0x4fb900
call fcn.0040ad8c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4fb900]
call fcn.0040ac18
push eax
push 0
push 0
push 0x42ad30
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4fb904
push 0
push 0
push 0x42ad44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42ac89
xor eax, eax
mov dword [0x4fb904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aca9
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4f5700], 1
mov esp, ebp
pop ebp
ret
Function at 0x42bd24
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.0040a698
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffa4
mov edi, eax
cmp edi, 0x104
jbe 0x42bccf
mov eax, edi
add eax, eax
call fcn.00406f78
mov esi, eax
jmp 0x42bcd1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffa4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42bd0a
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 0x42bcf4
mov eax, esp
cmp esi, eax
je 0x42bd17
mov eax, esi
call fcn.00406f94
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42bd50
cmp bl, 0
je 0x42bd4c
cmp bl, 0x41
jl 0x42bd47
cmp bl, 0x5a
jg 0x42bd47
or bl, 0x20
xor al, bl
inc esi
jmp 0x42bd2b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42bc90

Function at 0x42c648
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.0040acb4
add esp, 0x800
pop ebx
ret
Function at 0x42ee78
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 0x42ee98
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42eeb2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42eead
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42eeb7
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42ef25
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42ef6e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42eee3
inc dword [ebp - 0xc]
jmp 0x42eefb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42eefb
cmp dword [ebp - 0xc], 0
jle 0x42eefb
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42ef1d
xor eax, eax
jmp 0x42ef19
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ef18
mov eax, esi
jmp 0x42ef71
inc eax
cmp eax, ecx
jle 0x42ef05
inc esi
cmp esi, dword [ebp - 8]
jl 0x42eecf
jmp 0x42ef6e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42ef6e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ef46
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42ef68
xor eax, eax
jmp 0x42ef64
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ef63
mov eax, esi
jmp 0x42ef71
inc eax
cmp eax, ecx
jle 0x42ef50
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ef2e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10