joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push eax
lea edx, [esi + 0x9c]
lea ecx, [ebp - 0x190]
call fcn.004db1e0
lea edx, [esi + 0x68]
push 0x5599e4
mov ecx, 0x20
lea eax, [ebp - 0x190]
mov dword [ebp - 0x194], edx
call fcn.004db280
add esp, 8
cmp dword [esi], 3
jne 0x4db883
lea ecx, [ebp - 0x8c]
push ebx
push ecx
call fcn.004dab00
push 0x20
lea edx, [ebp - 0x8c]
push 0x5599e4
push edx
call fcn.004db380
push 0x10
lea eax, [esi + 0x8c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.004db380
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004db450
mov ecx, dword [esi + 4]
push ecx
lea edx, [esi + 0x9c]
lea ecx, [ebp - 0x190]
call fcn.004db1e0
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x10
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x190]
call fcn.004db280
add esp, 0x2c
mov ebx, 1
mov edi, dword [esi + 4]
xor eax, eax
test edi, edi
je 0x4db822
lea esp, [esp]
mov cl, byte [esi + eax + 0x9c]
xor cl, bl
mov byte [ebp + eax - 0x34], cl
inc eax
cmp eax, edi
jb 0x4db810
push 0x10
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004d1760
mov ecx, dword [esi + 4]
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x190]
call fcn.004db1e0
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x10
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x190]
call fcn.004db280
inc ebx
add esp, 0x14
cmp ebx, 0x13
jbe 0x4db800
mov esi, dword [ebp - 0x194]
push 0x20
push 0
push esi
call fcn.004d1840
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004d1760
add esp, 0x18
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f0194
mov esp, ebp
pop ebp
ret

Function at 0x4ef802
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x594b0c], 0
push esi
push edi
jne 0x4ef778
call fcn.004ef6e4
test eax, eax
je 0x4ef7bd
mov eax, dword [0x594b0c]
cmp eax, 1
jne 0x4ef799
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ef7bd
jmp 0x4ef7ff
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4ef7ff
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ef7c1
xor eax, eax
jmp 0x4ef7ff
mov eax, dword [esi]
push dword [0x594b0c]
call edi
mov edi, eax
test edi, edi
je 0x4ef7e3
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ef7ff
lea edi, [esi + 0xff0]
push esi
push dword [0x594b0c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4ef7e9
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ef764

Function at 0x4f0194
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58c250]
jne 0x4f019e
repz ret
jmp fcn.004feb7c
Function at 0x514e5e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fe40b
and dword [ebp - 0x14], 0
cmp dword [0x595a2c], 0
mov dword [ebp - 0x18], eax
jne 0x514f11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514fb9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55e6a0
push ebx
call edi
test eax, eax
je 0x514fb9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55e690
push ebx
mov dword [0x595a2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x595a30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x595a34], eax
call edi
push eax
call esi
mov dword [0x595a3c], eax
test eax, eax
je 0x514f11
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x595a38], eax
mov eax, dword [0x595a38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x514f6a
cmp dword [0x595a3c], ecx
je 0x514f6a
push eax
call esi
push dword [0x595a3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x514f6a
test ebx, ebx
je 0x514f6a
call edi
test eax, eax
je 0x514f61
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x514f61
test byte [ebp - 8], 1
jne 0x514f6a
or dword [ebp + 0x10], 0x200000
jmp 0x514f9d
mov eax, dword [0x595a30]
cmp eax, dword [ebp - 0x18]
je 0x514f9d
push eax
call esi
test eax, eax
je 0x514f9d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514f9d
mov eax, dword [0x595a34]
cmp eax, dword [ebp - 0x18]
je 0x514f9d
push eax
call esi
test eax, eax
je 0x514f9d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x595a2c]
call esi
test eax, eax
je 0x514fb9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514fbb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f0194
leave
ret
Function at 0x1000ecc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000eccf
pop dword [ebp - 0xc]
mov eax, 0x1000eccf
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xff600d10
add dword [ebp - 0x1c], 0x4ef2383b
mov dword [ebp - 0x18], 0x5f980b6a
sub dword [ebp - 0x18], 0x2d64bf25
mov dword [ebp - 0x14], 0x14c56ed
add dword [ebp - 0x14], 0x4affed41
mov dword [ebp - 0x10], 0xfd7893ba
sub dword [ebp - 0x10], 0xfd7893ba
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x9ab8f87b
add eax, 0x7548c7dd
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x59cc67c
add dword [ebp - 0x1c], 0x6ed5a2da
mov dword [ebp - 0x18], 0xec7eca74
add dword [ebp - 0x18], 0x54ed9701
mov dword [ebp - 0x14], 0x9e79319c
sub dword [ebp - 0x14], 0x3b09c530
mov dword [ebp - 0x10], 0x6484ba58
sub dword [ebp - 0x10], 0x6484ba58
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3aedd
push 0
call eax
mov ecx, 0x9d92c70e
sub ecx, 0x9d928153
xor esi, esi
add esi, eax
mov edx, 0x681edc21
add edx, 0xa7e3abdf
add edx, dword [ebp - 0xc]
mov edi, 0xae6b5e2c
sub edi, 0xad92e358
xor dword [ebp - 4], 0x8707eb44
mov ebx, dword [edx]
xor dword [ebp - 4], edi
sub ebx, edi
mov dword [esi], ebx
xor dword [ebp - 4], ecx
add esi, 0xaa8259df
sub esi, 0xaa8259db
add edx, 4
loop 0x1000ede9
add eax, 0xca2f9ee6
add eax, 0x35d16ad9
mov ebx, eax
add eax, 0x3d46ea6f
add eax, 0xc2b91596
mov ecx, 0xe470a09f
add ecx, 0x2b8f5f61
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1000d76c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1000d77b
pop dword [ebp - 0x48]
mov eax, 0x6148b29d
add eax, 0xaeb824de
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3b0ef
push 0
mov eax, 0x5e5d1405
sub eax, 0x4e5ba2c5
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4b75
xor edx, edx
add edx, eax
mov esi, 0x7cd201b5
add esi, 0x9330524b
add esi, dword [ebp - 0x48]
mov ebx, 0xf6eb14fc
sub ebx, 0x42e3f110
sub dword [ebp - 0x20], 0xd30122a9
mov edi, dword [esi]
xor dword [ebp - 0x34], edi
sub edi, ebx
xor dword [ebp - 0x34], 0x9abd156
mov dword [edx], edi
add dword [ebp - 0x1c], esi
add edx, 0xbb2d431c
add edx, 0x44d2bce8
add esi, 4
loop 0x1000d7d6
add eax, 0x120a7
xor ebx, ebx
add ebx, eax
add eax, 0x9b30c7bc
sub eax, 0x9b30c7b7
mov ecx, 0x3fa0ad63
sub ecx, 0x2fa0ad63
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x413f54
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0x2d859aa
and esi, dword [esi - 0x63]
push es
pop ds
mov esp, 0x1771a1c2
cmc
pushal
xchg esp, eax
or byte [eax + 0x1f], bl
fist dword [edi]
out 0x9a, al
cmc
mov bl, 0xd
cmp esi, ebx
jno 0x413faf
add eax, dword [ecx - 0x4c70634f]
add byte [edi + 0x6b01da8a], dl
push 0xffffffffffffff8a
push cs
fiadd dword [ecx]
imul ebp, dword [edx - 0x76], 0xe
or al, 0xd4
clc
retf
loop 0x413f7b
mov al, 0x89
sub byte [edx + 0x35c6799b], 0x9d
mov dword [ebx], ebp
push eax
jns 0x413f7e
xor eax, 0x502b899d
push ebx
or edi, edi
mov byte [0xc68bff73], al
fbstp tbyte [edi + edi*2 + 0x1df6dddf]
xor al, 0x55
rcl ecx, 0x51
js 0x413fb6
scasb al, byte es:[edi]
jmp 0xa283d2ab
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x401a09
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.00401641
Function at 0x4071bc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072c8
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x40723c
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407233
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040b0f4
mov eax, dword [ebp - 4]
call fcn.0040af80
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x40726c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040b01c
jmp 0x407288
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040b0f4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040af80
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4072b0
cmp edi, 0x104
jbe 0x4072a4
mov eax, dword [ebp - 4]
call fcn.0040af80
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4072b0
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072cf
lea eax, [ebp - 4]
call fcn.0040a51c
pop eax
jmp eax
Function at 0x409164
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.00409624
mov byte [esp], al
cmp byte [esp], 0
jne 0x4092ed
test edi, edi
je 0x4092ed
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40922d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409208
cmp edi, 0xffffffff
je 0x4091c9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4091c9
mov byte [esp], 0
jmp 0x4092ed
cmp dword [esi], 1
jg 0x409208
cmp dword [esi], 0
jne 0x4091fa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4091fa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4092ed
lea eax, [esp + 0xc]
call fcn.00408e18
dec ebp
test ebp, ebp
jg 0x4091ae
cmp edi, 0xffffffff
je 0x40922d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40922b
mov byte [esp], 0
jmp 0x4092ed
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409172
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40922d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409368
mov edx, eax
mov ebx, dword [0x6058fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409291
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40928f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409291
xor edi, edi
cmp byte [esp], 0
je 0x4092b7
mov ebx, dword [esi]
test bl, 1
jne 0x4092cd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409297
mov byte [esp + 1], 1
jmp 0x4092cd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4092b7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409244
cmp byte [esp], 0
je 0x4092ed
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 0x40a1b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60505c], 0
je 0x40a21b
cmp word [0x605348], 0xd7b2
jne 0x40a1dd
cmp dword [0x605350], 0
jbe 0x40a1dd
mov eax, 0x605344
call dword [0x605360]
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, 0x40a248
call fcn.0040ad34
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ff036], 0
jne 0x40a237
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a3dc
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 [0x5ff038], 0
je 0x40a407
mov edx, edi
mov eax, esi
call dword [0x5ff038]
mov ebx, eax
jmp 0x40a418
mov eax, 8
call fcn.00406fe4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a3a4
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 0x40a448
mov eax, ebx
call fcn.00407000
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40dc98
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 0x40ddff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a51c
cmp si, word [0x5ffa18]
jb 0x40dd30
cmp si, word [0x5ffc18]
ja 0x40dd30
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dd30
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5ffa18]
jae 0x40dd0a
mov edi, ebx
dec edi
jmp 0x40dd2b
cmp si, word [ebx*8 + 0x5ffa18]
jbe 0x40dd1a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dd2b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5ffa1c]
call fcn.0040dbb4
jmp 0x40dd30
cmp edi, dword [ebp - 8]
jae 0x40dcf4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dddf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dddf
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.0040b01c
push dword [ebp - 0x160]
push 0x40de1c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b01c
push dword [ebp - 0x164]
push 0x40de2c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b01c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de06
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a57c
pop eax
jmp eax
Function at 0x40dfb4
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 0x40e0ba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x607c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x607c30]
jne 0x40e000
mov eax, esi
mov edx, 0x607c32
mov ecx, 0x55
call fcn.0040b01c
push 0x607c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e0a2
push 0x607c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a51c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e06f
cmp byte [0x607c14], 0
je 0x40e034
mov edx, esi
mov eax, ebx
call fcn.0040de98
jmp 0x40e06f
mov edx, esi
mov eax, ebx
call fcn.0040dc98
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e06f
cmp dword [esi], 0
je 0x40e058
mov eax, esi
mov edx, 0x40e0d4
call fcn.0040b174
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dc98
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b174
push 0x607c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x607c30], bx
mov eax, dword [esi]
call fcn.0040af80
mov ecx, eax
mov eax, 0x607c32
mov edx, 0xaa
call fcn.0040db14
push 0x607c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0c1
lea eax, [ebp - 4]
call fcn.0040a51c
pop eax
jmp eax
Function at 0x40e2fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a610
xor eax, eax
push ebp
push 0x40e524
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e342
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e35c
mov eax, dword [ebp - 4]
call fcn.0040af80
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040db14
cmp word [ebp - 0x21e], 0
je 0x40e507
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e534
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e42b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e534
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e42b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e570
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e42b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e570
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e42b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e42b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e507
xor eax, eax
push ebp
push 0x40e500
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e0fc
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e48e
mov eax, dword [ebp - 0x14]
call fcn.00406fe4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040afe0
jmp 0x40e4d9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e618
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e4d9
mov eax, dword [ebp - 0x14]
call fcn.00406fe4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e618
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040afe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e507
cmp dword [ebp - 0xc], 0
je 0x40e4f4
mov eax, dword [ebp - 0xc]
call fcn.00407000
mov eax, dword [ebp - 0x10]
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 0x40e52b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a57c
pop eax
jmp eax
Function at 0x40e838
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.0040a610
xor eax, eax
push ebp
push 0x40e8fa
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.0040b01c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b1cc
mov eax, dword [ebx]
call fcn.0040e6e0
test al, al
jne 0x40e8d5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b01c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b1cc
mov eax, dword [ebx]
call fcn.0040e6e0
test al, al
jne 0x40e8d5
mov eax, ebx
call fcn.0040a51c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e901
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a57c
lea eax, [ebp - 4]
call fcn.0040a51c
pop eax
jmp eax

Function at 0x410460
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