joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78afa728
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80c], edi
call fcn.78af035a
push dword [0x78b58954]
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78afa778
call dword [sym.imp.kernel32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
test esi, esi
je 0x78afa7d5
cmp dword [esi + 0x1c], 0
je 0x78afa7d5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x78afa78e
mov edi, dword [eax + 0x6c]
jmp 0x78afa791
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
push 0x78afa840
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.78b487c1
add esp, 0x2c
jmp 0x78afa7fa
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0x78afa8a8
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.78b487c1
add esp, 0x1c
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x808]
push eax
push dword [0x78b555ec]
call sym.MSVCR100.dll_fwprintf
push dword [0x78b555ec]
call sym.MSVCR100.dll_fflush
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
call dword [sym.imp.kernel32.dll_DebugBreak]
push 0xfffffffffffffff8
call fcn.78b487c1
int3

Function at 0x78afa8fc
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ebx, [ebp - 0x808]
call fcn.78b487c1
xor eax, eax
pop ecx
mov word [ebp - 8], ax
pop ecx
mov eax, ebx
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov eax, ebx
push eax
call sym.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.78ab0807
leave
ret
Function at 0x78afa955
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b589ec]
test dword [ebp + 8], eax
je 0x78afa9ea
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x808]
call fcn.78b487c1
xor eax, eax
pop ecx
mov word [ebp - 8], ax
mov eax, dword [0x78b555ec]
pop ecx
pop ebx
test eax, eax
je 0x78afa9dd
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b589f4]
push dword [0x78b589f0]
call fcn.78ac8210
add dword [0x78b589f0], 1
adc dword [0x78b589f4], 0
or eax, edx
jne 0x78afa9ea
push dword [0x78b555ec]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afa9ea
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab0807
leave
ret

Function at 0x78afe8af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afe8d6
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afe92b
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afe8bc
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe903
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b487c1
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afe92b
test al, 0x10
jne 0x78afe929
test al, 1
je 0x78afe929
test byte [ebp + 0xc], 2
je 0x78afe929
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afe8fa
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78afe946
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afe96e
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe98b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b487c1
pop ecx
jmp 0x78afe969
test byte [ebp + 0xc], 0x80
je 0x78afe996
and eax, 0xfffffffe
jmp 0x78afe999
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afe97c
xor eax, eax
pop ebp
ret
Function at 0x78b00307
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b0032f
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b0034c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b487c1
pop ecx
jmp 0x78b0032a
test byte [ebp + 0xc], 0x80
je 0x78b00357
and eax, 0xfffffffe
jmp 0x78b0035a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b0033d
xor eax, eax
pop ebp
ret

Function at 0x78b2c16f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b58650], eax
mov dword [0x78b5864c], ecx
mov dword [0x78b58648], edx
mov dword [0x78b58644], ebx
mov dword [0x78b58640], esi
mov dword [0x78b5863c], edi
mov word [0x78b58668], ss
mov word [0x78b5865c], cs
mov word [0x78b58638], ds
mov word [0x78b58634], es
mov word [0x78b58630], fs
mov word [0x78b5862c], gs
pushfd
pop dword [0x78b58660]
mov eax, dword [ebp]
mov dword [0x78b58654], eax
mov eax, dword [ebp + 4]
mov dword [0x78b58658], eax
lea eax, [ebp + 8]
mov dword [0x78b58664], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b585a0], 0x10001
mov eax, dword [0x78b58658]
mov dword [0x78b58554], eax
mov dword [0x78b58548], 0xc0000409
mov dword [0x78b5854c], 1
mov eax, dword [0x78b54610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b553f8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b58598], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c270
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b58598], 0
jne 0x78b2c25b
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x78b487c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x78b487d0
pop dword [ebp - 8]
mov eax, 0xdd85d443
sub eax, 0x64d14c73
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x50ff2
push 0
mov eax, 0xf5a44c01
sub eax, 0x7cfa3a79
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x3ed4
xor ebx, ebx
add ebx, eax
mov edi, 0x437c651
sub edi, 0x8b81d851
add edi, dword [ebp - 8]
mov edx, 0xa074eec
sub dword [ebp - 4], 0x31e2df63
mov esi, dword [edi]
sub dword [ebp - 4], esi
add esi, edx
sub dword [ebp - 4], 0x189ccf54
mov dword [ebx], esi
xor dword [ebp - 4], 0x68c9771c
add ebx, 0x144906e3
add ebx, 0xebb6f921
add edi, 0x2bb5eab1
add edi, 0xd44a1553
loop 0x78b48825
add eax, 0xe970de7f
add eax, 0x16900fa4
mov ebx, eax
add eax, 5
mov ecx, 0xd8cd4f53
add ecx, 0x9fdcb0ad
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x100738c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x10073d3
cmp edx, 0x10
jl 0x10073bf
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x10073ac
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x10073d3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x10073cb
and edx, 3
cmp edx, 3
jne 0x10073e7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x10073ec
cmp edx, 2
jne 0x10073f8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x10073fd
cmp edx, 1
jne 0x1007403
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
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 0x406ee4
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.0040a470
test esi, esi
jne 0x406f1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a5f8
jmp 0x406f38
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406dc8
mov edi, eax
test esi, esi
je 0x406f38
cmp dword [ebx], 0
je 0x406f38
dec esi
jmp 0x406f21
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x7b0008], 0x8088405
inc edx
mov dword [ebx + 0x7b0008], edx
mul edx
mov eax, edx
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x7b0008], 0x8088405
inc edx
mov dword [ebx + 0x7b0008], edx
fld qword [ebx + 0x7b0798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x4090b8
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.00409518
mov byte [esp], al
cmp byte [esp], 0
jne 0x409242
test edi, edi
je 0x409242
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409182
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40915d
cmp edi, 0xffffffff
je 0x40911d
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40911d
mov byte [esp], 0
jmp 0x409242
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40915d
test ebx, ebx
jne 0x40914f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40914f
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409242
lea eax, [esp + 0xc]
call fcn.00408d98
dec ebp
test ebp, ebp
jg 0x409102
cmp edi, 0xffffffff
je 0x409182
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409180
mov byte [esp], 0
jmp 0x409242
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4090c6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409182
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.004092b0
mov edx, eax
mov ebx, dword [0x8258fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4091e6
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4091e4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4091e6
xor edi, edi
cmp byte [esp], 0
je 0x40920c
mov ebx, dword [esi]
test bl, 1
jne 0x409222
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091ec
mov byte [esp + 1], 1
jmp 0x409222
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40920c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409199
cmp byte [esp], 0
je 0x409242
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x40a0c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x82505c], 0
je 0x40a12b
cmp word [0x825348], 0xd7b2
jne 0x40a0ed
cmp dword [0x825350], 0
jbe 0x40a0ed
mov eax, 0x825344
call dword [0x825360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a158
call fcn.0040af54
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x7b0032], 0
jne 0x40a147
push 0
push 0x7b09f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a330
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 [0x7b0034], 0
je 0x40a35b
mov edx, edi
mov eax, esi
call dword [0x7b0034]
mov ebx, eax
jmp 0x40a36c
mov eax, 8
call fcn.00406acc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x82505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a2f8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0x40a39c
mov eax, ebx
call fcn.00406ae8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d51c
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 0x40d681
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a470
cmp si, word [0x7b0a30]
jb 0x40d5b4
cmp si, word [0x7b0c30]
ja 0x40d5b4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d5b4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7b0a30]
jae 0x40d58e
mov edi, ebx
dec edi
jmp 0x40d5af
cmp si, word [ebx*8 + 0x7b0a30]
jbe 0x40d59e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d5af
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7b0a34]
call fcn.0040d43c
jmp 0x40d5b4
cmp edi, dword [ebp - 8]
jae 0x40d578
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d663
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40d663
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b6cc
push dword [ebp - 0x160]
push 0x40d69c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b6cc
push dword [ebp - 0x164]
push 0x40d6ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b6cc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d688
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a4d0
ret
Function at 0x40d834
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 0x40d938
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x827b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x827ba4]
jne 0x40d880
mov eax, esi
mov edx, 0x827ba6
mov ecx, 0x55
call fcn.0040b6cc
push 0x827b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40d922
push 0x827b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.0040a470
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40d8ef
cmp byte [0x827b88], 0
je 0x40d8b4
mov edx, esi
mov eax, ebx
call fcn.0040d718
jmp 0x40d8ef
mov edx, esi
mov eax, ebx
call fcn.0040d51c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d8ef
cmp dword [esi], 0
je 0x40d8d8
mov eax, esi
mov edx, 0x40d950
call fcn.0040b824
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d51c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b824
push 0x827b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x827ba4], bx
mov eax, dword [esi]
call fcn.0040b610
mov ecx, eax
mov eax, 0x827ba6
mov edx, 0xaa
call fcn.0040d39c
push 0x827b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d93f
lea eax, [ebp - 4]
call fcn.0040a470
ret
Function at 0x40db68
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.0040a554
xor eax, eax
push ebp
push 0x40dd8d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40dba8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x40dbc2
mov eax, dword [ebp - 4]
call fcn.0040b610
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d39c
cmp word [ebp - 0x21a], 0
je 0x40dd77
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dd9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dc91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dd9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dc91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ddd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dc91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ddd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dc91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40de0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dc91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40de40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dd77
xor eax, eax
push ebp
push 0x40dd70
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d978
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 0x40dd00
mov eax, dword [ebp - 0x10]
call fcn.00406acc
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.0040b678
jmp 0x40dd4b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40de80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dd4b
mov eax, dword [ebp - 0x10]
call fcn.00406acc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40de80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd77
cmp dword [ebp - 8], 0
je 0x40dd66
mov eax, dword [ebp - 8]
call fcn.00406ae8
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 0x40dd94
lea eax, [ebp - 4]
call fcn.0040a470
ret
Function at 0x40e07c
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.0040a554
xor eax, eax
push ebp
push 0x40e13c
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b6cc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b87c
mov eax, dword [ebx]
call fcn.0040df44
test al, al
jne 0x40e119
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b6cc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b87c
mov eax, dword [ebx]
call fcn.0040df44
test al, al
jne 0x40e119
mov eax, ebx
call fcn.0040a470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e143
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a4d0
lea eax, [ebp - 4]
call fcn.0040a470
ret
Function at 0x423ee4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423f3d
test eax, edx
je 0x423f40
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x423efb
movzx eax, word [eax]
sub eax, ecx
jmp 0x423f22
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 0x423f23
add ecx, 4
js 0x423f13
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x423f20
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x423f22
xor eax, eax
ret
test eax, eax
je 0x423f4c
test edx, edx
jne 0x423eec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42531c
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
test eax, eax
jne 0x425349
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x425428
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.0040b610
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425492
test ah, 4
je 0x42548b
test bl, bl
jne 0x425450
mov al, 1
jmp 0x4254b9
test al, 0x10
je 0x425458
xor eax, eax
jmp 0x4254b9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x42547c
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4254b9
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4254b9
test al, 0x10
sete al
jmp 0x4254b9
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4254b3
cmp ebx, 3
je 0x4254b3
cmp ebx, 0x7b
je 0x4254b3
mov eax, esi
call fcn.004253e8
test al, al
jne 0x4254b7
xor eax, eax
jmp 0x4254b9
mov al, 1
pop edi
pop esi
pop ebx
ret