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

Disassembly:
push 0xffffffffffffffff
push 0x1001af00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10023afc]
mov edx, dword [eax + 0xc]
mov ecx, 0x10023afc
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
push ecx
push str._sXMLS_setup.xml
lea edi, [esp + 0x1c]
call fcn.10002a40
mov edx, dword [0x10023afc]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x10023afc
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push ecx
push str._s_setup.xml
lea edi, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.10002a40
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
add esp, 8
mov esi, ebp
call fcn.10017540
push ebp
mov esi, 0x10023490
push edi
test eax, eax
jne 0x10006450
push str.CopyFile_error_from__s__to__s
jmp 0x10006455
push str.CopyFile_File_from__s__to__s
push 0
push 0x40
call fcn.10003ad0
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100064a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
Function at 0x10006a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1001a1d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x10023afc]
mov edx, dword [eax + 0xc]
mov ecx, 0x10023afc
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
push eax
mov ecx, eax
push ecx
mov edx, eax
mov eax, dword [esi + 0xc]
push edx
push eax
push str._s_backup_s__s__s.xml
lea edi, [esp + 0x24]
call fcn.10002a40
mov edx, dword [0x10023afc]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, 0x10023afc
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x20], 1
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
push ecx
mov edx, ecx
push edx
push eax
push str._s_backup_s__s_setup.xml
lea edi, [esp + 0x24]
call fcn.10002a40
mov ebp, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push ebp
call esi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10006b95
push edi
call esi
cmp eax, 0xffffffff
je 0x10006b95
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006b5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006bb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x100090d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1001ac78
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov eax, dword [0x10023afc]
mov edx, dword [eax + 0xc]
mov ecx, 0x10023afc
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x10]
push eax
push str._sRsLang.dll
lea edi, [esp + 0x2c]
call fcn.10002a40
mov esi, dword [esp + 0x2c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10009160
mov dword [esp + 0x1c], eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009159
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x10009267
push 8
call fcn.100193f0
add esp, 4
cmp eax, ebx
je 0x10009175
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x10009177
xor eax, eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x18]
lea edi, [ebp + 0x18]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x100091a2
mov ecx, esi
mov eax, edi
call fcn.10002ae0
mov eax, dword [edi]
cmp dword [eax - 8], esi
jge 0x100091b3
push 0x80070057
call fcn.10002bf0
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov byte [ecx + 0x104], bl
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x1c]
push edx
push eax
call fcn.10013260
mov esi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x100091dd
xor eax, eax
jmp 0x100091ec
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_strnlen]
add esp, 8
cmp eax, ebx
jl 0x100091a9
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x100091a9
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], bl
cmp esi, ebx
jne 0x1000923a
mov esi, dword [ebp + 0x1c]
cmp esi, ebx
je 0x1000920b
call fcn.10009280
mov edx, dword [edi]
push edx
push str.m_lpRsLanguage4_Init_error__s__
push ebx
push 0x40
mov esi, 0x10023490
mov dword [ebp + 0x1c], ebx
call fcn.10003ad0
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add esp, 0x10
add eax, 0xfffffff0
jmp 0x10009140
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x1000b8c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 2
mov edi, eax
push 0x40000000
push edi
mov dword [esp + 0x30], 0
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b96d
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebp
push eax
push str.ReleaseRes_CreateFile_Failed_ErrorCode__d_File_s
push 0
push 0x80
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x14
mov ecx, edi
call fcn.1000b9c0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b96d
push edi
call ebp
push eax
push str.ReleaseRes_2_CreateFile_Failed_ErrorCode__d_File_s
push 0
push 0x80
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x14
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ebx, dword [esp + 0x1c]
push 0x1001e150
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1000b961
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4

Function at 0x1000b9c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
push 0x104
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [sym.imp.MSVCR90.dll__mbschr]
lea edx, [esp + 8]
push 0x5c
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ba40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea eax, [esp + 0x10]
push eax
mov byte [esi], 0
call ebx
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000ba21
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.100192c6
add esp, 0x10c
ret
Function at 0x1000c9b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x114], eax
mov byte [esi], 0
mov ecx, dword [0x1001cb14]
mov edx, dword [0x1001cb18]
mov eax, dword [str.SOFTWARERising_]
push ebp
xor ebp, ebp
push 0xf4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x1001cb1c]
mov dword [esp + 0x18], ecx
mov cl, byte [0x1001cb20]
lea edx, [esp + 0x25]
push ebp
push edx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ca20
sub eax, edx
mov edx, eax
lea eax, [esp + 0x10]
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ca33
mov ecx, 0x105
sub ecx, edx
push ecx
sub eax, edi
push ebx
lea edx, [esp + eax + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 8]
push eax
push 1
push 0
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
test eax, eax
jne 0x1000cac0
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push esi
lea eax, [esp + 0x14]
push eax
push 0
push str.installpath
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000cab5
push 0x5c
push esi
call dword [sym.imp.MSVCR90.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x1000cab0
cmp byte [eax + 1], 0
jne 0x1000cab0
mov byte [eax], 0
mov ebp, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.100192c6
add esp, 0x118
ret

Function at 0x1000cae0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
mov edi, eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000cb4d
push esi
lea ecx, [esp + 0xc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x1000cb71
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 2
jbe 0x1000cb7b
push str.Program_Files
mov ecx, 0x104
mov byte [edi + 2], 0
call fcn.10003520
mov eax, 1
pop edi
add esp, 0xc
ret
xor eax, eax
pop edi
add esp, 0xc
ret
Function at 0x1000cbf0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x1000cc41
push eax
lea edx, [esp + 4]
push edx
call fcn.100049d0
add esp, 8
push edi
push str.NetConfig.ini
mov ecx, 0x104
lea edi, [esp + 8]
call fcn.10003520
mov eax, edi
push eax
push 0x104
push esi
push 0x1001c74d
push 0x1001cd9c
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
test edi, edi
jne 0x1000cc8f
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x1000cca2
mov byte [eax], 0
mov ecx, dword [esp + 0x108]
mov eax, edi
pop edi
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
Function at 0x1000e3d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
mov ebp, dword [esp + 0x120]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.WININET.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0xc], ebx
cmp eax, ebx
jne 0x1000e432
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.100192c6
add esp, 0x114
ret
push 0x104
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x1000e419
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
ja 0x1000e477
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.100192c6
add esp, 0x114
ret
push esi
push edi
call fcn.1001905b
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x28]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000e4b9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x1001caf0
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1000e4c6
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x1000e4ee
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push edx
push eax
push str.MSIE__d._d
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x120]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x114
ret
Function at 0x1000e510
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x9c], eax
push edi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call edi
test eax, eax
jne 0x1000e57d
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call edi
test eax, eax
jne 0x1000e57d
mov byte [esi], al
pop edi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100192c6
add esp, 0xa0
ret
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x1000e5fb
sub eax, 1
je 0x1000e5ab
sub eax, 1
jne 0x1000e60a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
push str.Windows_NT__d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1000e60a
cmp dword [esp + 8], 4
jne 0x1000e60a
cmp dword [esp + 0xc], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x1000e5d1
push str.Windows_95
push esi
call edi
add esp, 8
cmp dword [esp + 8], 4
jne 0x1000e60a
cmp dword [esp + 0xc], 0xa
jne 0x1000e5ea
push str.Windows_98
push esi
call edi
add esp, 8
cmp dword [esp + 8], 4
jne 0x1000e60a
cmp dword [esp + 0xc], 0x5a
jne 0x1000e60a
push str.Windows_Me
push esi
call edi
jmp 0x1000e607
push str.Windows
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xa0]
pop edi
xor ecx, esp
mov eax, 1
call fcn.100192c6
add esp, 0xa0
ret
Function at 0x1000e9c0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x118
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [esp + 8], 0x7530
jne 0x1000eae5
cmp dword [esi + 0x34], 0
mov eax, dword [esi + 0x10]
push 0
je 0x1000ea09
push str._local_
push str.proxy
push 3
jmp 0x1000ea11
mov ecx, dword [esi + 0x58]
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000ea41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100192c6
add esp, 0x118
ret
xor eax, eax
push 0x103
push eax
lea edx, [esp + 0x21]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], al
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esi + 0x34], 0
je 0x1000ead2
movzx eax, word [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s:_d
push edx
mov dword [esp + 0x1c], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 4]
add esp, 0x10
push 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x26
lea eax, [esp + 0x24]
push edx
mov dword [esp + 0x20], eax
call edi
test eax, eax
jne 0x1000ead2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
call fcn.100107a0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100192c6
add esp, 0x118
ret
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 2
push ecx
call edi
test eax, eax
je 0x1000eaab
cmp dword [esi + 8], 0
jne 0x1000ebaa
cmp dword [esi + 0x1c], 0
push 0
push 0
push 3
jne 0x1000eb0e
movzx edx, word [esi + 0x18]
mov eax, dword [esi + 0x14]
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push eax
jmp 0x1000eb23
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push eax
push ecx
movzx ecx, word [esi + 0x18]
push ecx
push edx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 8], eax
test eax, eax
je 0x1000eaab
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x1000eaab
mov ecx, dword [esi + 8]
push 4
lea eax, [esp + 0xc]
push eax
push 5
push ecx
call edi
test eax, eax
je 0x1000eaab
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0xc]
push edx
push 6
push eax
call edi
test eax, eax
je 0x1000eaab
cmp dword [esi + 0x38], 0
je 0x1000ebaa
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2b
push ecx
call edi
test eax, eax
je 0x1000eaab
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 8]
inc ecx
push ecx
push eax
push 0x2c
push edx
call edi
test eax, eax
je 0x1000eaab
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.100192c6
add esp, 0x118
ret
Function at 0x1000ebd0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov esi, ecx
mov edi, 1
mov byte [esp + 0x18], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x1000ec2a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
test eax, eax
jle 0x1000ec2a
push esi
call ebx
cmp eax, 0x104
jbe 0x1000ec44
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
push 0x103
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call ebx
test eax, eax
je 0x1000ece4
mov ebx, dword [sym.imp.MSVCR90.dll__mbschr]
push ebp
push 0x5c
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ecc4
nop
push 0
lea ecx, [esp + 0x14]
push ecx
mov byte [esi], 0
call ebp
and edi, eax
jne 0x1000ecb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000ecb2
mov edi, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000ec90
push 0
lea edx, [esp + 0x14]
push edx
call ebp
and edi, eax
pop ebp
jne 0x1000ece4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000ece4
mov edi, 1
mov ecx, dword [esp + 0x110]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
Function at 0x10011790
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test esi, esi
je 0x10011816
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100117f4
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x1001180e
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call edi
pop edi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x10011820
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
mov edi, eax
test edi, edi
je 0x100118c8
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001188d
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jne 0x100118b0
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
call esi
pop esi
pop edi
add esp, 0xc
ret
push str._system32
mov ecx, 0x105
call fcn.10003520
push edi
call esi
pop esi
pop edi
add esp, 0xc
ret
xor eax, eax
pop edi
add esp, 0xc
ret

Function at 0x100118d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011930
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push str.CommonFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
add esp, 0xc
ret