joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011bee
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000a450
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x10011c83
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1002b18c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10011c83
cmp eax, 1
je 0x10011c9b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x10011c83
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10011c58
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10011c7f
xor eax, eax
inc eax
jmp 0x10011cb7
cmp esi, ebx
jae 0x10011c87
xor eax, eax
jmp 0x10011cb7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x1002b18c]
jmp 0x10011c9d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011dde
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10027e7c]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x10011e07
xor eax, eax
jmp 0x10011f75
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1002c8e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10011e3a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.10014aad
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10011f0c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x10011f47
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x10011e95
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10011e86
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x10011e69
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10011ed5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10011ede
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10011e5a
jmp 0x10011ee0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10011f70
cmp dword [ebp - 8], edi
je 0x10011f47
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x10011f39
call fcn.1000a48d
mov dword [eax], 9
call fcn.1000a496
mov dword [eax], esi
jmp 0x10011f42
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10011f2e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10011ee0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10011ee0
push dword [ebp - 8]
call fcn.1000a49f
pop ecx
or eax, 0xffffffff
jmp 0x10011f73
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10011f5c
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x10011f5c
xor eax, eax
jmp 0x10011f73
call fcn.1000a48d
mov dword [eax], 0x1c
call fcn.1000a496
mov dword [eax], edi
jmp 0x10011f42
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.10009c60
leave
ret
Function at 0x10012a6c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1002b53c], ebx
push esi
push edi
jne 0x10012aec
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012b27
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1002b53c], eax
je 0x10012b27
push str.GetActiveWindow
push edi
call esi
push 0x100212c8
push edi
mov dword [0x1002b540], eax
call esi
cmp dword [0x1002b18c], 2
mov dword [0x1002b544], eax
jne 0x10012aec
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1002b54c], eax
je 0x10012aec
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1002b548], eax
mov eax, dword [0x1002b548]
test eax, eax
je 0x10012b31
call eax
test eax, eax
je 0x10012b18
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1002b54c]
test eax, eax
je 0x10012b18
test byte [ebp - 8], 1
jne 0x10012b31
cmp dword [0x1002b198], 4
jb 0x10012b2b
or byte [ebp + 0x12], 0x20
jmp 0x10012b50
xor eax, eax
jmp 0x10012b60
or byte [ebp + 0x12], 4
jmp 0x10012b50
mov eax, dword [0x1002b540]
test eax, eax
je 0x10012b50
call eax
mov ebx, eax
test ebx, ebx
je 0x10012b50
mov eax, dword [0x1002b544]
test eax, eax
je 0x10012b50
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1002b53c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100146e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x100148a6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1002c8e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100148a6
test cl, 0x48
je 0x10014746
mov al, byte [eax + 5]
cmp al, 0xa
je 0x10014746
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x10014798
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10014780
call fcn.1000a48d
mov dword [eax], 9
call fcn.1000a496
mov dword [eax], esi
jmp 0x10014790
cmp eax, 0x6d
je 0x100148a6
push eax
call fcn.1000a49f
pop ecx
or eax, 0xffffffff
jmp 0x100148a8
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100148a1
test edx, edx
je 0x100147bb
cmp byte [ebx], 0xa
jne 0x100147bb
or al, 4
jmp 0x100147bd
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1001489b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001488b
cmp al, 0xd
je 0x100147f1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001487d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1001480b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10014806
add dword [ebp + 0x10], 2
jmp 0x1001485f
mov dword [ebp + 0x10], eax
jmp 0x10014879
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x10014833
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x10014879
cmp dword [ebp - 0xc], 0
je 0x10014879
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10014854
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1001485f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001487c
cmp ebx, dword [ebp + 0xc]
jne 0x10014864
cmp byte [ebp - 1], 0xa
jne 0x10014864
mov byte [ebx], 0xa
jmp 0x1001487c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10011cbf
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001487d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100147d5
jmp 0x1001489b
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1001489b
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100148a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100159ab
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x10015a16
push 0x3d
push dword [ebp + 8]
call fcn.10015d35
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x10015a16
cmp dword [ebp + 8], esi
je 0x10015a16
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x1002b1ac]
cmp eax, dword [0x1002b1b0]
jne 0x100159fc
mov edi, eax
call fcn.1001594a
mov dword [0x1002b1ac], eax
cmp eax, ebx
jne 0x10015a55
cmp dword [ebp + 0xc], ebx
je 0x10015a1e
cmp dword [0x1002b1b4], ebx
je 0x10015a1e
call fcn.10014f9a
test eax, eax
je 0x10015a55
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x10015b59
push 4
call fcn.10009b8b
cmp eax, ebx
pop ecx
mov dword [0x1002b1ac], eax
je 0x10015a16
mov dword [eax], ebx
cmp dword [0x1002b1b4], ebx
jne 0x10015a55
push 4
call fcn.10009b8b
cmp eax, ebx
pop ecx
mov dword [0x1002b1b4], eax
je 0x10015a16
mov dword [eax], ebx
mov ebx, dword [0x1002b1ac]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.100158fd
mov edi, eax
test edi, edi
pop ecx
jl 0x10015aae
cmp dword [ebx], 0
je 0x10015aae
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.10009b9d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x10015a96
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x10015ae4
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x10015a8d
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.1000a512
test eax, eax
pop ecx
pop ecx
je 0x10015ae4
jmp 0x10015adf
cmp dword [ebp - 4], 0
jne 0x10015b52
test edi, edi
jge 0x10015abe
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.1000a512
test eax, eax
pop ecx
pop ecx
je 0x10015a16
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x1002b1ac], eax
cmp dword [ebp + 0xc], 0
je 0x10015b3b
push dword [ebp + 8]
call fcn.1000a6c0
inc eax
inc eax
push eax
call fcn.10009b8b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10015b3b
push dword [ebp + 8]
push esi
call fcn.10010d20
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x10015b34
or dword [ebp - 8], 0xffffffff
push esi
call fcn.10009b9d
pop ecx
cmp dword [ebp - 4], 0
je 0x10015b4a
push dword [ebp + 8]
call fcn.10009b9d
pop ecx
mov eax, dword [ebp - 8]
jmp 0x10015a19
push esi
call fcn.10009b9d
pop ecx
xor eax, eax
jmp 0x10015a19
Function at 0x10015f2f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10027e7c]
xor eax, dword [ebp + 0x7c]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10015eff
and byte [esi + 0xc], 0
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
call fcn.1000a2f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10015f94
cmp dword [ebp - 0x1c], 5
jb 0x10015fac
jmp 0x10015fa8
cmp dword [ebp - 0x10], 1
jne 0x10015fac
cmp dword [ebp - 0x1c], 4
ja 0x10015fa8
jne 0x10015fac
cmp dword [ebp - 0x18], 0
jbe 0x10015fac
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x100215fc
call fcn.10015eaf
test eax, eax
jge 0x10015fcd
mov byte [0x10028fa4], 1
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
mov eax, esi
pop esi
call fcn.10009c60
add ebp, 0x78
leave
ret

