joyce8/EMBER2024-capa huggingface dataset:
Function at 0x542a85
Capabilities:
Check for software breakpoints

Disassembly:
and byte [ebx + 0x47223b60], dl
nop
cmpsb byte [esi], byte es:[edi]
lds ebp, [esi]
jnp 0x542a56
nop
je 0x542a86
or cl, al
popfd
aaa
mov cl, 0x44
cmp dword [esi], edi
scasb al, byte es:[edi]
cmp byte [esi], 0xdb
ret
lds ebx, [edi]
mov byte [ebp - 0x2cce9623], bl
invalid
mov eax, dword [0xe25c2af0]
jp 0x542a18
lock sub bl, byte [edx + 0x7a]
invalid
jno 0x542afd
lodsd eax, dword [esi]
jecxz 0x542aa2
push es
invalid
sbb bh, byte [edi]
std
mov eax, dword ds:[0xf51f32a3]
pop esp
das
sub eax, 0xf1d12aab
pop ecx
inc eax
add dword [edx], 0xef109a45
sub eax, dword [ecx]
adc al, 0xc
push es
dec esp
stc
and cl, byte [edx + 0x6313400]
salc
sbb byte [ebx + 0x1e2f4f6d], cl
das
pop edx
xchg edx, eax
lodsd eax, dword [esi]
call dword [edx - 0x416cff38]
xchg esi, eax
cli
jo 0x542b40
jecxz 0x542b49
adc cl, al
jmp dword [ecx + 0x286a6cae]
mov bl, 7
jg 0x542b5d
add al, byte [esi]
sbb al, dh
into
xchg edx, eax
sal dword [ecx], cl
xor al, 0xae
dec edi
xlatb
adc dword [ebx], ebp
inc esi
or ecx, dword [edi - 0x17cdfffe]
cmp al, 0xcc
fbld tbyte [edi - 0x75]
xchg esi, eax
sbb byte [edi], bl
or dword [eax + ecx*8], edx
jae 0x542ba9
wait
mov al, byte [0x715f43ef]
fnstcw word [ecx + 0x34ab2b9d]
invalid
movsd dword es:[edi], dword [esi]
bswap edi
dec ecx
sub eax, 0x324a6bd5
pop esp
add al, 0x44
outsd dx, dword [esi]
cmp dword [ecx + 0x396b476d], 0xffffffeb
xlatb
lea ebx, [edi]
add ebx, esi
sub byte [ecx + 0x2b3415b0], bh
jmp 0x542c28
mov byte [ebx], al
or bh, byte ss:[edi + 0x54]
mov edi, 0x1d9955d3
mov bl, 0xff
cwde
push ebx
jbe 0x542c61
shr dword [edi + 0x4b], cl
xor eax, 0x92a78f15
cdq
jg 0x542c56
or esi, edi
cmp dl, byte [ebp - 0xe]
add byte [ebp + 0x20], 0x3d
xor ebp, dword [esi + 6]
invalid
nop
movsb byte es:[edi], byte [esi]
sub dh, bh
pop es
test byte [eax + 0x49], dl
cmp byte [ebp + 0x4f], 0x40
or byte [ebx], ch
sbb dh, bh
dec esp
push ecx
fucomp st(3)
sahf
xor esi, ebx
pushal
sahf
mov word [ebx + 0x24], ds
cwde
sti
sub al, 0xfe
dec eax
pushal
salc
cli
sub dword gs:[esi + eax*8 - 0x29499eff], ebx
mov dword [esp + edx*8 + 6], esi
aam 6
pop ds
and ah, cl
aaa
aas
sti
pop ebx
mov ebp, 0x87136042
xchg edx, eax
add byte [ebx + 0x1c], cl
pushal
adc eax, dword [edi + 0x1c4b0092]
mov ebp, 0x104f61b1
xchg ebx, eax
jl 0x542bfd
or al, 0xea
retf
Function at 0x629625
Capabilities:
Encode data using xor

Disassembly:
fsubr st(1)
inc ecx
stosd dword es:[edi], eax
retf
sub ah, ah
enter 0xffffffffffffb964, 0xfffffffffffffff9
fcomp qword [esi + ebp*4 + 0x4e13f5d8]
add eax, dword [eax + 0x6aaa0ea3]
loop 0x629682
shr byte [eax - 0x26a562f1], cl
mov edi, dword [edi + 0x7b6a5589]
lea eax, [edx - 0x3706cf10]
add dword [esi - 0x19], 0x45
lea esi, fs:[ebp + 0x7a]
sbb al, 0xf3
clc
lcall 0x176, 0xf6a95a4f
pop ebx
adc ecx, edx
ret
mov ecx, 0xe5dcc4d5
pop esi
pop es
popfd
out dx, al
jecxz 0x629616
salc
nop
das
rol ch, 0x7c
sub ch, ah
aad 0xa4
mov esp, 0x2e4a24c1
xchg esi, eax
xchg esi, eax
push cs
stc
mov esp, 0xd4eca5a5
pop ebp
cld
xor eax, 0x3f780d84
fsub st(3)
aad 0x63
pushfd
cli
outsb dx, byte [esi]
bound ecx, qword [esi + 0x55]
sbb ch, byte [edi - 0x17]
xor byte [edx - 0x36], 0x63
xchg ebp, eax
aam 0x80
and edx, edi
leave
or byte [ebx + 0x3b], bh
movsd dword es:[edi], dword [esi]
jp 0x62969b
scasb al, byte es:[edi]
arpl word [edx], di
retf
Function at 0x3cb5294
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x3cb52d6
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x3cb52f6
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.03cb8e3c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x3cb54ec
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.03cb7e50
test esi, esi
jne 0x3cb5522
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.03cb7fd8
jmp 0x3cb5540
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.03cb5430
mov edi, eax
test esi, esi
je 0x3cb5540
cmp dword [ebx], 0
je 0x3cb5540
dec esi
jmp 0x3cb5529
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x3cb5574
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x3f1b008], 0x8088405
inc edx
mov dword [ebx + 0x3f1b008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x3cb6a38
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.03cb6e1c
mov byte [esp], al
cmp byte [esp], 0
jne 0x3cb6bc2
test edi, edi
je 0x3cb6bc2
mov byte [esp + 1], 0
test ebp, ebp
jle 0x3cb6b02
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x3cb6add
cmp edi, 0xffffffff
je 0x3cb6a9d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x3cb6a9d
mov byte [esp], 0
jmp 0x3cb6bc2
mov ebx, dword [esi]
cmp ebx, 1
jg 0x3cb6add
test ebx, ebx
jne 0x3cb6acf
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x3cb6acf
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x3cb6bc2
lea eax, [esp + 0xc]
call fcn.03cb6718
dec ebp
test ebp, ebp
jg 0x3cb6a82
cmp edi, 0xffffffff
je 0x3cb6b02
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x3cb6b00
mov byte [esp], 0
jmp 0x3cb6bc2
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x3cb6a46
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x3cb6b02
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.03cb6c30
mov edx, eax
mov ebx, dword [0x3f2f8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x3cb6b66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x3cb6b64
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x3cb6b66
xor edi, edi
cmp byte [esp], 0
je 0x3cb6b8c
mov ebx, dword [esi]
test bl, 1
jne 0x3cb6ba2
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x3cb6b6c
mov byte [esp + 1], 1
jmp 0x3cb6ba2
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x3cb6b8c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x3cb6b19
cmp byte [esp], 0
je 0x3cb6bc2
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 0x3cb773c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x3f31b1c
cmp dword [ebp + 0xc], 2
jl 0x3cb7750
mov ebx, 0x3f31b4c
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 0x3cb7788
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x3cb31ac
mov dword [0x3f2f01c], eax
mov eax, 0x3cb31b4
mov dword [0x3f2f020], eax
mov eax, ebx
call fcn.03cb7620
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 0x3cb77bd
cmp al, 3
jge 0x3cb77bd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x3cb77ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x3cb77d9
call dword [ecx + eax*4]
cmp dword [0x3f2f040], 0
jne 0x3cb77ef
mov byte [0x3f2f048], 1
fnstcw word [0x3f1b028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.03cb7b3c
call fcn.03cb76d0
ret 4

Function at 0x3cb7aa4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x3f2f05c], 0
je 0x3cb7b0b
cmp word [0x3f2f348], 0xd7b2
jne 0x3cb7acd
cmp dword [0x3f2f350], 0
jbe 0x3cb7acd
mov eax, 0x3f2f344
call dword [0x3f2f360]
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, 0x3cb7b38
call fcn.03cb8888
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x3f1b032], 0
jne 0x3cb7b27
push 0
push 0x3f1b9e2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x3cb7d10
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 [0x3f1b034], 0
je 0x3cb7d3b
mov edx, edi
mov eax, esi
call dword [0x3f1b034]
mov ebx, eax
jmp 0x3cb7d4c
mov eax, 8
call fcn.03cb504c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x3f2f05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x3cb7cd8
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 0x3cb7d7c
mov eax, ebx
call fcn.03cb5068
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x3cbaa24
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 0x3cbab89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.03cb7e50
cmp si, word [0x3f1ba20]
jb 0x3cbaabc
cmp si, word [0x3f1bc20]
ja 0x3cbaabc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x3cbaabc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x3f1ba20]
jae 0x3cbaa96
mov edi, ebx
dec edi
jmp 0x3cbaab7
cmp si, word [ebx*8 + 0x3f1ba20]
jbe 0x3cbaaa6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x3cbaab7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x3f1ba24]
call fcn.03cba944
jmp 0x3cbaabc
cmp edi, dword [ebp - 8]
jae 0x3cbaa80
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x3cbab6b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x3cbab6b
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.03cb8e3c
push dword [ebp - 0x160]
push 0x3cbaba4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.03cb8e3c
push dword [ebp - 0x164]
push 0x3cbabb4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.03cb8e3c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.03cb9074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cbab90
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.03cb7eb0
ret
Function at 0x3cbad3c
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 0x3cbae40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x3f31b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x3f31ba4]
jne 0x3cbad88
mov eax, esi
mov edx, 0x3f31ba6
mov ecx, 0x55
call fcn.03cb8e3c
push 0x3f31b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x3cbae2a
push 0x3f31b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.03cb7e50
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x3cbadf7
cmp byte [0x3f31b88], 0
je 0x3cbadbc
mov edx, esi
mov eax, ebx
call fcn.03cbac20
jmp 0x3cbadf7
mov edx, esi
mov eax, ebx
call fcn.03cbaa24
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x3cbadf7
cmp dword [esi], 0
je 0x3cbade0
mov eax, esi
mov edx, 0x3cbae58
call fcn.03cb8f94
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.03cbaa24
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.03cb8f94
push 0x3f31b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x3f31ba4], bx
mov eax, dword [esi]
call fcn.03cb8d98
mov ecx, eax
mov eax, 0x3f31ba6
mov edx, 0xaa
call fcn.03cba8a4
push 0x3f31b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cbae47
lea eax, [ebp - 4]
call fcn.03cb7e50
ret
Function at 0x3cbb070
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.03cb7f34
xor eax, eax
push ebp
push 0x3cbb295
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x3cbb0b0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x3cbb0ca
mov eax, dword [ebp - 4]
call fcn.03cb8d98
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.03cba8a4
cmp word [ebp - 0x21a], 0
je 0x3cbb27f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x3cbb2a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3cbb199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x3cbb2a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3cbb199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x3cbb2e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3cbb199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x3cbb2e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3cbb199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x3cbb314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x3cbb199
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x3cbb348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x3cbb27f
xor eax, eax
push ebp
push 0x3cbb278
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.03cbae80
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 0x3cbb208
mov eax, dword [ebp - 0x10]
call fcn.03cb504c
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.03cb8e00
jmp 0x3cbb253
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x3cbb388
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x3cbb253
mov eax, dword [ebp - 0x10]
call fcn.03cb504c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x3cbb388
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.03cb8e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cbb27f
cmp dword [ebp - 8], 0
je 0x3cbb26e
mov eax, dword [ebp - 8]
call fcn.03cb5068
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 0x3cbb29c
lea eax, [ebp - 4]
call fcn.03cb7e50
ret
Function at 0x3cbb584
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.03cb7f34
xor eax, eax
push ebp
push 0x3cbb644
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.03cb8e3c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.03cb8fec
mov eax, dword [ebx]
call fcn.03cbb44c
test al, al
jne 0x3cbb621
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.03cb8e3c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.03cb8fec
mov eax, dword [ebx]
call fcn.03cbb44c
test al, al
jne 0x3cbb621
mov eax, ebx
call fcn.03cb7e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cbb64b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.03cb7eb0
lea eax, [ebp - 4]
call fcn.03cb7e50
ret

