joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 0x78]
test al, 1
je 0x46ebc8
test esi, esi
je 0x46eaea
test byte [esi + 9], 2
jne 0x46eba6
test al, 4
jne 0x46eb15
cmp edx, 7
je 0x46eb20
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0046c720
mov dword [esp + 4], str.invalid
mov dword [esp], ebx
call fcn.00459c00
add esp, 0x24
pop ebx
pop esi
ret
or eax, 8
cmp edx, 7
mov dword [ebx + 0x78], eax
jne 0x46eaf3
lea eax, [esp + 0x11]
mov dword [esp + 4], eax
mov dword [esp + 8], 7
mov dword [esp], ebx
call fcn.0046c4f0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0046c720
test eax, eax
jne 0x46eb0f
movzx eax, byte [esp + 0x17]
movzx edx, byte [esp + 0x12]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x1e], al
movzx eax, byte [esp + 0x16]
mov byte [esp + 0x1d], al
movzx eax, byte [esp + 0x15]
mov byte [esp + 0x1c], al
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x1b], al
movzx eax, byte [esp + 0x13]
mov byte [esp + 0x1a], al
movzx eax, byte [esp + 0x11]
shl eax, 8
add eax, edx
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
call fcn.004624b0
jmp 0x46eb0f
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0046c720
mov dword [esp], ebx
mov dword [esp + 4], str.duplicate
call fcn.00459c00
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 4], str.missing_IHDR
mov dword [esp], ebx
call fcn.00459bb0
nop
lea esi, [esi]
Function at 0x46ebe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov eax, dword [ebx + 0x29c]
test eax, eax
je 0x46ec13
cmp eax, 1
je 0x46ed07
sub eax, 1
cmp eax, 1
mov dword [ebx + 0x29c], eax
je 0x46ed15
mov eax, dword [ebx + 0x78]
test al, 1
je 0x46ed4a
test al, 4
jne 0x46ece0
lea edx, [edi + 1]
mov ecx, 1
mov eax, ebx
call fcn.0046bf10
test eax, eax
mov esi, eax
je 0x46ed33
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp], ebx
call fcn.0046c4f0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0046c720
test eax, eax
jne 0x46ecd9
add edi, esi
mov edx, esi
mov byte [edi], 0
cmp byte [esi], 0
je 0x46ec78
nop
add edx, 1
cmp byte [edx], 0
jne 0x46ec70
xor eax, eax
cmp edx, edi
setne al
add edx, eax
mov dword [esp], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], 1
mov dword [esp], ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
call fcn.00462090
test eax, eax
jne 0x46ecf0
add esp, 0x30
pop ebx
pop esi
pop edi
ret
or eax, 8
mov dword [ebx + 0x78], eax
jmp 0x46ec26
mov dword [esp], ebx
mov dword [esp + 4], str.Insufficient_memory_to_process_text_chunk
call fcn.00459730
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0046c720
jmp 0x46ecd9
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0046c720
mov dword [esp + 4], str.no_space_in_chunk_cache
mov dword [esp], ebx
call fcn.00459c00
jmp 0x46ecd9
mov dword [esp], ebx
mov dword [esp + 4], 0x5406ef
call fcn.00459c00
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], str.missing_IHDR
mov dword [esp], ebx
call fcn.00459bb0
lea esi, [esi]
Function at 0x46ed60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov eax, dword [edi + 0x29c]
test eax, eax
je 0x46ed94
cmp eax, 1
je 0x46eeb1
sub eax, 1
cmp eax, 1
mov dword [edi + 0x29c], eax
je 0x46eec2
mov eax, dword [edi + 0x78]
test al, 1
je 0x46ef57
test al, 4
jne 0x46ee28
mov ecx, 2
mov edx, esi
mov eax, edi
call fcn.0046bf10
test eax, eax
mov ebp, eax
je 0x46ee90
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], edi
call fcn.0046c4f0
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0046c720
test eax, eax
jne 0x46ee20
test esi, esi
je 0x46ee33
cmp byte [ebp], 0
je 0x46ee33
xor ecx, ecx
nop
jmp 0x46edfb
cmp byte [ebp + ecx + 1], 0
je 0x46ee02
mov ecx, ebx
lea ebx, [ecx + 1]
cmp ebx, esi
jne 0x46edf2
cmp ecx, 0x4e
ja 0x46ee33
lea eax, [ecx + 4]
cmp esi, eax
jae 0x46ee50
mov eax, str.truncated
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00459c00
nop
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
or eax, 8
mov dword [edi + 0x78], eax
jmp 0x46eda7
mov eax, str.bad_keyword
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00459c00
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp + ecx + 2], 0
mov eax, str.unknown_compression_type
jne 0x46ee38
lea eax, [esp + 0x10]
mov edx, esi
lea ebp, [ecx + 3]
mov dword [esp], eax
mov ecx, ebp
mov eax, edi
mov dword [esp + 0x10], 0xffffffff
call fcn.0046c0d0
cmp eax, 1
je 0x46eee3
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x46ee20
jmp 0x46ee38
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0046c720
mov dword [esp + 4], 0x5406ef
mov dword [esp], edi
call fcn.00459c00
jmp 0x46ee20
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0046c720
jmp 0x46ee20
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0046c720
mov dword [esp + 4], str.no_space_in_chunk_cache
mov dword [esp], edi
call fcn.00459c00
jmp 0x46ee20
mov eax, dword [edi + 0x2bc]
add ebx, eax
add ebx, dword [esp + 0x10]
mov byte [ebx + 2], 0
mov dword [esp + 0x18], eax
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], 1
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], eax
call fcn.00462090
test eax, eax
je 0x46ee20
mov eax, 0x5408be
jmp 0x46ee38
mov dword [esp + 4], str.missing_IHDR
mov dword [esp], edi
call fcn.00459bb0
mov esi, esi
lea edi, [edi]
Function at 0x475d30
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x55b148]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
test eax, eax
je 0x475d60
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov dword [esp], str.ANDROID_WRAPSIM
call sub.msvcrt.dll_getenv
test eax, eax
je 0x475d80
mov edi, 0x5415b4
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x475da5
mov dword [0x55b148], 0x475470
mov eax, 0x475470
mov dword [0x55b144], 0x475390
mov dword [0x55b140], 0x475c30
jmp 0x475d48
mov dword [0x55b148], sub.msvcrt.dll__open
mov eax, sub.msvcrt.dll__open
mov dword [0x55b144], 0x4b4718
mov dword [0x55b140], 0x475410
jmp 0x475d48

