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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x425db1
push esi
call fcn.00424f60
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x425e25
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x425e12
dec ecx
je 0x425dfd
sub ecx, 2
je 0x425dea
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x425e6a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x425e8b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x425eb0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x425ed7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00425d90
mov dword [esp + 4], eax
jmp 0x425ef1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x425efd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x425f19
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x425f29
mov esi, 2
jmp 0x425f45
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x425f38
mov esi, 3
jmp 0x425f45
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x425fa2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x425f74
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00425d90
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x426fc4
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
add ebp, 0x10
mov dword [esp + 0x10], 5
mov esi, dword [ebp - 8]
mov ecx, esi
mov edx, dword [ebp - 4]
not ecx
and ecx, dword [ebp]
mov eax, edx
mov ebx, dword [ebp - 0x10]
not eax
and eax, dword [ebp + 4]
xor ecx, ebx
mov edi, dword [ebp - 0xc]
xor eax, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp]
mov dword [ebp - 0xc], eax
not ecx
and ecx, dword [ebp + 8]
mov eax, dword [ebp + 4]
xor ecx, esi
not eax
mov dword [ebp - 8], ecx
and eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, edx
mov dword [ebp - 4], eax
not ecx
mov eax, dword [ebp + 0xc]
and ecx, dword [ebp + 0x10]
not eax
and eax, dword [ebp + 0x14]
xor dword [ebp], ecx
lea ebp, [ebp + 0x28]
xor dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
not ecx
and ecx, ebx
not eax
xor dword [ebp - 0x20], ecx
and eax, edi
xor dword [ebp - 0x1c], eax
not ebx
not edi
and ebx, esi
xor dword [ebp - 0x18], ebx
and edi, edx
xor dword [ebp - 0x14], edi
dec dword [esp + 0x10]
jne 0x426fd8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4271f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x50
push ebx
push ebp
push esi
xor esi, esi
add edx, 0x78
push edi
mov ecx, dword [edx - 0x78]
xor ecx, dword [edx - 0x50]
mov eax, dword [edx - 0x74]
xor eax, dword [edx - 0x4c]
xor ecx, dword [edx - 0x28]
xor eax, dword [edx - 0x24]
xor ecx, dword [edx + 0x28]
xor eax, dword [edx + 0x2c]
xor ecx, dword [edx]
lea edx, [edx + 8]
xor eax, dword [edx - 4]
mov dword [esp + esi*8 + 0x10], ecx
mov dword [esp + esi*8 + 0x14], eax
inc esi
cmp esi, 5
jb 0x427200
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
shld ecx, eax, 1
mov edi, dword [esp + 0x14]
xor edx, ecx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
add eax, eax
shr esi, 0x1f
xor edx, ebp
xor esi, eax
mov dword [esp + 0x3c], edx
xor esi, dword [esp + 0x30]
xor edx, edx
mov eax, dword [esp + 0x20]
shld ecx, eax, 1
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [esp + 0x2c]
add eax, eax
xor edx, edi
shr esi, 0x1f
xor esi, eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x28]
xor edx, edx
shld ecx, eax, 1
xor esi, ebx
xor edx, ecx
mov dword [esp + 0x40], esi
xor edx, dword [esp + 0x1c]
add eax, eax
mov esi, dword [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x30]
shld ebp, edx, 1
shr ecx, 0x1f
add edx, edx
shr esi, 0x1f
xor ecx, edx
xor esi, eax
xor ecx, dword [esp + 0x20]
xor eax, eax
xor esi, dword [esp + 0x18]
xor eax, ebp
xor eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], ecx
add edx, 0x50
mov ecx, edi
mov dword [esp + 0x54], eax
shld edi, ebx, 1
shr ecx, 0x1f
xor eax, eax
add ebx, ebx
mov dword [esp + 0x48], esi
xor ecx, ebx
xor eax, edi
xor ecx, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + ebx*8 + 0x38]
mov ecx, dword [esp + ebx*8 + 0x3c]
xor dword [edx - 0x50], eax
xor dword [edx - 0x4c], ecx
xor dword [edx - 0x28], eax
xor dword [edx - 0x24], ecx
xor dword [edx], eax
lea edx, [edx + 8]
xor dword [edx - 4], ecx
xor dword [edx + 0x20], eax
xor dword [edx + 0x24], ecx
xor dword [edx + 0x48], eax
xor dword [edx + 0x4c], ecx
inc ebx
cmp ebx, 5
jb 0x427304
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x427990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push dword [esp + 0x24]
xor edi, edi
mov esi, 0x100000
mov dword [esp + 0x14], edi
xor ebx, ebx
call fcn.00427af0
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x427acd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x427acd
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x427acd
push esi
push ebx
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x427ac3
mov eax, dword [ebp + 4]
push ebx
push dword [esp + 0x2c]
call eax
mov ebx, eax
test ebx, ebx
je 0x427ab1
cmp dword [esp + 0x30], edi
jl 0x427a3b
mov eax, dword [esp + 0x2c]
jg 0x427a29
test eax, eax
je 0x427a3b
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add edi, 0x100000
mov eax, ebp
adc ecx, 0
and eax, edx
mov dword [esp + 0x10], ecx
cmp eax, 0xffffffff
je 0x427a71
cmp ecx, edx
jl 0x427a71
jg 0x427a67
cmp edi, ebp
jbe 0x427a71
mov esi, ebp
sub esi, edi
add esi, 0x100000
push 0
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x28]
push ebx
mov eax, dword [eax + 8]
call eax
cmp dword [esp + 0x14], 0x100000
mov edx, dword [esp + 0x38]
je 0x427a43
mov ebp, dword [esp + 0x18]
push ebx
mov eax, dword [ebp + 0xc]
call eax
push dword [esp + 0x24]
push 0
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x3c]
push ebx
call fcn.00427ba0
test ebx, ebx
je 0x427ae1
mov eax, dword [ebp + 0x10]
push ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x20

