joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1db4b73
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1db4b96
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1db4bb8
mov ebx, eax
bt eax, 0xa
jae 0x1db4bb0
cmp byte [ebp + 0xc], 0
je 0x1db4c0c
and ebx, 0x10
shr ebx, 4
jmp 0x1db4c0e
push 2
call fcn.01da24f0
add esp, 4
test al, al
je 0x1db4c0c
call fcn.01da3130
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x80
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01da32d0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01cdcc16
add esp, 0xc
push edi
push eax
call fcn.01da63e0
add esp, 8
mov ecx, esi
call fcn.01da3380
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1db4c25
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1db4c48
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1db4c5e
test eax, 0x410
sete bl
jmp 0x1db4cb1
push 2
call fcn.01da24f0
add esp, 4
test al, al
je 0x1db4caf
call fcn.01da3130
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x73
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01da32d0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01cdcc16
add esp, 0xc
push edi
push eax
call fcn.01da63e0
add esp, 8
mov ecx, esi
call fcn.01da3380
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1db4cc8
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1db4ceb
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1db4d1e
and eax, 0x410
cmp eax, 0x410
jne 0x1db4d1e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov ecx, esi
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01db4da2
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1db4d28
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x1db4d8b
push 2
call fcn.01da24f0
add esp, 4
test al, al
je 0x1db4d89
call fcn.01da3130
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 2
push 0x93
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01da32d0
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.01cdcc16
add esp, 0xc
push esi
push eax
call fcn.01da63e0
add esp, 8
mov ecx, edi
call fcn.01da3380
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1db4da2
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov esi, ecx
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1db4dc4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x1db4e22
push 2
call fcn.01da24f0
add esp, 4
test al, al
je 0x1db4e22
call fcn.01da3130
lea ebx, [ebp - 0xb8]
mov ecx, ebx
push eax
push 2
push 0x2f
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01da32d0
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.01cdcc16
add esp, 0xc
push esi
push eax
call fcn.01da63e0
add esp, 8
mov ecx, ebx
call fcn.01da3380
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1db51ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x1f07010]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, SysReAllocString
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0xc]
mov dword [edx], 0xffffffff
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1db51f5
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x1db51f8
int3
xor esi, esi
dec esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.01e60425
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
Function at 0x1db520a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1f07010]
xor ecx, ebp
mov esi, SysReAllocString
cmp eax, esi
cmovb esi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
push esi
push ebx
push edi
call ecx
test eax, eax
je 0x1db528e
mov esi, ebx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x1db5275
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x1db52a0
mov ebx, esi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1db523d
cmp ebx, 0xffffffff
je 0x1db52a5
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x1db527a
mov ebx, dword [ebp - 0x14]
jmp 0x1db527a
int3

Function at 0x1db58be
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.01db57b6
add esp, 0x10
or edx, eax
jne 0x1db5941
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x1db5941
push 2
call fcn.01da24f0
add esp, 4
test al, al
je 0x1db593f
call fcn.01da3130
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0x103
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.01da32d0
lea eax, [ebp - 0xac]
push 0xc
push 0x1ebdf06
push eax
call fcn.01cdcc16
add esp, 0xc
mov ecx, esi
call fcn.01da3380
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
Function at 0x1dcad8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [esp + 0x88], eax
call fcn.01dcad24
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1dcadc1
mov ecx, esi
call fcn.01d85ec0
mov edi, dword [ebp + 0x10]
push 0x1f0af00
call fcn.01e25b70
add esp, 4
cmp dword [0x1f0af00], 6
jb 0x1dcaf34
test byte [0x1f0af0d], 0x40
je 0x1dcaf34
mov eax, 0xffffbfff
and eax, dword [0x1f0af14]
or eax, dword [0x1f0af10]
jne 0x1dcaf34
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1000000
cmp byte [edi + 0xb], 0
mov ebx, edi
jns 0x1dcae1d
mov ebx, dword [edi]
mov ecx, dword [ebp + 8]
cmp byte [edx + 0xb], 0
jns 0x1dcae28
mov edx, dword [edx]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], 8
mov dword [esp + 0x74], eax
xor edi, edi
inc edi
mov ecx, 0x1eb0c5c
mov eax, edi
test ebx, ebx
mov dword [esp + 4], edx
je 0x1dcae66
push ebx
call fcn.01e798d0
mov edx, dword [esp + 8]
add esp, 4
inc eax
mov ecx, ebx
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
test edx, edx
mov ecx, 0x1eb0c5c
je 0x1dcae91
push edx
call fcn.01e798d0
add esp, 4
mov edi, eax
inc edi
mov ecx, dword [esp + 4]
lea eax, [esp + 0x18]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x24], ebx
lea ecx, [esp + 0xc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], 4
mov dword [eax + 0x2c], ebx
lea ecx, [esp + 0x78]
mov dword [ecx], 0xb000000
mov dword [ecx + 4], 5
mov edx, 0x4000
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], ebx
mov edx, dword [0x1f0af04]
mov dword [eax + 4], ebx
mov dword [eax], edx
movzx edx, word [edx]
mov dword [eax + 8], edx
mov dword [eax + 0xc], 2
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x1efd3dc
mov dword [eax + 0x18], 0x42
mov dword [eax + 0x1c], 1
mov dword [esp + 8], 0xffffffff
mov edx, str.ETW0
mov edi, 0x1efd45a
sub edi, edx
mov dword [esp + 8], edi
push eax
push 6
push ebx
push ebx
push ecx
push dword [0x1f0af1c]
push dword [0x1f0af18]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov edi, dword [ebp + 0x10]
mov ecx, dword [0x1f1bff0]
test ecx, ecx
je 0x1dcaf44
push edi
call fcn.01cd33ae
push 0x1f0af00
call fcn.01e25cc0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.01e60425
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1dd3f6d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x57
test ecx, ecx
je 0x1dd3ff2
mov edi, edx
test edx, edx
je 0x1dd3ff2
mov esi, ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax], xmm0
push 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1dd3fea
test byte [ebp - 0x18], 0xf0
lea ebx, [ebp - 0x30]
mov dword [ebx], 0
mov eax, 4
mov ecx, 0x40
cmove ecx, eax
push ebx
push ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1dd3fea
mov eax, dword [edi]
mov dword [esi], eax
push ebx
push dword [ebp - 0x30]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
jmp 0x1dd3ff2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1ddc830
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [esp + 0x4c], eax
call fcn.01d7b270
test al, al
je 0x1ddc8b4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
movdqa xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov eax, dword [0x1f1c0c4]
mov ecx, dword [0x1f0c740]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1ddc90c
mov ecx, dword [0x1f1c0c0]
test ecx, ecx
je 0x1ddc8b4
call dword [section..00cfg]
mov eax, esp
push 0x20
push eax
push 2
push esi
call ecx
mov esi, dword [esp]
mov edi, dword [esp + 4]
add esi, dword [esp + 0x18]
adc edi, dword [esp + 0x1c]
test eax, eax
jne 0x1ddc8f6
pcmpeqd xmm0, xmm0
movdqa xmmword [esp], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp], 0x40
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1ddc8ed
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
jmp 0x1ddc8f6
call fcn.01dad480
xor esi, esi
xor edi, edi
mov ecx, dword [esp + 0x4c]
xor ecx, ebp
call fcn.01e60425
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x1f1c0c4
call fcn.01e5f3e7
add esp, 4
cmp dword [0x1f1c0c4], 0xffffffff
jne 0x1ddc887
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetProcessInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1f1c0c0], eax
push 0x1f1c0c4
call fcn.01e5f45d
add esp, 4
jmp 0x1ddc887
Function at 0x1de57d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x1de57f7
test eax, eax
jne 0x1de57f7
cmp dword [esi + 0xc], 0
jne 0x1de57f7
cmp dword [esi + 4], 0
je 0x1de58ed
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x1de5816
call fcn.01da4710
push dword [esi]
call fcn.01d83bd0
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x1de583c
call fcn.01da4710
push dword [esi + 4]
call fcn.01d83bd0
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ebx, dword [edi]
cmp eax, ebx
je 0x1de5891
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x1de5875
call fcn.01da4710
push dword [esi]
call fcn.01d83bd0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1de5884
mov dword [esi], ebx
call fcn.01da4710
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp ecx, ebx
je 0x1de58da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x1de58c0
call fcn.01da4710
push dword [esi + 4]
call fcn.01d83bd0
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1de58d0
mov dword [esi + 4], ebx
call fcn.01da4710
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor ecx, ecx
xor eax, eax
jmp 0x1de584a
Function at 0x1df4140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.01e60860
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1f0b2e0]
cmp eax, 0xffffffff
je 0x1df4373
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x1df4373
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.01e62e90
add esp, 0xc
mov ecx, dword [0x1f0b2e0]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call fcn.01e478a0
add esp, 8
test ebx, ebx
je 0x1df41bb
push ebx
call fcn.01e5f3ac
add esp, 4
mov ecx, 0x101
lea esi, [ebp - 0x2010]
nop word cs:[eax + eax]
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x1f1d20c]
mov ecx, dword [0x1f0c740]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1df4319
mov ebx, dword [0x1f1d208]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1df420f
mov ecx, ebx
call fcn.01d85ec0
push 0x1000
push 0x1f1c204
lea eax, [ebp - 0x1810]
push eax
call fcn.01e62e90
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push esi
call fcn.01e63410
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop word [eax + eax]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x1df4250
mov ecx, esi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.01df46c0
add esp, 8
mov ebx, 4
xor eax, eax
jmp 0x1df429b
add ebx, 8
cmp ebx, 0x804
je 0x1df4300
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
je 0x1df4290
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x1df4290
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ebp + ecx - 0x1808]
jne 0x1df4290
mov ecx, dword [ebp + ecx - 0x180c]
test ecx, ecx
je 0x1df4290
mov dword [ebp + edx*8 - 0x810], 0
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x1df4290
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x1df435e
test al, 1
lea esi, [ebp - 0x2010]
jne 0x1df41d0
jmp 0x1df4363
push 0x1f1d20c
call fcn.01e5f3e7
add esp, 4
cmp dword [0x1f1d20c], 0xffffffff
jne 0x1df41f7
push 4
call fcn.01e5f33c
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.01d0fb80
mov dword [0x1f1d208], ebx
push 0x1f1d20c
call fcn.01e5f45d
add esp, 4
jmp 0x1df41f7
call fcn.01dad480
push 2
push dword [ebp - 0x2014]
call fcn.01e478a0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1df4390
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1f0b2e0]
cmp eax, 0xffffffff
je 0x1df43b0
push ebp
mov ebp, esp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
ret
Function at 0x1df43c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x1f0b2e0]
cmp eax, 0xffffffff
je 0x1df43dd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1df43e2
call fcn.01df44f0
mov eax, dword [0x1f1d20c]
mov ecx, dword [0x1f0c740]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1df449d
mov edi, dword [0x1f1d208]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1df441b
mov ecx, edi
call fcn.01d85ec0
mov ecx, dword [0x1f1c200]
inc ecx
xor edx, edx
nop word cs:[eax + eax]
lea eax, [ecx + edx]
movzx eax, al
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x1f1c204], 0
je 0x1df444f
inc edx
cmp edx, 0x100
jne 0x1df4430
jmp 0x1df4487
lea ecx, [ebx + 0x1f1c204]
mov dword [ecx], 1
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x1f1c208], ecx
mov ecx, dword [0x1f1d204]
inc ecx
mov dword [0x1f1d204], ecx
mov dword [ebx + 0x1f1c210], ecx
mov dword [0x1f1c200], eax
mov dword [esi], eax
mov eax, dword [ebx + 0x1f1c20c]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x1df44e2
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x1f1d20c
call fcn.01e5f3e7
add esp, 4
cmp dword [0x1f1d20c], 0xffffffff
jne 0x1df4403
push 4
call fcn.01e5f33c
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.01d0fb80
mov dword [0x1f1d208], edi
push 0x1f1d20c
call fcn.01e5f45d
add esp, 4
jmp 0x1df4403
int3

Function at 0x1df44f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov ecx, dword [0x1f0b2e0]
mov dword [ebp - 0x810], ecx
cmp ecx, 0xffffffff
jne 0x1df4594
lea esi, [ebp - 0x810]
push esi
call fcn.01e47870
add esp, 4
test al, al
je 0x1df4615
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x1df4570
push esi
call fcn.01e47870
add esp, 4
test al, al
je 0x1df4618
cmp dword [ebp - 0x810], 0xffffffff
je 0x1df4618
push 0xffffffffffffffff
call fcn.01e47890
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x1f0b2e0], ecx
je 0x1df4594
push ecx
call fcn.01e47890
add esp, 4
mov ecx, dword [0x1f0b2e0]
mov dword [ebp - 0x810], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1df4612
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.01e63410
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.01e478a0
add esp, 8
push 0x800
call fcn.01e5f3a3
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.01e62e90
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.01e478a0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01e60425
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x1dfdf64
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x1dfdf91
mov edx, dword [ebp + 0xc]
xor esi, esi
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x1ef9fd8]
inc esi
cmp ecx, esi
jne 0x1dfdf79
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1dfeb40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x1dfeb76
push dword [ebp + 8]
call fcn.01e49580
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x343677
mov dword [esp + 0x50], 0x6f777369
lea eax, [esp + 0x50]
push eax
call sym.msedge_elf.dll_OQS_destroy
add esp, 4
cmp ebx, edi
jbe 0x1dfebd6
push ebx
call fcn.01e495b0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call sym.msedge_elf.dll_OQS_destroy
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call sym.msedge_elf.dll_OQS_destroy
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call sym.msedge_elf.dll_OQS_destroy
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call sym.msedge_elf.dll_OQS_destroy
add esp, 4
mov ecx, dword [0x1f21f70]
test ecx, ecx
je 0x1dfeca9
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.01ddfe80
int3