joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x957ecc], 1
je 0x45a355
call fcn.0045a2c0
mov eax, dword [0x7391b8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x45a380
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0045a160
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x45a36c
test esi, esi
je 0x45a36c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call fcn.0045a210
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x45a482
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x7391b8]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x45a482
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_abort
mov esi, esi
lea edi, [edi]
Function at 0x45a5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x45a5f0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x45a691
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x45a6c0
cmp eax, 3
jne 0x45a5da
mov eax, dword [0x7391b8]
cmp eax, 0xffffffff
je 0x45a5da
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x45a5da
test byte [eax + 0x20], 0x30
je 0x45a6e2
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x45a7e4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x45a664
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x45a656
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00459a00
lea eax, [ebx + 0x38]
call fcn.0045a210
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x45a769
mov eax, ebx
call fcn.00459f00
jmp 0x45a769
mov eax, dword [0x957ea8]
test eax, eax
je 0x45a5da
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x957ea8], 0
sub esp, 4
jmp 0x45a5da
mov dword [esp + 4], 0x459c20
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x957ea8], eax
jmp 0x45a5da
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x45a790
test eax, eax
je 0x45a700
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
jne 0x45a7c0
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x45a7d0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x45a745
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.00459a00
mov eax, esi
call fcn.0045a210
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x45a685
mov eax, dword [0x7391b8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x45a5da
test eax, eax
je 0x45a7a0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.00459a00
lea eax, [ebx + 0x38]
call fcn.0045a210
jmp 0x45a5da
call fcn.0045a4d0
jmp 0x45a71c
mov dword [esp], edi
call fcn.00459a00
mov eax, esi
call fcn.0045a210
jmp 0x45a5da
call fcn.0045a4d0
jmp 0x45a632
Function at 0x45b150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0045a340
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x45b1d2
test byte [ebx + 0x20], 0x30
jne 0x45b186
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x7391b8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x45b1c9
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x45b216
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x45b1bc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x45b1d9
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0045a4d0
jmp 0x45b16d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x45b23d
mov eax, dword [0x7391b8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x45b1c9
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x45b22a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x45b1fc
mov eax, ebx
call fcn.00459f00
jmp 0x45b1fc
Function at 0x46cf40
Capabilities:
Query environment variable

Disassembly:
push ebx
xor eax, eax
mov edx, 1
sub esp, 0x18
lock cmpxchg dword [0x7395a0], edx
jne 0x46cf7e
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
mov eax, 1
setne bl
xor edx, edx
lock cmpxchg dword [0x7395a0], edx
jne 0x46cf8a
add esp, 0x18
mov eax, ebx
pop ebx
ret
mov ecx, 0x7395a0
call fcn.004b67b0
jmp 0x46cf55
mov ecx, 0x7395a0
call fcn.004b6900
jmp 0x46cf77

Function at 0x46e340
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov edx, 1
sub esp, 0x3c
mov ebx, dword [esp + 0x54]
lock cmpxchg dword [0x7395a0], edx
jne 0x46e45d
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
mov esi, eax
je 0x46e37f
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xd
jbe 0x46e3b0
test ebx, ebx
jne 0x46e3a4
xor esi, esi
mov eax, 1
xor edx, edx
lock cmpxchg dword [0x7395a0], edx
jne 0x46e46c
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebx], 0
xor esi, esi
jmp 0x46e385
lea eax, [esp + 0x2b]
mov dword [esp + 8], 0
mov dword [esp], esi
mov byte [esp + 0x2b], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00472c10
cmp byte [esp + 0x2b], 0
mov dword [esp + 0x1c], edx
je 0x46e37f
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx]
test dl, dl
je 0x46e440
movzx esi, dl
sub edx, 1
cmp dl, 0x1f
ja 0x46e37f
sub esi, 1
mov edx, 0x80001f00
bt edx, esi
jae 0x46e37f
add ecx, 1
mov ebp, 0x80001f00
mov edi, eax
jmp 0x46e422
sub esi, 1
add ecx, 1
bt ebp, esi
jae 0x46e37f
mov dword [esp + 0x2c], ecx
movzx esi, byte [ecx]
lea eax, [esi - 1]
mov edx, esi
cmp al, 0x1f
jbe 0x46e413
test dl, dl
mov eax, edi
jne 0x46e37f
lea esi, [esi]
cdq
cmp dword [esp + 0x1c], edx
mov esi, eax
jne 0x46e37f
test ebx, ebx
je 0x46e385
mov byte [ebx], 1
jmp 0x46e385
mov ecx, 0x7395a0
call fcn.004b67b0
jmp 0x46e360
mov ecx, 0x7395a0
call fcn.004b6900
jmp 0x46e39a

Function at 0x472030
Capabilities:
Query environment variable

Disassembly:
push ebp
xor eax, eax
mov edx, 1
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x7395a0
mov byte [ebp - 0xc], 0
lock cmpxchg dword [0x7395a0], edx
jne 0x4720ab
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0xc], 1
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov ecx, ebx
call fcn.004aa130
sub esp, 8
cmp byte [ebp - 0xc], 0
jne 0x472090
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x472080
mov eax, 1
xor edx, edx
lock cmpxchg dword [ecx], edx
je 0x472080
call fcn.004b6900
jmp 0x472080
mov ecx, 0x7395a0
call fcn.004b67b0
jmp 0x472056
Function at 0x4826d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x24c
mov dword [ebp - 0x23c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x240], eax
call eax
sub esp, 8
cmp eax, 0x104
mov ebx, eax
mov edi, dword [ebp - 0x228]
jbe 0x4827db
cmp dword [ebp - 0x22c], eax
cmovle eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x244], eax
jge 0x4827bd
cmp ebx, 0x104
jg 0x482811
mov dword [ebp - 0x228], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x248], esi
mov edx, esi
add eax, eax
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x22c], 0
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x244]
cmp edi, esi
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
je 0x482843
cmp edi, eax
je 0x4827bd
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x240]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.005b01a0
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x482803
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x23c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x248], eax
je 0x48284a
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x244]
mov edx, dword [ebp - 0x248]
jmp 0x482775
mov edi, eax
jmp 0x4827bd
call fcn.0071fff4
mov eax, dword [ebp - 0x248]
jmp 0x482826
Function at 0x485d00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea esi, [ebp - 0x218]
lea edi, [ebp - 0x224]
sub esp, 0x23c
mov eax, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x22c], edx
mov dword [ebx], 0x880f80
mov dword [ebp - 0x224], 0x880f80
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [ebp - 0x230], eax
call eax
sub esp, 0x10
test eax, eax
jne 0x485eb0
mov eax, dword [ebp - 0x224]
mov edx, dword [eax + 4]
test edx, edx
jne 0x485e02
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test eax, eax
jne 0x485daf
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0xc], 0xff
lea edi, [ebp - 0x224]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x59
mov dword [esp], eax
mov eax, dword [ebp - 0x230]
call eax
sub esp, 0x10
test eax, eax
jne 0x485f23
mov eax, dword [ebp - 0x224]
mov edx, dword [eax]
test edx, edx
je 0x485de0
cmp edx, 0xffffffff
je 0x485dcc
lock sub dword [eax], 1
mov eax, dword [ebp - 0x224]
je 0x485de0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x224]
lea eax, [ebp - 0x21c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.005ac9a0
lea edx, [ebp - 0x225]
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x220]
mov dword [esp + 4], edx
add eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00475c30
cmp byte [ebp - 0x225], 0
je 0x485e66
mov edx, dword [ebp - 0x220]
cmp byte [edx], 0
jne 0x485e66
cmp eax, 0x814
je 0x485f93
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
test edx, edx
je 0x485e90
cmp edx, 0xffffffff
je 0x485d70
lock sub dword [eax], 1
mov eax, dword [ebp - 0x21c]
jne 0x485d70
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004a4c50
jmp 0x485d70
lea eax, [ebp - 0x220]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005b01a0
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], edx
mov edx, dword [eax]
test edx, edx
je 0x485f00
cmp edx, 0xffffffff
je 0x485d5f
lock sub dword [eax], 1
jne 0x485d5f
nop
lea esi, [esi]
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x485d5f
lea eax, [ebp - 0x21c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005b01a0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x485f70
cmp edx, 0xffffffff
je 0x485daf
lock sub dword [eax], 1
jne 0x485daf
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x485daf
mov dword [esp], 2
mov dword [esp + 4], 0x743080
mov ecx, ebx
call fcn.005b10d0
sub esp, 8
jmp 0x485e66
Function at 0x485fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x2c
mov dword [eax], 0x880f80
lea eax, [ebp - 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4000
mov dword [esp + 0xc], eax
mov dword [esp], edx
mov dword [ebp - 0x20], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
sub esp, 0x10
test eax, eax
je 0x486050
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test eax, eax
jne 0x48603f
mov eax, dword [esi]
cmp eax, dword [0x78fc90]
je 0x486090
cmp eax, dword [0x78fcb0]
je 0x4860d0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x1c]
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.005b01a0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ecx, edi
mov dword [ebx], edx
mov dword [ebp - 0x1c], eax
call fcn.005b1050
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x486020
mov ecx, dword [0x78fc94]
cmp dword [esi + 4], ecx
jne 0x486033
mov ecx, dword [0x78fc98]
cmp dword [esi + 8], ecx
jne 0x486033
mov ecx, dword [0x78fc9c]
cmp dword [esi + 0xc], ecx
jne 0x486033
mov dword [esp], 0x11
mov dword [esp + 4], str.C:_tempqt_common
mov ecx, ebx
call fcn.005b10d0
jmp 0x486110
mov eax, dword [0x78fcb4]
cmp dword [esi + 4], eax
jne 0x48603f
mov eax, dword [0x78fcb8]
cmp dword [esi + 8], eax
jne 0x48603f
mov eax, dword [0x78fcbc]
cmp dword [esi + 0xc], eax
jne 0x48603f
mov dword [esp], 0xf
mov dword [esp + 4], str.C:_tempqt_user
mov ecx, ebx
call fcn.005b10d0
sub esp, 8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4877f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x38], 1
mov dword [esp + 8], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 4], edi
je 0x487950
mov ebx, dword [esp + 8]
add eax, eax
mov edi, edx
lea esi, [edx + eax]
sar eax, 1
mov edx, eax
lea eax, [edi + ebx*2]
cmp ebx, edx
mov dword [esp + 0xc], esi
cmovge eax, esi
cmp edi, eax
jae 0x487900
mov edx, edi
mov esi, dword [esp + 4]
not edx
add eax, edx
shr eax, 1
lea ebp, [eax + esi + 1]
jmp 0x4878a6
lea eax, [edx + eax]
movzx eax, ax
movzx edx, byte [esi]
movzx ebx, dl
mov ecx, edx
sar ebx, 5
and ecx, 0x1f
movzx ebx, word [ebx + ebx + 0x890ea0]
add ecx, ebx
movzx ecx, word [ecx + ecx + 0x890ea0]
lea ecx, [ecx + ecx*4]
movzx ecx, word [ecx*4 + 0x88146e]
mov ebx, ecx
sar bx, 1
and ecx, 1
jne 0x487930
add edx, ebx
movzx edx, dx
sub eax, edx
jne 0x487920
add esi, 1
add edi, 2
cmp esi, ebp
je 0x487904
movzx eax, word [edi]
mov edx, eax
sar edx, 5
movzx ecx, word [edx + edx + 0x890ea0]
mov edx, eax
and edx, 0x1f
add ecx, edx
movzx edx, word [ecx + ecx + 0x890ea0]
lea edx, [edx + edx*4]
movzx ecx, word [edx*4 + 0x88146e]
mov edx, ecx
sar dx, 1
and ecx, 1
je 0x487850
movsx edx, dx
add edx, edx
cmp word [edx + 0x88e3a0], 1
jne 0x487856
movzx eax, word [edx + 0x88e3a2]
jmp 0x487856
mov ebp, dword [esp + 4]
cmp dword [esp + 0xc], edi
mov eax, 1
jne 0x487920
mov ecx, dword [esp + 4]
add ecx, dword [esp + 8]
xor eax, eax
cmp ebp, ecx
setne al
neg eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
movsx ebx, bx
add ebx, ebx
cmp word [ebx + 0x88e3a0], 1
jne 0x487891
movzx edx, word [ebx + 0x88e3a2]
jmp 0x487891
mov ebx, edx
mov ecx, dword [esp + 4]
add esp, 0x1c
mov edx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004a0d40

Function at 0x487ec0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x208]
mov ebx, eax
sub esp, 0x220
mov dword [eax], 0x880f80
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5a
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
sub esp, 0x10
test eax, eax
jne 0x487f10
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x20c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005b01a0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x20c], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x487f4b
cmp edx, 0xffffffff
je 0x487efd
lock sub dword [eax], 1
jne 0x487efd
mov eax, dword [ebp - 0x20c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x48e120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
mov edx, 1
sub esp, 0x3c
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x20], 0x73d484
mov byte [ebp - 0x1c], 0
lock cmpxchg dword [0x73d484], edx
jne 0x48e20d
cmp dword [ebp - 0x2c], 0x7ffe
mov byte [ebp - 0x1c], 1
jle 0x48e1e0
mov dword [esp], 0xfffe
call fcn.00708210
mov edi, eax
xor esi, esi
nop
mov eax, dword [ebp - 0x2c]
mov ecx, 0x7ffe
sub eax, esi
cmp eax, 0x7ffe
cmovg eax, ecx
test ebx, ebx
lea edx, [eax + eax]
je 0x48e19f
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [ebp - 0x30], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [esp], edi
mov word [edi + edx], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 4
add esi, 0x7ffe
add ebx, 0xfffc
cmp dword [ebp - 0x2c], esi
jg 0x48e170
mov dword [esp], edi
call fcn.006fca80
cmp byte [ebp - 0x1c], 0
jne 0x48e1f2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 4
cmp byte [ebp - 0x1c], 0
je 0x48e1d0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x48e1d0
mov eax, 1
xor edx, edx
lock cmpxchg dword [ecx], edx
je 0x48e1d0
call fcn.004b6900
jmp 0x48e1d0
mov ecx, 0x73d484
call fcn.004b67b0
jmp 0x48e14e
Function at 0x4a0d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
mov edi, eax
and esp, 0xfffffff0
sub esp, 0x20
cmp edx, dword [ebp + 8]
cmova ebx, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x1c], eax
add eax, 0x1e
lea esi, [ebx + ebx]
add edx, esi
mov dword [esp + 0x10], esi
cmp edx, eax
mov dword [esp + 0x18], edx
jbe 0x4a0f40
sub edx, edi
mov esi, edi
xor ebx, ebx
lea edi, [edx - 0x1f]
pxor xmm2, xmm2
shr edi, 5
add edi, 1
shl edi, 4
jmp 0x4a0d9d
add ebx, 0x10
add esi, 0x20
cmp ebx, edi
mov eax, ebx
je 0x4a0df3
movdqu xmm0, xmmword [ecx + ebx]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
movdqu xmm4, xmmword [esi + 0x10]
punpcklbw xmm1, xmm2
movdqu xmm3, xmmword [esi]
pcmpeqw xmm0, xmm4
pcmpeqw xmm1, xmm3
pmovmskb eax, xmm0
pmovmskb edx, xmm1
shl eax, 0x10
or eax, edx
xor eax, 0xffffffff
je 0x4a0d91
tzcnt eax, eax
shr eax, 1
add ebx, eax
mov eax, dword [esp + 0x1c]
movzx edx, byte [ecx + ebx]
movzx eax, word [eax + ebx*2]
sub eax, edx
test eax, eax
je 0x4a0e50
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebx + ebx + 0xe]
add edx, dword [esp + 0x1c]
cmp dword [esp + 0x18], edx
ja 0x4a0eb0
lea edi, [ecx + eax]
lea edx, [eax + eax + 6]
mov dword [esp], edi
mov edi, dword [esp + 0x1c]
lea esi, [edx - 6]
add edx, dword [esp + 0x1c]
add edi, esi
cmp dword [esp + 0x18], edx
ja 0x4a0ef5
cmp dword [esp + 0x10], esi
je 0x4a0e50
mov ecx, dword [esp]
movzx eax, word [edi]
movzx ecx, byte [ecx]
cmp ax, cx
mov edx, ecx
jne 0x4a0ea0
mov ebx, dword [esp + 0x10]
sub ebx, esi
sar ebx, 1
sub ebx, 1
jne 0x4a0e6e
lea esi, [esi]
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [ebp + 8]
je 0x4a0deb
cmp dword [ebp + 8], ecx
sbb eax, eax
lea esp, [ebp - 0xc]
and eax, 2
pop ebx
sub eax, 1
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp]
movzx eax, word [edi + 2]
movzx ecx, byte [ecx + 1]
cmp ax, cx
mov edx, ecx
jne 0x4a0ea0
cmp ebx, 1
je 0x4a0e50
mov ecx, dword [esp]
movzx eax, word [edi + 4]
movzx ecx, byte [ecx + 2]
cmp ax, cx
mov edx, ecx
je 0x4a0e50
mov esi, esi
lea edi, [edi]
sub eax, edx
jmp 0x4a0de7
mov edi, dword [esp + 0x1c]
pxor xmm1, xmm1
movq xmm0, qword [ecx + eax]
movdqu xmm6, xmmword [edi + eax*2]
punpcklbw xmm0, xmm1
movaps xmmword [esp], xmm6
pcmpeqw xmm0, xmmword [esp]
pmovmskb edx, xmm0
not edx
test dx, dx
je 0x4a0f32
tzcnt edx, edx
shr edx, 1
add edx, eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + edx*2]
movzx edx, byte [ecx + edx]
sub eax, edx
jmp 0x4a0de7
lea edx, [ecx + eax]
pxor xmm1, xmm1
movd xmm0, dword [edx]
movdqa xmm5, xmm0
movq xmm0, qword [edi]
punpcklbw xmm5, xmm1
pcmpeqw xmm0, xmm5
pmovmskb edx, xmm0
not edx
test dx, dx
jne 0x4a0eda
add ebx, 4
mov edi, dword [esp + 0x1c]
lea esi, [ebx + ebx]
lea eax, [ecx + ebx]
add edi, esi
mov dword [esp], eax
jmp 0x4a0e26
add ebx, 8
mov eax, ebx
jmp 0x4a0e05
mov edx, 0xe
xor eax, eax
xor ebx, ebx
jmp 0x4a0df7