joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a4e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
push ebx
push esi
push edi
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
jne 0x100a4e86
mov edx, str.ERROR:
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.BlockHash::AddBlock___called_before_BlockHash::Init__
mov ecx, eax
call fcn.100200c0
push eax
call fcn.10094de0
add esp, 4
cmp byte [0x100e7a14], 0
je 0x100a4fd0
jmp 0x100a4fd7
mov esi, dword [edx + 0x34]
mov eax, dword [edx + 4]
inc esi
shr eax, 4
cmp esi, eax
jl 0x100a4ed6
dec eax
mov edx, str.ERROR:
push eax
push ecx
push esi
push ecx
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.BlockHash::AddBlock___called_with_block_number
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, str._that_is_past_last_block
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
jmp 0x100a4e6b
mov edi, dword [edx + 0x14]
cmp dword [edi + esi*4], 0xffffffff
lea eax, [edi + esi*4]
je 0x100a4f27
push dword [eax]
mov edx, str.ERROR:
push ecx
push esi
push ecx
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.Internal_error_in_BlockHash::AddBlock__:_block_number_
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, str.__next_block_should_be__1_but_is
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
jmp 0x100a4e6b
mov ecx, dword [edx + 0x2c]
and ecx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
jns 0x100a4f4a
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x20]
mov dword [eax + esi*4], esi
mov dword [edx + 0x34], esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edx + 0x20]
mov eax, dword [eax + ebx*4]
cmp dword [edi + eax*4], 0xffffffff
je 0x100a4fc4
push dword [edi + eax*4]
mov edx, str.ERROR:
push ecx
push eax
push ecx
push ebx
push ecx
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.Internal_error_in_BlockHash::AddBlock__:_first_matching_block_
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, str.__last_matching_block_
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, str.__next_block_should_be__1_but_is
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
push eax
call fcn.10094de0
add esp, 4
call fcn.10092f60
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov dword [edi + eax*4], esi
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], esi
mov dword [edx + 0x34], esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, 0x100e66e0
call fcn.100239a0
push 1
call fcn.100aec92
int3
Function at 0x100a4ff0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
cmp edx, eax
jle 0x100a505c
push eax
push ecx
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.BlockHash::AddAllBlocksThroughIndex___called_with_index
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, str._higher_than_end_index
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.10046f10
push eax
call fcn.10094de0
add esp, 4
cmp byte [0x100e7a14], 0
je 0x100a5123
jmp 0x100a512a
mov ecx, dword [ebx + 0x34]
shl ecx, 4
cmp edx, ecx
jg 0x100a50b3
push ecx
push ecx
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.BlockHash::AddAllBlocksThroughIndex___called_with_index
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, str.___last_index_added__
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
mov edx, 0x100fdc78
mov ecx, eax
call fcn.100200c0
jmp 0x100a5041
cmp eax, 0x10
jb 0x100a5123
add eax, 0xfffffff0
cmp edx, eax
jle 0x100a50c2
lea edx, [eax + 1]
mov eax, dword [ebx]
add edx, eax
mov dword [ebp + 8], edx
lea edi, [eax + 0x10]
add edi, ecx
cmp edi, edx
jae 0x100a5123
movzx eax, byte [edi]
lea edx, [edi + 3]
movzx ecx, byte [edi + 1]
mov esi, 7
imul eax, eax, 0x101
add eax, ecx
lea esp, [esp]
movzx ecx, byte [edx - 1]
lea edx, [edx + 2]
imul eax, eax, 0x101
add ecx, eax
imul eax, ecx, 0x101
movzx ecx, byte [edx - 2]
add eax, ecx
and eax, 0x7fffff
dec esi
jne 0x100a50f0
push eax
mov ecx, ebx
call fcn.100a4e40
add edi, 0x10
cmp edi, dword [ebp + 8]
jb 0x100a50d2
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, 0x100e66e0
call fcn.100239a0
push 1
call fcn.100aec92
int3

Function at 0x100a51c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
shr eax, 4
cmp edx, eax
jb 0x100a5210
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x100e66e0
call fcn.100200c0
mov edx, str.NextMatchingBlock_called_for_invalid_block_number
mov ecx, eax
call fcn.100200c0
add esp, 4
mov ecx, eax
call fcn.1004dc60
push eax
call fcn.10094de0
add esp, 4
cmp byte [0x100e7a14], 0
jne 0x100a5222
or eax, 0xffffffff
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
push dword [ebp + 0xc]
push dword [eax + edx*4]
call fcn.100a5140
pop ebp
ret 8
mov ecx, 0x100e66e0
call fcn.100239a0
push 1
call fcn.100aec92
int3
Function at 0x100a5c70
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x100e84f0
mov word [0x100e89f0], 0
push esi
dec eax
mov word [0x100e84f0], 0x301
push edi
mov edi, 0x100e84f0
mov byte [0x100e89f3], 1
mov ebx, 2
sub edi, eax
lea esi, [eax + 2]
mov cl, byte [esi]
lea esi, [esi + 1]
mov dl, cl
mov al, cl
and dl, 0x80
neg dl
sbb dl, dl
add al, al
xor al, cl
and dl, 0x1b
xor al, dl
mov byte [edi + esi - 1], al
movzx eax, al
mov byte [eax + 0x100e89f0], bl
inc ebx
cmp ebx, 0x100
jl 0x100a5ca5
mov byte [0x100e8270], 0x63
mov ebx, 1
mov byte [0x100e83d3], 0
jmp 0x100a5cf0
movzx eax, bl
mov ecx, 0x100e85ef
movzx eax, byte [eax + 0x100e89f0]
sub ecx, eax
mov cl, byte [ecx]
mov dl, cl
rol dl, 1
xor cl, dl
rol dl, 1
xor cl, dl
rol dl, 1
mov al, dl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x100e8270], al
movzx eax, al
mov byte [eax + 0x100e8370], bl
inc ebx
cmp ebx, 0x100
jl 0x100a5cf0
mov al, 1
mov edx, 0x100e8470
movzx ecx, al
mov dword [edx], ecx
mov cl, al
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
add edx, 4
xor al, cl
cmp edx, 0x100e84e8
jl 0x100a5d38
mov ecx, dword [0x100031ac]
xor esi, esi
mov edi, 0xff
mov ah, byte [esi + 0x100e8270]
mov bl, ah
mov bh, ah
and bl, 0x80
mov al, bl
neg al
sbb al, al
add bh, bh
and al, 0x1b
mov dl, bh
xor dl, al
xor dl, ah
neg bl
movzx edx, dl
sbb bl, bl
movzx eax, ah
shl edx, 8
and bl, 0x1b
or edx, eax
xor bh, bl
mov bl, byte [esi + 0x100e8370]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100e85f0], edx
test cl, cl
je 0x100a5ddc
test bl, bl
je 0x100a5ddc
movzx eax, cl
movzx edx, bl
movzx eax, byte [eax + 0x100e89f0]
movzx edx, byte [edx + 0x100e89f0]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x100e84f0]
mov byte [ebp - 1], al
jmp 0x100a5de0
mov byte [ebp - 1], 0
test ch, ch
je 0x100a5e0c
test bl, bl
je 0x100a5e0c
movzx eax, ch
movzx edx, bl
movzx eax, byte [eax + 0x100e89f0]
movzx edx, byte [edx + 0x100e89f0]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x100e84f0]
mov byte [ebp - 2], al
jmp 0x100a5e10
mov byte [ebp - 2], 0
mov al, byte [0x100031ae]
test al, al
je 0x100a5e3e
test bl, bl
je 0x100a5e3e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x100e89f0]
movzx edx, byte [edx + 0x100e89f0]
add eax, edx
cdq
idiv edi
mov bh, byte [edx + 0x100e84f0]
jmp 0x100a5e40
xor bh, bh
mov al, byte [0x100031af]
test al, al
je 0x100a5e6e
test bl, bl
je 0x100a5e6e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x100e89f0]
movzx edx, byte [edx + 0x100e89f0]
add eax, edx
cdq
idiv edi
mov bl, byte [edx + 0x100e84f0]
jmp 0x100a5e70
xor bl, bl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 2]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100e7e70], edx
inc esi
cmp esi, 0x100
jl 0x100a5d65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100cef50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf020
push 0xffffffffffffffff
push 0x100e5148
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf059
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf066
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf0cd
jmp 0x100cf09c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf10a
test edi, edi
jne 0x100cf110
push 0x100cec20
push 0x100e7920
call fcn.100ce8c0
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf0cd
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf0f6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf0f6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf148
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf139
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf110
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf090
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf1a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf18c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf1a7
jmp 0x100cf180
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf180
jmp 0x100cf1a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf1a5
cmp esi, dword [eax + 8]
jne 0x100cf1a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf195
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf1bb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf1bb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cec50
cmp esi, ebx
jne 0x100cf160
mov ebp, dword [esp + 0x14]
jmp 0x100cf090
Function at 0x100cf020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf020
push 0xffffffffffffffff
push 0x100e5148
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf059
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf066
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf0cd
jmp 0x100cf09c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf10a
test edi, edi
jne 0x100cf110
push 0x100cec20
push 0x100e7920
call fcn.100ce8c0
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf0cd
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf0f6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf0f6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf148
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf139
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf110
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf090
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf1a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf18c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf1a7
jmp 0x100cf180
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf180
jmp 0x100cf1a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf1a5
cmp esi, dword [eax + 8]
jne 0x100cf1a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf195
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf1bb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf1bb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cec50
cmp esi, ebx
jne 0x100cf160
mov ebp, dword [esp + 0x14]
jmp 0x100cf090
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x63752787
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x269f10ca
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401580
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4015a6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40163a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4015f5
cmp eax, 0x40
je 0x4015f5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401599
cmp eax, 0x40
je 0x401599
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401599
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40b0c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040b008
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b114
call sym.__errno
cmp dword [eax], 4
je 0x40b0e8
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x44a540]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d168
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40d518
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x44a540]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d5f4
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d609
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d5c8
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d560
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d570
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d5bb
test edx, edx
jne 0x40d5ae
test ecx, ecx
je 0x40d558
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40d618
cmp eax, 8
je 0x40d558
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d54a
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a540]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x40d53c
call sym._fc_key_init_once
mov eax, dword [0x44a540]
jmp 0x40d53c
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40d5b3
mov eax, dword [0x44a540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d66b
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d696
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d677
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a540]
jmp 0x40d649
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d65a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d65a
call sym._fc_key_init_once
mov eax, dword [0x44a540]
jmp 0x40d650
Function at 0x40d798
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x44a540]
test eax, eax
je 0x40d7f8
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40d818
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40d838
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40d888
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a540]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40d7ba
jmp 0x40d818
call sym._fc_key_init_once
mov eax, dword [0x44a540]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40d7c1
jmp 0x40d838
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40d7e9
lea esi, [esi]
mov eax, dword [0x44a540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d8d5
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d8e1
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d8b6
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8a5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44a540]
jmp 0x40d894
call sym._fc_key_init_once
mov eax, dword [0x44a540]
jmp 0x40d89b