joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018da
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x214
mov eax, 0x4878e1
call fcn.0043bd66
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x4018fa
xor eax, eax
jmp 0x401a3f
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0045ea50
add esp, 0xc
call fcn.00402234
push 0x48e604
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x401966
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.0040351d
push ebx
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.AnyWhereTray
lea ecx, [ebp - 0x21c]
call fcn.0040437d
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00403b8e
jmp 0x401a3d
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a3d
call fcn.00401f79
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040171b
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x4019cb
push ebx
push eax
lea eax, [ebp - 0x21c]
push str.__s___s
push eax
call fcn.00401e81
add esp, 0x10
jmp 0x4019e0
push eax
lea eax, [ebp - 0x21c]
push 0x48e6b4
push eax
call fcn.00401e81
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x401a01
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00401e17
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
push str.AnyWhereTray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.004024c0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004024a8
mov eax, edi
call fcn.0043bd10
ret

Function at 0x401d13
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 8
mov eax, 0x487911
call fcn.0043bd32
cmp dword [ebp + 8], 0
jne 0x401d29
xor eax, eax
jmp 0x401da2
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.004020b7
pop ecx
pop ecx
test eax, eax
jne 0x401d43
inc eax
jmp 0x401da2
call fcn.00402234
test al, al
je 0x401d72
lea ecx, [ebp + 8]
call fcn.0040351d
push 1
push str.AnyWhereTray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00404af3
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00403b8e
jmp 0x401da0
lea eax, [ebp - 0x14]
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401da0
push str.AnyWhereTray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.0043bcfb
ret
Function at 0x4020b7
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x428
mov eax, 0x48794d
call fcn.0043bd66
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x4020d7
xor eax, eax
jmp 0x40222e
xor edi, edi
test ebx, ebx
je 0x4020df
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0045ea50
add esp, 0xc
call fcn.00402234
push 0x48e604
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x402148
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x42c]
call fcn.0040351d
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.AnyWhereTray
lea ecx, [ebp - 0x42c]
call fcn.00404e97
lea ecx, [ebp - 0x42c]
mov edi, eax
call fcn.00403b8e
jmp 0x40222c
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x430]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40222c
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push str.AnyWhereTray
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x430]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40222c
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00401744
inc esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], esi
call fcn.004022fe
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00401744
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.004022fe
push edi
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.00401ddd
test eax, eax
js 0x402210
mov edi, esi
test ebx, ebx
je 0x402210
mov dword [ebx], esi
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.004024a8
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.004024a8
mov eax, edi
call fcn.0043bd10
ret
Function at 0x404d40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x4b4840], 0
push esi
mov esi, 0x4b4840
jne 0x404d67
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
mov ecx, dword [ebp + 8]
push esi
call fcn.00401744
mov eax, dword [ebp + 8]
pop esi
leave
ret 4
Function at 0x408cdb
Capabilities:
Check if file exists

Disassembly:
push 0xa18
mov eax, 0x488273
call fcn.0043bd66
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xa24], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408d0e
xor eax, eax
jmp 0x408ea1
xor ecx, ecx
mov dword [ebp - 0xa1c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xa20], ecx
lea eax, [ebp - 0xa1c]
push eax
push 0x48f1b8
push 0x17
push ecx
push 0x4911ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x408d67
mov eax, dword [ebp - 0xa20]
mov byte [ebp - 4], 0
test eax, eax
je 0x408d51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x408d07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408d07
lea eax, [ebp - 0xa1c]
push eax
lea ecx, [ebp - 0xa20]
call fcn.00407c9e
cmp dword [ebp - 0xa20], 0
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 4], 1
je 0x408d57
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x408d3d
test edi, edi
je 0x408daf
mov eax, dword [ebp - 0xa1c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x408d3d
mov eax, dword [ebp - 0xa1c]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x408d3d
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.0045ea50
push 0x400
lea eax, [ebp - 0xa18]
push esi
push eax
call fcn.00466c44
add esp, 0x18
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x18], 0
jl 0x408e44
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0xa24]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, dword [ebp - 0xa1c]
lea edx, [ebp - 0x218]
push dword [ebp + 0x18]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xa1c]
lea edx, [ebp - 0xa18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
mov eax, dword [ebp - 0xa20]
js 0x408d43
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xa20]
js 0x408d47
test eax, eax
je 0x408e8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa1c]
test ecx, ecx
je 0x408e9e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
xor eax, eax
inc eax
call fcn.0043bd10
ret 0x14
Function at 0x40d108
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.0043be70
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x1214]
push eax
lea ecx, [ebp - 0x120d]
call fcn.0040be36
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ecx, dword [ebp - 0x1214]
lea ecx, [ecx - 0x10]
call fcn.004024a8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d1e9
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x1214]
push eax
lea ecx, [ebp - 0x120d]
call fcn.0040c1de
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ecx, dword [ebp - 0x1214]
lea ecx, [ecx - 0x10]
call fcn.004024a8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d2be
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x1268]
push ebx
push eax
call fcn.0045ea50
add esp, 0xc
mov dword [ebp - 0x1268], edi
lea eax, [ebp - 0x1268]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 4
pop eax
mov word [ebp - 0x1238], ax
lea edi, [ebp - 0x1224]
xor eax, eax
mov dword [ebp - 0x123c], 1
stosd dword es:[edi], eax
push 0x1000
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x120c]
push eax
call fcn.0045ea50
add esp, 0xc
test esi, esi
je 0x40d269
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x120c]
push 0x48f378
push eax
call fcn.0040baab
add esp, 0x10
jmp 0x40d27e
push ebx
lea eax, [ebp - 0x120c]
push str.__s_
push eax
call fcn.0040baab
add esp, 0xc
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0x1268]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x40d2bc
push dword [ebp - 0x1220]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1224]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcea
leave
ret
Function at 0x40f272
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x4a83a0
call fcn.0043bea0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x40f2bb
cmp dword [ebp - 0x28], ebx
jne 0x40f2f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40f3be
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f3be
cmp dword [ebp - 0x28], 0
je 0x40f3be
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40f3be
cmp dword [ebp - 0x2c], eax
jbe 0x40f3be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f3be
push dword [ebp - 0x2c]
call fcn.004682cd
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40f3be
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40f3be
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x40f3be
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40f3be
cmp dword [ebp - 0x30], 0
je 0x40f3be
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x40f3be
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40f3a8
inc ebx
jmp 0x40f38d
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040f3df
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40fc5b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0045ea50
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40fcab
cmp dword [ebp - 0x114], 6
jb 0x40fcab
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043bcea
leave
ret
Function at 0x40fcba
Capabilities:
Read .ini file

