joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8e9d20
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 0x8e9d58
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 0x8e9d60
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 0x8e9d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x8e9d94
push eax
push esi
call fcn.008ec20b
add esp, 8
pop esi
ret 0x10

Function at 0x8e9da0
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 0x8e9e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x8e9e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x902320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008ebdff
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 0x8e9dda
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 0x8e9e30
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 0x8e9ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x8e9eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x902320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008ebdff
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 0x8e9eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x8e9e6a
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 0x8ea000
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 0x8ea131
push esi
call fcn.008ed145
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.008dc080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x8ea131
push 0
push ebp
call fcn.008dc3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.008dc260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x8ea08b
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.008dc2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x8ea121
push str.CompanyName
push edi
call fcn.008eb3f0
push eax
push ebx
push esi
call fcn.008e9f60
push str.FileDescription
push edi
call fcn.008eb3f0
push eax
push ebx
push esi
call fcn.008e9f60
push str.LegalCopyright
push edi
call fcn.008eb3f0
push eax
push ebx
push esi
call fcn.008e9f60
push str.ProductName
push edi
call fcn.008eb3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.008e9f60
push str.ProductVersion
push edi
call fcn.008eb3f0
push eax
push ebx
push esi
call fcn.008e9f60
push str.FileVersion
push edi
call fcn.008eb3f0
push eax
push ebx
push esi
call fcn.008e9f60
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 0x8eb1b0
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.008eb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008eb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008eb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008eb140
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 0x8ebbfa
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 0x8ebc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8fd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8ebc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8ebc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x401890
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018cf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018cf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018cf
cmp dword [ecx + 0x74], 0xe
jbe 0x4018cf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4037d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4e6911
push 4
mov eax, 0x57005f
call fcn.0040d52b
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor esi, esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], bind
mov dword [edi + 0x18], esi
mov dword [edi + 0x38], esi
call fcn.00401c76
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
call fcn.0040a79a
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov esi, dword [esi + 8]
push esi
mov dword [edi + 8], esi
call fcn.00407c07
pop ecx
test al, al
je 0x4e6988
lock inc dword [esi + 4]
mov ecx, edi
call fcn.0040dfbc
lea ecx, [edi + 0x3c]
call fcn.00407e00
cmp byte [ebp + 0xc], 0
je 0x4e69c9
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x4e69c3
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x4e69b2
jmp 0x4e69d1
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.00403391
mov esi, eax
cmp dword [esi + 0x20], 0
jne 0x4e69e5
mov ecx, esi
call fcn.00409db3
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.0040807b
ret 8

Function at 0x4046d8
Capabilities:
Parse pe header

Disassembly:
jmp 0x4d2a28
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
test ecx, ecx
jne 0x4d2a39
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4d2a36
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4d2a36
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4d2a36
cmp dword [eax + 0x74], 0xe
jbe 0x4d2a36
cmp dword [eax + 0xe8], 0
setne al
ret

Function at 0x407905
Capabilities:
Acquire debug privileges
Create thread

Disassembly:
jmp 0x47e9e0
push str.SeDebugPrivilege
call fcn.004055e7
add esp, 4
push 0
push 0
push 0
push 0x40b0c3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x47ea0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x40ac27
Capabilities:
Query environment variable

Disassembly:
jmp 0x54a280
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x54a294
xor edi, edi
jmp 0x54a2cb
push ebx
push esi
call fcn.0054a189
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
push ebx
call fcn.00409282
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x54a2bb
push ebx
push esi
push edi
call fcn.00402ddd
add esp, 0xc
push 0
call fcn.00403fb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40b0b4
Capabilities:
Terminate process

