joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd13e6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push str.alarm.wav
lea eax, [ebp - 0x14]
push 0x30
push eax
call fcn.000d2f89
add esp, 0xc
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0xd149b
mov esi, 0xdb070
push 0xd465c
push esi
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
test al, al
pop ecx
je 0xd147d
cmp byte [0xdb081], 0
je 0xd145d
sub esp, 0x10
lea eax, [ebp - 1]
mov ecx, esp
push eax
push 0xd5bac
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push 0xa1
mov ecx, 0xdb028
call fcn.000c20c2
jmp 0xd14ab
sub esp, 0x10
lea eax, [ebp - 1]
mov ecx, esp
push eax
push 0xd5bac
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push 0xa1
mov ecx, 0xdae40
jmp 0xd1456
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
sub esp, 0x10
mov ecx, esp
push esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.000d284c
add esp, 0x14
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call fcn.000d14b7
pop ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop esi
leave
ret
Function at 0xd1b25
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x4c]
push eax
push 1
call dword [0xdb098]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x100
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 1]
push eax
push 0xd5cb4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0xc
push eax
push dword [ebp + 8]
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [ebp + 8]
leave
ret
Function at 0xd1f15
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.000d38d0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and byte [ebp + 0x13], 0
xor esi, esi
push esi
push esi
push esi
push 1
mov dword [eax], esi
push str.user
mov dword [ebx], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
push esi
push 0x80000000
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0xd200b
push edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x271c]
push 0x2710
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0xd1f8d
cmp dword [ebp + 0x10], esi
jbe 0xd1fe4
mov eax, dword [ebx]
add eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx]
mov esi, dword [ebp + 8]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 8], eax
and ecx, 3
push dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx]
mov ecx, dword [ebp + 0x10]
add edi, eax
mov eax, ecx
lea esi, [ebp - 0x271c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
add dword [ebx], eax
pop ecx
xor esi, esi
jmp 0xd1f6b
push dword [ebx]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + 0x13], 1
pop edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 4]
call esi
mov al, byte [ebp + 0x13]
pop esi
pop ebx
leave
ret

Function at 0xd207e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0xd20ab
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret
Function at 0xd25ec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x418]
push 0xd5ba0
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push 0xd4994
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0xd2750
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ecx
pop ecx
mov byte [ebp - 1], 1
lea eax, [ebp - 0x668]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0xd271b
lea eax, [ebp - 0x63c]
push eax
call fcn.000d25b8
test eax, eax
pop ecx
jne 0xd272a
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0x668], 0x10
pop ecx
pop ecx
je 0xd26ed
lea eax, [ebp - 0x210]
push eax
call fcn.000d25ec
test eax, eax
pop ecx
je 0xd2747
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
pop ecx
pop ecx
jmp 0xd272a
test byte [ebp - 0x668], 1
je 0xd2708
lea eax, [ebp - 0x210]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0xd2747
jmp 0xd26d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0xd2747
and byte [ebp - 1], 0
cmp byte [ebp - 1], 0
jne 0xd2677
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0xd2742

Function at 0xd2754
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
push esi
sub eax, ebx
je 0xd2772
dec eax
jne 0xd2780
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jmp 0xd2780
mov dword [ebp - 8], 0x40000000
mov dword [ebp - 4], 2
push ebx
push 0x80
push dword [ebp - 4]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0xd27a2
xor al, al
jmp 0xd27d9
cmp dword [ebp + 0x14], 1
jne 0xd27b8
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0xd27d0
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xd27d0
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0xd27dd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0xd2808
xor al, al
jmp 0xd2848
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int__char_]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push ebx
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0xd283f
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret

Function at 0xd2881
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0xd28ac
xor eax, eax
jmp 0xd28bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0xd28c3
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0xd296c
push edi
lea eax, [ebp + 8]
push edi
push eax
push dword [ebp + 8]
push edi
call sub.urlmon.dll_URLOpenBlockingStreamW
test eax, eax
jl 0xd296c
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0xd2961
inc dword [ebp - 0x48]
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, dword [ebp + 0xc]
mov edx, eax
cmp edx, edi
pop ecx
mov dword [ebx], edx
je 0xd2961
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
lea eax, [esi - 1]
mov esi, dword [ebp + 0x10]
push edi
push edi
push dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push edi
push dword [esi]
mov ecx, dword [eax]
push dword [ebx]
push eax
call dword [ecx + 0xc]
push 1
pop edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret
Function at 0xd2dfc
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
sub eax, 0
push edi
je 0xd2f24
dec eax
je 0xd2ee3
dec eax
je 0xd2ea8
dec eax
je 0xd2e6d
dec eax
jne 0xd2f75
push 1
lea eax, [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
push eax
push 0xd4a8c
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.000cb581
add esp, 0x20
lea eax, [ebp - 1]
push 1
sub esp, 0x10
mov ecx, esp
push eax
push 0xd48a8
jmp 0xd2f60
push 1
lea eax, [ebp - 2]
sub esp, 0x10
mov ecx, esp
push eax
push 0xd4a88
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.000cb581
add esp, 0x20
lea eax, [ebp - 3]
push 1
sub esp, 0x10
mov ecx, esp
jmp 0xd2f1c
push 1
lea eax, [ebp - 4]
sub esp, 0x10
mov ecx, esp
push eax
push 0xd5e04
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.000cb581
add esp, 0x20
lea eax, [ebp - 5]
push 1
sub esp, 0x10
mov ecx, esp
jmp 0xd2f1c
push 1
lea eax, [ebp - 6]
sub esp, 0x10
mov ecx, esp
push eax
push 0xd4a90
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.000cb581
add esp, 0x20
lea eax, [ebp - 7]
push 1
sub esp, 0x10
mov ecx, esp
push eax
push 0xd4a8c
jmp 0xd2f60
push 1
lea eax, [ebp - 8]
sub esp, 0x10
mov ebx, 0xd4a8c
mov ecx, esp
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.000cb581
add esp, 0x20
lea eax, [ebp - 9]
push 1
sub esp, 0x10
mov ecx, esp
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push str.TileWallpaper
push edi
push esi
call fcn.000cb581
add esp, 0x20
push 3
push dword [ebp + 0xc]
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48925d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4fa0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 7
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 0
jbe 0x4099de
mov ecx, dword [ecx]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
test eax, eax
jne 0x409a6c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push str.Install
push esi
call ebx
test eax, eax
jne 0x409a6c
push dword [ebp - 0x10]
call fcn.0042fff4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push str.Install
push dword [ebp - 0x18]
call ebx
push edi
test eax, eax
jne 0x409a64
cmp byte [edi], 1
sete bl
call fcn.00430028
add esp, 4
jmp 0x409a6e
call fcn.00430028
add esp, 4
xor bl, bl
mov dword [ebp - 4], 3
test esi, esi
je 0x409a80
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e5ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40e613
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40e616
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040e5c8
pop esi
leave
ret 8

Function at 0x42f689
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004420c3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42f6c8
sub eax, 1
je 0x42f6c3
sub eax, 1
je 0x42f6bf
xor eax, eax
leave
ret
push 3
jmp 0x42f6ca
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x430d62
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x430da1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430da1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430da1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x430da1
cmp dword [ecx + 0x74], 0xe
jbe 0x430da1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4669b8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4669f7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4669f7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4669f7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4669f7
cmp dword [ecx + 0x74], 0xe
jbe 0x4669f7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46f498
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x492ea4
push 0x492e9c
push 0x4905e0
push 0x1f
call fcn.0046f166
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46f4cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x48d1e0]
call esi
jmp 0x46f4d2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46f516
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x492eb4
push 0x492eac
push 0x490604
push 0x21
call fcn.0046f166
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46f54d
push dword [ebp + 8]
mov ecx, esi
call dword [0x48d1e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46f555
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x492ebc
push 0x492eb4
push 0x490618
push 0x22
call fcn.0046f166
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46f58f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48d1e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x470332
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00431010
mov eax, dword [0x4fa0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046cd5f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x470374
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4704d0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004880f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4fcee8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004714ff
mov ecx, dword [esi*4 + 0x4fcee8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4704c9
cmp eax, dword [ecx + edi + 0x24]
jne 0x4704c9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4704c9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004714ff
add esp, 0x14
test edx, edx
jl 0x4704c9
jg 0x47043f
test eax, eax
jb 0x4704c9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4704c9
jl 0x470459
cmp dword [ebp - 0x1008], eax
ja 0x4704c9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x470477
test ebx, ebx
je 0x4704b0
cmp ecx, edi
jae 0x4704b0
mov al, byte [ecx]
cmp al, 0xd
jne 0x470491
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47049d
cmp byte [ecx + 1], 0xa
jne 0x47049d
inc ecx
jmp 0x47049d
movzx eax, al
movsx eax, byte [eax + 0x4fa388]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x470477
cmp edx, ebx
jne 0x470477
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4704ce
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042fc1f
leave
ret