Function at 0x10016c46
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1001df39
call fcn.10009c10
sub esp, 0x25c
mov eax, dword [0x10027e7c]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
jne 0x10016c90
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
xor eax, eax
jmp 0x10016d25
push ebx
call fcn.10017735
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.10016c04
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x10016d17
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x10016d1a
test byte [ebp + 8], 2
jne 0x10016ce5
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp + 8], 4
jne 0x10016d17
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10016d17
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.10007952
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.10009c60
leave
ret 8
Function at 0x100177e3
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.1000a2f0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x1001f510]
je 0x100178ea
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x10017853
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x1001785a
cmp ebx, ebx
jne 0x1001785a
xor eax, eax
jmp 0x100178ed
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x10017867
mov byte [esi + 0x20], bl
jmp 0x1001787b
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.10008051
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.10008051
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.10008051
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x100178d6
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x100178ea
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001b90f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10027e7c]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x1001b961
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x1001b961
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x1001b96d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.10009c60
leave
ret 8

Function at 0x1001c6b4
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x1001c6d1
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x1001c6d1
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x1001c6d3
xor eax, eax
ret 4
Function at 0x1001c824
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1001c858
call fcn.10016071
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x1001c8c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1001c8ee
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x1001c989
cmp dword [esp + 0x14], ebx
je 0x1001c989
jmp 0x1001c92b
push 0x10
call fcn.1001c579
cmp eax, ebx
je 0x1001c904
mov ecx, eax
call fcn.1001c81b
mov esi, eax
jmp 0x1001c906
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1001c942
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x1001c952
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x1001c95e
call fcn.10016071
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.1000a2f0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x404410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [0x44aba4]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x14], eax
call fcn.00421e3b
mov esi, eax
mov dword [esp + 0x1c], edx
call fcn.00421e77
add eax, esi
push eax
call fcn.00421e0c
push 0x103
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.00424670
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
add esp, 0x14
call fcn.00421e19
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call fcn.00421e77
push 0x104
lea edx, [esp + 0x20]
mov edi, eax
push 0
push edx
add edi, esi
call fcn.00424670
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x104
call ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x440d8c
mov edx, ecx
push edx
call ebp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00421f78
add esp, 8
test eax, eax
je 0x404472
pop edi
pop esi
lea eax, [esp + 0x14]
pop ebp
lea edx, [eax + 1]
pop ebx
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4044f0
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
call fcn.004026e0
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004200b3
add esp, 0x114
ret
Function at 0x4045d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43b562
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44aba4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x440e30
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00405e70
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004066e0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x44f250]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x2c]
push 0x21
mov byte [esp + 0x24], 2
call fcn.00405f10
test eax, eax
jne 0x4046d2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4046c1
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x4046d2
push ebx
call fcn.00407a80
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8