Function at 0x4280ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x428170
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x428168
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428159
cmp dword [esp + 0x18], ebx
jne 0x428159
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00427fa6
mov ebp, eax
push edi
push 0
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x4293d5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x4a4de0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ff504], eax
test eax, eax
je 0x429403
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ff500], eax
lea eax, [ebp - 0x114]
mov dword [0x4ff508], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x429465
cmp dword [ebp - 0x104], 1
jne 0x42943a
and dword [0x4ff508], 0
jmp 0x42947d
cmp dword [ebp - 0x104], 2
jne 0x429465
cmp dword [ebp - 0x110], 5
jb 0x429431
jne 0x429465
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x4ff508]
mov dword [0x4ff508], eax
jmp 0x42946a
mov eax, dword [0x4ff508]
test eax, eax
je 0x42947d
call fcn.00428e18
neg eax
sbb eax, eax
and dword [0x4ff508], eax
mov esp, ebp
pop ebp
ret

Function at 0x42a4e0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x42a512
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a50d
cmp dword [esp + 0xc], esi
je 0x42a529
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

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

Disassembly:
push edi
push dword [0x4ff5a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x42df42
push esi
push dword [0x4ff5a4]
push 8
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4ff5a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4ff5a0]
jmp 0x42df32
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x42df30
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x42df20
push edi
push 0x42de7f
call fcn.00419a24
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x42df4c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x42df62
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4ff5a4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42df99
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x4fdca4]
mov dword [0x4ff5a8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4ff5a8]
call ebx
mov eax, dword [0x4ff5a4]
mov edi, eax
add eax, esi
push eax
push dword [0x4ff5a8]
mov dword [0x4ff5a4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4fdca4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4ff5a8]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x42dfd9
test ebx, ebx
je 0x42dffa
push 0x14
push 0x4ff5a0
call fcn.0042e84e
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x42dffa
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x42e990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x42e9d6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x4ffb50]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x42e9f7
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4ffb50]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0042ee60
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x42ea20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x42eb20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x42ece0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42ed04
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x42ed52
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x4ffb50]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x42edb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42ede0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x42ee1e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x42ee1e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x42ee20
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42eeb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x42f240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ecc00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x445b70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x445c05
mov ecx, dword [esi]
xor eax, eax
push ebx
push ebp
push edi
mov byte [ecx + 0x16], al
xor edi, edi
mov ecx, dword [esi]
mov byte [ecx + 0x17], al
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x445bbb
mov ebp, dword [esi]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4a51f0]
cmp edi, ebx
jl 0x445ba1
mov ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x445be1
mov ebp, dword [esi + 8]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4a51f0]
cmp edi, ebx
jl 0x445bc7
mov ecx, dword [esi]
mov edx, eax
shr edx, 8
pop edi
pop ebp
mov byte [ecx + 0x16], al
mov ecx, dword [esi]
pop ebx
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
pop esi
ret

Function at 0x44e610
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44e630
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44e630
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44e630
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45ef90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x45efbf
push esi
call fcn.0045f170
add esp, 4
cmp byte [esi + 0x40], 0
je 0x45efb8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x45f042
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x45f02d
mov eax, dword [esi + 8]
test eax, eax
je 0x45efe5
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x45f028
cmp eax, 2
je 0x45f02d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45efd6
cmp eax, 3
je 0x45f00d
cmp eax, 1
jne 0x45efd6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x45efd6
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x45efd6
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0045f070
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x45f064
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0045f070
add esp, 4
pop edi
pop esi
ret
Function at 0x45f070
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x45f09c
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x45f122
lea ebx, [esi + 0x78]
jmp 0x45f0b0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x45f0f6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45f0d5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x45f138
cmp eax, dword [esi + 0x60]
jb 0x45f0b7
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
jne 0x45f0b0
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x460140
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.0046b960
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.0046b940
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460187
push edi
call fcn.0046b970
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0045fdd0
mov dword [esi + 4], fcn.0045fc60
mov dword [esi + 8], fcn.0045fd30
mov dword [esi + 0xc], fcn.0045fbb0
mov dword [esi + 0x10], 0x4604a0
mov dword [esi + 0x14], 0x460430
mov dword [esi + 0x18], 0x460290
mov dword [esi + 0x1c], 0x45fa60
mov dword [esi + 0x20], 0x45f910
mov dword [esi + 0x24], 0x460040
mov dword [esi + 0x28], 0x460510
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x46026a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x46026a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x460259
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x460261
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret