joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5167aa
Capabilities:
Create thread

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
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_CreateEventW]
sub esp, 0x10
test eax, eax
mov esi, eax
mov dword [ebx + 4], eax
jne 0x516818
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
call fcn.004e34b3
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread.entry_event
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.00618cf8
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_CreateEventW]
mov dword [edi + 4], eax
sub esp, 0x10
mov dword [ebx + 8], eax
cmp dword [edi + 4], 0
jne 0x51687c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
call fcn.004e34b3
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread.exit_event
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.00618cf8
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x50ec86
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
mov dword [edi], eax
jne 0x51690a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test esi, esi
je 0x5168d8
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x5168e9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call fcn.004e34b3
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.00618cf8
test esi, esi
je 0x51692b
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x516c29
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
inc eax
jne 0x516c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004e34b3
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], 0x74d8c3
mov dword [esp + 0x18], esi
mov dword [esp], eax
call fcn.00618cf8
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x51b12b
Capabilities:
Move file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x68]
lea esi, [esp + 0x10]
lea edi, [esp + 0x28]
mov ecx, ebx
call fcn.00630934
mov eax, dword [esp + 0x60]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0059a931
mov eax, dword [esp + 0x64]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0059a931
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jns 0x51b192
call fcn.004e3514
mov ebp, eax
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [ebx + 4], ebp
mov dword [ebx], eax
mov ecx, edi
call fcn.006c3fe0
mov ecx, esi
call fcn.006c3fe0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x51b1c4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x30]
sub esp, 0x4c
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00630934
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0059a931
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push edx
push edx
jne 0x51b224
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x51b224
call fcn.004e34b3
mov dword [ebp - 0x3c], eax
call edi
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov ecx, ebx
call fcn.006c3fe0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x51b753
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x60]
sub esp, 0x7c
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.00630934
lea eax, [ebp - 0x58]
mov ecx, dword [esi]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 4]
lea edx, [eax - 1]
mov al, byte [ecx + eax - 1]
cmp al, 0x2f
je 0x51b78f
cmp al, 0x5c
jne 0x51b7bf
lea edi, [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], esi
mov ecx, edi
call fcn.0064f100
sub esp, 0xc
mov ecx, ebx
mov dword [esp], edi
call fcn.006c3d30
push eax
mov ecx, edi
call fcn.006c0f80
jmp 0x51b7ca
mov dword [esp], esi
mov ecx, ebx
call fcn.006c32d0
push esi
lea esi, [ebp - 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0059a931
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
push ecx
jne 0x51b821
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
je 0x51b810
call fcn.004e34b3
mov dword [ebp - 0x6c], eax
call edi
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, edx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 4], edx
jmp 0x51b821
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
je 0x51b7f7
mov ecx, esi
call fcn.006c3fe0
mov ecx, ebx
call fcn.006c0f80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x51bb16
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x50
cmp dword [ecx + 0x24], 0
jne 0x51bbca
lea esi, [ecx + 8]
mov dword [esp + 4], 0
mov dword [esp], 0x5c
mov ecx, esi
call fcn.0064fd50
push edx
push edx
inc eax
lea ecx, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0064ffc0
lea eax, [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea ecx, [ebp - 0x20]
sub esp, 0x14
mov esi, eax
call fcn.006c3fe0
test esi, esi
je 0x51bba8
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x24], eax
imul eax, dword [ebp - 0x30]
mov dword [ebx + 0x28], eax
jmp 0x51bbca
mov dword [ebx + 0x24], 0x200
mov dword [ebx + 0x28], 0x1000
jmp 0x51bbca
mov eax, dword [ebx + 0x24]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x51bbd4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x9c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x70]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push ecx
push ecx
je 0x51bd06
lea esi, [ebp - 0x4c]
mov ecx, esi
call fcn.005fb630
cmp dword [ebp - 0x3c], 0
je 0x51bcec
mov eax, dword [ebp - 0x70]
cmp byte [ebp - 0x7c], 0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x58], eax
mov eax, 0
mov dword [esp + 0x14], 0x20
cmovne eax, esi
mov dword [ebp - 0x54], edx
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x74]
mov dword [esp + 4], 0x940cf
mov dword [esp], edi
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
sete bl
and bl, byte [ebp - 0x7c]
je 0x51bcc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x51bccb
mov dword [ebp - 0x68], 0
call fcn.004e34b3
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
mov dword [esp], edi
mov ecx, esi
mov dword [esp + 4], eax
call fcn.005fb598
cmp dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
push edx
push edx
je 0x51bcd5
jmp 0x51bcec
test eax, eax
jne 0x51bcd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x51bcec
cmp dword [ebp - 0x74], 0x10
jne 0x51bcd1
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
xor edx, dword [ebp - 0x30]
xor eax, dword [ebp - 0x2c]
or edx, eax
setne bl
mov ecx, esi
call fcn.0051afec
jmp 0x51bd06
lea esp, [ebp - 0xc]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x51ca34
Capabilities:
Get file size

Disassembly:
push esi
push ebx
sub esp, 0x24
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push edx
push edx
jne 0x51ca70
call fcn.004e34b3
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
or eax, 0xffffffff
mov dword [ebx + 4], esi
mov edx, eax
jmp 0x51ca78
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0x24
pop ebx
pop esi
ret 4
Function at 0x58b627
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x50]
mov dword [esp], eax
call fcn.005110ea
push eax
lea ecx, [esp + 0x28]
call fcn.00511150
mov dl, byte [esp + 0x58]
mov dword [esp + 0x2c], eax
and eax, 3
mov dword [esp], 0xffffffff
and byte [esp + 0x2d], 0xf
and byte [esp + 0x2e], 0x3f
shl edx, 5
or eax, edx
mov byte [esp + 0x2c], al
call fcn.00630908
cmp byte [0x72d700], 0
mov ebx, eax
jne 0x58b70b
mov dword [esp + 0x18], 0
mov cl, byte [esp + 0x18]
mov edi, 8
xor eax, eax
mov dl, pe_nt_image_headers32
test cl, dl
je 0x58b6a3
add eax, 0x80000000
mov ebp, eax
add eax, eax
test ebp, ebp
jns 0x58b6b0
xor eax, 0x1edc6f41
shr edx, 1
and edx, 0x7f
dec edi
jne 0x58b69a
mov ebp, 7
xor edi, edi
movzx edx, cl
and cl, 1
mov dword [esp + 0x1c], edx
je 0x58b6d6
mov edx, 1
mov ecx, ebp
shl edx, cl
or edi, edx
mov ecx, dword [esp + 0x1c]
dec ebp
sar ecx, 1
cmp ebp, 0xffffffff
jne 0x58b6bf
mov dword [esp], eax
call fcn.00630908
inc dword [esp + 0x18]
mov ecx, edi
cmp dword [esp + 0x18], 0x100
movzx edi, cl
mov dword [edi*4 + 0x72cb80], eax
jne 0x58b68d
mov byte [0x72d700], 1
lea eax, [esp + 0x2c]
mov dl, byte [eax]
lea edi, [esp + 0x30]
inc eax
xor edx, ebx
shr ebx, 8
movzx edx, dl
xor ebx, dword [edx*4 + 0x72cb80]
cmp eax, edi
jb 0x58b70f
lea edx, [esi + 2]
xor eax, eax
mov ecx, 0x12
not ebx
mov edi, edx
rep stosb byte es:[edi], al
mov eax, ebx
shr eax, 0x18
mov byte [esi], al
mov eax, ebx
shr ebx, 8
shr eax, 0x10
and ebx, 0xfffffff8
mov byte [esi + 1], al
call fcn.0051db7e
and eax, 7
or ebx, eax
mov byte [esi + 2], bl
mov ebx, 3
call fcn.0051db7e
inc ebx
mov byte [ebx + esi - 1], al
cmp ebx, 0x13
jne 0x58b760
mov al, byte [esp + 0x58]
mov byte [esi + 0x13], al
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x595658
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x86bef8]
test eax, eax
jne 0x595689
sub esp, 0x4c
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push eax
mov eax, dword [esp + 0x20]
mov edx, 0x1000
test eax, eax
cmovle eax, edx
mov dword [0x86bef8], eax
add esp, 0x4c
ret
ret
Function at 0x59a2e9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 4]
add ebx, dword [edi]
cmp eax, ebx
je 0x59a3da
sub ebx, eax
cmp ebx, 2
jle 0x59a326
mov ebx, 3
lea edi, [eax + ebx]
mov word [ebp - 0x1f], 0
mov byte [ebp - 0x1d], 0
xor edx, edx
mov dword [ebp - 0x2c], edi
mov ecx, ebx
sub ecx, edx
test ecx, ecx
jle 0x59a34a
mov cl, byte [eax + edx]
mov byte [ebp + edx - 0x1f], cl
inc edx
jmp 0x59a338
mov dl, byte [ebp - 0x1f]
xor edi, edi
mov al, dl
shl edx, 4
shr al, 2
and edx, 0x30
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x1e]
mov cl, al
shl eax, 2
shr cl, 4
and eax, 0x3c
or edx, ecx
mov byte [ebp - 0x1b], dl
mov dl, byte [ebp - 0x1d]
mov cl, dl
and edx, 0x3f
shr cl, 6
mov byte [ebp - 0x19], dl
or eax, ecx
mov byte [ebp - 0x1a], al
cmp edi, ebx
jg 0x59a3a1
movzx eax, byte [ebp + edi - 0x1c]
mov ecx, esi
movsx eax, byte [eax + 0x755360]
mov dword [esp], eax
call fcn.006c3580
inc edi
push edx
jmp 0x59a383
mov eax, 3
xor edi, edi
sub eax, ebx
mov ebx, eax
cmp ebx, edi
mov eax, dword [ebp - 0x2c]
jle 0x59a30a
mov dword [esp], 0x3d
mov ecx, esi
call fcn.006c3580
inc edi
push eax
jmp 0x59a3ac
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5b9eda
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x70]
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov byte [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.006e8370
cmp ebp, eax
jne 0x5ba061
mov ebp, dword [esp + 0x70]
mov eax, dword [edi + 0x1c]
mov al, byte [eax + ebp*8 + 2]
test al, 1
je 0x5b9fb2
test al, 2
jne 0x5ba061
test byte [esp + 0x98], 8
jne 0x5ba061
mov ecx, edi
mov dword [esp], ebp
call fcn.005b9554
push ecx
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp + 0x18], esi
mov ecx, edi
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
call fcn.005b9cf2
sub esp, 0x28
mov ebx, eax
jmp 0x5ba061
mov dword [esp], ebp
mov ecx, edi
call fcn.005b939e
test esi, esi
push edx
jne 0x5b9ff0
cmp eax, ebx
cmovg eax, ebx
mov edi, eax
cmp esi, edi
jge 0x5b9fec
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x4c], esi
inc esi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.006b69c8
push ecx
jmp 0x5b9fc8
sub ebx, edi
jmp 0x5ba057
mov eax, dword [esp + 0x74]
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.005b947c
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x38], edx
cmp esi, dword [esp + 0x38]
jge 0x5ba057
mov dword [esp], esi
mov ecx, edi
xor ebp, ebp
call fcn.005b939e
push edx
cmp ebp, eax
jge 0x5ba048
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], esi
inc ebp
mov dword [esp], ecx
mov ecx, dword [esp + 0x78]
call fcn.006b69c8
push eax
mov eax, dword [esp + 0x3c]
jmp 0x5ba020
test eax, eax
mov edx, 0
cmovs eax, edx
inc esi
sub ebx, eax
jmp 0x5ba00d
test ebx, ebx
mov eax, 0
cmovs ebx, eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x2c

Function at 0x5c305e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
ret
Function at 0x5cdb4a
Capabilities:
Hash data using sha256

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
test edx, edx
je 0x5cdbe1
mov dword [edx + 0x48], 0
mov dword [edx], 0
xor eax, eax
mov dword [edx + 4], 0
mov dword [edx + 8], 0xf3bcc908
mov dword [edx + 0xc], 0x6a09e667
mov dword [edx + 0x10], 0x84caa73b
mov dword [edx + 0x14], 0xbb67ae85
mov dword [edx + 0x18], 0xfe94f82b
mov dword [edx + 0x1c], 0x3c6ef372
mov dword [edx + 0x20], 0x5f1d36f1
mov dword [edx + 0x24], 0xa54ff53a
mov dword [edx + 0x28], 0xade682d1
mov dword [edx + 0x2c], 0x510e527f
mov dword [edx + 0x30], 0x2b3e6c1f
mov dword [edx + 0x34], 0x9b05688c
mov dword [edx + 0x38], 0xfb41bd6b
mov dword [edx + 0x3c], 0x1f83d9ab
mov dword [edx + 0x40], 0x137e2179
mov dword [edx + 0x44], 0x5be0cd19
ret

Function at 0x5e2710
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x86c620]
test esi, esi
jle 0x5e2820
mov edi, dword [0x86c624]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x5e2744
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x5e27c5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x5e2730
mov dword [esp], eax
mov ebx, eax
call fcn.005e3000
test eax, eax
mov edi, eax
je 0x5e2847
mov eax, dword [0x86c624]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.005e3100
add eax, dword [edi + 0xc]
mov edx, dword [0x86c624]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x5e2827
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x5e27be
sub eax, 4
and eax, 0xfffffffb
jne 0x5e27d0
add dword [0x86c620], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x86c624]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
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 0x5e27be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0x75b0ec
mov dword [esp + 4], eax
call fcn.00704560
lea esi, [esi]
xor esi, esi
jmp 0x5e274e
mov eax, dword [0x86c624]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], 0x75b0b8
mov dword [esp + 4], eax
call fcn.00704560
mov dword [esp + 4], ebx
mov dword [esp], 0x75b098
call fcn.00704560
mov esi, esi
lea edi, [edi]
Function at 0x5e2c80
Capabilities:
Get thread local storage value

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

Function at 0x5e7d80
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x86c68c], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x86c690], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x5e7de2
mov dword [esp + 4], 0x5e7ca0
mov dword [esp], eax
mov dword [0x86c688], eax
call fcn.005f6c10
test eax, eax
jne 0x5e7dea
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5e7dda
call sub.msvcrt.dll_abort
nop
Function at 0x5f1880
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x5f18d3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x5f18c0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x5f1950
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.005f1130
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.005f0d00
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005f1570
mov eax, dword [0x72b7f0]
cmp eax, 0xffffffff
je 0x5f1985
test eax, eax
je 0x5f1975
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x5f18db
mov dword [0x72b7f0], 0
call fcn.005f6a20
test al, 1
mov edx, 3
jne 0x5f195e
jmp 0x5f1963
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x5f196b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x5f196b
mov dword [0x72b7f0], 1
jmp 0x5f195e
Function at 0x616974
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x72cb64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edx
xor edx, edx
test eax, eax
je 0x61698f
mov edx, dword [eax + 4]
mov eax, edx
add esp, 0x1c
ret

Function at 0x616998
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x72cb64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edx
test eax, eax
je 0x6169c0
mov edx, dword [esp + 0x20]
cmp dword [eax], edx
jne 0x6169bb
mov eax, dword [eax + 4]
jmp 0x6169c2
mov eax, dword [eax + 8]
jmp 0x6169aa
xor eax, eax
add esp, 0x1c
ret