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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4120c5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4120bd
push dword [esp + 0x10]
push dword [0x4d2334]
call fcn.00418290
test eax, eax
je 0x4120b3
cmp dword [eax + 4], 0
je 0x4120a2
push edi
push esi
push eax
call fcn.00412230
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x412230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x412337
cmp dword [esi + 0x14], 1
jne 0x41227b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x4122f8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4122e3
dec eax
je 0x4122cc
sub eax, 2
je 0x4122b7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00411fe0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x412325
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x4122a1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x412340
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x412361
push esi
call fcn.00411fe0
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 0x4123d5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x4123c2
dec ecx
je 0x4123ad
sub ecx, 2
je 0x41239a
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 0x41241a
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 0x41243b
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 0x412460
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x412568
cmp word [edx], 0
je 0x412568
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x41248e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4124ed
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4124c0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124a0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00412230
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124c0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00412570
mov edi, eax
test edi, edi
je 0x4124e3
cmp dword [esi + 4], 0
je 0x41253b
push dword [esp + 0x14]
push edi
push esi
call fcn.00412230
push edi
push 0
push dword [0x4d1a90]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x4d1a90]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x413476
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 0x4134d3
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 0x4134d3
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4134b2
push ebx
push esi
call eax
push esi
push ebx
push dword [0x4d1a90]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x4d2360]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4d2364], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4134db
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x4d2360]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 0x14], 0
mov ecx, eax
jle 0x413519
cmp dword [ebp + 0x18], 0
jle 0x413519
push dword [ebp + 0x18]
mov eax, dword [ecx + 0x90]
push dword [ebp + 0x14]
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ecx + 0x8c]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push ecx
call dword [ecx + 0x28]
pop ebp
ret 0x14

Function at 0x41358d
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4d2360]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x4144c2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4d1f80], eax
test eax, eax
je 0x4144f0
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1f7c], eax
lea eax, [ebp - 0x114]
mov dword [0x4d1f84], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414552
cmp dword [ebp - 0x104], 1
jne 0x414527
and dword [0x4d1f84], 0
jmp 0x41456a
cmp dword [ebp - 0x104], 2
jne 0x414552
cmp dword [ebp - 0x110], 5
jb 0x41451e
jne 0x414552
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x4d1f84]
mov dword [0x4d1f84], eax
jmp 0x414557
mov eax, dword [0x4d1f84]
test eax, eax
je 0x41456a
call fcn.00413f01
neg eax
sbb eax, eax
and dword [0x4d1f84], eax
mov esp, ebp
pop ebp
ret

Function at 0x415400
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 0x415432
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 0x41542d
cmp dword [esp + 0xc], esi
je 0x415449
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 0x41811f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4d1fe8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x418180
push esi
push dword [0x4d1fe4]
push 8
push dword [0x4d1a90]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4d1fe8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4d1fe0]
jmp 0x418170
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41816e
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41815e
push edi
push 0x4180bd
call fcn.00496a7c
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x41818a
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 0x4181a0
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4d1fe4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4181d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x4d1a90]
mov dword [0x4d1fe8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4d1fe8]
call ebx
mov eax, dword [0x4d1fe4]
mov edi, eax
add eax, esi
push eax
push dword [0x4d1fe8]
mov dword [0x4d1fe4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4d1a90]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4d1fe8]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x418217
test ebx, ebx
je 0x418238
push 0x14
push 0x4d1fe0
call fcn.004189ff
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x418238
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 0x418f20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cfd18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*4 + 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x19c]
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x19c], eax
mov esp, ebp
pop ebp
ret

Function at 0x418f70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x4cfd18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
sub edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x19c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x418fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cfd18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
sub edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x19c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx*4 + 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x419020
Capabilities:
Get thread local storage value

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

Function at 0x419070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cfd18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
sub edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x19c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + edx*4 + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4190f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4cfd18]
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 0x419136
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x4d2474]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x419157
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 [0x4d2474]
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.00419630
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4192d0
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cfd18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x419374
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 0x4193c4
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 [0x4d2474]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41940c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41940c
cmp dword [ebp - 8], 0x100000
jge 0x4193e0
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 [0x4d2474]
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 0x419430
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cfd18]
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 0x4195ee
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 0x4195ee
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x4195f0
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4289d0
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.0042b3c0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x428a2f
movzx ecx, word [ebp]
push ecx
push esi
call fcn.00424210
add esp, 8
test eax, eax
je 0x428a10
mov eax, dword [eax + 0x1c]
jmp 0x428a15
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.0042baa0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x428b2b
jb 0x428a44
cmp dword [ebp + 8], edi
jae 0x428b2b
movzx eax, word [ebp]
push eax
push esi
call fcn.00424210
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 0x428a76
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x428a83
mov ecx, dword [eax + 0x1c]
jmp 0x428a88
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x428aa4
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.00424160
jmp 0x428ab9
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.00423970
add esp, 0x10
cmp edi, ebx
jbe 0x428ad4
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.00425910
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x428ac0
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.00419cb0
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.00419cc0
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 0x432ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x432af0
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 0x432d22
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 0x432d3c
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.00466390
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x455430
Capabilities:
Terminate process

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

Function at 0x466390
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4663bf
push esi
call fcn.00466570
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4663b8
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 0x466442
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x46642d
mov eax, dword [esi + 8]
test eax, eax
je 0x4663e5
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x466428
cmp eax, 2
je 0x46642d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4663d6
cmp eax, 3
je 0x46640d
cmp eax, 1
jne 0x4663d6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4663d6
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4663d6
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00466470
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x466464
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.00466470
add esp, 4
pop edi
pop esi
ret

Function at 0x466470
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x46649c
mov eax, dword [esi + 0x198]
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 + 0x198]
cmp byte [eax + 8], 0
je 0x466522
lea ebx, [esi + 0x78]
jmp 0x4664b0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4664f6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4664d5
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 + 0x19c]
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 0x466538
cmp eax, dword [esi + 0x60]
jb 0x4664b7
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x4664b0
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