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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1c7
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.01c75880
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.01c758c0
cmp byte [edi + 0xb], 0
jns 0x1c4c8b1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.01c75920
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c4c8e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.01c92240
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x1c4c968
push ebx
call fcn.01ca8de9
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.01c6f970
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.01c49940
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c49320
mov ecx, ebx
call fcn.01c6fa50
mov ecx, edi
call fcn.01c6fa50
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c4c990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.01c92240
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x1cf5780]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1c4ca0c
cmp word [ebp - 0x214], 0
je 0x1c4ca0c
push edi
call fcn.01ca8de9
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.01c6f970
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.01c6f8e0
push edi
call fcn.01c4c8e0
add esp, 4
mov ecx, esi
test al, al
je 0x1c4ca3b
push edi
call fcn.01c6f940
jmp 0x1c4ca47
push 3
push 0x1cf57d2
call fcn.01c6f970
lea ecx, [ebp - 0x220]
call fcn.01c6fa50
jmp 0x1c4c9f6
Function at 0x1c4cb70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x3af
push str....._base_files_file_util_win.cc
push 0x1cf57e3
push ebx
call fcn.01c75880
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.01c758c0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.01c92240
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x1c4cc41
push ebx
call fcn.01ca8de9
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.01c6f970
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.01c49940
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c49320
mov ecx, ebx
call fcn.01c6fa50
mov ecx, edi
call fcn.01c6fa50
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.01c75920
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c4d5b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea ebx, [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea esi, [ebp - 0x28]
mov ecx, esi
push str.type
call fcn.01c44600
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edi, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.01c44600
push esi
push edi
push ebx
call fcn.01c4d660
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x1c4d60d
push dword [ebp - 0x34]
call fcn.01c8ea9e
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1c4d61e
push dword [ebp - 0x28]
call fcn.01c8ea9e
add esp, 4
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x1c4d62b
mov ecx, dword [ebp - 0x18]
jmp 0x1c4d630
mov ecx, eax
and ecx, 0x7f
xor edx, edx
cmp ecx, 1
adc edx, 1
mov dword [0x1d133fc], edx
test al, al
jns 0x1c4d64d
push dword [ebp - 0x1c]
call fcn.01c8ea9e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c4dba0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 8]
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [esp + 0x20], eax
cmp byte [esi + 0xb], 0
mov edi, esi
jns 0x1c4dbc4
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c4dbee
test al, 0x10
jne 0x1c4dc0b
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.01c4dd50
add esp, 0xc
xor ebx, ebx
jmp 0x1c4dce0
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c4dc25
mov ecx, dword [esi]
mov eax, dword [esi + 4]
jmp 0x1c4dc2a
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.01c4dd50
add esp, 0xc
mov bl, 1
jmp 0x1c4dce0
and eax, 0x7f
mov ecx, esi
add eax, eax
test eax, eax
je 0x1c4dc8f
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp edx, 0x5c
je 0x1c4dc42
cmp edx, 0x2f
jne 0x1c4dc2c
cmp eax, 0xfffffffe
je 0x1c4dc8f
sar eax, 1
lea edx, [esi + 0xc]
lea ecx, [esp + 4]
push edx
push eax
push 0
push esi
call fcn.01c48850
cmp byte [esp + 0x1b], 0
jns 0x1c4dc6d
push dword [esp + 0x10]
call fcn.01c8ea9e
add esp, 4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 4]
movsd qword [ecx], xmm0
push ecx
call fcn.01c4dba0
add esp, 4
test al, al
je 0x1c4dcbe
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c4dccd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
je 0x1c4dcf5
push esi
push edi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.01c4dd50
add esp, 0xc
jmp 0x1c4dccb
push str.Failed_to_create_one_of_the_parent_directories
call fcn.01c4dd50
add esp, 4
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x1c4dce0
push dword [esp + 0x10]
call fcn.01c8ea9e
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 4]
push edi
call fcn.01c44600
lea eax, [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x1c4dd0d
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
cmp byte [esp + 0xf], 0
jns 0x1c4dd3d
push dword [esp + 4]
mov dword [esp + 4], eax
call fcn.01c8ea9e
mov eax, dword [esp + 4]
add esp, 4
test al, al
je 0x1c4dcad
jmp 0x1c4dccd
Function at 0x1c4dd50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp + 0xc]
mov dword [ebp - 0x14], edi
call fcn.01c6af90
mov ebx, 0x1d13400
push edi
push 0
push esi
push 0x400
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.01c9323b
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c4e290
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1d13c00]
test eax, eax
jne 0x1c4e36f
mov edi, 0xc
push edi
call fcn.01c8ea6e
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d13c00], eax
push edi
call fcn.01c8ea6e
add esp, 4
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d13c04], eax
lea ecx, [ebp - 0x28]
push str.user_data_dir
call fcn.01c44600
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
push eax
call fcn.01c44600
lea ebx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.01c4d660
sub esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.01c4dfc0
add esp, 0x10
mov byte [ebp - 0x35], al
cmp byte [ebx + 0xb], 0
jns 0x1c4e33e
push dword [ebp - 0x1c]
call fcn.01c8ea9e
add esp, 4
cmp byte [ebp - 0x29], 0
jns 0x1c4e34f
push dword [ebp - 0x34]
call fcn.01c8ea9e
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1c4e360
push dword [ebp - 0x28]
call fcn.01c8ea9e
add esp, 4
cmp byte [ebp - 0x35], 0
je 0x1c4e41e
mov eax, dword [0x1d13c00]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, ecx
je 0x1c4e391
cmp byte [ecx + 0xb], 0
movzx edx, byte [eax + 0xb]
js 0x1c4e3ee
test dl, dl
jns 0x1c4e3ce
push dword [eax + 4]
push dword [eax]
call fcn.01c48a50
mov bl, 1
test esi, esi
je 0x1c4e3ba
mov eax, dword [0x1d13c04]
cmp eax, esi
je 0x1c4e3ba
cmp byte [esi + 0xb], 0
movzx edx, byte [eax + 0xb]
js 0x1c4e3f9
test dl, dl
jns 0x1c4e3de
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.01c48a50
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x1c4e391
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
jmp 0x1c4e3ba
test dl, dl
jns 0x1c4e404
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x1c4e407
test dl, dl
jns 0x1c4e410
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x1c4e413
and edx, 0x7f
push edx
push eax
call fcn.01c48980
jmp 0x1c4e391
and edx, 0x7f
mov ecx, esi
push edx
push eax
call fcn.01c48980
jmp 0x1c4e3ba
xor ebx, ebx
jmp 0x1c4e3ba
Function at 0x1c4f190
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.01c4b440
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x1c4f1be
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x1c4f1dc
push dword [ebp - 0x1c]
call fcn.01c8ea9e
add esp, 4
cmp dword [ebp + 8], 0
je 0x1c4f275
test esi, esi
je 0x1c4f275
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.01c8ead3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.01c4b440
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x1c4f21f
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x1c4f239
push dword [ebp - 0x1c]
call fcn.01c8ea9e
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x1c4f28e
push edi
call fcn.01ca8de9
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.01c713e0
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x1c4f291
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.01c8eadc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.01c8ea9e
add esp, 4
jmp 0x1c4f25d

