joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100329b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100329bf
pop dword [ebp - 0x4c]
mov eax, 0x24dc20c8
sub eax, 0x14d8f709
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc23328b2
add dword [ebp - 0x5c], 0x8c1f1c99
mov dword [ebp - 0x58], 0x4bf9b08f
sub dword [ebp - 0x58], 0x19c6644a
mov dword [ebp - 0x54], 0x76da9c90
add dword [ebp - 0x54], 0xd571a79e
mov dword [ebp - 0x50], 0x71902330
add dword [ebp - 0x50], 0x8e6fdcd0
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xd75c4593
sub eax, 0xc758f47b
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x5ea1f19b
sub dword [ebp - 0x5c], 0xea2f8845
mov dword [ebp - 0x58], 0x172178a4
sub dword [ebp - 0x58], 0xd5b5172f
mov dword [ebp - 0x54], 0x29720ce6
add dword [ebp - 0x54], 0x39fd5f86
mov dword [ebp - 0x50], 0x4ea1c0b2
add dword [ebp - 0x50], 0xb15e3f4e
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x913110f3
add eax, 0x7ed24071
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ebf6
push 0
call eax
mov ecx, 0x56af
xor ebx, ebx
add ebx, eax
mov esi, 0x4ee2f6c9
sub esi, 0x3eda72c9
add esi, dword [ebp - 0x4c]
mov edx, 0x686806d
sub dword [ebp - 4], eax
mov edi, dword [esi]
xor edi, edx
add dword [ebp - 0x34], edi
mov dword [ebx], edi
sub dword [ebp - 0x24], eax
add ebx, 4
add esi, 0xae83b864
sub esi, 0xae83b860
loop 0x10032ad7
add eax, 0x36009462
sub eax, 0x35ff46d3
mov ebx, eax
add eax, 5
mov ecx, 0x3c76371
add ecx, 0xc389c8f
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x1003384b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10033862
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x100338ce
cmp dword [esi + 0x4c], 0
jl 0x100338cc
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003389a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003386b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003386b
cmp ebx, 1
jge 0x100338a7
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x100338ec
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x100338ce
push esi
call fcn.100348ff
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x100338ce
xor bl, bl
cmp bl, 0xa
jne 0x100338e2
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x100338ec
test bl, bl
je 0x100338ec
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x100347ff
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10034812
mov al, byte [eax]
jmp 0x10034855
cmp dword [esi + 0x4c], 0
jl 0x10034853
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003484a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003481b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003481b
cmp ebx, 1
jge 0x10034859
or dword [esi + 0x4c], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
ret
lea ecx, [ebx + edi]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
mov al, byte [edi]
jmp 0x10034855

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0xc415209
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5e141ef0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401443
pop dword [ebp - 0x24]
mov eax, 0x7bf169fd
add eax, 0x844eaa46
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x9e3934a6
sub dword [ebp - 0x34], 0x4fe6ef5b
mov dword [ebp - 0x30], 0x62f4044b
sub dword [ebp - 0x30], 0x30c0b806
mov dword [ebp - 0x2c], 0x4fcd16db
add dword [ebp - 0x2c], 0xfc7f2d53
mov dword [ebp - 0x28], 0x1137dfb6
sub dword [ebp - 0x28], 0x1137dfb6
lea eax, [ebp - 0x34]
push eax
mov eax, 0x237da0db
add eax, 0xdcc2df9d
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xf4fc631c
sub dword [ebp - 0x34], 0x8089f9c6
mov dword [ebp - 0x30], 0xaaa9ae59
add dword [ebp - 0x30], 0x96c2b31c
mov dword [ebp - 0x2c], 0x1635da93
sub dword [ebp - 0x2c], 0xb2c66e27
mov dword [ebp - 0x28], 0xc853ac59
add dword [ebp - 0x28], 0x37ac53a7
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x4da0d93c
sub eax, 0x4d6058c0
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3cd95
push 0
call eax
mov ecx, 0x4f0bad53
sub ecx, 0x4f0b536f
xor ebx, ebx
add ebx, eax
mov esi, 0x451400
add esi, dword [ebp - 0x24]
mov edi, 0x931a0dd1
mov edx, dword [esi]
xor dword [ebp - 0xc], 0x3e41d710
sub edx, edi
xor dword [ebp - 0xc], edx
mov dword [ebx], edx
add ebx, 0x35a13c27
sub ebx, 0x35a13c23
add esi, 0x9f200be5
sub esi, 0x9f200be1
loop 0x40155b
add eax, 0xab73e835
sub eax, 0xab728dd2
mov ebx, eax
add eax, 0x59b5bde4
sub eax, 0x59b5bddf
mov ecx, 0x4f8d1c0d
add ecx, 0xb0b2e3f3
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x4f293f79
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x7de626d0
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x900960
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d5000]
push edi
jmp 0x90097a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x900981
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x900970
mov eax, 1
add ebx, ebx
jne 0x900993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9009a4
jne 0x9009c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9009c3
dec eax
add ebx, ebx
jne 0x9009b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x900988
add ebx, ebx
jne 0x9009bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x900a15
xor ecx, ecx
sub eax, 3
jb 0x9009db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x900a4a
sar eax, 1
mov ebp, eax
jmp 0x9009e6
add ebx, ebx
jne 0x9009e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9009b4
inc ecx
add ebx, ebx
jne 0x9009f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9009b4
add ebx, ebx
jne 0x900a01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9009f6
jne 0x900a12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9009f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x900a34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x900a26
jmp 0x900976
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x900a34
add edi, ecx
jmp 0x900976
pop esi
mov edi, esi
mov ecx, 0xce92
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x900a52
cmp byte [edi], 0x22
jne 0x900a52
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 0x900a57
lea edi, [esi + 0x4fd000]
mov eax, dword [edi]
or eax, eax
je 0x900acf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x543184]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5432e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x900a84
mov ecx, edi
jns 0x900ab3
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 + 0x5432ec]
or eax, eax
je 0x900ac9
mov dword [ebx], eax
add ebx, 4
jmp 0x900aa1
call dword [esi + 0x5432e8]
mov ebp, dword [esi + 0x5432f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x900b03
sub esp, 0xffffff80
jmp 0x5b2402
Function at 0x4016d2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov word [ebp - 0xa], 0x202
movzx eax, word [ebp - 0xa]
lea edx, [ebp - 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401720
mov eax, 0
jmp 0x401754
movzx eax, word [ebp - 0x1a0]
cmp al, 2
jne 0x40173a
movzx eax, word [ebp - 0x1a0]
shr ax, 8
cmp al, 2
je 0x401748
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 0
jmp 0x401754
mov byte [0x44c044], 1
mov eax, 1
leave
ret

Function at 0x4021e8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea edx, [ebp - 9]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
shr eax, 0x1f
test al, al
je 0x40224c
mov dword [esp], 4
call fcn.0042f7b0
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x437f4c
mov dword [esp], eax
call fcn.0042fb30
movzx eax, byte [ebp - 9]
leave
ret

Function at 0x4023cb
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.004246a0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.004246a0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x40dd00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00419410
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.00419410
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 0x40dd60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x44c078]
test esi, esi
jle 0x40de80
mov eax, dword [0x44c07c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40dd94
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40de17
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40dd80
mov dword [esp], ebx
call fcn.0040e760
mov edi, eax
test eax, eax
je 0x40dea7
mov eax, dword [0x44c07c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040e8a0
mov edx, dword [0x44c07c]
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 0x40de87
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40de10
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40de20
add dword [0x44c078], 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 [0x44c07c]
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 0x40de10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040dd00
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40dd9e
mov eax, dword [0x44c07c]
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.0040dd00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040dd00
lea esi, cs:[esi]
nop
Function at 0x40e3d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x44c094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x44c08c]
sub esp, 4
test ebx, ebx
je 0x40e425
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40e41e
test eax, eax
jne 0x40e41e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40e400
mov dword [esp], 0x44c094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e760
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40e785
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40e790
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40e785
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x40e7d8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40e7ce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40e7da
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40e7c0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4137b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x4137e9
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x413810
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], str._stack_smashing_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x413849
mov ecx, 2
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x41a5d0
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
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x44c0f8]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call fcn.0041fb40
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x41a9c0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x44caf4], 1
je 0x41aa60
push edi
mov eax, 0x44caf4
push esi
push ebx
sub esp, 0x10
call fcn.0041a3c0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00419cb0
mov edi, dword [0x44caf4]
test edi, edi
jne 0x41aa30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x433124], eax
cmp eax, 0xffffffff
je 0x4317f5
mov dword [0x44caf4], 1
mov dword [esp], esi
call fcn.00419fe0
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041a650
cmp edi, 1
je 0x41aa12
mov dword [esp], 2
call dword [0x43310c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x44caf4
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41aa12
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

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

Disassembly:
sub esp, 0x1c
call fcn.0041a9c0
mov eax, dword [0x433124]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41abc8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0041aa70
Function at 0x41aea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41aec8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x41afc0
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x41af90
cmp eax, 3
jne 0x41aeb9
mov eax, dword [0x433124]
cmp eax, 0xffffffff
je 0x41aeb9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41aeb9
test byte [eax + 0x20], 0x30
je 0x41aff0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41af0b
call fcn.0041abd0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41af3d
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41af2f
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041a180
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041e1e0
cmp eax, 1
je 0x41b0be
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41b0b2
mov eax, dword [0x433124]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41aeb9
mov eax, dword [0x44cacc]
test eax, eax
je 0x41afdc
mov dword [esp + 4], 0x41a330
mov dword [esp], 1
call eax
mov dword [0x44cad0], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x44cad0]
test eax, eax
je 0x41aeb9
mov edx, dword [0x44cac8]
test edx, edx
je 0x41afdc
mov dword [esp], eax
call edx
mov dword [0x44cad0], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41b064
test eax, eax
je 0x41b00a
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 0x41b027
call fcn.0041abd0
test byte [ebx + 0x24], 4
je 0x41b0a2
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41af3d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], eax
call fcn.0041a180
lea eax, [ebx + 0x38]
jmp 0x41af4b
test eax, eax
je 0x41b0a2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.0041a180
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041e1e0
cmp eax, 1
je 0x41b0be
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41aeb9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041a180
lea eax, [ebx + 0x38]
jmp 0x41b089
mov eax, ebx
call fcn.0041a800
jmp 0x41af71
call fcn.0041a5d0
lea esi, cs:[esi]
lea esi, cs:[esi]