Disassembly:
push 0x314
mov eax, 0x488f96
call fcn.0043bd66
push 1
call fcn.0041ca09
mov esi, eax
xor ebx, ebx
pop ecx
cmp word [esi], bx
je 0x40fe83
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push ebx
push str.AutoStart2
push str.General
call edi
cmp eax, 1
je 0x40fe83
push esi
push ebx
push str.started
push str.auto_run
call edi
mov edi, eax
cmp edi, 2
jge 0x40fe83
push str.AnyWhereHelper.exe
call fcn.0041cab4
pop ecx
test al, al
jne 0x40fe83
push 0x208
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.0045ea50
add esp, 0xc
push str.UtilsAnyWhereHelper.exe
call fcn.0041cb37
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.0041cd25
pop ecx
pop ecx
test eax, eax
je 0x40fda2
push 0x40
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.0045ea50
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x50]
push 0x48f730
push eax
call fcn.004115fa
add esp, 0x18
lea eax, [ebp - 0x50]
push esi
push eax
push str.started
push str.auto_run
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40fe83
call fcn.00427a00
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x40fe83
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x278], 0
lea ecx, [ebp - 0x288]
push 0xf
pop esi
push 0x41
push str.d:jenkins.jenkinsworkspacemgame_bzysearch_searchtray_tray.cpp
mov ebx, eax
mov dword [ebp - 0x274], esi
mov byte [ebp - 0x288], 0
call fcn.00406824
xor eax, eax
mov dword [ebp - 0x25c], esi
push 3
push 0x48e858
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], eax
mov dword [ebp - 0x260], eax
mov byte [ebp - 0x270], al
call fcn.00406824
mov byte [ebp - 4], 1
call fcn.00427a00
mov edi, eax
lea ecx, [ebp - 0x320]
push 0xc0
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0040355d
mov esi, eax
push str.start_helper_failed:
push esi
mov byte [ebp - 4], 2
call fcn.0040277d
pop ecx
pop ecx
push ebx
mov ecx, esi
call fcn.00407dd4
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.004040b0
lea ecx, [ebp - 0x270]
call fcn.0040662e
lea ecx, [ebp - 0x288]
call fcn.0040662e
call fcn.0043bd10
ret
Function at 0x410d19
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x4a8360
call fcn.0043bea0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.0045ea50
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410dff
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.0045ea50
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410dff
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x410dff
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.00410e25
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41225d
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4892fa
call fcn.0043bd32
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xd]
call fcn.004120b7
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd]
call fcn.004120f2
push dword [edi]
push 0
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004024a8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004024a8
mov eax, esi
xor edx, edx
call fcn.0043bcfb
ret

Function at 0x4122b9
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4892fa
call fcn.0043bd32
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xd]
call fcn.0041217e
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd]
call fcn.004120f2
push dword [edi]
push 0xffffffffffffffff
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004024a8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004024a8
mov eax, esi
call fcn.0043bcfb
ret

Function at 0x4123c7
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4892fa
call fcn.0043bd32
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xd]
call fcn.00412214
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd]
call fcn.004120f2
push dword [edi]
push 0xffffffffffffffff
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004024a8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004024a8
mov eax, esi
call fcn.0043bcfb
ret

Function at 0x412421
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4892fa
call fcn.0043bd32
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xd]
call fcn.0041214a
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd]
call fcn.004120f2
push dword [edi]
push 0xffffffffffffffff
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004024a8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004024a8
mov eax, esi
call fcn.0043bcfb
ret
Function at 0x412be4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0043be70
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4000
push ebx
push eax
call fcn.0045ea50
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x412cbe
test edi, edi
je 0x412cbe
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x412cbe
cmp eax, 0x3fff
ja 0x412cbe
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412cbe
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x48e6c0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412cbe
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.0045ea50
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00412a1c
xor eax, eax
add esp, 0x28
inc eax
jmp 0x412cc0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcea
leave
ret

Function at 0x412db1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x412e1c
cmp dword [ebp + 0xc], 0
je 0x412e1c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x412e1c
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x412e1c
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x412e16
push esi
push dword [ebp + 0xc]
push edi
call fcn.0045df50
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x412e16
mov al, 1
jmp 0x412e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x41343a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x4134a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x4134b9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x4134a5
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x4134b7
cmp dword [edi + 4], ebx
je 0x4134b7
cmp dword [edi + 0xc], ebx
je 0x4134b7
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4134bf
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4134e3
xor eax, eax
inc eax
jmp 0x413570
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x413537
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub edi, 1
jne 0x413525
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
je 0x413570
lea eax, [ebp - 0x20c]
mov dword [esi + 0x1c], 1
push eax
mov ecx, esi
call fcn.0041343a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043bcea
leave
ret 4