joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431cd5
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x431d32
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x431d32
mov eax, dword [esi + 0x70]
test eax, eax
je 0x431d11
push ebx
push esi
call eax
push esi
push ebx
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x7b33ec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x7b33f0], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x431d3a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7b33ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x431d62
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x43221b
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 closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43229f
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x432297
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 0x432288
cmp dword [esp + 0x18], ebx
jne 0x432288
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00431ec1
mov ebp, eax
push edi
push 0
push dword [0x7b013c]
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 0x4329e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x4329f8
mov esi, ebx
jmp 0x432a02
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x432af3
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x432ae8
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x432ae7
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x432ae7
mov ebx, dword [esp + 0x10]
push 3
pop ebp
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
add eax, ecx
movzx ecx, byte [ebx]
add eax, ecx
cdq
idiv ebp
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov dword [esp + 0x10], ebx
dec edi
jne 0x432ab0
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x432af3
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8

Function at 0x434770
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 0x4347a2
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 0x43479d
cmp dword [esp + 0xc], esi
je 0x4347b9
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 0x434925
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x434955
cmp esi, 2
je 0x434955
cmp esi, 4
je 0x434955
cmp esi, 8
je 0x434955
cmp esi, 0x18
je 0x434955
cmp esi, 0x20
je 0x434955
xor eax, eax
jmp 0x434b1f
mov ecx, dword [0x7b2cf8]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x434b1b
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x7b347c]
cmp dword [eax], edx
je 0x434988
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x43496f
jmp 0x434b1b
cmp dword [esp + 0x38], 0x20
jne 0x434af2
mov eax, dword [eax + 8]
test eax, eax
je 0x4349c8
cmp esi, 0x20
je 0x4349a4
cmp esi, 0xffffffff
jne 0x4349c8
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x434b19
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x434b1b
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x434abd
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x434a9d
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x434a2e
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x434a1b
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x7b347c]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x7b013c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434b1b
cmp dword [esp + 0x38], 0x18
jne 0x434b1b
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x437a2e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x7b2d3c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x437a8f
push esi
push dword [0x7b2d38]
push 8
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x7b2d3c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x7b2d34]
jmp 0x437a7f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x437a7d
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x437a6d
push edi
push 0x4379cc
call fcn.00505404
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x437a99
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 0x437aaf
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x7b2d38]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x437ae6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x7b013c]
mov dword [0x7b2d3c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x7b2d3c]
call ebx
mov eax, dword [0x7b2d38]
mov edi, eax
add eax, esi
push eax
push dword [0x7b2d3c]
mov dword [0x7b2d38], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x7b2d3c]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x437b26
test ebx, ebx
je 0x437b47
push 0x14
push 0x7b2d34
call fcn.004383b2
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x437b47
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 0x4384c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7ad660]
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 0x438506
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x7b3500]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x438527
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 [0x7b3500]
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.00438af0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4385b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7ad660]
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 0x4386b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7ad660]
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 0x4387e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7ad660]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x438804
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 0x438854
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 [0x7b3500]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x43889c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x43889c
cmp dword [ebp - 8], 0x100000
jge 0x438870
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
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 [0x7b3500]
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 0x4388c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7ad660]
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 0x438a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7ad660]
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 0x438aae
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 0x438aae
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x438ab0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x438c20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7ad660]
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 0x44b1a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x44b259
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov edx, eax
mov ecx, eax
shr edx, 0x10
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x51f618]
xor edx, dword [ecx*4 + 0x51f218]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x51fa18]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x51e218]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x51e618]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x51de18]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x51ea18]
xor edx, dword [eax*4 + 0x51ee18]
mov eax, edx
dec ebx
jne 0x44b1c4
pop ebx
jmp 0x44b25d
mov eax, dword [esp + 0xc]
test edi, edi
je 0x44b27b
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x51de18]
dec edi
jne 0x44b261
pop edi
pop esi
ret
Function at 0x450909
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0045140c
cmp dword [esi + 0x14], 0
pop ecx
je 0x450970
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebx
mov ebx, dword [esi + 0x20]
push ebp
mov ebp, dword [eax + ecx*4]
cmp ebx, dword [esi + 0x14]
jae 0x45096e
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
push 0x18
pop ecx
sub ecx, ebx
shr eax, 8
mov edx, ebp
add ebx, 8
shr edx, cl
and edx, 0xff
xor edx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
shl eax, 8
movzx ecx, word [edx*2 + 0x5211a0]
xor eax, ecx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], eax
cmp ebx, dword [esi + 0x14]
jb 0x450934
pop ebp
pop ebx
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x454a62
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jb 0x454afa
push ebp
mov ebp, edi
shr ebp, 1
mov eax, dword [esi]
sub edi, 2
mov edx, dword [esi + 4]
shr eax, 0x10
xor ecx, eax
movzx ebx, cx
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 8
mov cx, word [ecx*2 + 0x5217a0]
xor cx, word [eax*2 + 0x521fa0]
movzx eax, byte [esi + 5]
xor cx, word [eax*2 + 0x5213a0]
movzx eax, byte [esi + 6]
xor cx, word [eax*2 + 0x5215a0]
movzx eax, byte [esi + 1]
xor cx, word [eax*2 + 0x521ba0]
movzx eax, dl
xor cx, word [eax*2 + 0x5211a0]
movzx eax, bl
xor cx, word [eax*2 + 0x521da0]
mov eax, dword [esi]
add esi, 8
movzx eax, al
xor cx, word [eax*2 + 0x5219a0]
movzx ecx, cx
dec ebp
jne 0x454a7f
pop ebp
test edi, edi
je 0x454b3c
mov ebx, dword [esi]
mov eax, ebx
shr eax, 0x10
xor ecx, eax
movzx eax, byte [esi + 1]
movzx edx, cx
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x5217a0]
xor cx, word [eax*2 + 0x5213a0]
movzx eax, bl
xor cx, word [eax*2 + 0x5211a0]
movzx eax, dl
xor cx, word [eax*2 + 0x5215a0]
movzx ecx, cx
pop edi
pop esi
mov ax, cx
pop ebx
ret

Function at 0x454b43
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x454b65
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x5221a0]
dec edx
jne 0x454b52
pop esi
ret
Function at 0x463c40
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
push eax
push ebp
push esi
call fcn.00466630
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x463c9f
movzx ecx, word [ebp]
push ecx
push esi
call fcn.0045f480
add esp, 8
test eax, eax
je 0x463c80
mov eax, dword [eax + 0x1c]
jmp 0x463c85
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.00466d10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x463d9b
jb 0x463cb4
cmp dword [ebp + 8], edi
jae 0x463d9b
movzx eax, word [ebp]
push eax
push esi
call fcn.0045f480
push str.LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0xc
mov ebx, 0xf4240
test eax, eax
je 0x463ce6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x463cf3
mov ecx, dword [eax + 0x1c]
jmp 0x463cf8
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x463d14
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.0045f3d0
jmp 0x463d29
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.0045ebe0
add esp, 0x10
cmp edi, ebx
jbe 0x463d44
push dword [esp + 0x20]
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.for_strip_array
push 8
push edi
push esi
call fcn.00460b80
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x463d30
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.00454f20
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.00454f30
push esi
call sub.MSVCRT.dll_free
mov eax, dword [esp + 0x40]
add esp, 0x1c
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret

Function at 0x46df50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x46dd60
push str.LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
mov dword [esi + 8], eax
mov dword [esi + 0x340], 0x64
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x46df92
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x340], eax
lea eax, [esi + 0x250]
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 8
test eax, eax
je 0x46dfac
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.004d33c0
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4906a0
Capabilities:
Terminate process

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

Function at 0x4aa140
Capabilities:
Query environment variable

Disassembly:
push edi
push str.OPJ_NUM_THREADS
call sub.MSVCRT.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x4aa1c0
call fcn.004b9a60
test eax, eax
je 0x4aa1c0
push esi
call fcn.004b9a50
mov esi, eax
mov ecx, str.ALL_CPUS
mov edx, edi
push ebx
lea ecx, [ecx]
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x4aa190
test bl, bl
je 0x4aa18c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4aa190
add edx, 2
add ecx, 2
test al, al
jne 0x4aa170
xor eax, eax
jmp 0x4aa195
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
je 0x4aa1bb
test esi, esi
jne 0x4aa1a3
mov esi, 0x20
push edi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jns 0x4aa1b5
xor eax, eax
pop esi
pop edi
ret
add esi, esi
cmp eax, esi
jle 0x4aa1b2
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret