joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ced4c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4cedee
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4cedc1
mov edx, ebx
mov eax, dword [0x4923a0]
call fcn.00496720
test al, al
je 0x4cedb1
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00496630
call fcn.00474490
jmp 0x4cedf5
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4ced7c
mov ecx, dword [0x50304c]
mov dl, 1
mov eax, dword [0x4611c0]
call fcn.0046643c
call fcn.004743e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cedf5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cedfc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4cee54
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cee5b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4cee64
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4ceeb9
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ceec0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4cef30
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4cefa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004cec08
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004966f4
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4cef8f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cefac
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4cefb4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4cf029
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004cec08
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4cf013
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf030
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4d8620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4d8682
call fcn.004d85d0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004d3590
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004d3590
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d8700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x500688], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4d87da
cmp dword [0x500684], 0
jne 0x4d87da
cmp dword [0x500868], 0
je 0x4d8794
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004d84d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d877a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004d84d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d877a
lea ebx, [ebp - 0x84]
jmp 0x4d877b
inc ebx
call fcn.004d86bc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4d8815
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x50068c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004d3590
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x50068f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4d8815
cmp dword [0x500684], 0
je 0x4d87f4
cmp dword [0x500684], 0xffffffff
je 0x4d8815
push esi
call dword [0x500684]
pop ecx
mov eax, dword [0x500688]
test eax, eax
je 0x4d8815
cmp dword [0x500688], 0xffffffff
je 0x4d8815
cmp byte [eax], 0
je 0x4d8815
push esi
push eax
call fcn.004d8620
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d8fac
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x50496c], 0
jne 0x4d902d
cmp dword [0x50498c], 0
jne 0x4d8fdc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x50498c], eax
test eax, eax
jne 0x4d8fdc
push str.GetEnvironmentStrings_failed
call fcn.004d882c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x50498c]
jmp 0x4d8ff0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004d3590
pop ecx
mov edi, eax
test eax, eax
jne 0x4d8fe8
lea edi, [ebp + 1]
push edi
call fcn.004d2e94
pop ecx
mov ebx, eax
mov dword [0x504970], ebx
test ebx, ebx
jne 0x4d901a
xor eax, eax
jmp 0x4d90f0
push edi
mov edx, dword [0x50498c]
push edx
push ebx
call fcn.004d3440
add esp, 0xc
jmp 0x4d904d
xor esi, esi
mov ebx, dword [0x50496c]
jmp 0x4d9047
push eax
call fcn.004d3590
pop ecx
test eax, eax
jne 0x4d9043
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4d9037
lea ebx, [esi + 4]
push 4
mov dword [0x504974], ebx
inc ebx
push ebx
call fcn.004d27b0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4d9070
xor eax, eax
jmp 0x4d90f0
cmp dword [0x50496c], 0
jne 0x4d90a1
xor esi, esi
mov ebx, dword [0x504970]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4d9092
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004d3590
pop ecx
mov edi, eax
test eax, eax
jne 0x4d9088
jmp 0x4d90d2
xor esi, esi
mov ebx, dword [0x50496c]
mov eax, dword [esp]
mov edi, eax
jmp 0x4d90cc
push eax
call fcn.004d3590
pop ecx
test eax, eax
je 0x4d90c1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4d90c5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4d90b0
mov eax, dword [0x50496c]
test eax, eax
je 0x4d90e2
push eax
call fcn.004d2ea4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x50496c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4dfa88
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4dfab6
mov eax, ebx
call fcn.004e0540
cmp dword [ebx + 0x3c], 0
je 0x4dfaaf
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4dfb27
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4dfb19
cmp dword [ebx + 8], 0
je 0x4dfad8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4dfaea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4dfb19
cmp dword [ebx + 8], 0
je 0x4dfacb
cmp eax, 3
je 0x4dfafd
dec eax
jne 0x4dfacb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4dfacb
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4dfacb
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4dfb45
cmp dword [ebx + 0x10], 0xcc
je 0x4dfb45
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004dfb50
pop ebx
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4012e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp], 0x105
call fcn.004056e0
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp], 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
sub esp, 8
test eax, eax
je 0x401313
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, str.ERROR:_GetCurrentDirectory___failed__n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
nop
lea esi, [esi]

Function at 0x401770
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ecx, 0x14
mov ebp, esp
cld
sub esp, 0x28
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, ebx
mov byte [ebp - 0xd], al
mov edi, 0x411066
repe cmpsb byte [esi], byte es:[edi]
je 0x4018a5
cld
mov edi, 0x41107a
mov ecx, 0x18
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x401850
cld
mov edi, 0x411094
mov ecx, 0x27
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4018c0
cld
mov edi, 0x4110bb
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4018c7
cld
mov edi, 0x4110cb
mov ecx, 0xf
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4018b0
mov dword [esp], str.SOPC_KIT_NIOS2_OVERRIDE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x401860
call fcn.00401930
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
add eax, 0xa
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp], eax
mov edi, eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [edi + eax], 0x6f696e2f
mov edx, 0x64653273
mov dword [edi + eax + 4], edx
mov word [edi + eax + 8], 0x73
mov eax, edi
jmp 0x401860
call fcn.004012e0
lea esi, [esi]
lea edi, [edi]
cmp byte [ebp - 0xd], 0
je 0x401898
test eax, eax
je 0x40186f
cmp byte [eax], 0
jne 0x401898
mov dword [esp + 8], ebx
mov eax, str.ERROR:__s___Undefined_variable_n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.00401340
jmp 0x401860
mov dword [esp], ebx
call sub.msvcrt.dll_getenv
jmp 0x401860
call fcn.004043c0
jmp 0x401860
mov dword [esp], str.QUARTUS_ROOTDIR_OVERRIDE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x401860
call fcn.00401930
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
add eax, 0xa
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp], eax
mov edi, eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [edi + eax], 0x6175712f
mov ecx, 0x73757472
mov dword [edi + eax + 4], ecx
mov byte [edi + eax + 8], 0
mov eax, edi
jmp 0x401860
Function at 0x4024d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x228]
push ebx
sub esp, 0x23c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [esp + 4], esi
mov dword [esp], 0x200
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
cmp eax, 0x200
seta dl
test eax, eax
sete al
or dl, al
jne 0x402592
mov dword [esp], esi
xor eax, eax
lea ebx, [edi + 0xf]
mov dword [esp + 8], eax
mov eax, 0x411260
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetTempFileNameA
sub esp, 0x10
test eax, eax
je 0x4025b6
mov dword [esp], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, 0x80
mov edx, 0xc0000000
mov dword [esp + 0x14], eax
mov esi, 2
lea eax, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sub.KERNEL32.dll_CreateFileA
mov edx, dword [ebp + 0xc]
sub esp, 0x1c
mov dword [edx], eax
inc eax
je 0x4025c6
mov byte [edi + 0xe], 1
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, str.GetTempPath_failed_with_error__d._n
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xffffffff
jmp 0x40258a
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, str.GetTempFileName_failed_with_error__d._n
jmp 0x4025a0
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, str.CreateFile_failed_with_error__d._n
jmp 0x4025a0

