joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push eax
push 0x104
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x4a7978
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b6a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47baa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49afa0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0x18], 3
mov dword [ebp - 4], ebx
jbe 0x47bbd7
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x47baea
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47bb0c
test al, 0x10
je 0x47bb0c
cmp dword [ebp + 0x1c], edi
jb 0x47bbe9
mov eax, dword [ebp + 8]
push eax
jmp 0x47bbe1
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x47bb17
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push eax
call esi
cmp eax, 1
jne 0x47bb2e
cmp dword [ebp + 0x1c], edi
jmp 0x47bbdb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov edi, 7
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00402530
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0047b8f0
add esp, 4
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ebp - 4], 1
mov word [ecx], dx
call fcn.00402530
call fcn.0047baa0
mov eax, dword [ebp + 8]
add esp, 0x1c
cmp dword [ebp + 0x1c], 8
jae 0x47bb92
lea eax, [ebp + 8]
push ebx
push eax
call esi
cmp eax, 1
mov esi, 8
sete bl
cmp dword [ebp - 0x18], esi
jb 0x47bbb2
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x1c], esi
jb 0x47bbd3
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
jmp 0x47bbeb
cmp dword [ebp + 0x1c], 8
jb 0x47bbe9
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47c6d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x100
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [ebp + 0xc]
movzx ecx, ax
push ecx
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x47c735
push esi
lea edx, [ebp - 0x204]
push 0x4a7a00
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c740
sub eax, edx
sar eax, 1
cmp eax, 2
jle 0x47c789
movzx ecx, word [ebp + eax*2 - 0x206]
cmp ecx, 0xd
je 0x47c766
cmp ecx, 0xa
jne 0x47c770
xor ecx, ecx
mov word [ebp + eax*2 - 0x206], cx
lea ecx, [ebp + eax*2 - 0x208]
movzx eax, word [ecx]
cmp eax, 0xd
je 0x47c784
cmp eax, 0xa
jne 0x47c789
xor edx, edx
mov word [ecx], dx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c7a5
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x204]
push ecx
mov ecx, edi
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47d460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push str.SELECT_count___FROM_sqlite_master_WHERE_type_table__AND_name_gamelist_
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.sqlite3.dll_sqlite3_get_table
add esp, 0x18
test eax, eax
jne 0x47d572
mov edi, dword [ebp - 8]
cmp edi, ebx
je 0x47d553
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + edx*4]
mov ecx, 0x4a6e4c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47d4e1
cmp dl, bl
je 0x47d4dd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47d4e1
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47d4c1
xor eax, eax
jmp 0x47d4e6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47d553
mov eax, dword [esi]
push ebx
push ebx
push ebx
push str.BEGIN_TRANSACTION_
push eax
call sub.sqlite3.dll_sqlite3_exec
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push str.CREATE_TABLE_gamelist_name_varchar_32___docid_varchar_64___gametype_varchar_64___title_varchar_256___image_varchar_2048___url_varchar_4096___runexe_varchar_260___setuptype_varchar_10___instexe_varchar_260___uninstexe_varchar_260___szsetuptype_varchar_10__szcabattr_varchar_10___gamejson_varchar_8192___downloadinfo_varchar_8192__type_int_2___installed_int_2___createdtime_datetime__
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov edx, dword [esi]
push ebx
push ebx
push ebx
push str.CREATE_INDEX_list_name_index_ON_gamelist_name__
push edx
call sub.sqlite3.dll_sqlite3_exec
mov eax, dword [esi]
push ebx
push ebx
push ebx
push str.CREATE_TABLE_storagelist_keyname_varchar_256__UNIQUE__massvalue_varchar_8192___createdtime_datetime__
push eax
call sub.sqlite3.dll_sqlite3_exec
mov ecx, dword [esi]
add esp, 0x50
push ebx
push ebx
push ebx
push str.CREATE_INDEX_keyname_index_ON_storagelist_keyname__
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov edx, dword [esi]
push ebx
push ebx
push ebx
push str.COMMIT_TRANSACTION_
push edx
call sub.sqlite3.dll_sqlite3_exec
mov edi, dword [ebp - 8]
add esp, 0x28
push edi
call sub.sqlite3.dll_sqlite3_free_table
add esp, 4
mov al, 1
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edi, eax
cmp eax, ebx
je 0x47d58d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x47d591
xor eax, eax
jmp 0x47d5a5
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
push eax
push 0x4ab248
push str.penc
push 0x50
push str.hfgame::CDBManager::init
push 0x4a7be8
push 4
call fcn.0047d210
add esp, 0x1c
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47d600
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b38e
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1014], edi
cmp dword [ecx], edi
je 0x47d765
push 0xc
call fcn.004978c0
mov esi, eax
add esp, 4
mov dword [ebp - 0x102c], esi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x47d6b4
push 0xc
mov dword [esi + 4], edi
call fcn.004978c0
add esp, 4
cmp eax, edi
je 0x47d680
mov dword [esi], eax
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
jmp 0x47d6b6
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x101c], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4bfb94
lea ecx, [ebp - 0x1028]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
jne 0x47d6c5
xor eax, eax
jmp 0x47d6ee
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47d6d8
xor eax, eax
jmp 0x47d6ee
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00403590
mov edx, dword [ebp + 0xc]
push edx
push eax
push str.SELECT__FROM_gamelist_WHERE_docid__s__and_type_d_
lea eax, [ebp - 0x1010]
push 0x1000
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
mov eax, dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, dword [eax]
push esi
push 0x464920
lea edx, [ebp - 0x1010]
push edx
push ecx
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x28
test eax, eax
je 0x47d761
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1010]
push eax
push str.sql:_s_error:_s
push 0x4a7c5c
push 0x79
push str.hfgame::CGameListManager::findPlayInfoByDocidAndType
push 0x4a7be8
push 4
call fcn.0047d210
add esp, 0x20
mov eax, esi
jmp 0x47d767
xor eax, eax
lea esp, [ebp - 0x103c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret 8
Function at 0x47ed90
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 1
push str.Hfgame
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x414], ebx
test ebx, ebx
je 0x47edf3
cmp dword [esi + 0x14], 8
jb 0x47edd3
mov esi, dword [esi]
push 0
push 0x84000100
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x47ee06
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x47ee10
mov eax, dword [edi]
jmp 0x47ee12
mov eax, edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47ee51
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
xor eax, eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
mov dword [ebp - 0x40c], 0x80004005
call ebx
test eax, eax
je 0x47eee4
lea esp, [esp]
mov eax, dword [ebp - 0x408]
push 0
lea edx, [ebp - 0x410]
push edx
push eax
lea ecx, [ebp - 0x404]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47eee4
cmp dword [ebp - 0x408], 0x400
jb 0x47eeda
lea edx, [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call ebx
test eax, eax
jne 0x47ee90
jmp 0x47eee4
mov dword [ebp - 0x40c], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x414]
push ecx
call esi
cmp dword [ebp - 0x40c], 0
mov ecx, dword [ebp - 4]
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x47eff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f000
mov ecx, dword [ebp + 0x10]
sub eax, esi
sar eax, 1
add eax, eax
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push 1
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop esi
pop ebp
ret
Function at 0x47f030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 1
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
mov eax, dword [0x4cb60c]
add esp, 0xc
cmp dword [0x4cb620], 8
mov dword [ebp - 0x40c], 0x400
jae 0x47f090
mov eax, 0x4cb60c
lea edx, [ebp - 0x40c]
push edx
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x408]
push edx
push esi
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x47f0de
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f0c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, edi
call fcn.004027c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x47f1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f212
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x47f1e1
cmp eax, 2
jne 0x47f1fc
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x47f20c
test eax, eax
je 0x47f207
test al, 1
jne 0x47f1fc
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x47f20c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x47f750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x55
lea eax, [ebp - 0xb0]
push eax
push 3
push 0x400
mov dword [ebp - 0xb4], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
jg 0x47f7a7
xor ecx, ecx
push 7
mov word [esi], cx
push str.Unknown
jmp 0x47f7cc
xor edx, edx
lea eax, [ebp - 0xb0]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f7b5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xb0]
push eax
mov ecx, esi
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47f950
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push edi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
mov edx, dword [str.http:__hfgame.aliapp.com]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f9a5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004027c0
mov ecx, dword [str._api_log.jsp]
mov eax, ecx
mov dword [ebp - 4], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x47f9d0
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
push 0x4a819c
push edi
call dword [sym.imp.MSVCR100.dll_wcsstr]
mov esi, eax
mov edx, esi
sub edx, edi
add esp, 8
xor ecx, ecx
sar edx, 1
push edx
mov word [ebp - 0x48], cx
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.004027c0
push 1
push 0xffffffffffffffff
push 0x4b1c24
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00408640
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.00408400
push 8
push 0x4a8188
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004026a0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402d10
push 1
push 0x4a8184
lea ecx, [ebp - 0x2c]
call fcn.004026a0
add esi, 2
mov eax, esi
lea edx, [eax + 2]
jmp 0x47fa80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47fa80
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004026a0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x47faa9
lea eax, [ebp - 0x2c]
push ebx
push ebx
push ebx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x50], esi
jb 0x47facd
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], esi
jb 0x47faef
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], esi
jb 0x47fb0c
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret 4
Function at 0x47fb30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b62b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x100
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x230], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea ecx, [ebp - 0x210]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x230], eax
cmp eax, ebx
ja 0x47fba7
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
jmp 0x47fcd5
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x230]
push edi
push eax
push ebx
lea ecx, [ebp - 0x210]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x234]
push eax
push str.StringFileInfo040904B0ProductVersion
push edi
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], ebx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x234]
cmp edx, ebx
jne 0x47fc1e
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x234]
push edx
push str.StringFileInfo080404B0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x234]
cmp edx, ebx
je 0x47fcbc
xor eax, eax
mov word [ebp - 0x22c], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x230], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47fc42
sub eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x22c]
sar eax, 1
push eax
push edx
call fcn.004027c0
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp - 0x21c], ebx
ja 0x47fc9d
push str.1.0.0.0
mov ecx, esi
call fcn.00402480
cmp dword [ebp - 0x218], 8
jb 0x47fce3
mov edx, dword [ebp - 0x22c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x47fce3
lea ecx, [ebp - 0x22c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.004085c0
jmp 0x47fc83
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push 7
push str.1.0.0.0
mov ecx, esi
call fcn.004027c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47fd10
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b698
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x454], ebx
push 7
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push str.0.0.0.0
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x458], esi
mov word [esi], ax
call fcn.004027c0
push ebx
push ebx
lea ecx, [ebp - 0x44c]
push ecx
push str.http:__icanhazip.com_
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x454], 1
mov dword [ebp - 0x44c], ebx
call sub.urlmon.dll_URLOpenBlockingStreamW
cmp eax, ebx
jne 0x47feba
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0x450]
push ecx
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call edx
cmp eax, ebx
jne 0x47fe9c
mov eax, dword [ebp - 0x450]
lea eax, [ebp + eax - 0x410]
mov byte [eax], bl
mov cl, byte [eax - 1]
cmp cl, 0xd
je 0x47fde2
cmp cl, 0xa
jne 0x47fde5
mov byte [eax - 1], bl
mov cl, byte [eax - 2]
cmp cl, 0xd
je 0x47fdf2
cmp cl, 0xa
jne 0x47fdf5
mov byte [eax - 2], bl
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47fe14
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00403870
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x448]
push edx
mov dword [ebp - 4], 1
call fcn.0047f8a0
add esp, 8
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004085c0
cmp dword [ebp - 0x434], 8
jb 0x47fe71
mov eax, dword [ebp - 0x448]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x418], 0x10
mov byte [ebp - 4], bl
jb 0x47feaa
mov ecx, dword [ebp - 0x42c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x47fec8
push 0xb
push str.192.168.0.1
mov ecx, esi
call fcn.004027c0
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x47fec8
push 9
push 0x4a81a0
mov ecx, esi
call fcn.004027c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret