joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6adb36d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x6adb3728
test esi, esi
je 0x6adb3718
test edi, edi
je 0x6adb3718
mov eax, dword [ebx + 0x58]
mov dword [edi], eax
mov dword [esp + 0x24], ebx
add ebx, 0x48
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.6ada4da0
mov eax, 0x18
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 0x148]
mov dword [esp], eax
call fcn.6ad90a90
test al, al
je 0x6adb36ec
mov eax, 0x2d
jmp 0x6adb371d

Function at 0x6adb3750
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x6adb37c8
mov edi, dword [ebx + 0x58]
lea eax, [esp + 0x1c]
mov dword [esp + 4], ebx
add ebx, 0x48
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.6ada4da0
mov esi, eax
test eax, eax
jne 0x6adb37b8
mov eax, dword [esp + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, edi
jne 0x6ae0ca2b
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.6adab410
add esp, 0x20
mov eax, esi
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 0x148]
mov esi, 0x2d
mov dword [esp], eax
call fcn.6ad90a90
test al, al
je 0x6adb3764
jmp 0x6adb37b8
mov dword [esp], str.Failed_to_extract_XML_data
mov esi, 0x48
call fcn.6ae0b49f
jmp 0x6adb37ac
Function at 0x6adb8c50
Capabilities:
Get disk information

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x24c
mov dword [edx], 0
mov byte [ecx], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0x6ae206ea
mov dword [esp], eax
call sub.msvcrt.dll_wcsncmp
mov edx, eax
lea eax, [esi + 8]
test edx, edx
cmovne eax, esi
movzx ecx, word [eax]
mov edx, ecx
and edx, 0xffffffdf
sub edx, 0x41
cmp dx, 0x19
ja 0x6adb8ca3
cmp word [eax + 2], 0x3a
je 0x6adb8d20
xor edx, edx
xor eax, eax
mov word [esp + 0x2e], dx
lea ebp, [esp + 0x36]
mov dword [esp + 0x1c], 0x105
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x6adb8d49
mov dword [esp + 4], 0x6ae2074a
mov dword [esp], ebp
call sub.msvcrt.dll_wcsstr
test eax, eax
je 0x6adb8d0d
or dword [ebx], 0xc00000
mov byte [edi], 1
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov word [esp + 0x2e], cx
test cx, cx
je 0x6adb8d42
xor eax, eax
mov dword [esp + 0x30], 0x5c003a
mov word [esp + 0x34], ax
lea eax, [esp + 0x2e]
jmp 0x6adb8cac
xor eax, eax
jmp 0x6adb8cac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Failed_to_get_volume_information_for___ls_
mov dword [esp], eax
call fcn.6ae0df08
jmp 0x6adb8d0d

Function at 0x6adb8f80
Capabilities:
Get file attributes

Disassembly:
test byte [ecx + 0xe], 0x10
jne 0x6adb9050
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x50
mov ecx, dword [ecx + 0xdc]
test ecx, ecx
jne 0x6adb8fa8
xor eax, eax
add esp, 0x50
pop ebx
pop esi
pop edi
ret
mov esi, eax
lea eax, [esp + 0x28]
mov edi, dword [edx + 0x24]
mov dword [esp + 0x10], 4
mov dword [esp + 8], eax
lea eax, [ebx + 0x1a8]
mov dword [esp + 0xc], 0x28
and edi, 0x800
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.ntdll.dll_NtQueryInformationFile
sub esp, 0x14
test eax, eax
js 0x6adb8ff7
mov eax, dword [esp + 0x48]
test edi, edi
setne dl
shr eax, 0xb
and eax, 1
cmp dl, al
je 0x6adb8f9c
test edi, edi
je 0x6adb9058
lea eax, [esp + 0x26]
mov dword [esp], esi
mov edx, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x9c040
mov word [esp + 0x26], dx
call fcn.6adb7d60
mov esi, eax
test eax, eax
jns 0x6adb8f9c
jmp 0x6ae0e06d
xor eax, eax
ret
xor eax, eax
mov dword [esp], esi
mov word [esp + 0x26], ax
lea eax, [esp + 0x26]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x9c040
call fcn.6adb7d60
mov esi, eax
test eax, eax
jns 0x6adb8f9c
jmp 0x6ae0e03f
mov eax, ebx
call fcn.6adb7f70
mov edx, str.clear
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6ae207c0
mov dword [esp], esi
call fcn.6ae0df7d
mov eax, 0x39
jmp 0x6adb8f9e
mov eax, ebx
call fcn.6adb7f70
mov edx, 0x6ae207bc
jmp 0x6ae0e04b
Function at 0x6adbc3f0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, edx
sub esp, 0x98
lea edx, [esp + 0x28]
mov dword [esp + 0x10], 0x12
mov dword [esp + 8], edx
lea edx, [esp + 0x20]
mov dword [esp + 0xc], 0x68
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ntdll.dll_NtQueryInformationFile
sub esp, 0x14
test eax, eax
jns 0x6adbc42f
cmp eax, 0x80000005
jne 0x6adbc48b
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x1c], edx
mov edx, dword [esp + 0x6c]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x30], eax
xor eax, eax
add esp, 0x98
pop ebx
ret
Function at 0x6adc0060
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword [esp + 0x30]
add esp, 0x4c
ret

Function at 0x6adc0080
Capabilities:
Get memory capacity

Disassembly:
push edi
xor eax, eax
mov ecx, 0xf
push ebx
sub esp, 0x54
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
sub esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], 0x64
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov ebx, ecx
cmp edi, eax
sbb ebx, edx
cmovb edx, ecx
cmovb eax, edi
imul ecx, edx, 0x55
mov edx, 0x55
mul edx
add edx, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.6adf5af0
add esp, 0x54
pop ebx
pop edi
ret

Function at 0x6adc01e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
je 0x6adc0218
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
je 0x6adc0250
call ebx
mov ebx, eax
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, eax
mov eax, ebx
call fcn.6adbfb30
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov ecx, eax
lea eax, [eax + eax + 0x39]
shr eax, 4
shl eax, 4
call fcn.6adf5970
sub esp, eax
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0x1b]
mov dword [esp + 8], ecx
and esi, 0xfffffff0
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6adf6040
mov dword [esp + 8], 5
mov dword [esp + 4], str..orig
mov dword [esp], eax
call fcn.6adf6040
mov dword [esp + 4], 9
mov dword [esp], eax
mov edi, eax
call fcn.6adab6c0
xor eax, eax
mov word [edi + 0x12], ax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
je 0x6adc0225
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
je 0x6adc0321
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x6adc020b
call fcn.6adbffe0
mov eax, dword [ebp + 8]
mov dword [esp], str.Atomic_semantics_not_respected_in_failed_rename____new_file_is_at___ls__
mov dword [esp + 4], eax
call fcn.6ae0b4f3
mov eax, 1
jmp 0x6adc020d
call fcn.6adbffe0
mov dword [esp + 4], esi
mov dword [esp], str.Failed_to_delete_original_file__moved_to___ls__
call fcn.6ae0b4f3
jmp 0x6adc02e5
Function at 0x6adc03c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
pop ebx
pop esi
jmp 0x6adbfde0

Function at 0x6adc03f0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp + 0x2c], 0xffffffff
mov ebx, eax
cmp eax, 0xffffffff
je 0x6adc0468
cmp esi, 0x100000
mov eax, 0x100000
mov dword [esp], 0
cmova esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x6adc04a2
mov ebx, dword [esp + 0x2c]
cmp ebx, esi
ja 0x6adc0478
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 0x250
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str.result___count
call dword [0x6ae0f298]
mov ebx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.Error_reading__zu_bytes_from_fd__d
call fcn.6ae0df2f
mov eax, ebx
or ebx, 0xffffffff
call fcn.6adbfdc0
jmp 0x6adc0468

Function at 0x6adc04d0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp + 0x2c], 0xffffffff
mov ebx, eax
cmp eax, 0xffffffff
je 0x6adc0548
cmp esi, 0x100000
mov eax, 0x100000
mov dword [esp], 0
cmova esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x6adc0582
mov ebx, dword [esp + 0x2c]
cmp ebx, esi
ja 0x6adc0558
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 0x268
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str.result___count
call dword [0x6ae0f298]
mov ebx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.Error_writing__zu_bytes_to_fd__d
call fcn.6ae0df2f
mov eax, ebx
or ebx, 0xffffffff
call fcn.6adbfdc0
jmp 0x6adc0548
Function at 0x6adc09c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
test ebx, ebx
je 0x6adc09f3
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x6ae0f298]
nop
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.dll_SystemFunction036
sub esp, 8
test al, al
je 0x6adc09fb
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6ae256c8
mov dword [esp], eax
call fcn.6ae0df2f
mov dword [esp + 8], 0x302
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], 0x6ae2570a
call edi
jmp 0x6adc09e0
Function at 0x6addf424
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x6ae672dc]
test ebx, ebx
jne 0x6addf49b
mov dword [0x6ae672dc], 1
call fcn.6ade51d0
mov dword [esp], str.XML_MEM_BREAKPOINT
mov dword [0x6ae672cc], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6addf471
mov dword [esp + 8], 0x6ae672c4
mov dword [esp + 4], 0x6ae293f8
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
mov dword [esp], str.XML_MEM_TRACE
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6addf49e
mov dword [esp + 8], 0x6ae672c0
mov dword [esp + 4], 0x6ae2940a
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
jmp 0x6addf49e
or ebx, 0xffffffff
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x6ade7269
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x6ade72a4
test eax, eax
je 0x6ade72a4
push ebp
mov ebp, esp
push esi
push ebx
xor ebx, ebx
movzx esi, byte [eax + ebx]
inc ebx
add ecx, esi
imul ecx, ecx, 0x401
mov esi, ecx
shr esi, 6
xor ecx, esi
cmp edx, ebx
jg 0x6ade7278
lea eax, [ecx + ecx*8]
pop ebx
pop esi
mov ecx, eax
pop ebp
shr ecx, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
xor eax, eax
ret

Function at 0x6adf4ef0
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6ae67758]
test esi, esi
jle 0x6adf5050
mov eax, dword [0x6ae6775c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6adf4f80
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6adf4fff
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6adf4f70
mov dword [esp], ebx
call fcn.6adf5690
mov edi, eax
test eax, eax
je 0x6adf5077
mov eax, dword [0x6ae6775c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6adf57d0
mov edx, dword [0x6ae6775c]
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 0x6adf5057
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6adf4ff8
sub eax, 4
and eax, 0xfffffffb
jne 0x6adf5006
add dword [0x6ae67758], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6ae6775c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6adf4ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6adf4ef0
xor esi, esi
jmp 0x6adf4f8a
mov eax, dword [0x6ae6775c]
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.6adf4ef0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6adf4ef0
lea esi, [esi]
nop

Function at 0x6adf5690
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6ad80000], 0x5a4d
jne 0x6adf56b5
mov ecx, dword [0x6ad8003c]
cmp dword [ecx + 0x6ad80000], 0x4550
lea edx, [ecx + 0x6ad80000]
je 0x6adf56c0
ret
cmp word [ecx + 0x6ad80018], 0x10b
jne 0x6adf56b5
push esi
movzx eax, word [ecx + 0x6ad80014]
push ebx
movzx esi, word [ecx + 0x6ad80006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6ad80000
test esi, esi
je 0x6adf5708
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6adf56fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6adf570a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6adf56f0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x6ae07820
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x6ae078fb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x6ae078cd
cmp eax, 0x6a
je 0x6ae078ea
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ae078c8
cmp eax, 0x6a
je 0x6ae078ea
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 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, [esp + 0x15]
jmp 0x6ae078e0

Function at 0x6ae07c50
Capabilities:
Allocate thread local storage

Disassembly:
push edi
mov eax, 0x6ae6828c
push esi
push ebx
sub esp, 0x10
call fcn.6ae075e0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.6ae06e50
mov edi, dword [0x6ae6828c]
test edi, edi
jne 0x6ae07cb8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6ae0f330], eax
cmp eax, 0xffffffff
je 0x6ae0eb61
mov dword [0x6ae6828c], 1
mov dword [esp], esi
call fcn.6ae07190
test ebx, ebx
je 0x6ae07ca8
mov eax, ebx
call fcn.6ae07910
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
cmp edi, 1
je 0x6ae07c95
mov dword [esp], 2
call dword [0x6ae0f290]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x6ae6828c
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x6ae07c95
call sub.msvcrt.dll_abort
Function at 0x6ae07cf0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.6ae07a00
mov edx, dword [entry3]
test edx, edx
je 0x6ae07e20
mov ebx, eax
test eax, eax
je 0x6ae07e20
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.6ae074e0
cmp eax, 1
je 0x6ae07e2c
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.6ae0eb66
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 [0x6ae0f330]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6ae07e31
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.6ae07820
jmp fcn.6ae0eb66

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

Disassembly:
sub esp, 0x1c
cmp dword [0x6ae6828c], 1
je 0x6ae07e51
call fcn.6ae07c50
mov eax, dword [0x6ae0f330]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6ae07e70
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.6ae07cf0
Function at 0x6ae08160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x6ae08190
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x6ae08260
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x6ae08290
cmp eax, 3
jne 0x6ae0817a
mov eax, dword [0x6ae0f330]
cmp eax, 0xffffffff
je 0x6ae0817a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6ae0817a
test byte [eax + 0x20], 0x30
je 0x6ae082c0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x6ae081d3
call fcn.6ae07e80
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x6ae08205
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 0x6ae081f7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.6ae07320
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.6ae074e0
cmp eax, 1
je 0x6ae08340
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test ecx, ecx
je 0x6ae083b0
mov eax, dword [0x6ae0f330]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x6ae0817a
mov eax, dword [0x6ae68268]
test eax, eax
je 0x6ae0817a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x6ae68268], 0
sub esp, 4
jmp 0x6ae0817a
mov dword [esp + 4], 0x6ae07550
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x6ae68268], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x6ae08348
test eax, eax
je 0x6ae082da
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 0x6ae082f7
call fcn.6ae07e80
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x6ae08390
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x6ae08320
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.6ae07320
mov dword [esp], esi
call fcn.6ae074e0
cmp eax, 1
jne 0x6ae08224
call fcn.6ae07820
lea esi, [esi]
test eax, eax
je 0x6ae08358
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.6ae07320
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.6ae074e0
cmp eax, 1
je 0x6ae08340
mov dword [ebx + 0x38], 0xffffffff
jmp 0x6ae0817a
mov dword [esp], edi
call fcn.6ae07320
mov dword [esp], esi
call fcn.6ae074e0
cmp eax, 1
jne 0x6ae0837a
jmp 0x6ae08340
mov eax, ebx
call fcn.6ae07ac0
jmp 0x6ae08239