joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x48], 1
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x6e0032
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0xc]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CDC::SelectObject_1
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CBrush::CBrush
lea ecx, [esp + 4]
mov byte [esp + 0x40], 3
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 5]
lea ecx, [edx + 0xa]
mov edx, dword [esp + 0x50]
mov esi, dword [edx - 8]
push esi
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x34]
call dword [eax + 0x64]
mov dword [esp + 4], 0x4045b0
lea ecx, [esp + 4]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x40459c
mov dword [esp + 0xc], 0x4045b0
mov dword [esp + 4], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], esi
mov byte [esp + 0x40], 0
call fcn.00402ec2
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 0xffffffff
call fcn.00402e6e
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f030]
jne 0x401116
repz ret
jmp fcn.00401b11

Function at 0x408edc
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.004047d5
and dword [ebp - 4], 0
cmp dword [0x45178c], 0
mov ebx, eax
jne 0x408f8d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40903e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40903e
push eax
call fcn.00404763
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45178c], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451790], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451794], eax
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x45179c], eax
test eax, eax
je 0x408f8d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x451798], eax
mov eax, dword [0x451798]
cmp eax, ebx
je 0x408fe5
cmp dword [0x45179c], ebx
je 0x408fe5
push eax
call fcn.004047de
push dword [0x45179c]
mov esi, eax
call fcn.004047de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408fe5
test edi, edi
je 0x408fe5
call esi
test eax, eax
je 0x408fdc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408fdc
test byte [ebp - 0xc], 1
jne 0x408fe5
or dword [ebp + 0x10], 0x200000
jmp 0x40901e
mov eax, dword [0x451790]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40901e
mov eax, dword [0x451794]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45178c]
call fcn.004047de
pop ecx
test eax, eax
je 0x40903e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409040
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b120
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44f030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b0a1cc]
push ebx
mov ebx, dword [0x2b09eec]
push esi
mov esi, dword [0x44ff60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b161
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2b0a1cc]
mov dword [0x2b09ee8], esi
cmp eax, 0x114e
jne 0x40b189
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b0a1cc]
cmp eax, 0x2f
jne 0x40b1ab
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040b050
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x401130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x42364c], 0
push esi
push edi
mov esi, edx
jne 0x401146
call section..text
or eax, 0xffffffff
mov edi, 0x80
add esi, 2
movzx edx, byte [esi - 2]
lea esi, [esi + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x423648]
movzx edx, byte [esi - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
movzx ecx, byte [esi - 4]
xor eax, dword [edx*4 + 0x423648]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x423648]
movzx edx, byte [esi - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x423648]
sub edi, 1
jne 0x401151
pop edi
not eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movsx edi, cl
push edi
push str.GetPhyDiskInfo__C_n
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2b8], eax
call fcn.00401370
push edi
push str.._C:
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00401230
add esp, 0x18
lea eax, [ebp - 0x8c]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_open_the_disk__C:_error:_u_n
call fcn.00401370
add esp, 0xc
jmp 0x401640
push 0
lea eax, [ebp - 0x290]
push eax
push 0x20
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401625
cmp dword [ebp - 0x2b4], 0
je 0x401625
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
movups xmm1, xmmword [ebp - 0x2ac]
mov eax, dword [ebp - 0x2b8]
movq xmm0, qword [ebp - 0x29c]
movups xmmword [eax], xmm1
movq qword [eax + 0x10], xmm0
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
push eax
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push edi
push str._C:_is_in_PhysicalDrive_d_Offset:_llu_n
call fcn.00401370
add esp, 0x14
lea eax, [ebp - 0x8c]
push dword [ebp - 0x2ac]
push str..PhysicalDrive_d
push 0x80
push eax
call fcn.00401230
add esp, 0x10
lea eax, [ebp - 0x8c]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2ac]
push str.Could_not_open_the_disk_PhysicalDrive_d___error:_u_n
call fcn.00401370
add esp, 0xc
jmp 0x401640
push 0
lea eax, [ebp - 0x290]
push eax
push 0x200
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401601
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x290]
push str.ReadFile_failed__dwSize:_u__error:_u_n
call fcn.00401370
add esp, 0xc
push esi
call ebx
jmp 0x401640
mov ecx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0xd4]
push esi
mov dword [ecx], eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00403088
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_failed__error:_u_n
call fcn.00401370
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403088
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x22c], edx
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4016bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_this_file__error:_u_n
call fcn.00401370
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403088
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4016e0
push str.Failed_to_get_vlnk_file_size_n
call fcn.00401370
add esp, 4
jmp 0x4017bf
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x8000
jne 0x4017b0
test eax, eax
jne 0x4017b0
push 0x200
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00403ee0
add esp, 0xc
lea eax, [ebp - 0x24]
push 0
push eax
push 0x200
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4017bf
mov dword [ebp - 0x14], 0x77772020
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x10], 0x65762e77
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x796f746e
mov esi, 0xc
mov dword [ebp - 8], 0x74656e2e
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4017bf
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401760
mov esi, dword [ebp - 0x218]
lea edx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x218], edi
call fcn.00401130
add esp, 4
cmp esi, eax
jne 0x4017bf
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4017a9
mov ecx, 0x80
lea esi, [ebp - 0x228]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, 1
jmp 0x4017bf
push eax
push ecx
push str.Invalid_vlnk_file_length__llu_n
call fcn.00401370
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403088
mov esp, ebp
pop ebp
ret
Function at 0x40547c
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00404e8e
inc dword [ebx + 0x45ff0cc4]
or al, 0x66
mov eax, dword [ebp + 0xc]
inc dword [ebx + 0x45ff0cc4]
or al, 0x66
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x40545a
call fcn.00404f1d
xchg edx, eax
mov byte [edx + 0x3c7e8bf3], dh
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x40570c
add eax, esi
mov dword [ebp - 0x44], eax