Function at 0x4025e0
Capabilities:
Delete file

Disassembly:
push ebp
mov eax, 0xffffffff
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xe], 0
je 0x402609
lea eax, [ebx + 0xf]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
mov byte [ebx + 0xe], 0
sub esp, 4
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp byte [ebx + 0xe], 0
jne 0x40262f
mov byte [ebx + 0x20f], 0
mov eax, 0x80
xor edx, edx
lea edi, [ebx + 0xf]
mov dword [esp + 0x14], eax
mov eax, 3
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x80000000
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov esi, eax
je 0x402720
mov dword [ebp - 0x10], 0
xor edi, edi
lea eax, [ebp - 0x10]
mov byte [ebx + 0x20f], 0
mov ecx, 0xfff
mov dword [esp + 0x10], edi
lea edi, [ebx + 0x20f]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 0x10]
sub esp, 0x14
test eax, eax
jne 0x4026e4
xor ecx, ecx
cmp byte [ebx + 0x120f], 0
mov byte [eax + ebx + 0x20f], cl
jne 0x402700
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [eax + ebx + 0x20e], 0xa
jne 0x4026b8
xor edx, edx
cmp byte [ebx + 0x120f], 0
mov byte [eax + ebx + 0x20e], dl
je 0x4026ca
mov dword [esp + 8], edi
mov edx, 0x4112d2
mov dword [esp + 4], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4026ca
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0xc], eax
mov eax, str.Could_not_open_tmp_file__s__error__d__n
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x68]
push edi
mov edi, 0x44
push esi
push ebx
sub esp, 0xac
xor ebx, ebx
mov dword [esp + 8], edi
mov esi, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memset
cmp byte [esi + 0x1211], 0
mov dword [ebp - 0x68], 0x44
je 0x4027c3
or dword [ebp - 0x3c], 1
mov word [ebp - 0x38], 0
cld
xor eax, eax
mov byte [ebp - 0x7d], 0
lea ebx, [ebp - 0x78]
cmp byte [esi + 0xd], 0
mov ecx, 4
mov edi, ebx
rep stosd dword es:[edi], eax
je 0x40282b
mov dword [esp], esi
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
call fcn.004024d0
test eax, eax
mov edx, 0xffffffff
sete byte [ebp - 0x7d]
cmp byte [ebp - 0x7d], 0
je 0x40288e
mov dword [esp], 0xfffffff6
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebp - 0x30], eax
sub esp, 4
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
or dword [ebp - 0x3c], 0x100
sub esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
mov eax, dword [edx]
lea edx, [ebp - 0x68]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x24], ebx
mov ebx, 1
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40290b
cmp byte [esi + 0x1210], 0
jne 0x402898
cmp byte [ebp - 0x7d], 0
jne 0x4028e0
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
inc eax
je 0x40290b
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
cmp byte [ebp - 0x7d], 0
jne 0x4028ea
mov edx, dword [ebp - 0x7c]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.004025e0
jmp 0x40288c
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
cmp byte [esi + 0xd], 0
jne 0x402933
mov dword [esp], esi
call fcn.004025e0
mov edx, dword [ebp - 0x7c]
jmp 0x4028d0
cmp byte [esi + 0xc], 0
jne 0x40293d
cmp byte [ebp - 0x7d], 0
jne 0x402921
mov edx, 0xffffffff
jmp 0x40288e
mov dword [esp], esi
call fcn.004025e0
mov edx, 0xffffffff
jmp 0x40288e
mov dword [esp], esi
call fcn.00402610
jmp 0x4028fe
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov eax, str.Error___failed_to_launch__s._n
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x402911
Function at 0x409490
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x416130]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4094d0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040a7b0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x416130]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40995c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x409971
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x409930
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4098c8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x4098d8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x409923
test edx, edx
jne 0x409916
test ecx, ecx
je 0x4098c0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x409980
cmp eax, 8
je 0x4098c0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4098b2
call fcn.0040a0d0
mov eax, dword [0x416130]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x4098a4
call fcn.004094f0
mov eax, dword [0x416130]
jmp 0x4098a4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004097f0
cmp eax, 7
jne 0x40991b
mov eax, dword [0x416130]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4099d3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x4099fe
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4099df
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040a0d0
mov eax, dword [0x416130]
jmp 0x4099b1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4099c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4099c2
call fcn.004094f0
mov eax, dword [0x416130]
jmp 0x4099b8