joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4427ef
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044276b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44295e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44295e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x442913
jg 0x44284b
test eax, eax
je 0x442909
push 1
push 0x1000
call fcn.00435f60
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44286e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x442900
push 0x8000
push ebx
call fcn.00433209
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x442897
jg 0x442892
cmp ecx, 0x1000
jb 0x442897
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00437c34
add esp, 0x10
cmp eax, 0xffffffff
je 0x4428dc
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x442892
jl 0x4428c3
test ecx, ecx
jne 0x442884
push dword [ebp - 0xc]
push ebx
call fcn.00433209
push esi
call fcn.004357c0
add esp, 0xc
xor ebx, ebx
jmp 0x44296c
cmp byte [edi + 0x24], 0
je 0x4428f3
cmp dword [edi + 0x20], 5
jne 0x4428f3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4428fe
mov ebx, dword [edi + 0x18]
jmp 0x442900
xor ebx, ebx
push esi
call fcn.004357c0
pop ecx
jmp 0x44296c
test ecx, ecx
jg 0x4428d5
jl 0x442913
test eax, eax
jae 0x4428d5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439449
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x442933
cmp byte [edi + 0x1c], 0
je 0x4428d5
jmp 0x442964
push ebx
call fcn.0043da32
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4428d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44296c
cmp byte [edi + 0x1c], 0
je 0x442969
mov ebx, dword [edi + 0x18]
jmp 0x44296c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00439449
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x443fcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443fcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4993d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7b000]
push edi
or ebp, 0xffffffff
jmp 0x4993f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4993f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4993e8
mov eax, 1
add ebx, ebx
jne 0x49940b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49941c
jne 0x49942c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49942c
dec eax
add ebx, ebx
jne 0x499428
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x499400
xor ecx, ecx
sub eax, 3
jb 0x499444
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4994b6
sar eax, 1
mov ebp, eax
jmp 0x49944f
add ebx, ebx
jne 0x49944f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x49945c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x499480
inc ecx
add ebx, ebx
jne 0x49946c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x499461
jne 0x49947d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x499461
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4994a0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x499491
jmp 0x4993ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4994a0
add edi, ecx
jmp 0x4993ee
pop esi
mov edi, esi
mov ecx, 0xaf0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4994be
cmp byte [edi], 0x11
jne 0x4994be
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4994c3
lea edi, [esi + 0x96000]
mov eax, dword [edi]
or eax, eax
je 0x49953b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb8068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb80e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4994f0
mov ecx, edi
jns 0x49951f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb80e4]
or eax, eax
je 0x499535
mov dword [ebx], eax
add ebx, 4
jmp 0x49950d
call dword [esi + 0xb80f4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x49956c
cmp al, 0xef
ja 0x49955f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x499541
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x49954e
mov ebp, dword [esi + 0xb80e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4995a0
sub esp, 0xffffff80
jmp 0x4151c0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x72534964
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4b382533
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x405258
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.00407ed0
test esi, esi
jne 0x40528e
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.00408058
jmp 0x4052ac
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040513c
mov edi, eax
test esi, esi
je 0x4052ac
cmp dword [ebx], 0
je 0x4052ac
dec esi
jmp 0x405295
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406b6c
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.00406f50
mov byte [esp], al
cmp byte [esp], 0
jne 0x406cf6
test edi, edi
je 0x406cf6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406c36
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406c11
cmp edi, 0xffffffff
je 0x406bd1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406bd1
mov byte [esp], 0
jmp 0x406cf6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406c11
test ebx, ebx
jne 0x406c03
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406c03
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406cf6
lea eax, [esp + 0xc]
call fcn.0040684c
dec ebp
test ebp, ebp
jg 0x406bb6
cmp edi, 0xffffffff
je 0x406c36
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406c34
mov byte [esp], 0
jmp 0x406cf6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406b7a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406c36
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406d64
mov edx, eax
mov ebx, dword [0x4f18fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406c9a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406c98
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406c9a
xor edi, edi
cmp byte [esp], 0
je 0x406cc0
mov ebx, dword [esi]
test bl, 1
jne 0x406cd6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406ca0
mov byte [esp + 1], 1
jmp 0x406cd6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406cc0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406c4d
cmp byte [esp], 0
je 0x406cf6
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 0x407b60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f105c], 0
je 0x407bc7
cmp word [0x4f1348], 0xd7b2
jne 0x407b89
cmp dword [0x4f1350], 0
jbe 0x407b89
mov eax, 0x4f1344
call dword [0x4f1360]
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, 0x407bf4
call fcn.004087e8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ee032], 0
jne 0x407be3
push 0
push 0x4ee9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407d90
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 [0x4ee034], 0
je 0x407dbb
mov edx, edi
mov eax, esi
call dword [0x4ee034]
mov ebx, eax
jmp 0x407dcc
mov eax, 8
call fcn.00404e78
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4f105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407d58
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 0x407dfc
mov eax, ebx
call fcn.00404e94
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a698
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 0x40a7fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407ed0
cmp si, word [0x4eea08]
jb 0x40a730
cmp si, word [0x4eec08]
ja 0x40a730
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a730
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4eea08]
jae 0x40a70a
mov edi, ebx
dec edi
jmp 0x40a72b
cmp si, word [ebx*8 + 0x4eea08]
jbe 0x40a71a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a72b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4eea0c]
call fcn.0040a5b8
jmp 0x40a730
cmp edi, dword [ebp - 8]
jae 0x40a6f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a7df
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a7df
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.00408c34
push dword [ebp - 0x160]
push 0x40a818
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408c34
push dword [ebp - 0x164]
push 0x40a828
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408c34
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a804
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407f30
ret
Function at 0x40a9b0
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 0x40aab4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f3b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f3ba4]
jne 0x40a9fc
mov eax, esi
mov edx, 0x4f3ba6
mov ecx, 0x55
call fcn.00408c34
push 0x4f3b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40aa9e
push 0x4f3b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407ed0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40aa6b
cmp byte [0x4f3b88], 0
je 0x40aa30
mov edx, esi
mov eax, ebx
call fcn.0040a894
jmp 0x40aa6b
mov edx, esi
mov eax, ebx
call fcn.0040a698
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40aa6b
cmp dword [esi], 0
je 0x40aa54
mov eax, esi
mov edx, 0x40aacc
call fcn.00408d8c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a698
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408d8c
push 0x4f3b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f3ba4], bx
mov eax, dword [esi]
call fcn.00408b90
mov ecx, eax
mov eax, 0x4f3ba6
mov edx, 0xaa
call fcn.0040a518
push 0x4f3b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aabb
lea eax, [ebp - 4]
call fcn.00407ed0
ret
Function at 0x40ace4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407fb4
xor eax, eax
push ebp
push 0x40af09
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ad24
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ad3e
mov eax, dword [ebp - 4]
call fcn.00408b90
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a518
cmp word [ebp - 0x21a], 0
je 0x40aef3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ae0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40afbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40aef3
xor eax, eax
push ebp
push 0x40aeec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040aaf4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ae7c
mov eax, dword [ebp - 0x10]
call fcn.00404e78
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408bf8
jmp 0x40aec7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40affc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40aec7
mov eax, dword [ebp - 0x10]
call fcn.00404e78
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40affc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aef3
cmp dword [ebp - 8], 0
je 0x40aee2
mov eax, dword [ebp - 8]
call fcn.00404e94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af10
lea eax, [ebp - 4]
call fcn.00407ed0
ret
Function at 0x40b1f8
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.00407fb4
xor eax, eax
push ebp
push 0x40b2b8
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.00408c34
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408de4
mov eax, dword [ebx]
call fcn.0040b0c0
test al, al
jne 0x40b295
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408c34
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408de4
mov eax, dword [ebx]
call fcn.0040b0c0
test al, al
jne 0x40b295
mov eax, ebx
call fcn.00407ed0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b2bf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407f30
lea eax, [ebp - 4]
call fcn.00407ed0
ret

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

Disassembly:
cmp eax, edx
je 0x41a565
test eax, edx
je 0x41a568
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41a523
movzx eax, word [eax]
sub eax, ecx
jmp 0x41a54a
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 [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41a54b
add ecx, 4
js 0x41a53b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41a548
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41a54a
xor eax, eax
ret
test eax, eax
je 0x41a574
test edx, edx
jne 0x41a514
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41b630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x41b65d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41b73c
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.00408b90
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41b7a6
test ah, 4
je 0x41b79f
test bl, bl
jne 0x41b764
mov al, 1
jmp 0x41b7cd
test al, 0x10
je 0x41b76c
xor eax, eax
jmp 0x41b7cd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41b790
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41b7cd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41b7cd
test al, 0x10
sete al
jmp 0x41b7cd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41b7c7
cmp ebx, 3
je 0x41b7c7
cmp ebx, 0x7b
je 0x41b7c7
mov eax, esi
call fcn.0041b6fc
test al, al
jne 0x41b7cb
xor eax, eax
jmp 0x41b7cd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41b7d4
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.00408b90
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41b87b
test esi, 0x400
jne 0x41b810
test esi, 0x10
setne bl
jmp 0x41b8ab
cmp byte [esp], 0
je 0x41b844
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41b8ab
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41b8ab
test esi, 0x10
je 0x41b850
mov bl, 1
jmp 0x41b8ab
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41b877
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41b8ab
mov bl, 1
jmp 0x41b8ab
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41b8a5
cmp eax, 3
je 0x41b8a5
cmp eax, 0xa1
je 0x41b8a5
cmp eax, 0x7b
je 0x41b8a5
cmp eax, 0x35
je 0x41b8a5
cmp eax, 0x15
je 0x41b8a5
cmp eax, 0x43
jne 0x41b8a9
xor ebx, ebx
jmp 0x41b8ab
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bae4
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.00408b90
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41bb39
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41bb33
test ah, 4
je 0x41bb33
test al, 0x10
je 0x41bb33
mov eax, esi
call fcn.00408b90
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41bb39
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret