joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456b50
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487188
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x456ba1
cmp eax, 0x80010119
jne 0x456c38
lea esi, [edi + 0xc]
push esi
push 0x48f580
push 1
push 0
push 0x48f650
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x456c38
mov ebx, dword [esi]
push 0x4a3220
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x456bdd
mov ecx, 0x8007000e
call fcn.004224c0
lea ecx, [edi + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push esi
push ebx
mov dword [ebp - 0x10], ecx
call dword [eax + 0xc]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x456c1f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [eax]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
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 0x456cb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x40], 0x3c
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.00445170
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x34], str.open
jb 0x456d17
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], ebx
jb 0x456d22
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 1
jb 0x456d34
mov edi, dword [edi]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp - 8]
mov edi, eax
test edi, edi
je 0x456d62
cmp byte [ebp + 0x10], 0
je 0x456d59
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov ecx, dword [ebp - 4]
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
Function at 0x456d80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x456e0b
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x4c3490]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x4c3490]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x4c3490]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x4c3490]
xor edx, edi
dec ecx
jne 0x456da6
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x456e48
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4c3490]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x456e20
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a530
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4ca61c]
push esi
mov esi, ecx
test al, 1
jne 0x45a551
or eax, 1
push 0x489120
mov dword [0x4ca61c], eax
call fcn.0047ce4d
add esp, 4
call fcn.00460b40
push 1
push 0
cmp eax, 9
jl 0x45a574
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
ret
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
ret

Function at 0x45a650
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48765e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x45a71d
mov eax, dword [0x4c935c]
test al, 1
jne 0x45a6e0
or eax, 1
mov dword [0x4c935c], eax
mov dword [ebp - 4], 0
call fcn.0045a420
push 0x488db0
call fcn.0047ce4d
add esp, 4
cmp dword [0x4c9358], 8
mov eax, 0x4c9344
cmovae eax, dword [0x4c9344]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a719
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45a71d
mov al, 1
jmp 0x45a71f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45aad0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ab1f
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x45ab1f
mov eax, dword [0x4ca618]
test al, 1
jne 0x45ab08
or eax, 1
push 0x489110
mov dword [0x4ca618], eax
call fcn.0047ce4d
add esp, 4
push esi
push str.Failed_to_create_directory_:__s
push 0x4ca614
call fcn.00460e00
add esp, 0xc
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x45ad00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4876ac
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4c33d0]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [0x4c935c]
mov esi, 0x409
mov dword [esp + 0xc], 0
test al, 1
jne 0x45ad82
or eax, 1
mov dword [0x4c935c], eax
mov dword [esp + 0x98], 0
call fcn.0045a420
push 0x488db0
call fcn.0047ce4d
add esp, 4
mov dword [esp + 0x98], 0xffffffff
push ecx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x4c932c
call fcn.0045ac90
cmp dword [eax + 0x14], 8
jb 0x45ad9a
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 0x30], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x45adc1
push dword [esp + 0x1c]
call edi
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45ae69
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.language
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x45ae11
mov esi, dword [esp + 0x18]
jmp 0x45af1f
xor eax, eax
push 0x4e
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
mov dword [esp + 0x1c], 0x28
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.language
push dword [esp + 0x20]
call edi
test eax, eax
jne 0x45af1f
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi]
add esp, 4
mov esi, eax
jmp 0x45af1f
mov eax, dword [0x4c935c]
test al, 1
jne 0x45aea2
or eax, 1
mov dword [0x4c935c], eax
mov dword [esp + 0x98], 1
call fcn.0045a420
push 0x488db0
call fcn.0047ce4d
add esp, 4
mov dword [esp + 0x98], 0xffffffff
push ecx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x4c932c
call fcn.0045ac90
cmp dword [eax + 0x14], 8
jb 0x45aeba
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 0x30], 8
jb 0x45aedb
push dword [esp + 0x1c]
call edi
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45af29
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push str.language
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
Function at 0x45af50
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0xffffffff
jne 0x45af65
call fcn.0045ad00
mov esi, eax
mov edi, 0x499174
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx ebx, ax
xor eax, eax
mov ecx, 0x499170
lea ebx, [ebx]
mov edx, dword [ecx]
cmp edx, ebx
jne 0x45af89
lea edi, [ecx + 4]
cmp edx, esi
je 0x45afa2
add ecx, 0x54
inc eax
cmp ecx, 0x49d5b0
jl 0x45af80
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
imul eax, eax, 0x54
pop edi
pop esi
add eax, 0x499174
pop ebx
pop ebp
ret 4

Function at 0x45afc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ca61c]
sub esp, 0x24
push esi
mov esi, ecx
test al, 1
jne 0x45afe7
or eax, 1
push 0x489120
mov dword [0x4ca61c], eax
call fcn.0047ce4d
add esp, 4
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45b00a
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x45b014
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x45b058
cmp ax, 6
je 0x45b058
mov eax, dword [0x4c9770]
test al, 1
jne 0x45b042
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
push str.eDhelper.exe
push 0x4c9360
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4c9770]
test al, 1
jne 0x45b076
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
push str.eDhelper64.exe
push 0x4c9360
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45b090
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x126c
call fcn.0047d8d0
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x44
lea eax, [ebp - 0x126c]
push 0
push eax
mov esi, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
mov eax, 0xa
mov word [ebp - 0x123c], ax
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1214], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x1212]
push eax
mov dword [ebp - 0x126c], 0x44
mov dword [ebp - 0x1240], 1
movq qword [ebp - 0x1224], xmm0
movq qword [ebp - 0x121c], xmm0
call sub.MSVCR110.dll_memset
add esp, 0xc
test edi, edi
je 0x45b131
push edi
push esi
push str.__s___s
lea eax, [ebp - 0x1214]
push 0x1000
push eax
call fcn.00405020
add esp, 0x14
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push esi
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45b1f0
mov eax, dword [0x4ca618]
test al, 1
jne 0x45b1c1
or eax, 1
push 0x489110
mov dword [0x4ca618], eax
call fcn.0047ce4d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Failed_to_launcher_application:__s__cmd_line__s__error_code_:__d
push 0x4ca614
call fcn.00460e00
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x1220]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45b203
push eax
call esi
mov eax, dword [ebp - 0x1224]
test eax, eax
je 0x45b210
push eax
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 4

Function at 0x45b230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x40
mov dword [ebp - 0x23c], str.open
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0
call sub.MSVCR110.dll_memset
add esp, 0x14
mov edx, 0x104
push esi
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0043b7c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45b740
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4877b6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4c33d0]
xor eax, esp
mov dword [esp + 0x240], eax
push esi
mov eax, dword [0x4c33d0]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
push esi
mov dword [esp + 0x25c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b898
push 8
push str._select_
lea ecx, [esp + 0x14]
call fcn.00401d60
push 1
push 0x49ef00
lea ecx, [esp + 0x14]
call fcn.00409270
cmp word [esi], 0
jne 0x45b7d8
xor ecx, ecx
jmp 0x45b7ef
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b7e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00409270
push 1
push 0x49ef00
lea ecx, [esp + 0x14]
call fcn.00409270
push 0
push 0x24
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.00401e60
push 9
push str.explorer
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 1
call fcn.00409270
cmp dword [esp + 0x20], 8
push 1
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
cmp dword [esp + 0x3c], 8
push 0
push ecx
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x38], 8
jb 0x45b881
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp dword [esp + 0x20], 8
jb 0x45b8ac
push dword [esp + 0xc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 4

Function at 0x45e200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487a58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c33d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4c33d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [edx + 0x10], 0
mov dword [esp + 0xc], 0
jne 0x45e264
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x490f89
mov byte [esi], 0
call fcn.0040c1b0
jmp 0x45e294
lea ecx, [esp + 0x10]
call fcn.0045e2c0
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.0045e0c0
cmp dword [esp + 0x24], 8
jb 0x45e294
push dword [esp + 0x10]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
Function at 0x45e660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45e69d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
xor eax, eax
xorps xmm0, xmm0
push 0x491aac
mov word [ebp - 0x2c], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x2c]
push 0x28
push eax
movq qword [ebp - 0x2a], xmm0
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
call fcn.00405020
add esp, 0x10
lea eax, [ebp - 0x2c]
push esi
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45e700
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45e735
or eax, 0xffffffff
or edx, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x54]
push esi
push 0x50
push eax
push 0
push str.instdate
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xffffffff
je 0x45e79f
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e770
sub ecx, edx
sar ecx, 1
je 0x45e79f
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi64]
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
xor edx, edx
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45eaa0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4884d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0045e9f0
mov edx, dword [edi + 0x20]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x45eb06
cmp dword [eax + 0x10], esi
jae 0x45eafc
mov eax, dword [eax + 8]
jmp 0x45eb00
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x45eaf2
cmp ecx, edx
je 0x45eb12
mov dword [ebp + 8], ecx
cmp esi, dword [ecx + 0x10]
jae 0x45eb15
mov dword [ebp + 8], edx
lea esi, [ebp + 8]
mov esi, dword [esi]
cmp esi, edx
je 0x45eb3f
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x20]
call fcn.004096a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45eb60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
add ebx, 0x20
mov esi, dword [eax]
mov dword [ebp - 4], ebx
cmp esi, eax
je 0x45ebee
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebx]
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x45eba1
call edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xd], 0
jne 0x45ebea
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x45ebcf
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x45ebea
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x45ebc3
jmp 0x45ebea
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x45ebe8
cmp esi, dword [eax + 8]
jne 0x45ebe8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x45ebd8
mov esi, eax
cmp esi, dword [ebx]
jne 0x45eb90
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x45ec1f
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
push dword [esi + 8]
mov ecx, dword [ebp - 4]
call fcn.00409390
mov esi, dword [esi]
push edi
call ebx
add esp, 4
cmp byte [esi + 0xd], 0
mov edi, esi
je 0x45ec01
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov edi, dword [ebp - 8]
mov dword [eax + 4], eax
mov eax, dword [ebx]
lea ecx, [edi + 0x18]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
mov eax, dword [edi + 0x18]
push dword [eax + 4]
call fcn.0045f580
mov eax, dword [edi + 0x18]
push edi
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ef80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487c28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x4c33d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xc]
push eax
push 4
push dword [ebp + 8]
mov dword [esp + 0x2c], 0
push 0x45ee40
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
lea ecx, [ebx + 0x20]
mov edi, eax
call fcn.0045f4c0
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4