Disassembly:
jmp 0x50cad7
push 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x50cae7
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040e4c6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40b753
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x4ed2ca
push ebx
push esi
push edi
push 0x800
push 0
mov ebx, str.advapi32.dll
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4ed308
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ed390
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4ed390
push str.RegisterTraceGuidsW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004013ac
mov dword [esp], str.UnregisterTraceGuids
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004013ac
mov dword [esp], str.TraceEvent
push esi
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004013ac
mov dword [esp], str.GetTraceLoggerHandle
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004013ac
mov dword [esp], str.GetTraceEnableLevel
push esi
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004013ac
mov dword [esp], str.GetTraceEnableFlags
push esi
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004013ac
pop ecx
mov dword [edi + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40e048
Capabilities:
Allocate thread local storage

Disassembly:
jmp fcn.004f4970
jmp 0x4e1e54
call fcn.00408a21
call fcn.00409f25
mov dword [0x5b9860], eax
jmp 0x40b6a4
Function at 0x438f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56308f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b02a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x438f85
mov dword [esi], 0x578c94
mov dword [esi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.00406735
lea eax, [ebp - 0x1c]
mov dword [edi + 0x3c], 0
lea ebx, [esi + 4]
mov ecx, edi
push eax
mov dword [edi + 0x38], ebx
call fcn.00402c66
push eax
mov dword [ebp - 4], 2
call fcn.00402a18
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x438ff2
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x438ff2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp + 8]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x439017
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004082c4
mov eax, dword [esi]
mov dword [ebp - 4], 3
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.0040b389
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x3d], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x5b8b00]
mov dword [ebx + 0x40], eax
mov eax, dword [0x5b8b04]
mov dword [ebx + 0x44], eax
mov eax, esi
mov dword [ebx + 0x38], 0
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 0x43f7e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56447d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5b02a4]
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, ecx
mov dword [ebp - 0x1a4], esi
push 0x5b8aa0
mov dword [ebp - 0x1ac], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x43f846
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x5b8aa4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0x5b8aa4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, eax
test edi, edi
je 0x43f884
call fcn.0040bf96
mov dword [ebp - 0x1a4], eax
mov eax, 0x4095c5
mov dword [ebp - 0x1a8], edi
test eax, eax
je 0x43f884
push str.winsock
lea eax, [ebp - 0x1a8]
push eax
call fcn.004027d9
push 0x20
mov dword [ebp - 4], 0
call fcn.0040821a
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x43f8b1
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.0040867a
jmp 0x43f8b3
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x1c]
mov eax, esi
mov dword [esi + 8], ecx
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.00408ac6
mov esp, ebp
pop ebp
ret
Function at 0x472f50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a460
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b02a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x472fb8
mov ecx, edi
call fcn.0040b712
call fcn.0040bf96
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], 0
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
mov dword [ebp - 0x10], 0
push dword [0x5b8a9c]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x5b8a9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, edi
push ebx
push 1
mov byte [ebp - 4], 1
xor esi, esi
call fcn.00403076
test eax, eax
je 0x47301e
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
mov ecx, edi
push 1
mov esi, eax
call fcn.00403076
test eax, eax
jne 0x473005
push dword [ebp - 0x14]
push dword [0x5b8a9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47303d
push ecx
call fcn.00401659
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 esp, ebp
pop ebp
ret 4
Function at 0x4130a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
je 0x4130be
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4130ca
mov al, 1
jmp 0x413243
mov dword [ebp - 0x20], 8
call fcn.004154a0
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
call fcn.004154a0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004154d0
add esp, 8
movzx eax, al
test eax, eax
je 0x41310d
xor al, al
jmp 0x413243
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.00410e10
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x48]
call fcn.00414bb0
mov ecx, eax
call fcn.00412050
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.00417540
add esi, eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00414bb0
mov ecx, eax
call fcn.00412050
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x40]
call fcn.00417aa0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x413181
cmp dword [ebp - 0x10], 1
je 0x413188
cmp dword [ebp - 0x10], 3
je 0x413214
jmp 0x413225
mov eax, dword [ebp - 8]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00414bb0
mov ecx, eax
call fcn.00412050
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x4131e4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00414bb0
mov ecx, eax
call fcn.00412050
push eax
call fcn.00419ba9
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x4131e4
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x48]
call fcn.00411920
mov al, byte [ebp - 1]
jmp 0x413243
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x413200
mov byte [ebp - 2], 1
lea ecx, [ebp - 0x48]
call fcn.00411920
mov al, byte [ebp - 2]
jmp 0x413243
cmp dword [ebp - 0xc], 0
jne 0x413212
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.00414740
jmp 0x413236
mov byte [ebp - 3], 1
lea ecx, [ebp - 0x48]
call fcn.00411920
mov al, byte [ebp - 3]
jmp 0x413243
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00411920
mov al, byte [ebp - 4]
jmp 0x413243
jmp 0x413119
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426de0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4385dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041e4ff
mov dword [ebp - 0x14], eax
cmp dword [0x43aad0], esi
jne 0x426ed3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x426e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426fb3
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x426fb3
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426fb3
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43aad0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43aad4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43aad8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43aae0], eax
test eax, eax
je 0x426ed0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43aadc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426ef8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x426eeb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x426f0d
push 4
pop eax
jmp 0x426fb5
cmp dword [ebp - 0x14], esi
je 0x426f0d
push dword [0x43aad0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x426ef2
mov eax, dword [0x43aadc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x426f6b
cmp dword [0x43aae0], edi
je 0x426f6b
push eax
call ebx
push dword [0x43aae0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x426f6b
test eax, eax
je 0x426f6b
call ecx
test eax, eax
je 0x426f60
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x426f60
test byte [ebp - 8], 1
jne 0x426f6b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x426f9b
mov eax, dword [0x43aad4]
cmp eax, edi
je 0x426f98
push eax
call ebx
test eax, eax
je 0x426f98
call eax
mov esi, eax
test esi, esi
je 0x426f98
mov eax, dword [0x43aad8]
cmp eax, edi
je 0x426f98
push eax
call ebx
test eax, eax
je 0x426f98
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43aad0]
call ebx
test eax, eax
je 0x426fb3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x426fb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d66b
mov esp, ebp
pop ebp
ret