joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4142ec
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 0x414349
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 0x414349
mov eax, dword [esi + 0x70]
test eax, eax
je 0x414328
push ebx
push esi
call eax
push esi
push ebx
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x4cd054]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4cd058], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x414351
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x4cd054]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 0x14], 0
mov ecx, eax
jle 0x41438f
cmp dword [ebp + 0x18], 0
jle 0x41438f
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 0x414393
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4cd054]
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 0x415964
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 [0x4ccc8c], eax
test eax, eax
je 0x415992
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ccc88], eax
lea eax, [ebp - 0x114]
mov dword [0x4ccc90], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4159f4
cmp dword [ebp - 0x104], 1
jne 0x4159c9
and dword [0x4ccc90], 0
jmp 0x415a0c
cmp dword [ebp - 0x104], 2
jne 0x4159f4
cmp dword [ebp - 0x110], 5
jb 0x4159c0
jne 0x4159f4
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x4ccc90]
mov dword [0x4ccc90], eax
jmp 0x4159f9
mov eax, dword [0x4ccc90]
test eax, eax
je 0x415a0c
call fcn.004153a7
neg eax
sbb eax, eax
and dword [0x4ccc90], eax
mov esp, ebp
pop ebp
ret

Function at 0x416a70
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 0x416aa2
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 0x416a9d
cmp dword [esp + 0xc], esi
je 0x416ab9
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 0x41a376
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4ccd30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41a3d7
push esi
push dword [0x4ccd2c]
push 8
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4ccd30]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4ccd28]
jmp 0x41a3c7
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41a3c5
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41a3b5
push edi
push 0x41a314
call fcn.00494f51
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x41a3e1
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 0x41a3f7
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4ccd2c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41a42e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x4cc66c]
mov dword [0x4ccd30], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4ccd30]
call ebx
mov eax, dword [0x4ccd2c]
mov edi, eax
add eax, esi
push eax
push dword [0x4ccd30]
mov dword [0x4ccd2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4ccd30]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x41a46e
test ebx, ebx
je 0x41a48f
push 0x14
push 0x4ccd28
call fcn.0041ac56
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x41a48f
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 0x41adf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ca710]
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 0x41ae36
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x4cd168]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x41ae57
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 [0x4cd168]
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.0041b440
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x41ae80
Capabilities:
Get thread local storage value

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ca710]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41b184
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 0x41b1d4
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 [0x4cd168]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41b21c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41b21c
cmp dword [ebp - 8], 0x100000
jge 0x41b1f0
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 [0x4cd168]
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 0x41b240
Capabilities:
Get thread local storage value

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

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

Function at 0x41b4c0
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ca710]
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 0x42a880
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.0042d270
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x42a8df
movzx ecx, word [ebp]
push ecx
push esi
call fcn.004260c0
add esp, 8
test eax, eax
je 0x42a8c0
mov eax, dword [eax + 0x1c]
jmp 0x42a8c5
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.0042d950
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x42a9db
jb 0x42a8f4
cmp dword [ebp + 8], edi
jae 0x42a9db
movzx eax, word [ebp]
push eax
push esi
call fcn.004260c0
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 0x42a926
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42a933
mov ecx, dword [eax + 0x1c]
jmp 0x42a938
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x42a954
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.00426010
jmp 0x42a969
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.00425820
add esp, 0x10
cmp edi, ebx
jbe 0x42a984
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.004277c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x42a970
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.0041bb60
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.0041bb70
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 0x434b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x4349a0
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 0x434bd2
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 0x434bec
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.004647d0
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4647d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4647ff
push esi
call fcn.004649b0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4647f8
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 0x464882
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x46486d
mov eax, dword [esi + 8]
test eax, eax
je 0x464825
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 0x464868
cmp eax, 2
je 0x46486d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x464816
cmp eax, 3
je 0x46484d
cmp eax, 1
jne 0x464816
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x464816
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x464816
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004648b0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x4648a4
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.004648b0
add esp, 4
pop edi
pop esi
ret

Function at 0x4648b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4648dc
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 0x464962
lea ebx, [esi + 0x78]
jmp 0x4648f0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x464936
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x464915
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 0x464978
cmp eax, dword [esi + 0x60]
jb 0x4648f7
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 0x4648f0
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 0x468f40
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.00474910
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004748e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x468f87
push edi
call fcn.00474920
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.00468bd0
mov dword [esi + 4], fcn.00468a60
mov dword [esi + 8], fcn.00468b30
mov dword [esi + 0xc], fcn.004689b0
mov dword [esi + 0x10], 0x4692a0
mov dword [esi + 0x14], 0x469230
mov dword [esi + 0x18], 0x469090
mov dword [esi + 0x1c], 0x468860
mov dword [esi + 0x20], 0x468710
mov dword [esi + 0x24], 0x468e40
mov dword [esi + 0x28], 0x469310
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 0x46906a
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 0x46906a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x469059
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x469061
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x46a4a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x46a4c5
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x46a4cb
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x46a5e0
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x46a51d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x46a576
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x46a560
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x46a540
mov esi, dword [esp + 0x14]
test esi, esi
je 0x46a5c1
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x46a5a0
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x46a5a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x46a500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x494f51
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4ccf58], 0
push ebx
push esi
mov esi, 0x4ccf60
jne 0x494f7d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4ccf78], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4ccf58], 1
push dword [0x4ccf78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x49501a
push 0x14
push 8
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x495044
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4ccf5c]
test eax, eax
je 0x494fbf
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4ccf5c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x495049
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4ccf78]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x495044
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4953f9
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4cd054]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4cd058], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00497ff5
mov dword [esi + 0x58], 0x49600c
mov eax, esi
mov dword [esi + 0x5c], 0x496058
mov dword [esi + 0x10], fcn.00495bad
mov dword [esi + 0x30], 0x495a9f
mov dword [esi + 0x64], 0x4960e2
mov dword [esi + 0x60], 0x49609a
mov dword [esi + 0x34], 0x49574f
mov dword [esi + 0x24], 0x495726
mov dword [esi + 0x28], 0x4956fb
mov dword [esi + 0x2c], 0x49564d
mov dword [esi + 0x44], 0x495e12
pop esi
ret 4