Function at 0x3cd1060
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x3cd118e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x3cd1168
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x3cd1151
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.03cb8e3c
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.03cb936c
test eax, eax
jle 0x3cd1151
mov eax, dword [ebp - 4]
test eax, eax
je 0x3cd1105
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x3cd1113
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.03cb915c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.03cb8e00
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.03cb8fec
jmp 0x3cd1168
add ebx, 2
cmp word [ebx], 0
jne 0x3cd114e
add ebx, 4
test ebx, ebx
je 0x3cd1162
cmp word [ebx], 0
jne 0x3cd10b2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cd1195
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.03cb7eb0
lea eax, [ebp - 4]
call fcn.03cb7e50
ret
Function at 0x3cd1288
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x3cd14c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.03cb7e50
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jne 0x3cd135f
cmp dword [ebp - 0x14], 0
jne 0x3cd135f
xor edx, edx
mov eax, 6
call fcn.03cd9a30
test al, al
je 0x3cd135f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x3cd135f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.03cb8e3c
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.03cd1060
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.03cb8230
mov byte [ebp - 9], 1
jmp 0x3cd14a7
test ebx, ebx
jne 0x3cd136d
cmp dword [ebp - 0x14], 0
je 0x3cd145b
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x3cd145b
xor eax, eax
push ebp
push 0x3cd1454
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x3cd143d
xor eax, eax
push ebp
push 0x3cd1436
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.03cc3818
test eax, eax
jbe 0x3cd141f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.03cb8e3c
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.03cd1060
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.03cb8230
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cd143d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cd145b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x3cd14a7
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.03cd119c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.03cb8230
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x3cd14a7
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.03cd1060
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.03cb8230
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cd14cc
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.03cb7eb0
ret
Function at 0x3cd14d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.03cd9a30
test al, al
je 0x3cd15a0
xor edx, edx
mov eax, ebx
call fcn.03cd2fd0
test al, al
je 0x3cd15a0
mov eax, ebx
call fcn.03cd2b1c
test al, 0x20
je 0x3cd15a0
mov eax, ebx
call fcn.03cb8d98
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x3cd15a0
test ah, 4
je 0x3cd15a0
test al, 0x10
je 0x3cd153f
mov edi, 0x2000000
jmp 0x3cd1541
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.03cb8d98
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x3cd15a0
xor eax, eax
push ebp
push 0x3cd1599
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.03cd1288
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3cd15a0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x3cd1848
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x3cd18a1
test eax, edx
je 0x3cd18a4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x3cd185f
movzx eax, word [eax]
sub eax, ecx
jmp 0x3cd1886
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 0x3cd1887
add ecx, 4
js 0x3cd1877
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x3cd1884
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x3cd1886
xor eax, eax
ret
test eax, eax
je 0x3cd18b0
test edx, edx
jne 0x3cd1850
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret