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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x402f00
mov dword [esp], esi
mov eax, 0x409440
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x402f00
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0xe], 0
mov ecx, 0x409442
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x402fac
mov dword [esp], esi
mov edi, 0x409445
mov dword [esp + 4], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x402fa4
test byte [ebx + 0xc], 0x10
jne 0x402f98
lea esi, [ebp - 0xd]
mov dword [ebp - 0x14], esi
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0xc], ebx
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], edi
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x14], esi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test byte [ebx + 0xc], 0x10
je 0x402f50
mov byte [ebp - 0xe], 1
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
movzx eax, byte [ebp - 0xe]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402fc0
Capabilities:
Query environment variable
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov dword [esp], str.SYSTEMROOT
mov dword [ebp - 0xc], ebx
lea ebx, [ebp - 0x1a8]
mov dword [ebp - 8], esi
lea esi, [ebp - 0xa8]
mov dword [ebp - 4], edi
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov edx, str._s_notepad.exe
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x40308f
mov dword [esp], ebx
xor edi, edi
xor eax, eax
mov dword [esp + 8], edi
lea edi, [ebp - 0x1b0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetFileTime
sub esp, 0x10
mov dword [esp], ebx
mov ebx, 2
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp + 8]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], ecx
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x40308f
mov dword [esp + 4], edi
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov edx, 0x409442
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x403202
mov dword [esp], ebx
xor esi, esi
mov edi, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], eax
mov edi, eax
call fcn.00404140
mov dword [esp], ebx
xor ecx, ecx
mov esi, eax
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_fseek
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], edi
jge 0x403190
test byte [ebx + 0xc], 0x10
jne 0x403190
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, 1
mov dword [esp + 4], eax
lea ecx, [esi + edx]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x403154
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
xor ecx, ecx
jmp 0x4031bc
xor edx, edx
cmp ebx, dword [ebp + 0x14]
setl dl
neg edx
and edx, ebx
mov ebx, dword [ebp + 0x10]
movzx eax, byte [edx + ebx]
lea ebx, [edx + 1]
neg al
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x4031a0
mov ecx, dword [ebp + 0xc]
mov edx, 0x409445
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x403202
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x405740
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x405776
mov dword [0x40e050], eax
mov edx, 0x405720
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00405e10
test eax, eax
sete al
movzx eax, al
mov dword [0x4080d0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x4080d0], eax
leave
ret
Function at 0x405860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x403940
mov dword [ebp - 0x24], 0x407794
mov dword [ebp - 0x1c], 0x405920
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.00406380
cmp dword [0x4080d0], 0
mov dword [ebp - 0x44], 0x40e060
je 0x405900
jl 0x405940
mov dword [ebp - 0x3c], 1
mov eax, dword [0x40e050]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4059e3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00406460
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x40e090]
mov eax, 0xffffffff
test edx, edx
je 0x40595a
mov eax, dword [0x4080d4]
test eax, eax
je 0x40599a
xor eax, eax
test eax, eax
jne 0x405990
mov edi, dword [0x4080d0]
test edi, edi
js 0x405990
mov dword [ebp - 0x44], 0x40e060
mov ebx, dword [0x4080d0]
test ebx, ebx
je 0x405900
jmp 0x4058ae
xor esi, esi
mov dword [0x4080d0], esi
jmp 0x405968
mov dword [esp], 0x4080d8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x405a21
mov eax, dword [0x4080d4]
test eax, eax
jne 0x405958
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x4080d4]
test eax, eax
je 0x4059bd
jmp 0x405958
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x405a15
mov dword [esp + 4], eax
mov eax, dword [0x40e050]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x405a4a
test edx, edx
je 0x405a35
mov dword [ebp - 0x3c], 1
call fcn.004052c0
call fcn.00405740
mov eax, 1
mov dword [0x4080d4], eax
jmp 0x405958
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4058f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x405a11
Function at 0x405cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00406dd0
call fcn.00405f10
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x405ce8
jmp 0x405d86
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x405ce7
cmp cl, 0x22
je 0x405d40
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x405d60
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x405d60
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x405d20
jmp 0x405d60
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x405d40
cmp cl, 0x22
je 0x405dc2
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x405d80
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x405d70
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x405da4
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.00402530
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x405d60

Function at 0x406270
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x40e0f0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4062b0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.00405e10
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 0x406660
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 [0x40e0f0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40673c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x406751
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x406710
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4066a8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x4066b8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x406703
test edx, edx
jne 0x4066f6
test ecx, ecx
je 0x4066a0
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 0x406760
cmp eax, 8
je 0x4066a0
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 0x406692
call fcn.00406030
mov eax, dword [0x40e0f0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x406684
call fcn.004062d0
mov eax, dword [0x40e0f0]
jmp 0x406684
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.004065d0
cmp eax, 7
jne 0x4066fb
mov eax, dword [0x40e0f0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4067b3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x4067de
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4067bf
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.00406030
mov eax, dword [0x40e0f0]
jmp 0x406791
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 0x4067a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4067a2
call fcn.004062d0
mov eax, dword [0x40e0f0]
jmp 0x406798
Function at 0x406a40
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, 0x1c
mov eax, dword [0x40e0f0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x406ad4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x406af0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x406b10
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x406ac8
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004065d0
cmp eax, 7
jne 0x406b8f
mov eax, dword [0x40e0f0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x406b66
mov edx, dword [eax + 0x30]
test edx, edx
js 0x406b80
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x406b40
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
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004067f0
jmp 0x406a85
call fcn.00406030
mov eax, dword [0x40e0f0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x406a60
lea esi, [esi]
call fcn.004062d0
mov eax, dword [0x40e0f0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x406a6b
lea esi, [esi]
lea edi, [edi]
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 0x406a6e
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 0x406ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406ab7
call fcn.00406030
mov eax, dword [0x40e0f0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x406aa9
nop
lea esi, [esi]
call fcn.004062d0
mov eax, dword [0x40e0f0]
jmp 0x406aa9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x406ba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x406c32
mov eax, dword [0x40e0f0]
test eax, eax
je 0x406c26
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x406ca1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x406c47
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004067f0
cmp eax, 7
jne 0x406cbf
mov eax, dword [0x40e0f0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x406c92
mov edx, dword [eax + 0x30]
test edx, edx
js 0x406cb0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x406c73
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.00406030
mov eax, dword [0x40e0f0]
jmp 0x406bc2
mov dword [esp], edi
call fcn.00406660
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
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 0x406bd7
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 0x406c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406c15
call fcn.00406030
mov eax, dword [0x40e0f0]
jmp 0x406c00
call fcn.004062d0
mov eax, dword [0x40e0f0]
jmp 0x406bcd
call fcn.004062d0
mov eax, dword [0x40e0f0]
jmp 0x406c0b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x14f81270
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x14f81334
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x14fa126c], eax
call fcn.14f82440
test eax, eax
jne 0x14f81294
ret 0xc
mov ecx, dword [0x14fa126c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x14fa1278], edx
mov dword [0x14fa1274], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x14fa1270], eax
mov dword [0x14fa126c], ecx
call fcn.14f815e0
test eax, eax
jne 0x14f812d6
call fcn.14f82480
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x14ff8950], eax
call fcn.14f822e0
mov ecx, dword [0x14ff8950]
mov dword [0x14fa1258], eax
test ecx, ecx
je 0x14f81325
test eax, eax
je 0x14f81325
call fcn.15000cf2
call fcn.14f822d0
call fcn.14f81b20
call fcn.14f81a30
call fcn.14f81480
mov eax, dword [0x14fa1254]
inc eax
mov dword [0x14fa1254], eax
mov eax, 1
ret 0xc
call fcn.14f81640
call fcn.14f82480
xor eax, eax
ret 0xc
test eax, eax
jne 0x14f81374
mov eax, dword [0x14fa1254]
test eax, eax
jle 0x14f8136f
mov ecx, eax
mov eax, dword [0x14fa12a4]
dec ecx
test eax, eax
mov dword [0x14fa1254], ecx
jne 0x14f81358
call fcn.14f814d0
call fcn.14f819d0
call fcn.14f81640
call fcn.14f82480
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x14f81383
push 0
call fcn.14f81710
add esp, 4
mov eax, 1
ret 0xc

Function at 0x14f814e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.14f815a0
mov eax, dword [0x14fa12a8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x14f81504
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 [0x14fa12a4], 1
mov byte [0x14fa12a0], bl
jne 0x14f8155e
mov ecx, dword [0x14ff8948]
test ecx, ecx
je 0x14f8154c
mov esi, dword [0x14ff8944]
sub esi, 4
cmp esi, ecx
jb 0x14f8154c
mov eax, dword [esi]
test eax, eax
je 0x14f81545
call eax
mov ecx, dword [0x14ff8948]
sub esi, 4
cmp esi, ecx
jae 0x14f81537
push 0x14f8901c
push 0x14f89014
call fcn.14f815c0
add esp, 8
push 0x14f89024
push 0x14f89020
call fcn.14f815c0
add esp, 8
test ebx, ebx
je 0x14f8157d
call fcn.14f815b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x14fa12a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14f815e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.14f826e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x14f8a884], eax
je 0x14f81638
push 0x74
push 1
call fcn.14f82910
mov esi, eax
add esp, 8
test esi, esi
je 0x14f81638
mov eax, dword [0x14f8a884]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14f81638
push esi
call fcn.14f81670
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x14ffb22c
Capabilities:
Encode data using xor

Disassembly:
call 0x14ffb1a5
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x14ffb1d5
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x14ffb1f1
xor edx, 0
jmp 0x14ffb1fc
xor edx, edx
jmp 0x14ffb213
jmp 0x14ffb21f
xor eax, eax
push 0x8427d7c0
call 0x14ffb22c
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x14ffb268
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x14ffb241
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x14ffb27f
add eax, 0
jno 0x14ffb284
add esi, 0
ret 0x10

Function at 0x14ffbfed
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x14ffc00f
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x14ffc1b1
cmp edi, dword [ebp + 0x10]
jb 0x14ffc1b1
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.14ffbad9
inc edi
jmp 0x14ffc098
jmp 0x14ffc0a5
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.14ffbad9
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.14ffbad9
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x14ffc0f9
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x14ffc0dd
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.14ffc127
add dword [eax], 0x39
jle 0x14ffc103
sub al, 0xf5
mov ch, al
call fcn.14ffc13c
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10