Function at 0x479ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [esp], 8
call fcn.00521100
lea edx, [ebp - 0x1c]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x479e90
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
test eax, eax
je 0x479f60
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
je 0x479f86
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.WARNING:_thread_create_failed_n
mov dword [esp + 4], str.thread
mov dword [esp], 5
call fcn.004750f0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
jmp 0x479f51
Function at 0x47b550
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x47b5d5
cmp eax, 0xfffffffe
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x47b581
lea esi, [esi]
mov dword [esp], 0xa
call esi
sub esp, 4
cmp dword [ebx], 0xfffffffe
jne 0x47b570
lea esi, [ebx + 0xc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
sub esp, 4
test eax, eax
jne 0x47b5ac
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
je 0x47b5f2
mov dword [ebx + 4], 1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esi, [ebx + 0xc]
mov dword [ebx], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx], 0xfffffffe
sub esp, 4
jmp 0x47b584
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x47b5ce
Function at 0x4913d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x8038
call fcn.004a7e80
sub esp, eax
test ecx, ecx
mov eax, dword [esp + eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
je 0x4914cc
mov edi, eax
xor ebp, ebp
mov dword [esp + 0x20], 0
lea esi, [esp + 0x30]
mov dword [esp + 0x24], 0
jmp 0x49145a
cmp ebx, eax
jne 0x491498
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
add eax, ebp
add ebp, ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00492e10
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jbe 0x4914dc
mov ebx, dword [esp + 0x28]
mov eax, 0x8000
sub ebx, ebp
cmp ebx, 0x8000
cmova ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov edx, eax
jne 0x491410
mov dword [esp + 0x1c], eax
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x49146e
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.CopyFileToFile:_copy_read_failed___ld_vs__ld_
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
add esp, 0x803c
mov eax, 0xfffffff5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x8050]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ebx
mov dword [eax], ecx
add esp, 0x803c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x492500
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x30]
mov dword [esp + 8], 0
mov edi, dword [esp + 0x34]
mov dword [esp + 4], 0x8000
mov dword [esp], esi
call sub.msvcrt.dll__open
mov dword [esp], 0x20
mov ebx, eax
call fcn.00521100
xor edx, edx
test ebx, ebx
mov dword [eax], ebx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov word [eax + 0x14], dx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [edi], eax
js 0x492572
add esp, 0x20
mov edx, esi
pop ebx
pop esi
pop edi
jmp fcn.00491d20
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Unable_to_open__s:__s
mov dword [esp + 4], 0
mov dword [esp], 5
mov dword [esp + 0x10], eax
call fcn.004750f0
add esp, 0x20
mov eax, 0xfffffff5
pop ebx
pop esi
pop edi
ret

