joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422520
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.00422530

Function at 0x422790
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.00422530

Function at 0x4227a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x48], eax
xor eax, eax
dec eax
lea esi, [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x209
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.00467470
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046d9f0
cmp byte [edi + 0xb], 0
jns 0x422805
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
dec ecx
cmp eax, ecx
setne bl
mov ecx, esi
call fcn.0046da70
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x422830
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 0xc], edx
mov edi, ecx
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
dec eax
lea ebx, [esp + 0x20]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x10]
push 0x212
push str....._base_files_file_util_win.cc
push str.PathHasAccess
push esi
call fcn.00467470
add esp, 0x10
mov ecx, ebx
push 0
push esi
call fcn.0046d9f0
cmp byte [edi + 0xb], 0
jns 0x42289a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
xor ecx, ecx
dec ecx
cmp eax, ecx
je 0x422932
test al, 0x10
mov edx, dword [esp + 0xc]
cmove edx, dword [ebp + 8]
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
push esi
push ecx
push 3
push esi
push 7
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4228f5
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, 0xffffffff
je 0x42292e
call fcn.004674a0
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea eax, [esi + 1]
cmp eax, 2
jb 0x422910
call fcn.004674a0
push esi
call fcn.00463fa0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0046da70
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4228ee
xor ebx, ebx
jmp 0x422910
Function at 0x422940
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x48], eax
xor eax, eax
dec eax
lea esi, [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x231
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.00467470
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046d9f0
cmp byte [edi + 0xb], 0
jns 0x4229a5
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
xor eax, eax
dec eax
cmp ebx, eax
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.0046da70
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4229e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004a3810
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x422a63
push ebx
call fcn.004b7fa7
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.00467790
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.004273e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00467900
mov ecx, ebx
call fcn.004678e0
mov ecx, edi
call fcn.004678e0
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x422a90
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 [0x54a010]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.004a3810
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x5346b0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x422b0c
cmp word [ebp - 0x214], 0
je 0x422b0c
push edi
call fcn.004b7fa7
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00467790
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a0403
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.00467680
push edi
call fcn.004229e0
add esp, 4
mov ecx, esi
test al, al
je 0x422b3b
push edi
call fcn.00467760
jmp 0x422b47
push 3
push 0x534728
call fcn.00467790
lea ecx, [ebp - 0x220]
call fcn.004678e0
jmp 0x422af6
Function at 0x422b60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x98], eax
xor edi, edi
dec edi
lea esi, [esp + 0x20]
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x60]
push 0x2b2
push str....._base_files_file_util_win.cc
push str.GetSecureSystemTemp
push ebx
call fcn.00467470
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046d9f0
cmp dword [ebp + 8], 0
je 0x422d8c
lea esi, [esp + 4]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
call fcn.00467680
push esi
push 0x65
call fcn.004243f0
add esp, 8
test al, al
je 0x422c7b
lea esi, [esp + 4]
mov ecx, esi
push 0xa
push str.SystemTemp
push ebx
call fcn.00427370
mov ecx, esi
push ebx
call fcn.00467900
mov ecx, ebx
call fcn.004678e0
lea ebx, [esp + 0x60]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0x209
push str....._base_files_file_util_win.cc
push str.PathExists
push edi
call fcn.00467470
add esp, 0x10
mov ecx, ebx
push 0
push edi
call fcn.0046d9f0
cmp byte [esi + 0xb], 0
jns 0x422c60
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, ebx
call fcn.0046da70
xor edi, edi
dec edi
cmp esi, edi
jne 0x422d1b
lea ecx, [esp + 4]
call fcn.004678e0
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
lea ebx, [esp + 4]
mov ecx, ebx
call fcn.00467680
push ebx
push 0x67
call fcn.004243f0
add esp, 8
test al, al
je 0x422d0e
lea esi, [esp + 0x60]
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x10]
push 0x209
push str....._base_files_file_util_win.cc
push str.PathExists
push edi
call fcn.00467470
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.0046d9f0
cmp byte [esp + 0xf], 0
jns 0x422cf7
mov ebx, dword [esp + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov ecx, esi
call fcn.0046da70
xor eax, eax
dec eax
cmp ebx, eax
jne 0x422d70
lea ecx, [esp + 4]
call fcn.004678e0
xor ebx, ebx
jmp 0x422d4f
lea ecx, [esp + 4]
mov edx, 2
push 0x40000000
call fcn.00422830
add esp, 4
test al, al
je 0x422c7b
mov ecx, dword [ebp + 8]
lea esi, [esp + 4]
push esi
call fcn.004266d0
mov ecx, esi
call fcn.004678e0
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.0046da70
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 4]
mov edx, 2
push 0x40000000
call fcn.00422830
add esp, 4
test al, al
jne 0x422d39
jmp 0x422d0e
int3
Function at 0x423140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x258], eax
xor eax, eax
dec eax
lea esi, [esp + 0x220]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x41b
push str....._base_files_file_util_win.cc
push 0x534793
push ebx
call fcn.00467470
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046d9f0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.004a3810
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x423210
push ebx
call fcn.004b7fa7
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.00467790
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004273e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00467900
mov ecx, ebx
call fcn.004678e0
mov ecx, edi
call fcn.004678e0
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.0046da70
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x423600
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004a3810
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.00423ad0
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.00423c50
movzx eax, byte [edi + 0xb]
test al, al
jns 0x42366d
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
jne 0x4236a0
lea ecx, [ebp - 0x500]
call fcn.004678e0
lea ecx, [ebp - 0x2a4]
call fcn.00423ba0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push 0x250
push 0xff
lea esi, [ebp - 0x4f4]
push esi
call fcn.004a3810
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.00423c10
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x4237a8
mov ecx, esi
call fcn.00423a20
test al, al
jne 0x423765
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x4236f5
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4237e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x423718
mov esi, eax
test ebx, ebx
cmovne esi, ebx
lea ebx, [ebp - 0x4f4]
mov ecx, ebx
call fcn.00410480
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00423c50
mov ecx, edi
push ebx
call fcn.00467900
mov ecx, ebx
call fcn.004678e0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x423756
mov eax, dword [ebp - 0x4fc]
mov ebx, esi
test eax, eax
je 0x423673
jmp 0x4236a2
xor esi, esi
cmp byte [ebp + 8], 0
je 0x423718
mov ecx, edi
mov edx, dword [ebp - 0x504]
push 1
call fcn.00423600
add esp, 4
test eax, eax
jne 0x423716
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x423794
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x423718
jmp 0x423704
cmp byte [ebp + 8], 0
je 0x4237c2
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x4237eb
mov ecx, dword [ebp - 0x500]
jmp 0x4237f1
lea ecx, [ebp - 0x4f4]
call fcn.00423a20
test al, al
je 0x4237fe
lea ecx, [ebp - 0x4f4]
call fcn.00423a20
test al, al
je 0x4236e4
xor esi, esi
jmp 0x423718
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4236d5
mov eax, dword [ebp - 0x4f4]
jmp 0x4237ae
Function at 0x4256b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call fcn.00425750
mov eax, dword [esi]
mov dword [0x54bbd0], eax
test al, 1
jne 0x4256cc
mov al, 1
pop esi
pop ebp
ret
mov eax, dword [0x54f844]
test eax, eax
jne 0x4256e1
mov ecx, dword [0x54f830]
test ecx, ecx
je 0x425703
jmp 0x42571f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x54f844], 0
mov ecx, dword [0x54f830]
test ecx, ecx
jne 0x42571f
and byte [0x54bbd0], 0xfe
push 0xc
call fcn.0049f91a
add esp, 4
mov ecx, eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [0x54f830], ecx
push dword [esi + 4]
call fcn.00426220
cmp dword [esi + 0xc], 0
jne 0x425741
mov eax, dword [0x54f830]
cmp byte [eax + 0xb], 0
jns 0x42573a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
jmp fcn.004e00a0
Function at 0x4276c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00464410
mov dword [esi], 0
test eax, eax
je 0x427707
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x427739
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x427700
mov dword [esi], ebx
mov ebx, eax
call fcn.004674a0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.004676a0
lea ecx, [esi + 0x10]
call fcn.0046f5f0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.004674a0
push dword [esi]
call fcn.00463fa0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4276ed

Function at 0x427a70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [0x54f86c]
test ebx, ebx
jne 0x427af2
push 0x28
call fcn.0049f91a
add esp, 4
mov esi, eax
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov byte [eax + 8], 0
push 0xc
call fcn.0049f91a
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x14], ecx
test eax, eax
je 0x427afc
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov eax, esi
add eax, 0x1c
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], 1
mov dword [0x54f86c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x427b17
mov edi, eax
push eax
call fcn.004b7fa7
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00427b20
test ebx, ebx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.004cb230
int3
Function at 0x427b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x54a010]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea esi, [ebp - 0x20]
push 3
push ecx
push eax
push esi
call fcn.004312d0
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x427c72
mov esi, dword [ebp - 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x800
mov dword [ebp - 0x24], 0
push eax
push 0x534bf0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x427ca1
push 0x534c40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x427ba9
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, 0
mov dword [ebp - 0x28], 0
test esi, esi
je 0x427c1b
mov dword [ebp - 0x30], ebx
shl esi, 2
cmp esi, 0x55555555
jae 0x427cb1
lea edi, [esi + esi*2]
push edi
call fcn.0049f91a
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
add ecx, edi
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov edi, eax
test edi, edi
je 0x427c86
mov ecx, edi
mov eax, dword [ebp - 0x24]
push dword [eax + ebx]
call fcn.004c9cf0
add edi, 0xc
add ebx, 4
cmp esi, ebx
jne 0x427bf6
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.004278f0
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x427c44
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x427c72
cmp edi, ebx
je 0x427c69
lea esi, [edi - 0xc]
cmp byte [edi - 1], 0
jns 0x427c63
push dword [edi - 0xc]
call fcn.0049f94a
add esp, 4
mov edi, esi
cmp esi, ebx
jne 0x427c4f
push ebx
call fcn.0049f94a
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.004cb230
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x427ba6
lea ecx, [ebp - 0x20]
call fcn.004c9ce0
int3
Function at 0x42a050
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x216]
push 0x206
push 0xff
push edi
call fcn.004a3810
add esp, 0xc
mov word [edi - 2], 0
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x42a0e3
inc eax
cmp eax, 1
je 0x42a0e3
lea edi, [eax - 1]
cmp word [ebp + eax*2 - 0x21c], 0x5c
mov eax, edi
je 0x42a0ab
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x42a0ca
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004b44ea
add esp, 0xc
test eax, eax
je 0x42a1c0
mov word [ebp - 0x218], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x42a147
inc eax
cmp eax, 1
je 0x42a147
lea edi, [eax - 1]
cmp word [ebp + eax*2 - 0x21c], 0x5c
mov eax, edi
je 0x42a10f
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x42a12e
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004b44ea
add esp, 0xc
test eax, eax
je 0x42a1e5
mov word [ebp - 0x218], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PROGRAMW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x42a1a7
inc eax
cmp eax, 1
je 0x42a1a7
lea edi, [eax - 1]
cmp word [ebp + eax*2 - 0x21c], 0x5c
mov eax, edi
je 0x42a173
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x42a192
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004b44ea
add esp, 0xc
test eax, eax
je 0x42a20a
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esi + 0xb]
test al, al
jns 0x42a1cb
mov eax, dword [esi + 4]
mov bl, 1
cmp eax, edi
je 0x42a1a9
mov ecx, esi
push edi
call fcn.004d8ed0
cmp word [eax], 0x5c
jne 0x42a0e3
jmp 0x42a1a9
movzx eax, byte [esi + 0xb]
test al, al
jns 0x42a1f0
mov eax, dword [esi + 4]
mov bl, 1
cmp eax, edi
je 0x42a1a9
mov ecx, esi
push edi
call fcn.004d8ed0
cmp word [eax], 0x5c
jne 0x42a147
jmp 0x42a1a9
movzx eax, byte [esi + 0xb]
test al, al
jns 0x42a215
mov eax, dword [esi + 4]
mov bl, 1
cmp eax, edi
je 0x42a1a9
mov ecx, esi
push edi
call fcn.004d8ed0
cmp word [eax], 0x5c
jne 0x42a1a7
jmp 0x42a1a9
Function at 0x42be70
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 ecx, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x42c097
cmp dword [0x54bbf8], 0xe69e32f3
jne 0x42c09a
mov edi, 0x308
mov edx, 0x20
mov esi, 0x20
add edi, dword [ecx + 0xc]
mov byte [esp + 0xf], 0xff
mov al, byte [ecx + 2]
je 0x42bec4
bsr esi, edi
xor esi, 0x1f
mov ecx, 0x53531c
sub ecx, esi
mov cl, byte [ecx]
mov ebx, edi
shr ebx, cl
sub edx, esi
and ebx, 7
lea ecx, [ebx + edx*8]
mov edx, dword [edx*4 + 0x535320]
and edx, edi
cmp edx, 1
mov edx, dword [ebp + 8]
lea esi, [edx + 0x48]
sbb ecx, 0xffffffff
movzx ecx, word [ecx + ecx + 0x5350e8]
test al, al
mov dword [esp], edi
jne 0x42bf13
cmp edi, 0x41
setae al
cmp cx, 0x76
setb dl
and dl, al
movzx eax, dl
or eax, ecx
mov ecx, eax
movzx ebx, cx
shl ebx, 5
mov dword [esp + 4], esi
lea edi, [esi + ebx]
mov eax, dword [ebp + 8]
lea esi, [eax + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42c05f
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x42c007
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x42c058
mov edx, dword [esp + 4]
mov ebx, dword [edx + ebx + 0xc]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x42c06b
mov edx, ecx
and edx, 0x1fc000
je 0x42c06b
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 edi, dword [ebp + 8]
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.00469c60
push esi
push dword [0x54f884]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x54ddb0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004a0403
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 + 8]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.004735c0
test eax, eax
je 0x42c09d
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 0x42bf9b
xor ecx, ecx
jmp 0x42bf7f
mov ecx, esi
call fcn.0046a750
jmp 0x42bf35
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.004e2100
push edi
call fcn.00410480
add esp, 4
mov ecx, ebx
call fcn.004e2180
int3
int3
xor esi, esi
jmp 0x42bfbe