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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x30]
mov ecx, 0x5a4d
mov dword [esi + 0xc], eax
push edi
cmp word [eax], cx
je 0x49ba32
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49ba05
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x49ba13
cmp eax, 0xffffffff
je 0x49ba13
push eax
call edi
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x518038
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], str.Incorrect_PE_file__e_magic___IMAGE_DOS_SIGNATURE_
call fcn.004c223c
mov ecx, dword [eax + 0x3c]
xor edx, edx
lea edi, [ecx + 0xf8]
cmp edx, dword [esi + 0x2c]
jb 0x49ba8c
ja 0x49ba49
cmp edi, dword [esi + 0x28]
jb 0x49ba8c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49ba59
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x49ba67
cmp eax, 0xffffffff
je 0x49ba67
push eax
call edi
cmp dword [esi + 0x34], 0
je 0x49ba77
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x518038
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], str.Incorrect_PE_file__header___filesize_
call fcn.004c223c
add ecx, eax
mov dword [esi + 0x40], ecx
cmp dword [ecx], 0x4550
je 0x49badc
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49baa9
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x49bab7
cmp eax, 0xffffffff
je 0x49bab7
push eax
call edi
cmp dword [esi + 0x34], 0
je 0x49bac7
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x518038
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], str.Incorrect_PE_file__incorrect_signature_
call fcn.004c223c
add ecx, 0x18
push ebx
xor ebx, ebx
mov dword [esi + 0x14], ecx
mov edx, 0x20b
cmp word [ecx], dx
sete bl
mov ecx, ebx
mov dword [esi + 0x3c], ecx
pop ebx
test ecx, ecx
je 0x49bb0d
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x44], eax
mov edx, dword [esi + 0x44]
add eax, 0x18
mov dword [esi + 0x18], eax
jmp 0x49bb10
mov edx, dword [esi + 0x40]
mov ax, word [edx + 6]
mov ecx, edx
add ecx, 4
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x10], ecx
mov word [esi + 8], ax
pop edi
je 0x49bb34
mov eax, dword [esi + 0x18]
add eax, 0x70
mov dword [esi + 0x1c], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
add eax, 0x60
mov dword [esi + 0x1c], eax
mov esp, ebp
pop ebp
ret
Function at 0x49d960
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x49d98b
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x52a12c], 0xffffffff
jne 0x49da60
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push str.License.dat
call fcn.004247f7
lea eax, [ebp - 8]
push eax
call fcn.0046cd30
mov esi, dword [eax]
add esp, 8
call fcn.004ad3ae
test eax, eax
jne 0x49d9c9
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
add edi, 0x10
mov dword [ebp - 4], edi
test esi, esi
je 0x49d9ff
test esi, 0xffff0000
jne 0x49da03
movzx esi, si
push esi
call fcn.004b5332
test eax, eax
je 0x49da19
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00424e5c
jmp 0x49da16
xor eax, eax
jmp 0x49da0c
push esi
call fcn.004bbaea
add esp, 4
push eax
push esi
lea ecx, [ebp - 4]
call fcn.004253df
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49da38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0049cd20
mov dword [0x52a12c], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49da60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x52a12c]
test ebx, ebx
je 0x49da78
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a17a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov dl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x4a17eb
movzx esi, dl
push edi
nop
mov ecx, dword [eax + 0x260]
mov edi, ecx
shr edi, 0x18
shl ecx, 8
xor edi, esi
xor ecx, dword [edi*4 + 0x529438]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x4a17c0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x4a1879
sub ecx, ebx
je 0x4a185b
sub ecx, ebx
je 0x4a184f
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a37f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x527f10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004bc420
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a3842
cmp dword [ebp - 0x114], 6
lea eax, [esi + 1]
jae 0x4a3844
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bb182
mov esp, ebp
pop ebp
ret
Function at 0x4b4f4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4b4f95
call fcn.004af713
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b4f95
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4b4fb1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004b4ac6
mov esi, eax
test edi, edi
je 0x4b4faf
test ebx, ebx
je 0x4b4faf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4bb182
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x527f10]
jne 0x4bb18c
repz ret
jmp fcn.004c38ad

