joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056383
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100735cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.100195c0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x1002bb93
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x1002bb93
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x1002bb93
push eax
call esi
test eax, eax
je 0x1002bb93
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push SysStringLen
call fcn.10017c10
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x1002bb84
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10030d40
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002bb84
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x1002baab
cmp eax, 2
jne 0x1002bb84
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1002bacc
test cl, 1
jne 0x1002bb84
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x1002bad2
jmp 0x1002bb84
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x1002bb84
lea ecx, [ebp - 0x78]
call fcn.10009f10
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.10029e60
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x1005f14c
push eax
call fcn.1002bf90
push 0x2a
push dword [ebp - 0x78]
call fcn.1002a320
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x1002bb7c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1002bb32
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10029c90
push dword [0x100735f4]
lea eax, [ebp - 0x74]
push dword [0x100735f0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1002bb6d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.10006350
mov edi, 1
jmp 0x1002bb86
lea ecx, [ebp - 0x78]
call fcn.10006350
xor edi, edi
test esi, esi
je 0x1002bb95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002bb95
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028080
mov esp, ebp
pop ebp
ret
Function at 0x1002bbd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1002bbe5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002bbf0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1002ec80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ecf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1002ecbf
cmp eax, 2
jne 0x1002ecdb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1002eceb
test ecx, ecx
je 0x1002ece6
test cl, 1
jne 0x1002ecdb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1002eceb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1004d41f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004d0df
Function at 0x456e90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x456ebe
mov eax, ebx
call fcn.00457944
cmp dword [ebx + 0x40], 0
je 0x456eb7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x456f2f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x456f21
cmp dword [ebx + 8], 0
je 0x456ee0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x456ef2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x456f21
cmp dword [ebx + 8], 0
je 0x456ed3
cmp eax, 3
je 0x456f05
dec eax
jne 0x456ed3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x456ed3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x456ed3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x456f4d
cmp dword [ebx + 0x14], 0xcc
je 0x456f4d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00456f58
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x406698
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.00406b58
mov byte [esp], al
cmp byte [esp], 0
jne 0x406821
test edi, edi
je 0x406821
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406761
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40673c
cmp edi, 0xffffffff
je 0x4066fd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066fd
mov byte [esp], 0
jmp 0x406821
cmp dword [esi], 1
jg 0x40673c
cmp dword [esi], 0
jne 0x40672e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40672e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406821
lea eax, [esp + 0xc]
call fcn.0040634c
dec ebp
test ebp, ebp
jg 0x4066e2
cmp edi, 0xffffffff
je 0x406761
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40675f
mov byte [esp], 0
jmp 0x406821
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4066a6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406761
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040689c
mov edx, eax
mov ebx, dword [0x4248f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4067c5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4067c3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4067c5
xor edi, edi
cmp byte [esp], 0
je 0x4067eb
mov ebx, dword [esi]
test bl, 1
jne 0x406801
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067cb
mov byte [esp + 1], 1
jmp 0x406801
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067eb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406778
cmp byte [esp], 0
je 0x406821
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 0x40754c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x424054], 0
je 0x4075b3
cmp word [0x424340], 0xd7b2
jne 0x407575
cmp dword [0x424348], 0
jbe 0x407575
mov eax, 0x42433c
call dword [0x424358]
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, 0x4075e0
call fcn.00407cd8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x422026], 0
jne 0x4075cf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a1f4
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 0x40a35b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004077d0
cmp si, word [0x4229f8]
jb 0x40a28c
cmp si, word [0x422bf8]
ja 0x40a28c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a28c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4229f8]
jae 0x40a266
mov edi, ebx
dec edi
jmp 0x40a287
cmp si, word [ebx*8 + 0x4229f8]
jbe 0x40a276
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a287
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4229fc]
call fcn.0040a110
jmp 0x40a28c
cmp edi, dword [ebp - 8]
jae 0x40a250
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a33b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a33b
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.00407e04
push dword [ebp - 0x160]
push 0x40a378
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407e04
push dword [ebp - 0x164]
push 0x40a388
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407e04
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a362
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407830
pop eax
jmp eax
Function at 0x40a510
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 0x40a616
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x426c28]
jne 0x40a55c
mov eax, esi
mov edx, 0x426c2a
mov ecx, 0x55
call fcn.00407e04
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a5fe
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004077d0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a5cb
cmp byte [0x426c0c], 0
je 0x40a590
mov edx, esi
mov eax, ebx
call fcn.0040a3f4
jmp 0x40a5cb
mov edx, esi
mov eax, ebx
call fcn.0040a1f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a5cb
cmp dword [esi], 0
je 0x40a5b4
mov eax, esi
mov edx, 0x40a630
call fcn.00407edc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a1f4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407edc
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x426c28], bx
mov eax, dword [esi]
call fcn.00407d78
mov ecx, eax
mov eax, 0x426c2a
mov edx, 0xaa
call fcn.0040a070
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a61d
lea eax, [ebp - 4]
call fcn.004077d0
pop eax
jmp eax
Function at 0x40a858
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.004078c4
xor eax, eax
push ebp
push 0x40aa80
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a89e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a8b8
mov eax, dword [ebp - 4]
call fcn.00407d78
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040a070
cmp word [ebp - 0x21e], 0
je 0x40aa63
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aa90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a987
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aa90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a987
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aacc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a987
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aacc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a987
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ab00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a987
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ab34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40aa63
xor eax, eax
push ebp
push 0x40aa5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040a658
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 0x40a9ea
mov eax, dword [ebp - 0x14]
call fcn.004044f8
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.00407dc8
jmp 0x40aa35
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ab74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40aa35
mov eax, dword [ebp - 0x14]
call fcn.004044f8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ab74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00407dc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa63
cmp dword [ebp - 0xc], 0
je 0x40aa50
mov eax, dword [ebp - 0xc]
call fcn.00404514
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 0x40aa87
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407830
pop eax
jmp eax
Function at 0x40ad94
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.004078c4
xor eax, eax
push ebp
push 0x40ae56
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.00407e04
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407f34
mov eax, dword [ebx]
call fcn.0040ac3c
test al, al
jne 0x40ae31
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407e04
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407f34
mov eax, dword [ebx]
call fcn.0040ac3c
test al, al
jne 0x40ae31
mov eax, ebx
call fcn.004077d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae5d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407830
lea eax, [ebp - 4]
call fcn.004077d0
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x416acd
test eax, edx
je 0x416ad0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x416a8b
movzx eax, word [eax]
sub eax, ecx
jmp 0x416ab2
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 0x416ab3
add ecx, 4
js 0x416aa3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x416ab0
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x416ab2
xor eax, eax
ret
test eax, eax
je 0x416adc
test edx, edx
jne 0x416a7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x418cf0
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 0x418d29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040791c
jmp 0x418d32
mov eax, ebx
mov edx, esi
call fcn.00407a98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418d3c
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 0x418d60
movzx eax, word [esp]
jmp 0x418d62
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41a480
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 0x41a5a7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041a288
mov esi, eax
mov eax, dword [0x4236ac]
cmp byte [eax], 0
je 0x41a54d
mov eax, dword [0x4235b4]
call fcn.00405024
call fcn.0040464c
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 [0x41a450]
call fcn.00409984
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 0x41a5c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41a589
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x42358c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x427634]
call fcn.00409d14
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 0x41a5ae
lea eax, [ebp - 4]
mov edx, dword [0x41a450]
call fcn.00409aa8
pop eax
jmp eax

