joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462c24
Capabilities:
Create thread
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 0
push 0x5f2423
push 0x20150
call fcn.0045e2c4
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x462c51
xor eax, eax
jmp 0x462dd4
push 0x20150
push 0
push ebx
call fcn.0045ea68
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
dec eax
jne 0x462d8f
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x462c9d
push ebx
call fcn.0045e400
pop ecx
xor eax, eax
jmp 0x462dd4
push 0
mov edx, dword [ebx]
push edx
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov dword [ebx], eax
xor edx, edx
mov dword [ebx + 0x1c], edx
xor ecx, ecx
mov dword [ebx + 0x18], ecx
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebx + 0x20], eax
push 0
push 1
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebx + 0x24], eax
lea edi, [ebx + 0x14]
push edi
push 0
push edi
push 0x463128
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [ebx + 0x18], eax
cmp dword [ebx + 0x18], 0
jne 0x462d29
mov eax, dword [ebx + 0x20]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebx + 0x24]
push edx
call sub.KERNEL32.DLL_CloseHandle
push ebx
call fcn.0045e400
pop ecx
push 0x5f2424
call fcn.0045df78
pop ecx
xor eax, eax
jmp 0x462dd4
xor edx, edx
lea ecx, [ebx + 0x34]
mov dword [ebx + 0x28], edx
push esi
push ecx
call fcn.0045e850
add esp, 8
mov eax, dword [ebx + 0x24]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov edx, dword [ebx + 0x20]
push edx
call sub.KERNEL32.DLL_SetEvent
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x24]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
cmp dword [ebx + 0x30], 1
jne 0x462dc8
mov eax, dword [ebx + 0x20]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebx + 0x24]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebx + 0x18]
push ecx
call sub.KERNEL32.DLL_CloseHandle
push ebx
call fcn.0045e400
pop ecx
push 0x5f2456
call fcn.0045df78
pop ecx
xor eax, eax
jmp 0x462dd4
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x462dbb
push ebx
call fcn.0045e400
pop ecx
xor eax, eax
jmp 0x462dd4
push 0
mov edx, dword [ebx]
push edx
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebx + 0x10], eax
xor ecx, ecx
xor eax, eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x462ee8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
test esi, esi
jne 0x462f03
xor eax, eax
jmp 0x462fd5
mov edx, dword [ebx + 0xc]
cmp edx, dword [ebx + 0x10]
jne 0x462f19
mov dword [ebx + 8], 1
xor eax, eax
jmp 0x462fd5
mov edx, esi
imul edx, edi
add edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
cmp edx, ecx
jbe 0x462f33
mov eax, ecx
sub eax, dword [ebx + 0xc]
xor edx, edx
div esi
mov edi, eax
test edi, edi
jne 0x462f45
mov dword [ebx + 8], 1
xor eax, eax
jmp 0x462fd5
cmp dword [ebx + 4], 1
jne 0x462fa6
push 0xffffffffffffffff
mov edx, dword [ebx + 0x24]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebx + 0x28], 2
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x138], ecx
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x13c], eax
mov edx, esi
imul edx, edi
mov dword [ebx + 0x140], edx
mov ecx, dword [ebx + 0x24]
push ecx
call sub.KERNEL32.DLL_ResetEvent
mov eax, dword [ebx + 0x20]
push eax
call sub.KERNEL32.DLL_SetEvent
push 0xffffffffffffffff
mov edx, dword [ebx + 0x24]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov ecx, esi
imul ecx, edi
mov dword [ebp - 4], ecx
mov ecx, 1
jmp 0x462fc0
push 0
lea eax, [ebp - 4]
push eax
mov edx, esi
imul edx, edi
push edx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebx]
push edx
call sub.KERNEL32.DLL_ReadFile
mov ecx, eax
imul edi, esi
add dword [ebx + 0xc], edi
test ecx, ecx
je 0x462fd3
mov eax, dword [ebp - 4]
xor edx, edx
div esi
jmp 0x462fd5
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x46304c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push 0x100
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
jne 0x463076
xor eax, eax
jmp 0x463120
lea edx, [ebp - 0x104]
push edx
call sub.KERNEL32.DLL_lstrlenA
movsx ecx, byte [ebp + eax - 0x105]
cmp ecx, 0x5c
je 0x46309f
mov byte [ebp + eax - 0x104], 0x5c
mov byte [ebp + eax - 0x103], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x5f2478
lea edx, [ebp - 0x104]
push edx
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
jne 0x4630c1
xor eax, eax
jmp 0x463120
push 0
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0x208]
push ecx
call fcn.0057d488
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_DeleteFileA
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x104]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test ebx, ebx
jne 0x46310d
xor eax, eax
jmp 0x463120
test esi, esi
je 0x46311e
lea edx, [ebp - 0x104]
push edx
push esi
call sub.KERNEL32.DLL_lstrcpyA
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476744
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax + 4]
mov dl, byte [eax + 7]
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 5]
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 6]
add edx, ecx
movzx ecx, word [eax]
cmp edx, ecx
je 0x4767a2
xor edx, edx
mov dword [eax + 0x1c], edx
xor edx, edx
jmp 0x47677c
shl dword [eax + 0x1c], 1
or dword [eax + 0x1c], 1
inc edx
movzx ecx, word [eax]
cmp edx, ecx
jl 0x476774
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
not ecx
not edx
and edx, ecx
mov ecx, dword [eax + 0x14]
not ecx
and edx, ecx
mov ecx, dword [eax + 0x18]
not ecx
and edx, ecx
and dword [eax + 0x1c], edx
pop ebp
ret
xor edx, edx
mov dword [eax + 0x1c], edx
pop ebp
ret
Function at 0x577dac
Capabilities:
Log keystrokes via polling

Disassembly:
add esp, 0xfffffeec
cmp dword [0x64cfb8], 1
je 0x577dc4
cmp dword [0x64cfc4], 0
jne 0x577df7
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
xor eax, eax
test byte [esp + 0x15], 0x80
je 0x577dda
or eax, 1
test byte [esp + 0x16], 0x80
je 0x577de4
or eax, 2
test byte [esp + 0x18], 0x80
je 0x577e88
or eax, 4
jmp 0x577e88
mov edx, dword [0x64cfc4]
push esp
push 0x14
push edx
mov ecx, dword [edx]
call dword [ecx + 0x24]
test eax, eax
je 0x577e34
mov eax, dword [0x64cfc4]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jne 0x577e30
mov ecx, dword [0x64cfc4]
push esp
push 0x14
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
je 0x577e34
xor eax, eax
jmp 0x577e88
xor eax, eax
jmp 0x577e88
xor eax, eax
test byte [esp + 0xc], 0x80
je 0x577e40
or eax, 1
test byte [esp + 0xd], 0x80
je 0x577e4a
or eax, 2
test byte [esp + 0xe], 0x80
je 0x577e54
or eax, 4
test byte [esp + 0xf], 0x80
je 0x577e5e
or eax, 8
test byte [esp + 0x10], 0x80
je 0x577e68
or eax, 0x10
test byte [esp + 0x11], 0x80
je 0x577e72
or eax, 0x20
test byte [esp + 0x12], 0x80
je 0x577e7c
or eax, 0x40
test byte [esp + 0x13], 0x80
je 0x577e88
or eax, 0x80
add esp, 0x114
ret
Function at 0x5780e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, 0x64cfb8
push esi
add esp, 0xffffff00
cmp dword [ebx], 1
je 0x578101
cmp dword [ebx + 0x1584], 1
je 0x578101
cmp dword [ebx + 0x10], 0
jne 0x57816e
call sub.WINMM.DLL_timeGetTime
mov esi, eax
cmp esi, dword [ebx + 0x18]
jne 0x578114
xor eax, eax
jmp 0x57824c
mov dword [ebx + 0x18], esi
call fcn.0045ef68
test eax, eax
je 0x578127
xor eax, eax
jmp 0x57824c
push esp
call sub.USER32.DLL_GetKeyboardState
push 0x100
push 0
lea edx, [ebx + 0x1c]
push edx
call fcn.0045ea68
add esp, 0xc
mov eax, 0x5f5ee0
jmp 0x57815f
cmp dx, 0xfffe
je 0x57815c
movzx edx, dx
mov cl, byte [esp + edx]
movzx edx, word [eax + 2]
mov byte [ebx + edx + 0x1c], cl
add eax, 4
mov dx, word [eax]
cmp dx, 0xffff
jne 0x578147
jmp 0x578247
call sub.WINMM.DLL_timeGetTime
mov esi, eax
cmp esi, dword [ebx + 0x18]
jne 0x578190
push 0
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
je 0x578190
xor eax, eax
jmp 0x57824c
call fcn.0045ef68
test eax, eax
je 0x5781a0
xor eax, eax
jmp 0x57824c
cmp dword [ebx + 8], 0
jne 0x5781ad
xor eax, eax
jmp 0x57824c
lea edx, [ebx + 0x1c]
push edx
push 0x100
mov ecx, dword [ebx + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
je 0x5781ee
mov edx, dword [ebx + 0x10]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x1c]
test eax, eax
jne 0x5781ea
lea eax, [ebx + 0x1c]
push eax
push 0x100
mov edx, dword [ebx + 0x10]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x24]
test eax, eax
je 0x5781ee
xor eax, eax
jmp 0x57824c
xor eax, eax
jmp 0x57824c
mov dword [ebx + 0x18], esi
push 0
mov edx, dword [ebx + 0x14]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x578209
mov ecx, dword [ebx + 0x14]
push ecx
call sub.KERNEL32.DLL_ResetEvent
cmp dword [ebx + 0x11c], 0
jne 0x578247
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp eax, dword [0x610ab4]
jne 0x578247
push esp
call sub.USER32.DLL_GetKeyboardState
mov eax, 0x5f5ee0
jmp 0x57823d
movzx edx, dx
mov cl, byte [esp + edx]
movzx edx, word [eax + 2]
mov byte [ebx + edx + 0x1c], cl
add eax, 4
mov dx, word [eax]
cmp dx, 0xfffe
jne 0x57822c
mov eax, 1
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x57b164
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, 0x64e554
cmp dword [ebx + 0xc], 0
jne 0x57b175
or eax, 0xffffffff
pop ebx
ret
call fcn.0057d6b4
push 0
call fcn.0057b264
pop ecx
call fcn.0057da64
push 0x6529d4
call sub.KERNEL32.DLL_DeleteFileA
mov edx, dword [ebx + 0x40]
sub edx, 1
jb 0x57b19d
je 0x57b1a6
jmp 0x57b1f7
mov dword [ebx + 0x38], 0xffffffff
jmp 0x57b1f7
mov eax, dword [ebx + 4]
test eax, eax
je 0x57b1d5
push 0
push 0
push 0
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov ecx, dword [ebx + 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x98]
mov edx, dword [ebx + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
xor eax, eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x57b1e5
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x57b1f7
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 8], ecx
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x57b212
push eax
mov edx, dword [eax]
call dword [edx + 0x48]
mov ecx, dword [ebx + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
xor edx, edx
mov dword [ebx + 0x10], edx
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x57b22d
push eax
mov edx, dword [eax]
call dword [edx + 0x48]
mov ecx, dword [ebx + 0x3c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
xor edx, edx
mov dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x57b23f
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x14], ecx
mov eax, dword [ebx + 0xc]
cmp eax, 1
jbe 0x57b24d
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0xc], ecx
push str.DirectSound
call fcn.0045df78
pop ecx
xor eax, eax
pop ebx
ret
Function at 0x57d6b4
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffcc
cmp dword [0x6525ac], 0
jne 0x57d6ca
or eax, 0xffffffff
jmp 0x57d7d0
lea esi, [esp + 0x18]
mov ax, 0x10
movzx edx, ax
mov word [esi], 1
test edx, edx
mov word [esi + 2], 2
mov dword [esi + 4], 0xac44
mov word [esi + 0xe], ax
jns 0x57d6f2
add edx, 7
movzx ecx, word [esi + 2]
sar edx, 3
lea ebx, [esp + 4]
imul edx, ecx
movzx eax, dx
mov word [esi + 0xc], dx
imul dword [esi + 4]
mov dword [esi + 8], eax
mov word [esi + 0x10], 0
push 4
push 0x5f8857
push ebx
call fcn.0045eac4
add esp, 0xc
add ebx, 4
movzx eax, word [esi + 0xc]
imul dword [0x6525b0]
add eax, 0x26
mov dword [ebx], eax
add ebx, 4
push 4
push 0x5f885c
push ebx
call fcn.0045eac4
add esp, 0xc
add ebx, 4
push 4
push 0x5f8861
push ebx
call fcn.0045eac4
add esp, 0xc
add ebx, 4
mov dword [ebx], 0x12
add ebx, 0x16
push 4
push 0x5f8866
push ebx
call fcn.0045eac4
add esp, 0xc
add ebx, 4
movzx edx, word [esi + 0xc]
imul edx, dword [0x6525b0]
mov dword [ebx], edx
push 0
push 0
push 0
mov ecx, dword [0x6525b4]
push ecx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
push 0x2e
lea edx, [esp + 0x10]
push edx
mov ecx, dword [0x6525b4]
push ecx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x6525b4]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor edx, edx
xor ecx, ecx
mov dword [0x6525b4], edx
mov dword [0x6525ac], ecx
xor eax, eax
add esp, 0x34
pop esi
pop ebx
ret
Function at 0x401f7c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
cmp byte [eax + 0x4129d4], 0
je 0x401fa5
inc eax
cmp eax, 0x1d06
jne 0x401f85
mov eax, dword [0x411dac]
or eax, 0xa4ebec99
mov dword [0x41225c], eax
mov eax, dword [0x41225c]
mov dword [esp + 4], 0x413300
mov dword [esp], 0x4129d4
mov edx, eax
and eax, 0xb4763ea8
xor edx, 0xa99ef25d
mov dword [0x41225c], eax
mov dword [0x411dac], edx
call fcn.0040ceac
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x10], ecx
mov ebx, dword fs:[0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1e
mov dword [esp], 0xffffffff
mov dword [ebp - 0x14], ecx
call fcn.00401c83
test eax, eax
js 0x40201e
cmp dword [ebp - 0x14], 0
jne 0x40208a
xor edx, edx
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f
mov dword [esp], 0xffffffff
call fcn.00401c83
or eax, dword [ebp - 0x10]
je 0x40208a
lea eax, [ebp - 0xc]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [0x410be0]
call dword [eax + 0x3c]
push eax
push eax
cmp byte [ebx + 2], 1
je 0x40208a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402091
mov eax, dword [0x411dac]
sub eax, 0x42a29b54
mov dword [0x411dac], eax
or eax, 0x65d93a6a
mov dword [0x41225c], eax
mov eax, 0x2500
jmp 0x4020db
cmp byte [eax + str.file_too_large], 0
je 0x4020b1
inc eax
cmp eax, 0x1cf1
jne 0x402091
mov eax, dword [0x411dac]
xor eax, 0xe18df8d6
mov dword [0x41225c], eax
mov eax, dword [0x41225c]
mov dword [esp + 4], str.onecoreinternal_sdkincwilStaging.h
mov dword [esp], 0x413440
sub eax, 0x29064bf9
or eax, 0xa3cfa85
mov dword [0x411dac], eax
call fcn.0040f4bc
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40aaf8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x13c
mov edx, 0x414778
mov ecx, 0x8cd
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x40ab39
add ecx, eax
cmp ecx, 0xe5c
jbe 0x40ab10
mov eax, dword [0x4121c0]
or eax, 0x2d0b99ef
mov dword [0x411df0], eax
call fcn.0040dc04
mov esi, dword [0x411df0]
mov byte [ebp + ebx - 0x118], bl
inc ebx
imul eax, esi, 0x49ed0d11
add eax, 0x2c00606c
mov dword [0x412248], eax
imul eax, esi, 0xee3fa73c
mov dword [0x4121c0], eax
cmp ebx, 0x100
jne 0x40ab06
mov eax, dword [0x412154]
xor edi, edi
mov dword [ebp - 0x11c], eax
add eax, 0x23371bed
mov dword [0x412154], eax
call fcn.0040dc04
mov dword [ebp - 0x120], esi
xor ecx, ecx
mov eax, dword [ebp - 0x120]
xor edx, edx
mov bl, byte [ebp + ecx - 0x118]
and dword [ebp - 0x120], 0xf986182a
mov dword [ebp - 0x124], eax
mov eax, ecx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx]
movzx edx, bl
add eax, edx
add eax, edi
movzx edi, al
mov dl, byte [ebp + edi - 0x118]
mov byte [ebp + ecx - 0x118], dl
inc ecx
mov byte [ebp + edi - 0x118], bl
cmp ecx, 0x100
jne 0x40ab8e
mov eax, dword [ebp - 0x11c]
mov byte [ebp - 0x19], dl
imul esi, esi, 0x11577a60
mov edx, dword [ebp - 0x124]
mov dword [esp + 0x10], 0x412744
add eax, 0x5a00e464
mov dword [esp + 0xc], 0x41318c
mov dword [esp], eax
and edx, 0x38860022
mov dword [esp + 8], 0x414778
mov dword [esp + 4], 0x4148cc
mov dword [0x411df0], edx
xor edx, 0xd713dd30
mov byte [ebp + edi - 0x118], bl
xor ebx, ebx
mov dword [0x412164], eax
mov dword [0x4121c0], esi
xor esi, esi
mov dword [ebp - 0x11c], edx
mov dword [0x412248], edx
call fcn.0040e1a0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add eax, edi
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], edi
je 0x40ad01
inc ebx
movzx ebx, bl
mov al, byte [ebp + ebx - 0x118]
lea edx, [eax + esi]
mov byte [ebp - 0x120], al
mov eax, dword [0x412154]
movzx esi, dl
lea ecx, [eax + 0x796bf0b7]
add eax, 0x7fd528be
mov dword [0x412154], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], eax
mov dword [0x411df0], ecx
call fcn.0040d74c
mov al, byte [ebp + esi - 0x118]
mov byte [ebp + ebx - 0x118], al
mov al, byte [ebp - 0x120]
mov byte [ebp + esi - 0x118], al
add al, byte [ebp + ebx - 0x118]
movzx eax, al
mov cl, byte [ebp + eax - 0x118]
mov eax, dword [0x4121c0]
xor byte [edi], cl
inc edi
sub eax, 0x79da3a8d
or eax, 0xef9b4175
mov dword [0x4121c0], eax
jmp 0x40ac65
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001290
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.10001350
mov eax, dword [0x100087b0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x100012b4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100087ac], 1
mov byte [0x100087a8], bl
jne 0x1000130e
mov ecx, dword [0x10009cc8]
test ecx, ecx
je 0x100012fc
mov esi, dword [0x10009cc4]
sub esi, 4
cmp esi, ecx
jb 0x100012fc
mov eax, dword [esi]
test eax, eax
je 0x100012f5
call eax
mov ecx, dword [0x10009cc8]
sub esi, 4
cmp esi, ecx
jae 0x100012e7
push 0x1000601c
push 0x10006014
call fcn.10001370
add esp, 8
push 0x10006024
push 0x10006020
call fcn.10001370
add esp, 8
test ebx, ebx
je 0x1000132d
call fcn.10001360
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x100087b0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10006040]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x100014ae
push 0x74
push 1
call fcn.100026c0
mov esi, eax
add esp, 8
test esi, esi
je 0x100014a4
mov ecx, dword [0x10006040]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x100014a4
push esi
call fcn.10001420
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.100011f0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x100022b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x10006170
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x100022d4
add eax, 8
inc ebp
cmp eax, 0x10006200
jb 0x100022c5
cmp ecx, dword [ebp*8 + 0x10006170]
jne 0x1000247b
mov eax, dword [0x10008768]
cmp eax, 1
je 0x1000243d
test eax, eax
jne 0x10002300
cmp dword [0x1000876c], 1
je 0x1000243d
cmp ecx, 0xfc
je 0x1000247b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000233b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10002384
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x10005394
add ebx, ecx
push ebx
call fcn.10003400
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10005374
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x10006174]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10003370
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x10009bc0]
test eax, eax
je 0x1000244e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x10002458
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x10006174]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret