joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406316
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.00405dfd
test edi, 8
mov dword [ebp - 0x158], eax
je 0x40635c
mov ebx, dword [0x42f8e8]
push esi
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
sete al
movzx eax, al
add eax, ebx
mov dword [0x42f8e8], eax
jmp 0x4064fd
mov ebx, edi
and ebx, 1
je 0x40637c
cmp dword [ebp - 0x158], 0
je 0x4064a5
test edi, 2
je 0x4064a5
push esi
push 0x42def0
call fcn.00405d1f
test ebx, ebx
je 0x40639c
push str..
push 0x42def0
call fcn.00405dc4
jmp 0x4063a2
push esi
call fcn.00405d99
push 0x40a566
push esi
call fcn.00405dc4
push esi
call fcn.00405d36
lea eax, [esi + eax]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x14c]
push eax
push 0x42def0
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x150], eax
inc eax
je 0x406493
lea ebx, [ebp - 0x120]
push 0x3f
push ebx
call fcn.004059c9
cmp byte [eax], 0
je 0x4063f6
cmp byte [ebp - 0x1c], 0
je 0x4063f6
lea ebx, [ebp - 0x1c]
cmp byte [ebx], 0x2e
jne 0x40640c
mov al, byte [ebx + 1]
test al, al
je 0x40646e
cmp al, 0x2e
jne 0x40640c
cmp byte [ebx + 2], 0
je 0x40646e
push ebx
push dword [ebp - 0x154]
call fcn.00405d1f
test byte [ebp - 0x14c], 0x10
je 0x406434
mov eax, edi
and eax, 3
cmp eax, 3
jne 0x40646e
push edi
push esi
call fcn.00406316
jmp 0x40646e
push esi
call fcn.00405b47
push esi
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
jne 0x406466
test edi, 4
je 0x40645e
push esi
push 0xfffffffffffffff1
call fcn.004050ab
push 0
push esi
call fcn.00406144
jmp 0x40646e
inc dword [0x42f8e8]
jmp 0x40646e
push esi
push 0xfffffffffffffff2
call fcn.004050ab
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x150]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4063da
push dword [ebp - 0x150]
call sub.KERNEL32.dll_FindClose
test edi, 1
je 0x4064a5
mov eax, dword [ebp - 0x154]
mov byte [eax - 1], 0
test edi, 1
je 0x4064fd
cmp dword [ebp - 0x158], 0
je 0x4064ed
push esi
call fcn.004059a1
test eax, eax
je 0x4064fd
push esi
call fcn.00405dcd
push esi
call fcn.00405b47
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
jne 0x4064f5
and edi, 4
je 0x4064ed
push esi
push 0xfffffffffffffff1
call fcn.004050ab
push 0
push esi
call fcn.00406144
jmp 0x4064fd
inc dword [0x42f8e8]
jmp 0x4064fd
push esi
push 0xffffffffffffffe5
call fcn.004050ab
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x119f008], 0x8088405
inc edx
mov dword [ebx + 0x119f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x118353a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1183541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x118489f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x11a1348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x11a1348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x11a0178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11848a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401000
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x401075
mov edx, edi
add edx, dword [edi + 0x3c]
cmp word [edx], 0x4550
jne 0x401075
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 0x18]
jge 0x401075
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + ecx*4]
add ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.004011b7
cmp eax, 1
je 0x401055
inc ecx
jmp 0x401033
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
xor ebx, ebx
mov bx, word [eax + ecx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax + ebx*4]
add eax, dword [ebp + 8]
jmp 0x401077
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40107d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [0x402010], 0x400000
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadIconA]
sub esp, 8
mov dword [0x402014], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
sub esp, 8
mov dword [0x402018], eax
mov eax, section..data
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassA]
sub esp, 4
test eax, eax
je 0x4011a8
mov dword [esp], 0
mov dword [esp + 4], 0x402044
mov dword [esp + 8], 0x402049
mov dword [esp + 0xc], 0x80000
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], 0xc0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x402010]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
test eax, eax
je 0x4011a8
mov dword [esp], 0x402028
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.user32.dll_GetMessageA]
sub esp, 0x10
cmp eax, 1
jb 0x4011a8
jne 0x40113d
push 0x40207e
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x402089], eax
push 0x402069
push dword [0x402089]
call section..text
push 0x402028
call eax
sub esp, 4
mov dword [esp], 0x402028
call dword [sym.imp.user32.dll_DispatchMessageA]
sub esp, 4
jmp 0x40113d
leave
mov eax, dword [0x402030]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x4012cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x40208d
mov ecx, dword [0x4011e4]
dec ecx
mov bl, byte [0x4011e8]
rdtsc
push eax
mov bh, byte [esi]
mov byte [edi], bh
inc edi
inc esi
inc esi
push eax
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
pop eax
loop 0x4012e9
rdtsc
pop edx
sub eax, edx
pop edx
push 0
push dword [0x40204f]
call dword [sym.imp.Msacm32.dll_acmStreamClose]
sub edx, eax
push edx
push 0
push 2
push 0x402067
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
sub edx, eax
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3eed309b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2b97c7a
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4ee0b0
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x53f73c]
test esi, esi
jle 0x4ee230
mov eax, dword [0x53f740]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4ee144
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4ee1c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4ee130
mov dword [esp], ebx
call fcn.004eeb00
mov edi, eax
test eax, eax
je 0x4ee257
mov eax, dword [0x53f740]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004eec40
mov edx, dword [0x53f740]
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 0x4ee237
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4ee1c0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4ee1d0
add dword [0x53f73c], 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 [0x53f740]
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 0x4ee1c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004ee0b0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4ee14e
mov eax, dword [0x53f740]
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.004ee0b0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004ee0b0
lea esi, [esi]
nop
Function at 0x4ee770
Capabilities:
Get thread local storage value

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

Function at 0x4eeb00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4eeb25
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4eeb30
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4eeb25
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 0x4eeb78
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4eeb6e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4eeb7a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4eeb60
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4f3c10
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 0x4f3c49
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 0x4f3c70
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 0x4f3ca9
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 0x4fa2f0
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 [0x53f7bc]
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.004ff890
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
lea esi, [esi]
lea esi, [esi]
nop

Function at 0x4fa6e0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x5401b4], 1
je 0x4fa798
push edi
mov eax, 0x5401b4
push esi
push ebx
sub esp, 0x10
call fcn.004fa0d0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004f99e0
mov edi, dword [0x5401b4]
test edi, edi
jne 0x4fa750
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x52fcb8], eax
cmp eax, 0xffffffff
je 0x52e215
mov dword [0x5401b4], 1
mov dword [esp], esi
call fcn.004f9d10
test ebx, ebx
je 0x4fa78a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.004fa370
cmp edi, 1
je 0x4fa732
mov dword [esp], 2
call dword [0x52fca0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5401b4
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.004f9d10
test ebx, ebx
jne 0x4fa73e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

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

Disassembly:
sub esp, 0x1c
call fcn.004fa6e0
mov eax, dword [0x52fcb8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4fa8f8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004fa7a0
Function at 0x4fabc0
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 0x4fabe8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4face0
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x4facb0
cmp eax, 3
jne 0x4fabd9
mov eax, dword [0x52fcb8]
cmp eax, 0xffffffff
je 0x4fabd9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4fabd9
test byte [eax + 0x20], 0x30
je 0x4fad10
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4fac2b
call fcn.004fa900
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4fac5d
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 0x4fac4f
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.004f9e90
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004fdf70
cmp eax, 1
je 0x4fadde
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4fadd2
mov eax, dword [0x52fcb8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4fabd9
mov eax, dword [0x54018c]
test eax, eax
je 0x4facfc
mov dword [esp + 4], 0x4fa040
mov dword [esp], 1
call eax
mov dword [0x540190], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x540190]
test eax, eax
je 0x4fabd9
mov edx, dword [0x540188]
test edx, edx
je 0x4facfc
mov dword [esp], eax
call edx
mov dword [0x540190], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4fad84
test eax, eax
je 0x4fad2a
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 0x4fad47
call fcn.004fa900
test byte [ebx + 0x24], 4
je 0x4fadc2
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4fac5d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], eax
call fcn.004f9e90
lea eax, [ebx + 0x38]
jmp 0x4fac6b
test eax, eax
je 0x4fadc2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call fcn.004f9e90
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004fdf70
cmp eax, 1
je 0x4fadde
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4fabd9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004f9e90
lea eax, [ebx + 0x38]
jmp 0x4fada9
mov eax, ebx
call fcn.004fa520
jmp 0x4fac91
call fcn.004fa2f0
lea esi, [esi]
lea esi, [esi]