joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100299e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cce8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005d500]
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 - 0x10], esp
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x10029a2d
lea eax, [ebp + 8]
push eax
call fcn.10036f23
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], esi
jae 0x10029a41
lea eax, [ebp + 8]
push 0x10054708
push eax
call fcn.10035645
add esp, 8
add ebx, 0x61
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0xffffffffffffffff
push 0
add edi, 0xec
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov esi, eax
mov byte [ecx], 0
call fcn.10002da0
lea eax, [ebp - 0x30]
push eax
call fcn.100297f0
mov ecx, dword [ebp - 0x20]
push esi
push 1
lea edx, [ebp - 0x34]
push 4
push edx
mov dword [ebp - 0x34], ecx
call fcn.10035cde
mov eax, dword [ebp - 0x30]
mov edi, 0x10
add esp, 0x10
cmp dword [ebp - 0x1c], edi
jae 0x10029aae
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
push esi
push ecx
push 1
push eax
call fcn.10035cde
push esi
call fcn.100352ae
add esp, 0x14
cmp dword [ebp - 0x1c], edi
jb 0x10029ad5
mov edx, dword [ebp - 0x30]
push edx
call fcn.10032d80
add esp, 4
cmp dword [ebp + 0x1c], edi
jb 0x10029af6
mov eax, dword [ebp + 8]
push eax
call fcn.10032d80
add esp, 4
jmp 0x10029af6
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.10034d1a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10029b20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bb47
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100534f8
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10006b10
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10006450
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10029bb7
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.100079b0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.10006130
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1006145c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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 0x10029c50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004baf7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10053508
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10006b10
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10006450
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10029ce3
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.100079b0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.10006130
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1006145c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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 0x1002ca60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004d340
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.SysService.0
mov dword [esp + 0x38], 0
mov eax, dword [0x10061c90]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
mov eax, 0x1005fbb4
call fcn.10032740
mov esi, dword [eax]
cmp dword [esi + 0xc], 8
mov ebx, 1
je 0x1002cb1c
mov dword [esp + 0x10], vtable.AdInfoService.0
mov ecx, esi
mov byte [esp + 0x38], bl
call fcn.10009b10
test al, al
jne 0x1002cb09
cmp dword [esi + 0x160], 0
ja 0x1002cb09
cmp dword [esi + 0x10], 6
je 0x1002cb11
mov ecx, dword [esi + 0x54]
sub ecx, dword [esi + 0x50]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x1002cb11
add dword [0x100a1db0], ebx
jmp 0x1002cb17
add dword [0x100a1dac], ebx
mov byte [esp + 0x38], 0
mov edx, dword [0x100a1db0]
cmp edx, dword [0x100a1dcc]
jl 0x1002cb30
push ebx
call fcn.1002cc10
mov eax, dword [0x100a1dac]
cmp eax, dword [0x100a1dc8]
jl 0x1002cb44
push 0
call fcn.1002cc10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x18]
push edx
call fcn.1002ff40
movzx ecx, word [esp + 0x20]
lea eax, [eax + eax*2 - 0x6fb8a4]
lea eax, [ecx + eax*8]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, word [esp + 0x22]
add dword [esi + 0x18], ebx
lea eax, [eax + edx*4]
movzx edx, word [esp + 0x24]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
movzx ecx, word [esp + 0x26]
imul eax, eax, 0x3e8
add eax, ecx
push 0x100a2010
mov dword [esi + 0x44], eax
call fcn.100039d0
mov edx, dword [0x10061c90]
mov dword [0x100a1db4], edx
mov eax, dword [esi + 0x44]
add dword [0x100a1da8], ebx
mov esi, 0x10061c20
mov dword [0x100a1da4], eax
call fcn.1001ed10
push 0x100a202c
mov ebx, 0x100a1d90
call fcn.10024f30
mov eax, 9
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret
Function at 0x1002fba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002fbc8
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.100028b0
push 0x44
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10037e20
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0xc], 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], 0x44
jae 0x1002fc0c
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002fc57
cmp byte [ebp + 8], al
jne 0x1002fc57
cmp dword [ebp - 0xc], 0x10
jb 0x1002fc44
mov eax, dword [ebp - 0x20]
push eax
call fcn.10032d80
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0xc], 0x10
mov esi, dword [ebp - 0x30]
jb 0x1002fc6c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10032d80
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10031900
Capabilities:
Get disk size

Disassembly:
push esi
push edi
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x10054970
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push 0
push 0
push 0
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
mov eax, dword [0x10061bd4]
mov esi, dword [eax]
cmp esi, eax
je 0x100319bb
lea esp, [esp]
mov eax, dword [esi + 0x10]
push eax
call fcn.10032d80
add esp, 4
cmp byte [esi + 0x15], 0
jne 0x100319b2
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x10031991
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x100319b2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x10031985
jmp 0x100319b2
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x100319b0
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x100319b0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x100319a0
mov esi, eax
mov eax, dword [0x10061bd4]
cmp esi, eax
jne 0x10031960
mov edi, dword [eax + 4]
cmp byte [edi + 0x15], 0
mov esi, edi
jne 0x100319ec
mov ecx, dword [esi + 8]
push ecx
mov ecx, 0x10061bd0
call fcn.100327c0
mov esi, dword [esi]
push edi
call fcn.10032d80
add esp, 4
cmp byte [esi + 0x15], 0
mov edi, esi
je 0x100319c6
mov eax, dword [0x10061bd4]
mov dword [eax + 4], eax
mov eax, dword [0x10061bd4]
mov dword [eax], eax
mov eax, dword [0x10061bd4]
pop edi
mov dword [eax + 8], eax
mov dword [0x10061bd8], 0
pop esi
ret

Function at 0x10031e50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
lea esp, [esp]
push str.qydml
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
push 0
push str.kduef
call edi
call fcn.10031ec0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push 0x4e20
push ecx
call ebx
test eax, eax
jne 0x10031e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10032540
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.10037e20
push 0x24
lea ecx, [ebp - 0x404]
push 0x100535d8
push ecx
call fcn.10037f30
add esp, 0x18
xor eax, eax
mov edx, eax
and edx, 0x8000000f
jns 0x10032594
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [ebp + eax - 0x404]
sub cl, al
xor cl, byte [edx + 0x10053660]
inc eax
mov byte [ebp + eax - 0x405], cl
cmp eax, 0x24
jl 0x10032585
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push edi
push 0
push 0
push str.wuvs
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push edx
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1003265d
mov ecx, dword [esi + 0xc]
push 0x1388
push ecx
call edi
test eax, eax
je 0x10032667
push 0
push 0
push str.wuvs
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esi + 0x18]
push 0x64
push edx
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10032606
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10034d1a
mov esp, ebp
pop ebp
ret

Function at 0x10032680
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], 0
push esi
nop
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
test eax, eax
jle 0x10032710
mov dword [ebp - 4], ebx
add esi, dword [ebp - 4]
cmp dword [esi + 0x14], 0x10
jb 0x100326e2
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10032733
mov esi, dword [edi]
mov ecx, dword [edi + 4]
add dword [ebp - 4], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jl 0x100326d7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 1
jl 0x10032690
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033fe7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100603b8], 0
push esi
push edi
jne 0x10033f5d
call fcn.10033ec9
test eax, eax
je 0x10033fa2
mov eax, dword [0x100603b8]
cmp eax, 1
jne 0x10033f7e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10033fa2
jmp 0x10033fe4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10033fe4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10033fa6
xor eax, eax
jmp 0x10033fe4
mov eax, dword [esi]
push dword [0x100603b8]
call edi
mov edi, eax
test edi, edi
je 0x10033fc8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10033fe4
lea edi, [esi + 0xff0]
push esi
push dword [0x100603b8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10033fce
mov eax, esi
pop edi
pop esi
ret
jmp 0x10033f49

Function at 0x10034d1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005d500]
jne 0x10034d24
repz ret
jmp fcn.1003a970

Function at 0x10036e5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10036e83
call fcn.1003a802
mov dword [eax], esi
call fcn.1003a7ef
push 0x16
pop esi
mov dword [eax], esi
call fcn.1003b02c
mov eax, esi
jmp 0x10036ed8
test dword [ebp + 0xc], 0xfffffff9
jne 0x10036e69
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10036eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003a815
pop ecx
call fcn.1003a7ef
mov eax, dword [eax]
jmp 0x10036ed8
test al, 0x10
jne 0x10036ed6
test al, 1
je 0x10036ed6
test byte [ebp + 0xc], 2
je 0x10036ed6
call fcn.1003a802
mov dword [eax], 5
call fcn.1003a7ef
mov dword [eax], 0xd
jmp 0x10036ea7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100471de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10040e98
and dword [ebp - 0x14], 0
cmp dword [0x10061378], 0
mov dword [ebp - 0x18], eax
jne 0x10047291
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10047339
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10047339
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10061378], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1006137c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10061380], eax
call edi
push eax
call esi
mov dword [0x10061388], eax
test eax, eax
je 0x10047291
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10061384], eax
mov eax, dword [0x10061384]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100472ea
cmp dword [0x10061388], ecx
je 0x100472ea
push eax
call esi
push dword [0x10061388]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100472ea
test ebx, ebx
je 0x100472ea
call edi
test eax, eax
je 0x100472e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100472e1
test byte [ebp - 8], 1
jne 0x100472ea
or dword [ebp + 0x10], 0x200000
jmp 0x1004731d
mov eax, dword [0x1006137c]
cmp eax, dword [ebp - 0x18]
je 0x1004731d
push eax
call esi
test eax, eax
je 0x1004731d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004731d
mov eax, dword [0x10061380]
cmp eax, dword [ebp - 0x18]
je 0x1004731d
push eax
call esi
test eax, eax
je 0x1004731d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10061378]
call esi
test eax, eax
je 0x10047339
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1004733b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10034d1a
leave
ret
Function at 0x406270
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
test byte [eax + 0x68], 0x70
jne fcn.004021c0
ret

Function at 0x40759f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4075c0
jl 0x4075b7
test edi, edi
jne 0x4075c0
xor eax, eax
xor edx, edx
jmp 0x407681
cmp dword [ebx + 0x38], 0
je 0x4075d5
push eax
push edi
push dword [ebp + 8]
call fcn.00407687
jmp 0x407681
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40761c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40761c
cmp eax, edi
jb 0x4075f6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409bc0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407622
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407676
mov ecx, ebx
call fcn.00406e35
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407661
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fb43
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407676
jmp 0x407634
test edx, edx
je 0x407676
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fb43
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4091fd
Capabilities:
Parse pe header

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

Function at 0x41724e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4290c0
push 0x4290b8
push str.FlsAlloc
push 0x1f
call fcn.004170b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417282
push dword [ebp + 8]
mov ecx, esi
call dword [0x425140]
call esi
jmp 0x417288
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4172cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4290d0
push 0x4290c8
push str.FlsGetValue
push 0x21
call fcn.004170b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417303
push dword [ebp + 8]
mov ecx, esi
call dword [0x425140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41730b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4290d8
push 0x4290d0
push str.FlsSetValue
push 0x22
call fcn.004170b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417345
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x425140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]