Function at 0x4926b0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edi
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xffff
jg 0x4927ac
test eax, eax
je 0x4927ac
movzx eax, ax
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ebp, ecx
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov eax, ecx
sub eax, 1
test cx, cx
je 0x4927a3
mov edx, dword [esp + 0x10]
movzx eax, ax
xor ebx, ebx
lea ecx, [edx + eax + 1]
lea esi, [esi]
mov eax, ebx
add edx, 1
shl eax, 5
sub eax, ebx
movsx ebx, byte [edx - 1]
add ebx, eax
cmp edx, ecx
jne 0x492720
sub esi, 1
and ebx, esi
lea edx, [ebx*8]
add edx, edi
mov eax, dword [edx]
test eax, eax
jne 0x49275e
jmp 0x492796
add ebx, 1
and ebx, esi
lea edx, [edi + ebx*8]
mov eax, dword [edx]
test eax, eax
je 0x492796
cmp bp, word [edx + 4]
jne 0x492750
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x492750
mov ecx, dword [esp + 0x1c]
mov edx, ebx
mov eax, dword [esp + 0x18]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004917d0
mov eax, 0xfffffff9
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esi, 1
xor edx, edx
xor ebx, ebx
jmp 0x492740
mov eax, dword [esp + 0x10]
mov dword [esp + 8], str.Zip:_Invalid_filename__s
mov dword [esp + 4], 0
mov dword [esp], 5
mov dword [esp + 0xc], eax
call fcn.004750f0
mov eax, 0xfffffff6
jmp 0x49279b
Function at 0x4928c0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edi, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
movzx ebp, word [ebx]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a9ae0
xor edx, esi
xor eax, edi
or edx, eax
jne 0x4929f1
test bp, bp
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
je 0x492930
cmp bp, 8
mov eax, 0xffffffff
je 0x4929c4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov eax, dword [eax]
call fcn.004913d0
test eax, eax
jne 0x492922
cmp byte [ebx + 8], 0
je 0x492922
mov eax, dword [esp + 0x60]
lea esi, [esp + 0x30]
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
je 0x4929b0
cmp eax, 0x10
jne 0x4929b7
mov eax, dword [esp + 0x30]
cmp eax, 0x8074b50
je 0x492a20
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], eax
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call ebp
cmp dword [eax], 4
je 0x492964
add esp, 0x4c
mov eax, 0xfffffff5
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
lea ecx, [ebx + 0x14]
lea edx, [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
call fcn.00491500
jmp 0x49294a
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.Zip:_lseek_to_data_at__lld_failed
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff5
jmp 0x492922
mov eax, dword [esp + 0x34]
lea esi, [esp + 0x34]
jmp 0x492991
Function at 0x495230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4953c0
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4953c0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4953c0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4953c0
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x2c], 2
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test eax, eax
js 0x495387
jne 0x49538c
mov dword [esi + 4], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0049b180
mov dword [ebx + 0x30], eax
mov dword [esi + 0x28], 0
mov dword [esp], esi
call fcn.0049cc10
mov ebx, dword [ebx + 0x1c]
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], cx
mov eax, dword [ebx + 0x4c]
lea edx, [eax + eax - 2]
mov eax, dword [ebx + 0x44]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
lea edx, [eax + eax*2]
shl edx, 2
lea eax, [edx + 0x54bbc0]
movzx ecx, word [edx + 0x54bbc2]
movzx edx, word [edx + 0x54bbc0]
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x8c], edx
movzx edx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x48], 0
add esp, 0x14
pop ebx
pop esi
ret
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
mov dword [esi + 4], 0x2a
jne 0x4952a3
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00492e10
jmp 0x4952bf
mov eax, 0xfffffffe
jmp 0x495381
Function at 0x4a7680
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4a76b8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4a76ae
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4a76ba
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4a76a0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4a8370
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4a83a4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x55b564], eax
call fcn.004b4970
test eax, eax
sete al
movzx eax, al
mov dword [0x528c34], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a8393