Function at 0x41c400
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.00407b98
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c7fc
mov edi, eax
cmp edi, 0x104
jbe 0x41c3ab
mov eax, edi
add eax, eax
call fcn.004044f8
mov esi, eax
jmp 0x41c3ad
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c7fc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41c3e6
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 0x41c3d0
mov eax, esp
cmp esi, eax
je 0x41c3f3
mov eax, esi
call fcn.00404514
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 0x41c42c
cmp bl, 0
je 0x41c428
cmp bl, 0x41
jl 0x41c423
cmp bl, 0x5a
jg 0x41c423
or bl, 0x20
xor al, bl
inc esi
jmp 0x41c407
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41c36c

Function at 0x41c78c
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.00407e04
add esp, 0x800
pop ebx
ret
Function at 0x41cfc8
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 0x41cfe8
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x41d002
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41cffd
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41d007
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x41d075
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x41d0be
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41d033
inc dword [ebp - 0xc]
jmp 0x41d04b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x41d04b
cmp dword [ebp - 0xc], 0
jle 0x41d04b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x41d06d
xor eax, eax
jmp 0x41d069
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41d068
mov eax, esi
jmp 0x41d0c1
inc eax
cmp eax, ecx
jle 0x41d055
inc esi
cmp esi, dword [ebp - 8]
jl 0x41d01f
jmp 0x41d0be
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x41d0be
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41d096
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41d0b8
xor eax, eax
jmp 0x41d0b4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41d0b3
mov eax, esi
jmp 0x41d0c1
inc eax
cmp eax, ecx
jle 0x41d0a0
inc esi
cmp esi, dword [ebp - 8]
jl 0x41d07e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10