joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9a7250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9bb808
push 0x9ab288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x9a7329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9a7329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009aa1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9a7329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x9a7329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x9a732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009a7351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9a7d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9a7d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9a7d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9a7d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9a7d94
push eax
push esi
call fcn.009aa20b
add esp, 8
pop esi
ret 0x10

Function at 0x9a7da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9a7e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9a7e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9c0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009a9dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9a7dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9a7e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9a7ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9a7eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9c0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009a9dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9a7eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9a7e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9a8000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9a8131
push esi
call fcn.009ab145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0099a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9a8131
push 0
push ebp
call fcn.0099a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0099a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9a808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0099a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9a8121
push 0x9c0918
push edi
call fcn.009a93f0
push eax
push ebx
push esi
call fcn.009a7f60
push 0x9c08f8
push edi
call fcn.009a93f0
push eax
push ebx
push esi
call fcn.009a7f60
push 0x9c08d8
push edi
call fcn.009a93f0
push eax
push ebx
push esi
call fcn.009a7f60
push 0x9c08c0
push edi
call fcn.009a93f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009a7f60
push 0x9c08a0
push edi
call fcn.009a93f0
push eax
push ebx
push esi
call fcn.009a7f60
push 0x9c0888
push edi
call fcn.009a93f0
push eax
push ebx
push esi
call fcn.009a7f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9a91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009a9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009a9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009a9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009a9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9a9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9a9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9bb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9a9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9a9c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4023b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427b91
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4344c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 5
mov ecx, str.D:_A__GA___WD__A__GA___AN_S:_ML__NW___S_1_16_0_
ja 0x402417
mov ecx, str.D:_A__GA___WD__A__GA___AN_
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
jne 0x40242f
mov ebx, dword [ebp - 0x130]
mov byte [ebp - 0x140], al
jmp 0x402446
push 0
lea edx, [ebp - 0x130]
push edx
push 1
push ecx
call eax
mov ebx, eax
mov byte [ebp - 0x140], 1
push 0x54
push str.CDriverInstaller::SetEvent__:_ConvertStringSecurityDescriptorToSecurityDescriptorW__
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00403cd0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 0
push eax
push ebx
push dword [ebp - 0x140]
mov ecx, edi
call fcn.004026b0
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
cmp dword [ebp - 0x144], 0x10
jb 0x4024af
push dword [ebp - 0x158]
call fcn.0041436d
add esp, 4
cmp ebx, 1
je 0x4024bb
mov eax, ebx
jmp 0x40260c
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4024f1
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x13c], 0xc
jmp 0x4024f3
xor eax, eax
cmp dword [esi + 0x14], 8
jb 0x4024fb
mov esi, dword [esi]
push esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x2b
push str.CDriverInstaller::SetEvent__:_CreateEvent__
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov ebx, eax
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00403cd0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 1
push eax
xor eax, eax
mov ecx, edi
test ebx, ebx
setne al
push eax
push 1
call fcn.004026b0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
cmp dword [ebp - 0x144], 0x10
jb 0x402575
push dword [ebp - 0x158]
call fcn.0041436d
add esp, 4
cmp esi, 1
je 0x402581
mov eax, esi
jmp 0x40260c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x28
push str.CDriverInstaller::SetEvent__:_SetEvent__
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x15c], 0xf
mov esi, eax
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
call fcn.00403cd0
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 2
push eax
push esi
push 1
mov ecx, edi
call fcn.004026b0
cmp dword [ebp - 0x15c], 0x10
mov esi, eax
jb 0x4025e8
push dword [ebp - 0x170]
call fcn.0041436d
add esp, 4
cmp esi, 1
jne 0x40257a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CDriverInstaller:_Event_set
lea eax, [edi + 0xc]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413990
mov esp, ebp
pop ebp
ret 4
Function at 0x402b60
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4344c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
cmp dword [edi + 0x10], 0
jne 0x402baa
mov eax, 7
jmp 0x402ca8
lea eax, [ebp - 0x4c]
push eax
call fcn.00402e10
push edi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404510
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 8
jb 0x402bdd
push dword [ebp - 0x4c]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
lea esi, [eax + 7]
cmp dword [ebp - 0x1c], eax
je 0x402c62
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x402c05
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 8
jb 0x402c10
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x402c62
cmp dword [ebx + 0x14], 8
jb 0x402c26
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x402c2e
mov edi, dword [edi]
push ebx
push edi
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_AddPrintProcessorW]
test eax, eax
je 0x402c4d
push 0
mov esi, 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402c70
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402c59
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402c70
lea esi, [eax + 2]
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 4]
test eax, eax
je 0x402c95
cmp esi, 1
jne 0x402c8a
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
call eax
test eax, eax
jne 0x402c95
mov eax, dword [edi + 4]
push esi
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
call eax
cmp dword [ebp - 0x18], 8
jb 0x402ca6
push dword [ebp - 0x2c]
call fcn.0041436d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413990
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402cd0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4344c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x402deb
cmp dword [eax + 0x10], 0
je 0x402deb
cmp dword [eax + 0x14], 8
mov esi, 7
jb 0x402d24
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeletePrintProcessorW]
test eax, eax
je 0x402dc5
lea eax, [ebp - 0x40]
push eax
call fcn.00402e10
push edi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404510
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x402d6d
push dword [ebp - 0x40]
call fcn.0041436d
add esp, 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402d79
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402d9b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402d90
lea eax, [ebp - 0x28]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x14], 8
mov esi, 1
jb 0x402db1
push dword [ebp - 0x28]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebx + 4]
test eax, eax
je 0x402de7
cmp esi, 1
jne 0x402ddc
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
call eax
test eax, eax
jne 0x402de7
mov ecx, dword [ebx + 4]
push esi
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x20]
call ecx
mov eax, esi
jmp 0x402df0
mov eax, 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413990
mov esp, ebp
pop ebp
ret 8
Function at 0x405730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427e06
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4344c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
push 0x104
push eax
mov dword [ebp - 0x24c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4057a9
xor ecx, ecx
jmp 0x4057c1
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4057b2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403b50
push ecx
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00405870
push edi
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00404510
add esp, 8
cmp dword [ebp - 0x234], 8
jb 0x405815
push dword [ebp - 0x248]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x405849
push dword [ebp - 0x230]
call fcn.0041436d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413990
mov esp, ebp
pop ebp
ret 8
Function at 0x406210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x432540
push 0x41a860
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4344c8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4062c2
mov eax, dword [esi + 4]
test eax, eax
je 0x4062c2
cmp eax, 0xffffffff
je 0x4062c2
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x4062c2
test edi, edi
je 0x4062c2
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x406294
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4062b6
push 2
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x24]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xfffffffe
call fcn.004062e3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413990
mov esp, ebp
pop ebp
ret 4
Function at 0x406450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x432560
push 0x41a860
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x4344c8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x848], esi
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx]
jl 0x4065f1
mov eax, dword [ecx + 4]
test eax, eax
je 0x4065f1
cmp eax, 0xffffffff
je 0x4065f1
mov dword [ebp - 0x830], 0x32334c
mov byte [ebp - 0x2a], 0
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x832]
push eax
movzx eax, word [ebp - 0x834]
push eax
movzx eax, word [ebp - 0x836]
push eax
movzx eax, word [ebp - 0x838]
push eax
movzx eax, word [ebp - 0x83a]
push eax
movzx eax, word [ebp - 0x83e]
push eax
movzx eax, word [ebp - 0x840]
push eax
push str._04i__02i__02i__02i:_02i:_02i._03i_6i_6i__s
push 0x800
push 0x803
lea eax, [ebp - 0x82c]
push eax
call fcn.00413ae9
add esp, 0x38
lea ecx, [ebp - 0x82c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406540
sub ecx, edx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov eax, 0x800
sub eax, ecx
push eax
mov eax, 0x803
sub eax, ecx
push eax
lea eax, [ebp - 0x82c]
add eax, ecx
push eax
call fcn.00414ae2
push 2
push 0x430a8c
push 0x803
lea eax, [ebp - 0x82c]
push eax
call fcn.00414c75
add esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x4065a6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4065e5
push 2
push 0
push 0
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x82c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065c0
sub ecx, edx
push 0
lea eax, [ebp - 0x844]
push eax
push ecx
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xfffffffe
call fcn.00406613
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00413990
mov esp, ebp
pop ebp
ret
Function at 0x406880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427f42
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4344c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.00410112
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x406914
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00406660
push eax
push esi
call fcn.0040ff41
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42800b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4344c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041470d
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4073e6
push 1
mov dword [edi], 0
call fcn.0040fe6c
mov dword [edi], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret