joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d9cb
xor al, al
jmp 0x40d9eb
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00411d50
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4113ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4113e7
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x41140a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x41140f
inc esi
cmp esi, dword [ebp - 4]
jb 0x411401
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x411504
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411463
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x41143a
cmp cl, 0xff
jne 0x41148e
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41149c
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4114a3
dec ecx
shl edx, cl
and edx, 7
je 0x41142b
movzx ecx, byte [edx + 0x414b90]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x414b88], 0
mov cl, byte [ebx + 4]
je 0x41148b
test cl, cl
je 0x41148b
cmp cl, 0xff
jne 0x41142b
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4113fc
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4114d7
movzx edi, byte [edx + 0x414b90]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4114c2
cmp al, 0xff
jne 0x4114d4
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x411455
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4113fc
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4074e4
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.0040a18c
test esi, esi
jne 0x40751a
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.0040a324
jmp 0x407538
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407428
mov edi, eax
test esi, esi
je 0x407538
cmp dword [ebx], 0
je 0x407538
dec esi
jmp 0x407521
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408d44
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.00409204
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ecd
test edi, edi
je 0x408ecd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408e0d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408de8
cmp edi, 0xffffffff
je 0x408da9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408da9
mov byte [esp], 0
jmp 0x408ecd
cmp dword [esi], 1
jg 0x408de8
cmp dword [esi], 0
jne 0x408dda
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408dda
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ecd
lea eax, [esp + 0xc]
call fcn.004089dc
dec ebp
test ebp, ebp
jg 0x408d8e
cmp edi, 0xffffffff
je 0x408e0d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e0b
mov byte [esp], 0
jmp 0x408ecd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408d52
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e0d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408f48
mov edx, eax
mov ebx, dword [0x4e78fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408e71
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408e6f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408e71
xor edi, edi
cmp byte [esp], 0
je 0x408e97
mov ebx, dword [esi]
test bl, 1
jne 0x408ead
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e77
mov byte [esp + 1], 1
jmp 0x408ead
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e97
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408e24
cmp byte [esp], 0
je 0x408ecd
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 0x409b5c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4e9b9c
cmp dword [ebp + 0xc], 2
jl 0x409b70
mov ebx, 0x4e9bcc
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 0x409ba8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4051f8
mov dword [0x4e701c], eax
mov eax, 0x405200
mov dword [0x4e7020], eax
mov eax, ebx
call fcn.00409a40
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 0x409bdd
cmp al, 3
jge 0x409bdd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409bee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409bf9
call dword [ecx + eax*4]
cmp dword [0x4e7040], 0
jne 0x409c0f
mov byte [0x4e7048], 1
fnstcw word [0x4e102c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409ebc
call fcn.00409af0
ret 4

Function at 0x409e24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e7058], 0
je 0x409e8b
cmp word [0x4e7348], 0xd7b2
jne 0x409e4d
cmp dword [0x4e7350], 0
jbe 0x409e4d
mov eax, 0x4e7344
call dword [0x4e7360]
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, 0x409eb8
call fcn.0040a9ec
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e1036], 0
jne 0x409ea7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a04c
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 [0x4e1038], 0
je 0x40a077
mov edx, edi
mov eax, esi
call dword [0x4e1038]
mov ebx, eax
jmp 0x40a088
mov eax, 8
call fcn.00406dd8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e7059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a014
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 0x40a0b8
mov eax, ebx
call fcn.00406df4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dc14
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 0x40dd7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a18c
cmp si, word [0x4e1a18]
jb 0x40dcac
cmp si, word [0x4e1c18]
ja 0x40dcac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dcac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e1a18]
jae 0x40dc86
mov edi, ebx
dec edi
jmp 0x40dca7
cmp si, word [ebx*8 + 0x4e1a18]
jbe 0x40dc96
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dca7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e1a1c]
call fcn.0040db34
jmp 0x40dcac
cmp edi, dword [ebp - 8]
jae 0x40dc70
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dd5b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd5b
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.0040acd8
push dword [ebp - 0x160]
push 0x40dd98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040acd8
push dword [ebp - 0x164]
push 0x40dda8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040acd8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040af14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd82
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a1ec
pop eax
jmp eax
Function at 0x40df30
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 0x40e036
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e9c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e9c2c]
jne 0x40df7c
mov eax, esi
mov edx, 0x4e9c2e
mov ecx, 0x55
call fcn.0040acd8
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e01e
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a18c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dfeb
cmp byte [0x4e9c10], 0
je 0x40dfb0
mov edx, esi
mov eax, ebx
call fcn.0040de14
jmp 0x40dfeb
mov edx, esi
mov eax, ebx
call fcn.0040dc14
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dfeb
cmp dword [esi], 0
je 0x40dfd4
mov eax, esi
mov edx, 0x40e050
call fcn.0040ae34
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dc14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ae34
push 0x4e9c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e9c2c], bx
mov eax, dword [esi]
call fcn.0040ac3c
mov ecx, eax
mov eax, 0x4e9c2e
mov edx, 0xaa
call fcn.0040da94
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e03d
lea eax, [ebp - 4]
call fcn.0040a18c
pop eax
jmp eax
Function at 0x40e278
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.0040a280
xor eax, eax
push ebp
push 0x40e4a0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e2be
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e2d8
mov eax, dword [ebp - 4]
call fcn.0040ac3c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040da94
cmp word [ebp - 0x21e], 0
je 0x40e483
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e520
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e554
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e483
xor eax, eax
push ebp
push 0x40e47c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e078
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 0x40e40a
mov eax, dword [ebp - 0x14]
call fcn.00406dd8
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.0040ac9c
jmp 0x40e455
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e594
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e455
mov eax, dword [ebp - 0x14]
call fcn.00406dd8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e594
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ac9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e483
cmp dword [ebp - 0xc], 0
je 0x40e470
mov eax, dword [ebp - 0xc]
call fcn.00406df4
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 0x40e4a7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a1ec
pop eax
jmp eax
Function at 0x40e7b0
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.0040a280
xor eax, eax
push ebp
push 0x40e872
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.0040acd8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae8c
mov eax, dword [ebx]
call fcn.0040e65c
test al, al
jne 0x40e84d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040acd8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae8c
mov eax, dword [ebx]
call fcn.0040e65c
test al, al
jne 0x40e84d
mov eax, ebx
call fcn.0040a18c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e879
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a1ec
lea eax, [ebp - 4]
call fcn.0040a18c
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x421055
test eax, edx
je 0x421058
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421013
movzx eax, word [eax]
sub eax, ecx
jmp 0x42103a
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 0x42103b
add ecx, 4
js 0x42102b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421038
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42103a
xor eax, eax
ret
test eax, eax
je 0x421064
test edx, edx
jne 0x421004
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426c04
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 0x426c3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a324
jmp 0x426c46
mov eax, ebx
mov edx, esi
call fcn.0040a57c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426c50
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 0x426c74
movzx eax, word [esp]
jmp 0x426c76
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42896c
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 0x428a93
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428774
mov esi, eax
mov eax, dword [0x4e5fa0]
cmp byte [eax], 0
je 0x428a39
mov eax, dword [0x4e5dcc]
call fcn.00407b44
call fcn.00406f50
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 [0x42893c]
call fcn.0040d068
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 0x428aac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428a75
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e5d88]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ea634]
call fcn.0040d738
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 0x428a9a
lea eax, [ebp - 4]
mov edx, dword [0x42893c]
call fcn.0040d18c
pop eax
jmp eax