Function at 0x4a84b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx]
mov dword [ebp - 0x20], edi
jmp 0x4a84dc
mov dword [0x55b568], ecx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x4a8598
mov edi, dword [eax + 0x18]
mov eax, dword [ebp - 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
call eax
test eax, eax
jne 0x4a85f0
test edi, edi
je 0x4a855b
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call edi
cmp eax, 7
je 0x4a8600
cmp eax, 8
jne 0x4a85f0
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [0x528c34]
test eax, eax
js 0x4a85d6
test eax, eax
je 0x4a84d0
mov eax, dword [0x55b564]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4a84d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a84d6
mov eax, dword [esi]
mov edi, dword [ebp - 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
jne 0x4a85f0
lea esp, [ebp - 0xc]
mov al, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x24], ecx
call fcn.004a83b0
mov eax, dword [0x528c34]
mov ecx, dword [ebp - 0x24]
jmp 0x4a8568
lea esp, [ebp - 0xc]
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a8810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x528c34]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x4a88f2
test eax, eax
mov edi, dword [0x55b568]
jne 0x4a8890
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x4a8883
mov eax, edi
lea esi, [ebp - 0x1c]
nop
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4a8877
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call ecx
cmp eax, 6
je 0x4a88c0
cmp eax, 8
jne 0x4a88e5
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4a8840
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x55b564]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4a8833
mov eax, dword [ebp - 0x1c]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], edi
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.004a82c0
cmp eax, 7
jne 0x4a8888
mov eax, esi
call fcn.004a8440
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004a83b0
mov eax, dword [0x528c34]
jmp 0x4a8829

Function at 0x4a89a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [0x528c34]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x4a8a16
test edx, edx
mov eax, dword [0x55b568]
jne 0x4a89ee
mov ecx, dword [ebx + 0xc]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov eax, ebx
test ecx, ecx
jne 0x4a89df
call fcn.004a82c0
cmp eax, 7
je 0x4a89e7
call sub.msvcrt.dll_abort
nop
call fcn.004a84b0
jmp 0x4a89d5
mov eax, esi
call fcn.004a8440
mov esi, dword [0x55b564]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x4a89bf
call fcn.004a83b0
mov edx, dword [0x528c34]
jmp 0x4a89b6
Function at 0x4a8a30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4a8a70
mov edx, dword [0x528c34]
test edx, edx
js 0x4a8ab4
test edx, edx
mov eax, dword [0x55b568]
jne 0x4a8a88
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004a84b0
cmp eax, 7
je 0x4a8a80
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.004a8810
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
call fcn.004a8440
mov esi, dword [0x55b564]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x4a8a56
call fcn.004a83b0
mov edx, dword [0x528c34]
jmp 0x4a8a4d

Function at 0x4a8c20
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4a8c50
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp fcn.004b4970
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
pop ebx
pop esi
jmp eax