Function at 0x1c4f2a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d13c94]
mov ecx, dword [0x1d06174]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c4f2d1
movzx eax, word [0x1d13c70]
cmp eax, 9
jne 0x1c4f31c
xor eax, eax
inc eax
pop ebp
ret
push 0x1d13c94
call fcn.01c8eb17
add esp, 4
cmp dword [0x1d13c94], 0xffffffff
jne 0x1c4f2c0
xorps xmm0, xmm0
movups xmmword [0x1d13c80], xmm0
movups xmmword [0x1d13c70], xmm0
mov dword [0x1d13c90], 0
push 0x1d13c70
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1d13c94
call fcn.01c8eb8d
add esp, 4
jmp 0x1c4f2c0
test eax, eax
je 0x1c4f2cf
cmp eax, 6
jne 0x1c4f32c
mov eax, 2
jmp 0x1c4f2cf
cmp eax, 0xc
jne 0x1c4f338
mov eax, 3
jmp 0x1c4f2cf
mov eax, 4
jmp 0x1c4f2cf
Function at 0x1c4fe80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0xc], edx
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [esp + 0xb8], eax
xor ebx, ebx
test ecx, ecx
je 0x1c4fffa
push ebx
push ebx
push ecx
mov dword [esp + 0x1c], ecx
call fcn.01ca6899
add esp, 0xc
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x70]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x30]
push 0x48
push str....._base_files_file_util.cc
push str.ReadStreamToSpanWithMaxSize
push edi
call fcn.01c75880
add esp, 0x10
mov ecx, esi
push ebx
push edi
call fcn.01c758c0
mov dword [edi + 0x30], ebx
pxor xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
push dword [esp + 0x10]
call fcn.01ca1341
add esp, 4
push eax
call fcn.01ca139a
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1c50012
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x50]
mov edi, 0xffff
cmovl edi, eax
mov eax, dword [esp + 0xc]
cmp edi, eax
cmovae edi, eax
inc edi
xor eax, eax
dec eax
lea ebx, [esp + 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], eax
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
call dword [section..00cfg]
mov eax, dword [esp + 0x20]
push edi
push eax
push ebx
mov dword [esp + 0x24], ecx
call ecx
add esp, 0xc
xor esi, esi
mov eax, dword [ebx + 4]
add eax, esi
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.01ca6696
add esp, 0x10
test eax, eax
je 0x1c4ffbe
mov ebx, eax
mov eax, dword [esp + 0xc]
sub eax, esi
cmp eax, ebx
jb 0x1c5001c
add ebx, esi
push dword [esp + 0x10]
call fcn.01ca6238
add esp, 4
test eax, eax
je 0x1c50024
mov esi, ebx
push dword [esp + 0x10]
call fcn.01ca6264
add esp, 4
test eax, eax
sete bl
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
call dword [section..00cfg]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x20]
push esi
push eax
push edx
call ecx
add esp, 0xc
lea ecx, [esp + 0x70]
call fcn.01c75920
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xffff
jmp 0x1c4ff47
xor ebx, ebx
mov esi, dword [esp + 0xc]
jmp 0x1c4ffcf
test esi, esi
mov eax, 0x10000
cmove edi, eax
lea eax, [ebx + edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
call dword [section..00cfg]
mov eax, dword [esp + 0x6c]
lea esi, [esp + 0x20]
push dword [esp + 0x1c]
push eax
push esi
call ecx
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov esi, ebx
jmp 0x1c4ff88
Function at 0x1c50370
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ebp + 8], 0
je 0x1c50545
cmp dword [0x1d03f68], 0xe69e32f3
jne 0x1c50548
mov ecx, 0x2e8
mov esi, dword [ebp + 8]
add ecx, dword [esi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [esi + 2]
push eax
mov dword [esp + 8], ecx
push ecx
call fcn.01c74710
add esp, 8
movzx ebx, ax
shl ebx, 5
lea edi, [esi + ebx]
add edi, 0x48
add esi, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c5050d
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x1c504b2
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x1c50503
mov edi, dword [ebp + 8]
lea edx, [edi + 0x48]
mov ebx, dword [edx + ebx + 0xc]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x1c50519
mov edx, ecx
and edx, 0x1fc000
je 0x1c50519
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.01c74840
push esi
push dword [0x1d13c9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1d06174]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xa0], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xf]
mov ecx, edi
push eax
push 0x4000
push dword [esp + 0xc]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.01c7b260
test eax, eax
je 0x1c5054b
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x1c50446
xor ecx, ecx
mov edi, dword [ebp + 8]
jmp 0x1c5042d
mov ecx, esi
call fcn.01c75500
jmp 0x1c503e1
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.01ccd300
push edi
call fcn.01c30840
add esp, 4
mov ecx, ebx
call fcn.01ccd380
int3
int3
xor esi, esi
jmp 0x1c50469
Function at 0x1c52bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x1d02014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1c52bf7
mov eax, dword [0x1d04f84]
cmp eax, 0xffffffff
je 0x1c52c8a
mov ebx, 0x100000
test eax, eax
jne 0x1c52bf7
mov ebx, 0x80000
push 0x10
call fcn.01c8ea6e
add esp, 4
mov esi, eax
mov dword [eax], 0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x1d0abe4]
bt ecx, eax
jb 0x1c52c7f
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x1d12be4], 1
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x1c53060
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1c52cae
test edi, edi
je 0x1c52d0c
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8f4d3
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.01c70160
add esp, 4
jmp 0x1c52c2b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x1d04f84
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1c52d80
mov eax, dword [0x1d04f84]
jmp 0x1c52be9
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1c52cca
mov edi, eax
cmp eax, 0x5af
je 0x1c52cca
cmp edi, 0xe
jne 0x1c52d1c
push ebx
call fcn.01cd5b50
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x1c52c66
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x1d0abe4]
bt edx, ecx
jae 0x1c52cfb
push eax
call fcn.01c70280
add esp, 4
push esi
call fcn.01c8ea9e
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x1c52c66
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1c52c66
mov eax, dword [0x1d13d64]
mov ecx, dword [0x1d06174]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c52d8f
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.01c4a710
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c52d56
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
jmp 0x1c52d59
and eax, 0x7f
push eax
push ebx
push dword [0x1d13d60]
call fcn.01c7a7b0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c52cd3
push dword [ebp - 0x1c]
call fcn.01c8ea9e
jmp 0x1c52cd0
mov dword [0x1d04f84], 0
jmp 0x1c52bf2
push 0x1d13d64
call fcn.01c8eb17
add esp, 4
cmp dword [0x1d13d64], 0xffffffff
jne 0x1c52d39
push 0x20
push str.create_thread_last_error
call fcn.01c576d0
add esp, 8
mov dword [0x1d13d60], eax
push 0x1d13d64
call fcn.01c8eb8d
add esp, 4
jmp 0x1c52d39