joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401920
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x405fdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
push 0xff
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0xc]
mov ebp, eax
call fcn.00405846
mov edi, 0x409550
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x30]
and ecx, 3
sub eax, 0
rep movsb byte es:[edi], byte [esi]
je 0x4019e2
dec eax
je 0x4019a2
dec eax
jne 0x4019ee
push 0xff
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4019ee
push 0x100
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x409550
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4019ee
push ebp
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
lea ecx, [esp + 0x10]
push 0x40906c
push ecx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push 0
push 0x2e
call sub.MFC42.DLL_CString::Find
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x401a69
test eax, eax
jle 0x401a69
push eax
lea edx, [esp + 0x2c]
push 0
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Mid
push edi
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x24], 2
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
jmp 0x401a73
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push ebp
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401b70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40604d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push esi
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x418], 3
push eax
call fcn.00401ac0
mov eax, dword [eax]
mov edx, dword [esp + 0x42c]
add esp, 4
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x428]
push 0x200
push ecx
push 0x409480
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov byte [esp + 0x418], 4
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 4]
mov eax, dword [edx - 8]
test eax, eax
jne 0x401c30
mov esi, dword [esp + 0x420]
lea eax, [esp + 0x42c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
jmp 0x401c4b
mov esi, dword [esp + 0x420]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x418], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x424]
mov byte [esp + 0x418], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x428]
mov byte [esp + 0x418], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x42c]
mov byte [esp + 0x418], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x410]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x418
ret

Function at 0x401cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 1
call fcn.00405846
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
push 0x409088
push ecx
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x38]
mov byte [esp + 0x28], 2
push eax
call fcn.00401b70
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 0x14
lea ecx, [esp + 0x2c]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret
Function at 0x402050
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x406170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call fcn.00405846
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00405846
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00405846
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString_1
call fcn.00401f00
add esp, 0x10
lea ecx, [esp + 8]
push 0x40908c
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40216c
push 0x40908c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find_2
push 0x409480
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
test esi, esi
mov byte [esp + 0x24], 4
jl 0x40215e
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x18]
push esi
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.0040586a
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
inc esi
lea ecx, [esp + 8]
push esi
push 0x40908c
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jge 0x402113
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
Function at 0x4021c0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4061a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4021fb
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40237a
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x54]
push 0x409098
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x402358
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x14]
lea ecx, [esp + 0x28]
push edx
mov edi, eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x409094
push eax
mov byte [esp + 0x54], 3
call esi
add esp, 8
test eax, eax
je 0x4022b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x409090
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4022b2
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x402350
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [edx + 0x40]
test eax, eax
je 0x402330
push ecx
lea ecx, [esp + 0x2c]
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.004021c0
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x1c]
jmp 0x40234b
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x402254
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.0040589a
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
Function at 0x403f50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x406570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov esi, dword [eax - 8]
cmp esi, 3
jle 0x403feb
lea ecx, [esp + 8]
call fcn.00405846
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x1c0]
push ecx
push edx
lea eax, [esp + 0x10]
push str._s_s
push eax
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
add esp, 0x10
cmp byte [esi + ecx - 4], 0x2e
jne 0x403fc4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403fdd
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.004021c0
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x404440
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4065e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x148], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404536
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x4044f9
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40452f
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4044b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x404550
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 4
Function at 0x100027f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.ASUSACPI_ODDBUTTON_EVENT
push 0
push 0
push 0
call esi
push str.ASUSACPI_AC_EVENT
push 0
push 0
push 0
mov dword [0x1002af70], eax
call esi
cmp dword [0x1002af70], 0
mov dword [0x1002af78], eax
pop esi
jne 0x10002784
mov eax, dword [0x1002ae44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.10001470
mov edx, dword [0x1002af70]
add esp, 4
lea ecx, [esp + 4]
push ecx
push 0
push edx
push 0x10002540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x1002ae44]
push 4
mov dword [0x1002af74], eax
mov eax, dword [0x1002af70]
lea edx, [esp + 0x18]
push edx
push 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0x222400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0x10
ret
jmp 0x10002740

Function at 0x100030a9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10029a20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x100030e9
push 0x10021878
push 4
push eax
call fcn.1000e26b
push eax
call fcn.10002800
add esp, 0x10
jmp 0x100030fb
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10003169
push edi
call fcn.1000faa1
mov edi, dword [eax]
call fcn.1000faa1
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.1000e2ec
add esp, 0x18
mov ebx, eax
call fcn.1000faa1
cmp dword [eax], 0
je 0x10003149
call fcn.1000faa1
push dword [eax]
call fcn.10002eda
pop ecx
jmp 0x10003150
call fcn.1000faa1
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10003169
cmp ebx, esi
jae 0x10003169
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1000316b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000de7f
leave
ret
Function at 0x1000de7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029a20]
jne 0x1000de89
repz ret
jmp fcn.10011c6a

