joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100362fe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 1
push 0x768a
lea eax, [ebp - 0x10]
push eax
push 0x4667
call fcn.10036142
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10036338
xor eax, eax
jmp 0x1003647c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10036356
xor eax, eax
jmp 0x1003647c
push dword [ebp - 8]
push 1
push 0x1e5f
lea eax, [ebp - 0xc]
push eax
push 0x3e32
call fcn.1003500f
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1003637e
xor eax, eax
jmp 0x1003647c
push 0x2547
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6864
push dword [ebp - 0x10]
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.10035faa
add esp, 0x20
push dword [ebp + 8]
push 0x7719
push dword [ebp - 8]
push 0x1a0
push 0
push dword [ebp - 4]
call fcn.10035133
add esp, 0x18
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xa2d
call fcn.100361c3
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x100363f9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1813
push 1
call fcn.10036224
add esp, 0x10
push dword [ebp - 4]
call fcn.10034732
pop ecx
test eax, eax
jne 0x1003640a
xor eax, eax
jmp 0x1003647c
push 1
lea eax, [ebp - 4]
push eax
push 0x3dc6
push 0x26ae
call fcn.10036288
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10036464
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10036441
xor eax, eax
jmp 0x1003647c
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1003645a
xor eax, eax
jmp 0x1003647c
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10036475
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10036479
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1004eeb9
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004eed2
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1004ef06
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.10075937
mov esi, eax
mov ecx, dword [ebp - 0xc]
call fcn.100192c6
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004f2f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004f316
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1004f31e
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x1004f3f3
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004f44a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
mov dword [ecx + eax], edx
jmp 0x1004f454
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esp, ebp
pop ebp
ret

Function at 0x1004f6eb
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004f707
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
jmp 0x1004f74f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1004f735
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1004f74f
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10018f3b
or dword [eax], 0xffffffff
jmp 0x1004f72a
mov esp, ebp
pop ebp
ret
Function at 0x1004f98b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004f9b8
push 0
push 0
push 0
push 0
push 0x5f5
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1004fa03
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1004f9e6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x1004fa03
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10018f3b
mov dword [eax], 1
jmp 0x1004f9db
mov esp, ebp
pop ebp
ret
Function at 0x1008a701
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009538c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10079d03
mov dword [ebp - 0x14], eax
cmp dword [0x10682260], esi
jne 0x1008a7f4
push 0x800
push esi
push 0x1000798c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1008a781
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008a8d4
push esi
push esi
push 0x1000798c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1008a8d4
push 0x100079a4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008a8d4
push eax
call ebx
push 0x100079b0
push edi
mov dword [0x10682260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079c0
push edi
mov dword [0x10682264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079d4
push edi
mov dword [0x10682268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10682270], eax
test eax, eax
je 0x1008a7f1
push 0x100079f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1068226c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008a819
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008a80c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008a82e
push 4
pop eax
jmp 0x1008a8d6
cmp dword [ebp - 0x14], esi
je 0x1008a82e
push dword [0x10682260]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1008a813
mov eax, dword [0x1068226c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1008a88c
cmp dword [0x10682270], edi
je 0x1008a88c
push eax
call ebx
push dword [0x10682270]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008a88c
test eax, eax
je 0x1008a88c
call ecx
test eax, eax
je 0x1008a881
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1008a881
test byte [ebp - 8], 1
jne 0x1008a88c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008a8bc
mov eax, dword [0x10682264]
cmp eax, edi
je 0x1008a8b9
push eax
call ebx
test eax, eax
je 0x1008a8b9
call eax
mov esi, eax
test esi, esi
je 0x1008a8b9
mov eax, dword [0x10682268]
cmp eax, edi
je 0x1008a8b9
push eax
call ebx
test eax, eax
je 0x1008a8b9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10682260]
call ebx
test eax, eax
je 0x1008a8d4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008a8d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406e2c
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.00409838
test esi, esi
jne 0x406e62
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.004099c0
jmp 0x406e80
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406d10
mov edi, eax
test esi, esi
je 0x406e80
cmp dword [ebx], 0
je 0x406e80
dec esi
jmp 0x406e69
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4084c0
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.00408920
mov byte [esp], al
cmp byte [esp], 0
jne 0x40864a
test edi, edi
je 0x40864a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40858a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408565
cmp edi, 0xffffffff
je 0x408525
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408525
mov byte [esp], 0
jmp 0x40864a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408565
test ebx, ebx
jne 0x408557
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408557
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40864a
lea eax, [esp + 0xc]
call fcn.004081a0
dec ebp
test ebp, ebp
jg 0x40850a
cmp edi, 0xffffffff
je 0x40858a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408588
mov byte [esp], 0
jmp 0x40864a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4084ce
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40858a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004086b8
mov edx, eax
mov ebx, dword [0x6378fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4085ee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4085ec
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4085ee
xor edi, edi
cmp byte [esp], 0
je 0x408614
mov ebx, dword [esi]
test bl, 1
jne 0x40862a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4085f4
mov byte [esp + 1], 1
jmp 0x40862a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408614
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4085a1
cmp byte [esp], 0
je 0x40864a
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 0x40948c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63705c], 0
je 0x4094f3
cmp word [0x637348], 0xd7b2
jne 0x4094b5
cmp dword [0x637350], 0
jbe 0x4094b5
mov eax, 0x637344
call dword [0x637360]
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, 0x409520
call fcn.0040a180
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x62d032], 0
jne 0x40950f
push 0
push 0x62d9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4096f8
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 [0x62d034], 0
je 0x409723
mov edx, edi
mov eax, esi
call dword [0x62d034]
mov ebx, eax
jmp 0x409734
mov eax, 8
call fcn.00406a4c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4096c0
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 0x409764
mov eax, ebx
call fcn.00406a68
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c2c8
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 0x40c42d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409838
cmp si, word [0x62da00]
jb 0x40c360
cmp si, word [0x62dc00]
ja 0x40c360
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c360
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x62da00]
jae 0x40c33a
mov edi, ebx
dec edi
jmp 0x40c35b
cmp si, word [ebx*8 + 0x62da00]
jbe 0x40c34a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c35b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x62da04]
call fcn.0040c1e8
jmp 0x40c360
cmp edi, dword [ebp - 8]
jae 0x40c324
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c40f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c40f
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.0040a598
push dword [ebp - 0x160]
push 0x40c448
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a598
push dword [ebp - 0x164]
push 0x40c458
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a598
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a7d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c434
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409898
ret
Function at 0x40c5e0
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 0x40c6e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x639b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x639ba4]
jne 0x40c62c
mov eax, esi
mov edx, 0x639ba6
mov ecx, 0x55
call fcn.0040a598
push 0x639b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c6ce
push 0x639b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409838
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c69b
cmp byte [0x639b88], 0
je 0x40c660
mov edx, esi
mov eax, ebx
call fcn.0040c4c4
jmp 0x40c69b
mov edx, esi
mov eax, ebx
call fcn.0040c2c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c69b
cmp dword [esi], 0
je 0x40c684
mov eax, esi
mov edx, 0x40c6fc
call fcn.0040a6f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a6f0
push 0x639b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x639ba4], bx
mov eax, dword [esi]
call fcn.0040a4dc
mov ecx, eax
mov eax, 0x639ba6
mov edx, 0xaa
call fcn.0040c148
push 0x639b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6eb
lea eax, [ebp - 4]
call fcn.00409838
ret
Function at 0x40c914
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.0040991c
xor eax, eax
push ebp
push 0x40cb39
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c954
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c96e
mov eax, dword [ebp - 4]
call fcn.0040a4dc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c148
cmp word [ebp - 0x21a], 0
je 0x40cb23
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cbb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cbec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cb23
xor eax, eax
push ebp
push 0x40cb1c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c724
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 0x40caac
mov eax, dword [ebp - 0x10]
call fcn.00406a4c
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.0040a544
jmp 0x40caf7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cc2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40caf7
mov eax, dword [ebp - 0x10]
call fcn.00406a4c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cc2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb23
cmp dword [ebp - 8], 0
je 0x40cb12
mov eax, dword [ebp - 8]
call fcn.00406a68
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 0x40cb40
lea eax, [ebp - 4]
call fcn.00409838
ret
Function at 0x40ce28
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.0040991c
xor eax, eax
push ebp
push 0x40cee8
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.0040a598
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a748
mov eax, dword [ebx]
call fcn.0040ccf0
test al, al
jne 0x40cec5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a598
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a748
mov eax, dword [ebx]
call fcn.0040ccf0
test al, al
jne 0x40cec5
mov eax, ebx
call fcn.00409838
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ceef
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409898
lea eax, [ebp - 4]
call fcn.00409838
ret

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

Disassembly:
cmp eax, edx
je 0x42287d
test eax, edx
je 0x422880
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42283b
movzx eax, word [eax]
sub eax, ecx
jmp 0x422862
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 0x422863
add ecx, 4
js 0x422853
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422860
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422862
xor eax, eax
ret
test eax, eax
je 0x42288c
test edx, edx
jne 0x42282c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x423c10
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.0040a4dc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423c7a
test ah, 4
je 0x423c73
test bl, bl
jne 0x423c38
mov al, 1
jmp 0x423ca1
test al, 0x10
je 0x423c40
xor eax, eax
jmp 0x423ca1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423c64
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x423ca1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423ca1
test al, 0x10
sete al
jmp 0x423ca1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x423c9b
cmp ebx, 3
je 0x423c9b
cmp ebx, 0x7b
je 0x423c9b
mov eax, esi
call fcn.00423bd0
test al, al
jne 0x423c9f
xor eax, eax
jmp 0x423ca1
mov al, 1
pop edi
pop esi
pop ebx
ret