joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10148c70
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13c
call fcn.10010ae0
mov eax, dword [0x1023d1a4]
xor eax, ebp
mov dword [ebp - 0xf4], eax
push 0x20
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x114]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
movzx edx, byte [ebp - 0x114]
and edx, 0xf8
mov byte [ebp - 0x114], dl
movzx eax, byte [ebp - 0xf5]
and eax, 0x7f
mov byte [ebp - 0xf5], al
movzx ecx, byte [ebp - 0xf5]
or ecx, 0x40
mov byte [ebp - 0xf5], cl
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.1013cfd0
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.1013d4b0
add esp, 0xc
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.1013d500
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.1013ba70
add esp, 8
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.10139ee0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10139af0
add esp, 8
push 0x20
lea edx, [ebp - 0x114]
push edx
call fcn.100679a0
add esp, 8
mov ecx, dword [ebp - 0xf4]
xor ecx, ebp
call fcn.10010586
mov esp, ebp
pop ebp
ret
Function at 0x1014f3e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10010ae0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x14]
jne 0x1014f418
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x6a
je 0x1014f44a
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x6b
je 0x1014f44a
call fcn.1004fd50
push str.RSA_padding_check_X931
push 0x43
push str.....Srcopenssl_3.0.12crypto_rsa_rsa_x931.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x89
push 4
call fcn.100500d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x1014f583
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp ecx, 0x6b
jne 0x1014f523
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x1014f47d
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jge 0x1014f4e3
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
movzx eax, byte [ebp - 0xd]
cmp eax, 0xba
jne 0x1014f4a3
jmp 0x1014f4e3
movzx ecx, byte [ebp - 0xd]
cmp ecx, 0xbb
je 0x1014f4e1
call fcn.1004fd50
push str.RSA_padding_check_X931
push 0x4e
push str.....Srcopenssl_3.0.12crypto_rsa_rsa_x931.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x8a
push 4
call fcn.100500d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x1014f583
jmp 0x1014f474
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
jne 0x1014f521
call fcn.1004fd50
push str.RSA_padding_check_X931
push 0x56
push str.....Srcopenssl_3.0.12crypto_rsa_rsa_x931.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x8a
push 4
call fcn.100500d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x1014f583
jmp 0x1014f52c
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x1014f56c
call fcn.1004fd50
push str.RSA_padding_check_X931
push 0x5f
push str.....Srcopenssl_3.0.12crypto_rsa_rsa_x931.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x8b
push 4
call fcn.100500d0
add esp, 0xc
or eax, 0xffffffff
jmp 0x1014f583
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10160a90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.10010ae0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 5
je 0x10160acc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.101604d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x10160acc
mov eax, dword [ebp - 4]
jmp 0x10160b23
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
push 0xf
mov eax, dword [ebp + 8]
push eax
call fcn.10035250
add esp, 8
cmp dword [ebp - 4], 0
jg 0x10160b20
mov ecx, dword [ebp - 4]
push ecx
call fcn.100c0370
add esp, 4
test eax, eax
je 0x10160b20
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.10035280
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x101bc590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.10010ae0
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [ebp - 7], cl
movzx edx, byte [ebp - 7]
sar edx, 7
mov byte [ebp - 6], dl
mov dword [ebp - 4], 0
jmp 0x101bc5c7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov cl, byte [ebp - 5]
mov byte [ebp - 7], cl
mov edx, dword [ebp + 0x10]
sub edx, 1
cmp dword [ebp - 4], edx
jge 0x101bc5f7
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov cl, byte [eax + 1]
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
sar edx, 7
movzx eax, byte [ebp - 7]
shl eax, 1
or eax, edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x101bc5b8
movzx edx, byte [ebp - 7]
shl edx, 1
movzx eax, byte [ebp - 6]
xor ecx, ecx
sub ecx, eax
mov eax, dword [ebp + 0x10]
sub eax, 0x10
neg eax
sbb eax, eax
and eax, 0xffffff94
add eax, 0x87
and ecx, eax
xor edx, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], dl
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
xor eax, eax
cmp dword [ebp + 8], 2
push esi
jl 0x4010e5
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
xor esi, esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x401068
cmp dword [esp + 0x10], esi
je 0x401056
mov esi, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401064
mov dword [esp + 0x28], eax
jmp 0x40106c
test esi, esi
je 0x4010dd
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40107a
mov dword [esp + 0x20], 2
jmp 0x40108a
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 3
push 0
push 0
push 0
push 1
push str.proxyfinder
mov dword [esp + 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
push dword [ecx + 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4010dd
mov eax, dword [esp + 8]
test eax, eax
je 0x4010dd
push eax
push 0x40cd58
call fcn.004010f9
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4010c8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405937
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004039e3
mov dword [ebp - 0x14], eax
cmp dword [0x40fbf0], edi
jne 0x405a28
push 0x800
push edi
push 0x40a34c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4059b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x405b08
push 0x40a34c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405b08
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405b08
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40fbf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40fbf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40fbf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fc00], eax
test eax, eax
je 0x405a25
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fbfc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x405a4d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405a40
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x405a62
push 4
pop eax
jmp 0x405b0a
cmp dword [ebp - 0x14], edi
je 0x405a62
push dword [0x40fbf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x405a47
mov eax, dword [0x40fbfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x405ac0
cmp dword [0x40fc00], esi
je 0x405ac0
push eax
call ebx
push dword [0x40fc00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405ac0
test eax, eax
je 0x405ac0
call ecx
test eax, eax
je 0x405ab5
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 0x405ab5
test byte [ebp - 8], 1
jne 0x405ac0
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x405af0
mov eax, dword [0x40fbf4]
cmp eax, esi
je 0x405aed
push eax
call ebx
test eax, eax
je 0x405aed
call eax
mov edi, eax
test edi, edi
je 0x405aed
mov eax, dword [0x40fbf8]
cmp eax, esi
je 0x405aed
push eax
call ebx
test eax, eax
je 0x405aed
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40fbf0]
call ebx
test eax, eax
je 0x405b08
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x405b0a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010ea
leave
ret
Function at 0x4081c4
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.0040866c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40834d
test edi, edi
je 0x40834d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40828d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408268
cmp edi, 0xffffffff
je 0x408229
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408229
mov byte [esp], 0
jmp 0x40834d
cmp dword [esi], 1
jg 0x408268
cmp dword [esi], 0
jne 0x40825a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40825a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40834d
lea eax, [esp + 0xc]
call fcn.00407e98
dec ebp
test ebp, ebp
jg 0x40820e
cmp edi, 0xffffffff
je 0x40828d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40828b
mov byte [esp], 0
jmp 0x40834d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4081d2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40828d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004083c8
mov edx, eax
mov ebx, dword [0x4c28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4082f1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4082ef
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4082f1
xor edi, edi
cmp byte [esp], 0
je 0x408317
mov ebx, dword [esi]
test bl, 1
jne 0x40832d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4082f7
mov byte [esp + 1], 1
jmp 0x40832d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408317
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4082a4
cmp byte [esp], 0
je 0x40834d
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 0x4091fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c2058], 0
je 0x409263
cmp word [0x4c2344], 0xd7b2
jne 0x409225
cmp dword [0x4c234c], 0
jbe 0x409225
mov eax, 0x4c2340
call dword [0x4c235c]
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, 0x409290
call fcn.00409d5c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be032], 0
jne 0x40927f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409424
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 [0x4be034], 0
je 0x40944f
mov edx, edi
mov eax, esi
call dword [0x4be034]
mov ebx, eax
jmp 0x409460
mov eax, 8
call fcn.00406e1c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4c2059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4093ec
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 0x409490
mov eax, ebx
call fcn.00406e38
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c848
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 0x40c9af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409564
cmp si, word [0x4bea10]
jb 0x40c8e0
cmp si, word [0x4bec10]
ja 0x40c8e0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8e0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4bea10]
jae 0x40c8ba
mov edi, ebx
dec edi
jmp 0x40c8db
cmp si, word [ebx*8 + 0x4bea10]
jbe 0x40c8ca
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8db
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4bea14]
call fcn.0040c764
jmp 0x40c8e0
cmp edi, dword [ebp - 8]
jae 0x40c8a4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c98f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c98f
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.0040a04c
push dword [ebp - 0x160]
push 0x40c9cc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a04c
push dword [ebp - 0x164]
push 0x40c9dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a04c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9b6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004095c4
pop eax
jmp eax
Function at 0x40cb64
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 0x40cc6a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c4c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c4c28]
jne 0x40cbb0
mov eax, esi
mov edx, 0x4c4c2a
mov ecx, 0x55
call fcn.0040a04c
push 0x4c4c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc52
push 0x4c4c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409564
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc1f
cmp byte [0x4c4c0c], 0
je 0x40cbe4
mov edx, esi
mov eax, ebx
call fcn.0040ca48
jmp 0x40cc1f
mov edx, esi
mov eax, ebx
call fcn.0040c848
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc1f
cmp dword [esi], 0
je 0x40cc08
mov eax, esi
mov edx, 0x40cc84
call fcn.0040a1a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c848
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a1a4
push 0x4c4c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c4c28], bx
mov eax, dword [esi]
call fcn.00409fac
mov ecx, eax
mov eax, 0x4c4c2a
mov edx, 0xaa
call fcn.0040c6c4
push 0x4c4c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc71
lea eax, [ebp - 4]
call fcn.00409564
pop eax
jmp eax
Function at 0x40ce9c
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.00409648
xor eax, eax
push ebp
push 0x40d0c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cedc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cef6
mov eax, dword [ebp - 4]
call fcn.00409fac
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c6c4
cmp word [ebp - 0x21a], 0
je 0x40d0ad
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d110
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d110
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d178
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d0ad
xor eax, eax
push ebp
push 0x40d0a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ccac
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 0x40d034
mov eax, dword [ebp - 0x10]
call fcn.00406e1c
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.0040a010
jmp 0x40d07f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d1b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d07f
mov eax, dword [ebp - 0x10]
call fcn.00406e1c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d1b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0ad
cmp dword [ebp - 8], 0
je 0x40d09a
mov eax, dword [ebp - 8]
call fcn.00406e38
mov eax, dword [ebp - 0xc]
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 0x40d0cc
lea eax, [ebp - 4]
call fcn.00409564
pop eax
jmp eax
Function at 0x40d3d8
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.00409648
xor eax, eax
push ebp
push 0x40d49a
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.0040a04c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a1fc
mov eax, dword [ebx]
call fcn.0040d280
test al, al
jne 0x40d475
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a04c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a1fc
mov eax, dword [ebx]
call fcn.0040d280
test al, al
jne 0x40d475
mov eax, ebx
call fcn.00409564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4a1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004095c4
lea eax, [ebp - 4]
call fcn.00409564
pop eax
jmp eax

Function at 0x40ed54
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 0x41083c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00410828
add esp, 0x208
pop ebx
ret

Function at 0x41ba74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41bacd
test eax, edx
je 0x41bad0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ba8b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41bab2
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 0x41bab3
add ecx, 4
js 0x41baa3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41bab0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41bab2
xor eax, eax
ret
test eax, eax
je 0x41badc
test edx, edx
jne 0x41ba7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4202d4
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 0x42030d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004096ec
jmp 0x420316
mov eax, ebx
mov edx, esi
call fcn.00409944
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4