Function at 0x4054f4
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4054c2
invalid
cmp dword [eax + 0xc], ebx
je 0x405565
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00404f1d
hlt
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x405505
mov dword [ebp + 0x10], edi
jmp 0x40550a
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.00404f1d
dec edi
inc ecx
jl 0x405586
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x405553
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x40552e
and eax, 0xffff
push eax
jmp 0x405532
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404ee2
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x40570c
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x405513
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4054b4
call fcn.00404f1d
cmp al, 0x13
add byte [eax], ch
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4055d1
pop ecx
add eax, esi

Function at 0x40f56a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f1e7
Function at 0x402918
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 0x402955
xor eax, eax
mov al, 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 0x402975
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404924
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b3c
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.004046b4
test esi, esi
jne 0x402b72
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.004047a4
jmp 0x402b90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f0
mov edi, eax
test esi, esi
je 0x402b90
cmp dword [ebx], 0
je 0x402b90
dec esi
jmp 0x402b79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403790
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403770
xor eax, eax
push ebp
push 0x403769
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 0x4037ac
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 0x403770
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x460020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404494
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46204c], 0
je 0x4044f5
cmp word [0x462220], 0xd7b2
jne 0x4044bd
cmp dword [0x462228], 0
jbe 0x4044bd
mov eax, 0x46221c
call dword [0x462238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x460070
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 0x40451c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x404511
push 0
push 0x460068
push 0x460070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404668
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040273c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404630
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4061a0
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 0x4063d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406223
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406223
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062ac
xor eax, eax
push ebp
push 0x4062a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fe8
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 0x40628a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40640c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40628a
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 0x4062ac
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 0x4063c6
cmp byte [ebp - 0xd], 0
jne 0x4062f3
cmp byte [ebp - 0x12], 0
je 0x4063c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40630c
dec ebx
cmp byte [ebx], 0x2e
je 0x40631b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40630b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406358
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 0x4063c6
cmp byte [ebp - 0xd], 0
je 0x4063c6
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 0x4063c6
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 0x406a98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406afe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404924
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403160
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406ae8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b05
lea eax, [ebp - 0x10]
call fcn.004046b4
ret

Function at 0x40bd5c
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 0x40bd95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047a4
jmp 0x40bd9e
mov eax, ebx
mov edx, esi
call fcn.00404708
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bda8
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 0x40bdc9
mov al, byte [esp]
jmp 0x40bdcb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c450
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c2c8
mov eax, dword [0x4615c0]
cmp byte [eax], 0
je 0x40c4cc
mov eax, dword [0x4613dc]
call fcn.00402f84
call fcn.004028a4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409178
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c514
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c502
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x461384]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x462668]
call fcn.00405fac
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d3b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d414
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404924
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d41b
lea eax, [ebp - 0xc]
call fcn.004046b4
ret

Function at 0x422ecc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422d24
dec esi
jne 0x422eee
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43fd50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0043f7e8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404b74
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x43fdae
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4614e8]
mov dl, 1
mov eax, dword [0x43f6e0]
call fcn.0040c610
call fcn.00404054
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43fdb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b74
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x43fe10
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4616e4]
mov dl, 1
mov eax, dword [0x43f6e0]
call fcn.0040c610
call fcn.00404054
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043f818
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8