Function at 0x10014167
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10029d28]
je 0x10014182
inc edi
cmp edi, 0x17
jb 0x10014173
cmp edi, 0x17
jae 0x10014302
push ebp
push 3
call fcn.1001a842
cmp eax, 1
pop ecx
je 0x100142ce
push 3
call fcn.1001a842
test eax, eax
pop ecx
jne 0x100141b6
cmp dword [0x1002ce24], 1
je 0x100142ce
cmp ebx, 0xfc
je 0x10014301
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002d318
push ebp
call fcn.1000e26b
add esp, 0xc
test eax, eax
je 0x100141ec
push esi
push esi
push esi
push esi
push esi
call fcn.10011ff2
add esp, 0x14
push 0x104
mov esi, 0x1002d331
push esi
push 0
mov byte [0x1002d435], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10014230
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000e26b
add esp, 0xc
test eax, eax
je 0x10014230
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10011ff2
add esp, 0x14
push esi
call fcn.1000f980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10014275
push esi
call fcn.1000f980
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002d62c
push 0x100231bc
sub ecx, eax
push ecx
push eax
call fcn.100119d7
add esp, 0x14
test eax, eax
je 0x10014275
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10011ff2
add esp, 0x14
jmp 0x10014277
xor esi, esi
push 0x100231b8
push ebx
push ebp
call fcn.1000fbf1
add esp, 0xc
test eax, eax
je 0x10014297
push esi
push esi
push esi
push esi
push esi
call fcn.10011ff2
add esp, 0x14
push dword [edi*8 + 0x10029d2c]
push ebx
push ebp
call fcn.1000fbf1
add esp, 0xc
test eax, eax
je 0x100142b9
push esi
push esi
push esi
push esi
push esi
call fcn.10011ff2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001a685
add esp, 0xc
jmp 0x10014301
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10014301
cmp ebp, 0xffffffff
je 0x10014301
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10029d2c]
push dword [esi]
call fcn.1000f980
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001a685
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10012d2a
xor ebx, ebx
cmp dword [0x1002d8ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001a75b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001a83b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10023b10
push edi
call esi
cmp eax, ebx
je 0x1001a83b
push eax
call fcn.10012cbc
mov dword [esp], 0x10023b00
push edi
mov dword [0x1002d8ac], eax
call esi
push eax
call fcn.10012cbc
mov dword [esp], 0x10023aec
push edi
mov dword [0x1002d8b0], eax
call esi
push eax
call fcn.10012cbc
mov dword [0x1002d8b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000f3cf
test eax, eax
pop ecx
pop ecx
je 0x1001a729
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10011ff2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001a75b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10012cbc
cmp eax, ebx
pop ecx
mov dword [0x1002d8bc], eax
je 0x1001a75b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10012cbc
pop ecx
mov dword [0x1002d8b8], eax
mov eax, dword [0x1002d8b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001a7e0
cmp dword [0x1002d8bc], ecx
je 0x1001a7e0
push eax
call fcn.10012d33
push dword [0x1002d8bc]
mov esi, eax
call fcn.10012d33
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001a7e0
cmp edi, ebx
je 0x1001a7e0
call esi
cmp eax, ebx
je 0x1001a7ad
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001a7ad
test byte [ebp - 0x18], 1
jne 0x1001a7e0
lea eax, [ebp - 0x10]
push eax
call fcn.1000f406
test eax, eax
pop ecx
je 0x1001a7c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10011ff2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001a7d7
or dword [ebp + 0x10], 0x200000
jmp 0x1001a81b
or dword [ebp + 0x10], 0x40000
jmp 0x1001a81b
mov eax, dword [0x1002d8b0]
cmp eax, dword [ebp - 8]
je 0x1001a81b
push eax
call fcn.10012d33
cmp eax, ebx
pop ecx
je 0x1001a81b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001a81b
mov eax, dword [0x1002d8b4]
cmp eax, dword [ebp - 8]
je 0x1001a81b
push eax
call fcn.10012d33
cmp eax, ebx
pop ecx
je 0x1001a81b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002d8ac]
call fcn.10012d33
cmp eax, ebx
pop ecx
je 0x1001a83b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001a83d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bbc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], 0x435ae0
call fcn.0040f8f9
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040eb28
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
pop edi
pop esi
mov dword [eax], 0x435c14
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x410495
Capabilities:
Parse pe header

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

Function at 0x41c4bc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430a58
push 0x430a50
push str.FlsAlloc
push 0x1e
call fcn.0041c329
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c4f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d15c]
call esi
jmp 0x41c4f6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c53a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430a68
push 0x430a60
push str.FlsGetValue
push 0x20
call fcn.0041c329
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c571
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]