joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43906a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45a4d8]
je 0x439085
inc edi
cmp edi, 0x17
jb 0x439076
cmp edi, 0x17
jae 0x439205
push ebp
push 3
call fcn.0043f1ba
cmp eax, 1
pop ecx
je 0x4391d1
push 3
call fcn.0043f1ba
test eax, eax
pop ecx
jne 0x4390b9
cmp dword [0x459ba0], 1
je 0x4391d1
cmp ebx, 0xfc
je 0x439204
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45e458
push ebp
call fcn.004332e1
add esp, 0xc
test eax, eax
je 0x4390ef
push esi
push esi
push esi
push esi
push esi
call fcn.00436a17
add esp, 0x14
push 0x104
mov esi, 0x45e471
push esi
push 0
mov byte [0x45e575], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x439133
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004332e1
add esp, 0xc
test eax, eax
je 0x439133
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00436a17
add esp, 0x14
push esi
call fcn.004319b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x439178
push esi
call fcn.004319b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45e76c
push 0x44cf04
sub ecx, eax
push ecx
push eax
call fcn.00431a95
add esp, 0x14
test eax, eax
je 0x439178
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00436a17
add esp, 0x14
jmp 0x43917a
xor esi, esi
push 0x44cf00
push ebx
push ebp
call fcn.00433cdb
add esp, 0xc
test eax, eax
je 0x43919a
push esi
push esi
push esi
push esi
push esi
call fcn.00436a17
add esp, 0x14
push dword [edi*8 + 0x45a4dc]
push ebx
push ebp
call fcn.00433cdb
add esp, 0xc
test eax, eax
je 0x4391bc
push esi
push esi
push esi
push esi
push esi
call fcn.00436a17
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043effd
add esp, 0xc
jmp 0x439204
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x439204
cmp ebp, 0xffffffff
je 0x439204
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45a4dc]
push dword [esi]
call fcn.004319b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43effd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004356b9
xor ebx, ebx
cmp dword [0x45e9b4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43f0d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43f1b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e0ac
push edi
call esi
cmp eax, ebx
je 0x43f1b3
push eax
call fcn.0043564b
mov dword [esp], 0x44e09c
push edi
mov dword [0x45e9b4], eax
call esi
push eax
call fcn.0043564b
mov dword [esp], 0x44e088
push edi
mov dword [0x45e9b8], eax
call esi
push eax
call fcn.0043564b
mov dword [0x45e9bc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004339e1
test eax, eax
pop ecx
pop ecx
je 0x43f0a1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00436a17
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43f0d3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043564b
cmp eax, ebx
pop ecx
mov dword [0x45e9c4], eax
je 0x43f0d3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043564b
pop ecx
mov dword [0x45e9c0], eax
mov eax, dword [0x45e9c0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43f158
cmp dword [0x45e9c4], ecx
je 0x43f158
push eax
call fcn.004356c2
push dword [0x45e9c4]
mov esi, eax
call fcn.004356c2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43f158
cmp edi, ebx
je 0x43f158
call esi
cmp eax, ebx
je 0x43f125
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f125
test byte [ebp - 0x18], 1
jne 0x43f158
lea eax, [ebp - 0x10]
push eax
call fcn.00433a18
test eax, eax
pop ecx
je 0x43f140
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00436a17
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43f14f
or dword [ebp + 0x10], 0x200000
jmp 0x43f193
or dword [ebp + 0x10], 0x40000
jmp 0x43f193
mov eax, dword [0x45e9b8]
cmp eax, dword [ebp - 8]
je 0x43f193
push eax
call fcn.004356c2
cmp eax, ebx
pop ecx
je 0x43f193
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43f193
mov eax, dword [0x45e9bc]
cmp eax, dword [ebp - 8]
je 0x43f193
push eax
call fcn.004356c2
cmp eax, ebx
pop ecx
je 0x43f193
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e9b4]
call fcn.004356c2
cmp eax, ebx
pop ecx
je 0x43f1b3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f1b5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443322
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x459a70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004432b7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042ebd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x443371
cmp dword [ebp - 0x1c], 5
jb 0x443389
jmp 0x443385
cmp dword [ebp - 0x10], 1
jne 0x443389
cmp dword [ebp - 0x1c], 4
ja 0x443385
jne 0x443389
cmp dword [ebp - 0x18], 0
jbe 0x443389
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44e930
call fcn.004431a8
test eax, eax
jge 0x4433aa
mov byte [0x45af6c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e618
add ebp, 0x78
leave
ret
Function at 0x40a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x412250], 0
push esi
push edi
jne 0x40a436
call fcn.0040a3a2
test eax, eax
je 0x40a47b
mov eax, dword [0x412250]
cmp eax, 1
jne 0x40a457
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a47b
jmp 0x40a4bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40a4bd
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 0x40a47f
xor eax, eax
jmp 0x40a4bd
mov eax, dword [esi]
push dword [0x412250]
call edi
mov edi, eax
test edi, edi
je 0x40a4a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a4bd
lea edi, [esi + 0xff0]
push esi
push dword [0x412250]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40a4a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a422

Function at 0x40a788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412120]
jne 0x40a792
repz ret
jmp fcn.0040adba

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a3c
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.00408ce4
test esi, esi
jne 0x406a72
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.00408e6c
jmp 0x406a90
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406980
mov edi, eax
test esi, esi
je 0x406a90
cmp dword [ebx], 0
je 0x406a90
dec esi
jmp 0x406a79
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x407d4c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00407fdc
mov byte [esp], al
cmp byte [esp], 0
jne 0x407ecc
test edi, edi
je 0x407ecc
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407e0c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407de7
cmp edi, 0xffffffff
je 0x407dab
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407dab
mov byte [esp], 0
jmp 0x407ecc
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407de7
test ebx, ebx
jne 0x407ddd
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407ddd
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407ecc
call 0x40801c
dec ebp
test ebp, ebp
jg 0x407d90
cmp edi, 0xffffffff
je 0x407e0c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407e0a
mov byte [esp], 0
jmp 0x407ecc
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407d5a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407e0c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407f38
mov edx, eax
mov ebx, dword [0x5318f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407e70
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407e6e
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407e70
xor edi, edi
cmp byte [esp], 0
je 0x407e96
mov ebx, dword [esi]
test bl, 1
jne 0x407eac
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407e76
mov byte [esp + 1], 1
jmp 0x407eac
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407e96
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407e23
cmp byte [esp], 0
je 0x407ecc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408a4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x531050], 0
je 0x408ab3
cmp word [0x53133c], 0xd7b2
jne 0x408a75
cmp dword [0x531344], 0
jbe 0x408a75
mov eax, 0x531338
call dword [0x531354]
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, 0x408ae0
call fcn.00409514
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51c032], 0
jne 0x408acf
push 0
push 0x51c9ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40b498
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 0x40b5fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408ce4
cmp si, word [0x51c9f8]
jb 0x40b530
cmp si, word [0x51cbf8]
ja 0x40b530
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b530
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x51c9f8]
jae 0x40b50a
mov edi, ebx
dec edi
jmp 0x40b52b
cmp si, word [ebx*8 + 0x51c9f8]
jbe 0x40b51a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b52b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x51c9fc]
call fcn.0040b3b8
jmp 0x40b530
cmp edi, dword [ebp - 8]
jae 0x40b4f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b5df
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b5df
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.0040997c
push dword [ebp - 0x160]
push 0x40b618
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040997c
push dword [ebp - 0x164]
push 0x40b628
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040997c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b604
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408d44
ret
Function at 0x40b7b0
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 0x40b8b4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x533b80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x533b98]
jne 0x40b7fc
mov eax, esi
mov edx, 0x533b9a
mov ecx, 0x55
call fcn.0040997c
push 0x533b80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b89e
push 0x533b80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408ce4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b86b
cmp byte [0x533b7c], 0
je 0x40b830
mov edx, esi
mov eax, ebx
call fcn.0040b694
jmp 0x40b86b
mov edx, esi
mov eax, ebx
call fcn.0040b498
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b86b
cmp dword [esi], 0
je 0x40b854
mov eax, esi
mov edx, 0x40b8cc
call fcn.00409ad4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b498
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409ad4
push 0x533b80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x533b98], bx
mov eax, dword [esi]
call fcn.004098d8
mov ecx, eax
mov eax, 0x533b9a
mov edx, 0xaa
call fcn.0040b318
push 0x533b80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b8bb
lea eax, [ebp - 4]
call fcn.00408ce4
ret
Function at 0x40bae4
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.00408dc8
xor eax, eax
push ebp
push 0x40bd09
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bb24
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bb3e
mov eax, dword [ebp - 4]
call fcn.004098d8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b318
cmp word [ebp - 0x21a], 0
je 0x40bcf3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bd18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bc0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bd18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bc0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bd54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bc0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bd54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bc0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bd88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bc0d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bdbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40bcf3
xor eax, eax
push ebp
push 0x40bcec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b8f4
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 0x40bc7c
mov eax, dword [ebp - 0x10]
call fcn.004066dc
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.00409940
jmp 0x40bcc7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40bdfc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bcc7
mov eax, dword [ebp - 0x10]
call fcn.004066dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40bdfc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcf3
cmp dword [ebp - 8], 0
je 0x40bce2
mov eax, dword [ebp - 8]
call fcn.004066f8
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 0x40bd10
lea eax, [ebp - 4]
call fcn.00408ce4
ret
Function at 0x40bff8
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.00408dc8
xor eax, eax
push ebp
push 0x40c0b8
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.0040997c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409b2c
mov eax, dword [ebx]
call fcn.0040bec0
test al, al
jne 0x40c095
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040997c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409b2c
mov eax, dword [ebx]
call fcn.0040bec0
test al, al
jne 0x40c095
mov eax, ebx
call fcn.00408ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0bf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408d44
lea eax, [ebp - 4]
call fcn.00408ce4
ret

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

Disassembly:
cmp eax, edx
je 0x41c751
test eax, edx
je 0x41c754
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c70f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c736
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 0x41c737
add ecx, 4
js 0x41c727
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c734
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c736
xor eax, eax
ret
test eax, eax
je 0x41c760
test edx, edx
jne 0x41c700
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x4211f0
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_1
test eax, eax
jle 0x421229
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408e6c
jmp 0x421232
mov eax, ebx
mov edx, esi
call fcn.004090c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4