Function at 0x42add4
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.0040a66c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004103fc
mov edi, eax
cmp edi, 0x104
jbe 0x42ad7f
mov eax, edi
add eax, eax
call fcn.00406dd8
mov esi, eax
jmp 0x42ad81
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004103fc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42adba
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 0x42ada4
mov eax, esp
cmp esi, eax
je 0x42adc7
mov eax, esi
call fcn.00406df4
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 0x42ae00
cmp bl, 0
je 0x42adfc
cmp bl, 0x41
jl 0x42adf7
cmp bl, 0x5a
jg 0x42adf7
or bl, 0x20
xor al, bl
inc esi
jmp 0x42addb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42ad40

Function at 0x42b71c
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.0040acd8
add esp, 0x800
pop ebx
ret
Function at 0x42dec8
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 0x42dee6
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42defe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42def9
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42df03
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42df71
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42dfba
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42df2f
inc dword [ebp - 0xc]
jmp 0x42df47
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42df47
cmp dword [ebp - 0xc], 0
jle 0x42df47
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42df69
xor eax, eax
jmp 0x42df65
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42df64
mov eax, esi
jmp 0x42dfbd
inc eax
cmp eax, ecx
jle 0x42df51
inc esi
cmp esi, dword [ebp - 8]
jl 0x42df1b
jmp 0x42dfba
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42dfba
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42df92
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42dfb4
xor eax, eax
jmp 0x42dfb0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42dfaf
mov eax, esi
jmp 0x42dfbd
inc eax
cmp eax, ecx
jle 0x42df9c
inc esi
cmp esi, dword [ebp - 8]
jl 0x42df7a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10