joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x422992
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422988
mov eax, 1
add ebx, ebx
jne 0x4229ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4229a0
jne 0x4229bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4229a0
xor ecx, ecx
sub eax, 3
jb 0x4229d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422a42
mov ebp, eax
add ebx, ebx
jne 0x4229db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4229e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422a0c
inc ecx
add ebx, ebx
jne 0x4229f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4229ed
jne 0x422a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4229ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422a2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422a1d
jmp 0x42298e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422a2c
add edi, ecx
jmp 0x42298e
pop esi
mov edi, esi
mov ecx, 0x740
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422a4a
cmp byte [edi], 6
jne 0x422a4a
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 0x422a4f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x422ac7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x232c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x233b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422a7c
mov ecx, edi
jns 0x422aab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x233c0]
or eax, eax
je 0x422ac1
mov dword [ebx], eax
add ebx, 4
jmp 0x422a99
call dword [esi + 0x233bc]
mov ebp, dword [esi + 0x233c4]
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 0x422afb
sub esp, 0xffffff80
jmp 0x411e1a
Function at 0x42fc94
Capabilities:
Parse pe header

Disassembly:
mov edi, esp
mov edi, dword [edi]
add esp, 4
push edi
push esi
pop esi
push 0xf
add esp, 4
mov edi, dword [esp - 4]
sub dword [esp], edi
push esp
pop edi
pop edi
sub edx, eax
add edx, eax
not edx
push 4
mov edx, dword [esp]
add esp, 4
mov dword [edi], edx
push edx
pop edx
push esi
push esi
add esp, 4
add esp, 4
push esi
push esi
mov edi, dword [esp + 8]
add esp, 0xc
push esp
add esp, 4
mov edx, dword [esp - 4]
push esi
push esi
mov edx, dword [esp + 8]
add esp, 0xc
pushal
call 0x42fc94
jmp 0x42fc76
call fcn.0042fbd2
push 0x86abc981
push 0x5ac18765
xor eax, eax
js 0x42fcfa
insb byte es:[edi], dx
imul esi, dword [eax + eax + 0x61], 0xa6e9
add byte [ebp - 0x75], dl
in al, dx
mov ebx, 0x77000000
add ebx, 0x10000
cmp ebx, 0x80000000
jne 0x42fcaf
mov ebx, 0xbff00000
call fcn.0042fcf3
cmp eax, 0
je 0x42fc9c
cmp word [ebx], 0x5a4d
jne 0x42fc9c
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp word [eax], 0x4550
jne 0x42fc9c
test byte [eax + 0x17], 0x20
je 0x42fc9c
mov eax, dword [eax + 0x78]
add eax, ebx
mov edx, dword [eax + 0xc]
add edx, ebx
cmp dword [edx], 0x4e52454b
jne 0x42fc9c
cmp dword [edx + 4], 0x32334c45
jne 0x42fc9c
mov eax, ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x50031134
sub edx, 0x5003110e
add eax, edx
push eax
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [ebx]
mov ecx, 1
jmp 0x42fd2c
pop dword fs:[0]
pop eax
mov dword [esp + 0x1c], ecx
popal
ret
Function at 0x42fb50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebx + 8]
xor esi, esi
movsd qword [ebp - 0x10], xmm3
mov dword [ebp - 4], ecx
movsd qword [ebp - 0x28], xmm0
movsd qword [edi], xmm0
movsd qword [eax], xmm0
movsd qword [ebp - 0x58], xmm0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0042f780
movsd xmm2, qword [esi*8 + 0x4a62a0]
movsd xmm0, qword [ebp - 0x10]
movaps xmm1, xmm2
movsd qword [ebp - 0x38], xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movsd xmm2, qword [esi*8 + 0x4a55f0]
movaps xmm1, xmm0
movaps xmm0, xmm2
xorps xmm0, xmmword [0x4afba0]
mulsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x10]
movsd qword [ebp - 0x48], xmm1
movsd xmm1, qword [ebp - 0x38]
mulsd xmm2, xmm1
movsd qword [ebp - 0x30], xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mulsd xmm0, qword [ebp - 0x30]
movsd xmm2, qword [esi*8 + 0x4a6470]
movaps xmm1, xmm2
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x10]
movsd qword [ebp - 0x20], xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mulsd xmm0, qword [esi*8 + 0x4a6640]
movsd xmm1, qword [esi*8 + 0x4a60d0]
xorps xmm1, xmmword [0x4afba0]
movsd qword [ebp - 0x18], xmm0
movsd xmm0, qword [ebx + 0x10]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movsd xmm1, qword [ebp - 0x18]
mulsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x18], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_exp_precise
movsd xmm2, qword [ebp - 0x20]
movaps xmm1, xmm2
mulsd xmm1, qword [ebp - 0x40]
mulsd xmm0, xmm1
movsd xmm1, qword [esi*8 + 0x4a6470]
mulsd xmm1, qword [ebp - 0x50]
addsd xmm0, xmm1
movsd xmm1, qword [esi*8 + 0x4a62a0]
mulsd xmm0, qword [ebp - 0x18]
addsd xmm0, qword [ebp - 0x28]
movsd qword [ebp - 0x28], xmm0
movsd qword [edi], xmm0
movaps xmm0, xmm2
addsd xmm0, qword [0x4aeef0]
mulsd xmm0, xmm2
movsd qword [ebp - 0x20], xmm0
movsd xmm0, qword [ebp - 0x10]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movsd xmm1, qword [ebp - 0x30]
mulsd xmm1, qword [ebp - 0x38]
mulsd xmm0, xmm1
movsd xmm1, qword [ebp - 0x20]
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x48]
mulsd xmm1, qword [ebp - 0x40]
movsd qword [ebp - 0x20], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_exp_precise
movsd xmm1, qword [ebp - 0x20]
movsd xmm2, qword [esi*8 + 0x4a6470]
mulsd xmm1, xmm0
movaps xmm0, xmm2
mov eax, dword [ebx + 0xc]
addsd xmm0, qword [0x4aeef0]
mulsd xmm0, xmm2
mulsd xmm0, qword [ebp - 0x50]
addsd xmm1, xmm0
mulsd xmm1, qword [ebp - 0x18]
addsd xmm1, qword [ebp - 0x58]
movaps xmm0, xmm1
movsd qword [ebp - 0x58], xmm1
mov ecx, dword [ebp - 4]
inc esi
movsd qword [eax], xmm0
cmp esi, 0x3a
jl 0x42fb90
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x479510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push esi
push edi
push 0x7c1d48
push str._sresult.Pipe.dat
push eax
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x314], 0
call fcn.00404440
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
lea eax, [ebp - 0x10c]
add esp, 0xc
mov dword [ebp - 0x31c], 0
push 0x4a6fb8
push eax
call esi
add esp, 8
mov dword [ebp - 0x318], eax
test eax, eax
je 0x479770
push 0x4a7d78
push eax
call fcn.00411e60
add esp, 8
cmp dword [0x7c1e70], 1
jle 0x479634
push 0x7c1d48
lea eax, [ebp - 0x20c]
push str._sresult.PipeComp.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4a6fb8
push eax
call esi
mov edi, eax
add esp, 8
mov dword [ebp - 0x310], edi
test edi, edi
je 0x479770
push 0x4a7e18
push edi
call fcn.00411e60
add esp, 8
cmp dword [0x7c1e70], 4
jl 0x479634
cmp dword [0x7c1e4c], 0
jne 0x479634
push 0x7c1d48
lea eax, [ebp - 0x30c]
push str._sPhase_diagramPipe.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x4a6fb8
push eax
call esi
mov edi, eax
add esp, 8
mov dword [ebp - 0x314], edi
test edi, edi
je 0x479770
mov esi, dword [ebx + 0x58]
cmp esi, dword [ebx + 0x5c]
je 0x4796b4
nop dword [eax]
push 0
push 0x4b3a68
push 0x4b3b30
push 0
push dword [esi]
call sub.VCRUNTIME140.dll___RTDynamicCast
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4796ac
mov ecx, edi
call fcn.00471c30
cmp dword [edi + 0x4850], 0
je 0x479678
mov dword [edi + 0x4824], 1
cmp dword [edi + 0x4824], 0
je 0x479688
mov ecx, edi
call fcn.00471b60
push dword [ebp - 0x314]
mov ecx, edi
push dword [ebp - 0x310]
push dword [ebp - 0x318]
push ebx
call fcn.00471310
mov dword [ebp - 0x31c], 1
add esi, 4
cmp esi, dword [ebx + 0x5c]
jne 0x479640
mov eax, dword [ebx + 0xd4]
mov esi, dword [ebx + 0xd0]
mov dword [ebp - 0x320], eax
cmp esi, eax
je 0x479715
nop word [eax + eax]
mov edi, dword [esi]
cmp dword [edi + 0x4930], 5
jne 0x47970e
mov ecx, dword [edi + 0x49e8]
test ecx, ecx
je 0x47970e
call fcn.00471b60
push dword [ebp - 0x314]
mov ecx, dword [edi + 0x49e8]
push dword [ebp - 0x310]
push dword [ebp - 0x318]
push ebx
call fcn.00471310
mov eax, dword [ebp - 0x320]
add esi, 4
cmp esi, eax
jne 0x4796d0
push dword [ebp - 0x318]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
add esp, 4
cmp dword [0x7c1e70], 1
jle 0x479757
push dword [ebp - 0x310]
call esi
add esp, 4
cmp dword [0x7c1e70], 4
jl 0x479757
cmp dword [0x7c1e4c], 0
jne 0x479757
push dword [ebp - 0x314]
call esi
add esp, 4
cmp dword [ebp - 0x31c], 0
jne 0x479770
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
Function at 0x493390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x244], 0
je 0x4935bc
mov eax, dword [esi + 0xec]
sub eax, dword [esi + 0xe8]
test eax, 0xfffffffc
je 0x4935bc
push 0x7c1d48
lea eax, [ebp - 0x10c]
xor ebx, ebx
push str._sResultShopEf.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x4a6fb8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
mov dword [ebp - 0x11c], edi
test edi, edi
je 0x4935bc
mov ecx, dword [esi + 0xec]
sub ecx, dword [esi + 0xe8]
sar ecx, 2
push ecx
push 0x4a77cc
push edi
call fcn.00411e60
mov ecx, dword [esi + 0xec]
add esp, 0xc
mov eax, dword [esi + 0xe8]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x118], eax
cmp eax, ecx
je 0x49359e
nop dword [eax + eax]
mov eax, dword [eax]
sub esp, 8
mov dword [ebp - 0x110], eax
movsd xmm0, qword [eax + 0x6d50]
add eax, 0x6c5c
movsd qword [esp], xmm0
push eax
push str._s__lf_n
push edi
call fcn.00411e60
add esp, 0x14
push 1
push 0x4a77cc
push edi
call fcn.00411e60
mov ecx, dword [ebp - 0x110]
add esp, 4
xor esi, esi
movsd xmm0, qword [ecx + 0x6d50]
movsd qword [esp], xmm0
push 1
push str._d__lf_n
push edi
call fcn.00411e60
mov eax, dword [ebp - 0x110]
add esp, 0x14
mov ecx, dword [eax + 0x485c]
mov edx, dword [eax + 0x4858]
mov dword [ebp - 0x114], ecx
cmp edx, ecx
je 0x4934f8
mov edi, ecx
nop
mov eax, dword [edx]
mov ecx, dword [eax + 0x49a0]
sub ecx, dword [eax + 0x499c]
lea eax, [esi + 1]
sar ecx, 2
test ecx, ecx
cmove eax, esi
add edx, 4
mov esi, eax
cmp edx, edi
jne 0x4934d0
mov edi, dword [ebp - 0x11c]
push esi
push 0x4a77cc
push edi
call fcn.00411e60
mov ecx, dword [ebp - 0x110]
add esp, 0xc
mov eax, dword [ecx + 0x485c]
mov esi, dword [ecx + 0x4858]
mov dword [ebp - 0x114], eax
cmp esi, eax
je 0x493575
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x49a0]
sub eax, dword [ecx + 0x499c]
sar eax, 2
test eax, eax
je 0x49356a
movsd xmm0, qword [ecx + 0x6f68]
sub esp, 8
inc ebx
movsd qword [esp], xmm0
push dword [ecx + 0x4818]
push str._d__lf
push edi
call fcn.00411e60
add esp, 0x14
add esi, 4
cmp esi, dword [ebp - 0x114]
jne 0x493530
push 0x4a7b04
push edi
call fcn.00411e60
mov eax, dword [ebp - 0x118]
add esp, 8
add eax, 4
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0x120]
jne 0x493450
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
jne 0x4935bc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
Function at 0x4a10e0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a111f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a111f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a111f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a111f
cmp dword [ecx + 0x74], 0xe
jbe 0x4a111f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a8b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00418a40
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00418a40
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40a910
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x506078]
test esi, esi
jle 0x40aa30
mov eax, dword [0x50607c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40a944
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40a9c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40a930
mov dword [esp], ebx
call fcn.0040b300
mov edi, eax
test eax, eax
je 0x40aa57
mov eax, dword [0x50607c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040b440
mov edx, dword [0x50607c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40aa37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40a9c0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40a9d0
add dword [0x506078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x50607c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a9c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040a8b0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40a94e
mov eax, dword [0x50607c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040a8b0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040a8b0
lea esi, [esi]
nop
Function at 0x40af70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x506094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x50608c]
sub esp, 4
test ebx, ebx
je 0x40afc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40afbe
test esi, esi
je 0x40afbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40afa0
mov dword [esp], 0x506094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b300
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b325
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b330
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b325
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40b378
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40b36e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40b37a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40b360
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41b100
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
sub esp, 0x84
movups xmmword [ebp - 0x23], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x4bf150]
movdqu xmm3, xmmword [0x4bf160]
movups xmmword [ebp - 0x43], xmm0
movups xmmword [ebp - 0x73], xmm1
movups xmmword [ebp - 0x63], xmm2
movups xmmword [ebp - 0x53], xmm3
movups xmmword [ebp - 0x33], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [ebp - 0x4c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x4c], 0
je 0x41b1b3
mov eax, 0x27
lea edx, [ebp - 0x73]
jmp 0x41b185
cmp eax, 0x6a
je 0x41b1a2
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x41b180
cmp eax, 0x6a
je 0x41b1a2
add ecx, 2
mov byte [ebp + eax - 0x73], 0xa
mov byte [ebp + ecx - 0x73], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [ebp - 0x73]
jmp 0x41b198

Function at 0x41b540
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x506bf4], 1
je 0x41b5f8
push edi
mov eax, 0x506bf4
push esi
push ebx
sub esp, 0x10
call fcn.0041aee0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0041a760
mov edi, dword [0x506bf4]
test edi, edi
jne 0x41b5b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4b8424], eax
cmp eax, 0xffffffff
je 0x4b115d
mov dword [0x506bf4], 1
mov dword [esp], esi
call fcn.0041aaa0
test ebx, ebx
je 0x41b5ea
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041b1d0
cmp edi, 1
je 0x41b592
mov dword [esp], 2
call dword [0x4b8410]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x506bf4
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0041aaa0
test ebx, ebx
jne 0x41b59e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x41b600
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0041b2c0
mov edx, dword [entry3]
test edx, edx
je 0x41b730
mov ebx, eax
test eax, eax
je 0x41b730
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041ade0
cmp eax, 1
je 0x41b73c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.004b1162
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4b8424]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41b741
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041b100
jmp fcn.004b1162

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

Disassembly:
sub esp, 0x1c
call fcn.0041b540
mov eax, dword [0x4b8424]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b778
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0041b600
Function at 0x41ba40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41ba70
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41bb40
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x41bb70
cmp eax, 3
jne 0x41ba5b
mov eax, dword [0x4b8424]
cmp eax, 0xffffffff
je 0x41ba5b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41ba5b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x41bba0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41bab9
call fcn.0041b780
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41baeb
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41badd
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [esp], esi
call fcn.0041ac20
mov dword [esp], edi
call fcn.0041ade0
cmp eax, 1
je 0x41bc66
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41bc5a
mov eax, dword [0x4b8424]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41ba5b
mov eax, dword [0x506bd0]
test eax, eax
je 0x41ba5b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x506bd0], 0
sub esp, 4
jmp 0x41ba5b
mov dword [esp + 4], 0x41ae50
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x506bd0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41bc10
test eax, eax
je 0x41bbba
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x41bbd7
call fcn.0041b780
test byte [ebx + 0x24], 4
je 0x41bc50
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41baeb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041ac20
jmp 0x41baf3
test eax, eax
je 0x41bc50
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041ac20
mov dword [esp], edi
call fcn.0041ade0
cmp eax, 1
je 0x41bc66
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41ba5b
mov dword [esp], esi
call fcn.0041ac20
jmp 0x41bc2f
mov eax, ebx
call fcn.0041b380
jmp 0x41bb19
call fcn.0041b100
lea esi, [esi]
nop