Function at 0x4cea99
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c3211
and dword [ebp - 4], 0
cmp dword [0x52d528], 0
mov ebx, eax
jne 0x4ceb4a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4cebfb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4eb220
push edi
call esi
test eax, eax
je 0x4cebfb
push eax
call fcn.004c319f
mov dword [esp], 0x4eb210
push edi
mov dword [0x52d528], eax
call esi
push eax
call fcn.004c319f
mov dword [esp], 0x4eb1fc
push edi
mov dword [0x52d52c], eax
call esi
push eax
call fcn.004c319f
mov dword [esp], 0x4eb1e0
push edi
mov dword [0x52d530], eax
call esi
push eax
call fcn.004c319f
pop ecx
mov dword [0x52d538], eax
test eax, eax
je 0x4ceb4a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c319f
pop ecx
mov dword [0x52d534], eax
mov eax, dword [0x52d534]
cmp eax, ebx
je 0x4ceba2
cmp dword [0x52d538], ebx
je 0x4ceba2
push eax
call fcn.004c321a
push dword [0x52d538]
mov esi, eax
call fcn.004c321a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ceba2
test edi, edi
je 0x4ceba2
call esi
test eax, eax
je 0x4ceb99
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ceb99
test byte [ebp - 0xc], 1
jne 0x4ceba2
or dword [ebp + 0x10], 0x200000
jmp 0x4cebdb
mov eax, dword [0x52d52c]
cmp eax, ebx
je 0x4cebdb
push eax
call fcn.004c321a
pop ecx
test eax, eax
je 0x4cebdb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4cebdb
mov eax, dword [0x52d530]
cmp eax, ebx
je 0x4cebdb
push eax
call fcn.004c321a
pop ecx
test eax, eax
je 0x4cebdb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x52d528]
call fcn.004c321a
pop ecx
test eax, eax
je 0x4cebfb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cebfd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439004]
jne 0x401010
repz ret
jmp fcn.0040158b

Function at 0x409276
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ee4
and dword [ebp - 4], 0
cmp dword [0x43bda0], 0
mov ebx, eax
jne 0x409327
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093d8
push eax
call fcn.00405e72
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43bda0], eax
call esi
push eax
call fcn.00405e72
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43bda4], eax
call esi
push eax
call fcn.00405e72
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43bda8], eax
call esi
push eax
call fcn.00405e72
pop ecx
mov dword [0x43bdb0], eax
test eax, eax
je 0x409327
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e72
pop ecx
mov dword [0x43bdac], eax
mov eax, dword [0x43bdac]
cmp eax, ebx
je 0x40937f
cmp dword [0x43bdb0], ebx
je 0x40937f
push eax
call fcn.00405eed
push dword [0x43bdb0]
mov esi, eax
call fcn.00405eed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40937f
test edi, edi
je 0x40937f
call esi
test eax, eax
je 0x409376
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409376
test byte [ebp - 0xc], 1
jne 0x40937f
or dword [ebp + 0x10], 0x200000
jmp 0x4093b8
mov eax, dword [0x43bda4]
cmp eax, ebx
je 0x4093b8
push eax
call fcn.00405eed
pop ecx
test eax, eax
je 0x4093b8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4093b8
mov eax, dword [0x43bda8]
cmp eax, ebx
je 0x4093b8
push eax
call fcn.00405eed
pop ecx
test eax, eax
je 0x4093b8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43bda0]
call fcn.00405eed
pop ecx
test eax, eax
je 0x4093d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b6c0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x439004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1f82bb4], 0x930
jne 0x40b6ea
push str.sobugo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1f82bb4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1f829f8], eax
jne 0x40b71d
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameW
lea edx, [ebp - 0x820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x4031a4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031e0
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403200
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004054fc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040528c
test esi, esi
jne 0x4034de
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040537c
jmp 0x4034fc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033ac
mov edi, eax
test esi, esi
je 0x4034fc
cmp dword [ebx], 0
je 0x4034fc
dec esi
jmp 0x4034e5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x53b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4041f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041d8
xor eax, eax
push ebp
push 0x4041d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404214
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x53b024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x53b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405038
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55004c], 0
je 0x405099
cmp word [0x550220], 0xd7b2
jne 0x405061
cmp dword [0x550228], 0
jbe 0x405061
mov eax, 0x55021c
call dword [0x550238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x53b768
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4050c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53b030], 0
jne 0x4050b5
push 0
push 0x53b760
push 0x53b768
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x53b038], 0
je 0x405236
mov edx, esi
mov eax, ebx
call dword [0x53b038]
jmp 0x405245
mov eax, 8
call fcn.00402f90
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051d8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406a40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ac3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ac3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406b4c
xor eax, eax
push ebp
push 0x406b45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040687c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406cac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406c66
cmp byte [ebp - 0xd], 0
jne 0x406b93
cmp byte [ebp - 0x12], 0
je 0x406c66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406bac
dec ebx
cmp byte [ebx], 0x2e
je 0x406bbb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406bab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406c66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406bf8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406c66
cmp byte [ebp - 0xd], 0
je 0x406c66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406c66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40995c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4099ae
test eax, edx
je 0x4099b1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409971
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409997
add ecx, 4
js 0x409987
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409994
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4099bd
test edx, edx
jne 0x409964
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040571c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a5e9
test al, 0x10
je 0x40a5ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a5f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040571c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a60d
test al, 0x10
jne 0x40a611
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a7b8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040571c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a7cc
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040571c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a7ee
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d6a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d6e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040537c
jmp 0x40d6ea
mov eax, ebx
mov edx, esi
call fcn.004052e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d6f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d716
movzx eax, byte [esp]
jmp 0x40d718
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret