joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4227f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push pe_nt_image_headers32
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0
push eax
mov dword [esi], 0
mov dword [esi + 0x18], 3
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0x11c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x422864
test ecx, ecx
jle 0x42289b
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x42289b
cmp eax, 6
jne 0x422893
cmp byte [ebp - 0x26], 1
jne 0x42288b
sub ecx, 0
je 0x422883
dec ecx
je 0x42287b
mov dword [esi], eax
jmp 0x42289b
mov dword [esi], 5
jmp 0x42289b
mov dword [esi], 3
jmp 0x42289b
mov dword [esi], 4
jmp 0x42289b
jle 0x42289b
mov dword [esi], 7
movzx ecx, word [ebp - 0x2c]
movzx edx, word [ebp - 0x2a]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
test eax, eax
je 0x42290c
cmp eax, 6
je 0x4228f9
mov ecx, dword [ebp - 0x10]
cmp eax, 9
mov dword [esi + 0x1c], ecx
mov eax, esi
jne 0x42291b
mov dword [esi + 0x18], 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], edx
mov eax, esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], 0
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x422920
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [esi + 4]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x422940
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x42294f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x422960
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
push 4
push edi
push 0xffffffffffffffff
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
cmp eax, edi
jne 0x42299c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x422a69
and eax, 0xffff
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4229b3
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
push edx
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x4229f0
call ebx
cmp eax, edi
jle 0x4229db
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esi]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x49b348]
mov edx, dword [str.locker_]
mov ecx, dword [0x49b34c]
push 0x7f0
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
mov edx, dword [0x49b350]
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push edi
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x1c
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x422f80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0x498b64
push str.CLogController::Init
mov esi, ecx
call fcn.00424650
add esp, 8
lea edi, [esi + 8]
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
cmp byte [esi + 5], 0
jne 0x422ff3
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 0x810d0009
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 6], 0
je 0x42301e
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 0x810d0004
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 4], 0
je 0x423049
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 0x810d0005
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ebx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], eax
call fcn.00422a70
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4230ff
cmp word [ebx], 0
je 0x4230ff
push 0xffffffffffffffff
push str.SoftwareBaiduBDLOG_
lea edi, [esi + 0xac]
push 0x40
push edi
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4230a0
sub eax, edx
sar eax, 1
push 0xffffffffffffffff
mov ecx, 0x40
push ebx
sub ecx, eax
push ecx
lea edx, [esi + eax*2 + 0xac]
push edx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
push 0
lea ebx, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push 0
push 0x11
push 0
push 0
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebx], 0
jne 0x4230fc
push 0x49b450
call fcn.00424740
add esp, 4
mov edi, dword [ebp - 0x10]
mov byte [esi + 4], 1
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x423330
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
push 0x498b64
push str.CLogController::MonitorConfigChange
mov esi, ecx
call fcn.00424650
add esp, 8
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
cmp byte [esi + 5], 0
jne 0x42339e
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 0x810d0009
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 6], 0
je 0x4233c7
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 0x810d0004
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 4], 0
jne 0x4233f0
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 0x810d0003
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp word [esi + 0xac], 0
je 0x4234b3
mov eax, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
test eax, eax
je 0x4234b3
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push str.monitor_config_change
push eax
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423457
cmp dword [ebp - 0x14], eax
jne 0x423457
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x424200
push 0
push 0
mov dword [esi + 0x20], eax
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x24], eax
test eax, eax
jne 0x423493
push 0x49b53c
call fcn.00424740
add esp, 4
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 0x810d000a
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x423e20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x64], ebx
cmp byte [edi + 5], bl
jne 0x423e88
push esi
mov dword [esp + 0x68], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x810d0009
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 6], bl
je 0x423eb5
push esi
mov dword [esp + 0x68], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x810d0004
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 4], bl
jne 0x423ee2
push esi
mov dword [esp + 0x68], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x810d0003
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea esi, [esp + 0x18]
call fcn.00422b30
mov eax, dword [edi + reloc.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [edi + reloc.NETAPI32.dll_NetApiBufferFree]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [edi + reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [esp + 0x48], eax
mov eax, dword [edi + reloc.NETAPI32.dll_NetApiBufferFree]
push eax
mov dword [esp + 0x50], edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
cmp dword [edi + 0xa8], ebx
jbe 0x423fb1
lea esi, [edi + 0x28]
mov eax, dword [esi]
cmp byte [eax + 0x184c], 0
je 0x423fa5
cmp dword [eax + reloc.NETAPI32.dll_NetApiBufferFree], 0
je 0x423f95
mov ecx, dword [eax + reloc.NETAPI32.dll_NetApiBufferFree]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x28]
push edx
call eax
test al, al
je 0x423fa5
mov ecx, dword [esi]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x28]
push eax
call edx
inc ebx
add esi, 4
cmp ebx, dword [edi + 0xa8]
jb 0x423f6c
add dword [edi + reloc.NETAPI32.dll_NetApiBufferFree], 1
mov eax, dword [esp + 0x10]
push eax
adc dword [edi + reloc.NETAPI32.dll_NetApiBufferFree], 0
mov dword [esp + 0x68], reloc.NETAPI32.dll_NetApiBufferFree
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x424160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x204
mov word [esi], ax
cmp dword [edi + reloc.NETAPI32.dll_NetApiBufferFree], eax
je 0x4241ea
mov ecx, dword [0x49b59c]
mov edx, dword [0x49b5a0]
push 0x1f8
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push 0x100
push edx
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
mov edx, dword [edi + reloc.NETAPI32.dll_NetApiBufferFree]
add esp, 0x1c
lea eax, [ebp + 8]
push eax
push esi
push 0
push 0
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
push edx
mov dword [ebp + 8], 0x7fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 8]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2], cx
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x424650
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [reloc.NETAPI32.dll_NetApiBufferFree]
sub esp, 0x840
test eax, eax
je 0x424730
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
jne 0x424697
push 0x20
lea eax, [ebp - 0x40]
push eax
push 0x49b71c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
and eax, 1
mov dword [reloc.NETAPI32.dll_NetApiBufferFree], eax
je 0x424730
mov edx, dword [str.BDLOG:]
mov eax, dword [0x49b734]
mov ecx, dword [0x49b738]
push esi
push 0x7f2
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
mov dx, word [0x49b73c]
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov word [ebp - 0x834], dx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR100.dll_wcsncat_s]
push 0xffffffffffffffff
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push 0x400
push edx
call esi
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push 0x400
push ecx
call esi
push 0xffffffffffffffff
push 0x49b740
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push 0x400
push edx
call esi
add esp, 0x3c
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4251d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [ebp + 8], 0
push esi
mov dword [edi + reloc.NETAPI32.dll_NetApiBufferFree], 0
je 0x425201
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
lea esi, [edi + 0x20]
push eax
call fcn.004252d0
push 0xff
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push 0
push ecx
mov byte [ebp - 0x104], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x18
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
lea esi, [edi + 0x20]
push edx
call fcn.004252d0
push 4
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x40
call fcn.004252d0
push 4
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], 0xa
call fcn.004252d0
mov edx, dword [ebp + 8]
push edx
push str.error
call fcn.004252d0
push 4
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x4e
call fcn.004252d0
mov ecx, dword [ebp + 8]
push ecx
push 0x49b800
call fcn.004252d0
mov eax, dword [edi + reloc.NETAPI32.dll_NetApiBufferFree]
mov esi, dword [esi]
mov ecx, dword [edi + 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
jne 0x4252b5
push 0x4aa2d0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 1
call sub.MSVCR100.dll__CxxThrowException
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
mov byte [edi + 0x1d], 1
call eax
mov esp, ebp
pop ebp
ret 4
Function at 0x425790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax]
push 0x498b64
mov esi, ecx
push str.path
mov ecx, edi
call edx
push 0xffffffffffffffff
push eax
lea ebx, [esi + 8]
push 0x104
push ebx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov eax, dword [edi]
mov edx, dword [eax + 8]
add esp, 0x10
push 1
push str.share_read
mov ecx, edi
call edx
xor ecx, ecx
test al, al
setne cl
mov edx, ebx
mov dword [ebp - 4], ecx
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.00424940
push 0x104
push ebx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 4]
push 0
push 0x80
push 4
push 0
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
jne 0x425849
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4258c7
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0xf4240
push str.buffer_size
mov ecx, edi
call eax
xor ebx, ebx
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], ebx
cmp eax, ebx
jbe 0x42587e
push eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ebx
push str.async
mov ecx, edi
call eax
push 2
lea edx, [ebp + 8]
push edx
test al, al
mov eax, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
push ebx
sete cl
push eax
mov byte [esi + 0x210], cl
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x4258c5
cmp dword [ebp + 8], ebx
jne 0x4258c5
lea edi, [eax + 2]
mov ebx, 0x49b938
call fcn.00425c10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
add eax, edi
sub esp, 8
cmp eax, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
jb 0x425c39
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], 0
cmp edi, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
jb 0x425cae
cmp byte [esi + 0x210], 0
mov eax, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
je 0x425c7e
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x425ca0
push 0x49b8e4
call fcn.00424740
add esp, 4
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], 0
mov esp, ebp
pop ebp
ret
push 0x425690
push 0x4afab8
push edi
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push eax
mov dword [0x4afac0], ecx
mov dword [0x4afac4], ecx
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], 0
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
add edx, dword [esi + reloc.NETAPI32.dll_NetApiBufferFree]
push edi
push ebx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], edi
mov esp, ebp
pop ebp
ret

Function at 0x426480
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov esi, ecx
mov ecx, dword [edi + 8]
push 0x40
push eax
push ecx
lea eax, [esp + 0x14]
mov ecx, 0x49b9f4
call fcn.00424a60
lea eax, [esp + 0x14]
add esp, 0xc
mov dword [esi + reloc.NETAPI32.dll_NetApiBufferFree], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4264c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0xc]
add esi, 8
push eax
call fcn.004252d0
mov ecx, dword [edi + 0x1c]
mov eax, ecx
lea edi, [eax + 2]
jmp 0x4264f0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4264f0
sub eax, edi
sar eax, 1
lea edx, [eax + eax]
push edx
push ecx
call fcn.004252d0
push 4
push 0x49b740
call fcn.004252d0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x426640
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00492d40
push 0x800
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add esp, 0xc
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x800
test eax, eax
je 0x426722
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
lea edx, [ebp - 4]
push edx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
je 0x426722
mov eax, dword [ebp - 8]
cmp eax, 1
jne 0x4266dd
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4266b4
sub eax, edx
sar eax, 1
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov ecx, esi
call fcn.004069f0
mov eax, 1
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x426722
push 0x400
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
test eax, eax
je 0x426722
cmp eax, 0x400
ja 0x426722
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov ecx, esi
call fcn.00405740
mov eax, 1
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4267a0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [ecx]
mov eax, dword [eax]
push esi
mov esi, dword [eax - 0xc]
test ecx, ecx
jne 0x4267b0
xor eax, eax
pop esi
ret
mov edx, dword [edx]
add esi, esi
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
ret