joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6406c7e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0xffffffffffffffff
push 0x640813c9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x640ba34c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea esp, [esp]
mov ecx, dword [esi + 0x90]
mov edi, dword [esi + 4]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x6406c837
mov ebp, dword [esp + 0x18]
jmp 0x6406c86b
cmp byte [esi + 0xde], 0
jne 0x6406c869
mov ecx, edi
mov byte [esi + 0xde], 1
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QIODevice::readChannelFinished_void_]
cmp dword [esi + 0xd0], 0
jne 0x6406c869
push str.1_q_pipeClosed__
push edi
push 0
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QTimer::singleShot_int__class_QObject___char_const__]
add esp, 0xc
xor ebp, ebp
cmp byte [esi + 0xde], 0
jne 0x6406c992
test ebp, ebp
jne 0x6406c881
mov ebp, 0x1000
mov ecx, dword [esi + 0xb0]
mov edi, dword [esi + 0xb4]
mov edx, ecx
or edx, edi
je 0x6406c8ba
mov ebx, dword [esi + 0xcc]
mov eax, ebx
cdq
sub ecx, eax
sbb edi, edx
xor eax, eax
cmp eax, edi
jl 0x6406c8ba
jg 0x6406c8ac
cmp ebp, ecx
jbe 0x6406c8ba
mov ebp, dword [esi + 0xb0]
sub ebp, ebx
je 0x6406c992
push ebp
lea ecx, [esi + 0xb8]
call fcn.6400e0a0
mov edx, dword [esi + 0x90]
lea ecx, [esi + 0x94]
push ecx
push 0
push ebp
push eax
push edx
mov byte [esi + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6406c8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xe9
je 0x6406c982
sub eax, 1
jne 0x6406c927
mov ecx, esi
call fcn.6406c6e0
cmp byte [esi + 0xdc], 0
je 0x6406c810
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
sub eax, 0x2fb
je 0x6406c992
push str.QLocalSocketPrivate::startAsyncRead
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QLatin1String::constructor_char_const__]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_const__]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.6406b9d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esi + 4]
mov byte [esi + 0xde], 1
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QIODevice::readChannelFinished_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x6406fa0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x640ba34c]
jne 0x6406fa14
repz ret
jmp fcn.640700d1
Function at 0x401520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
lea edx, [ebp - 0x5c]
movups xmmword [edx + 0x34], xmm0
movups xmmword [edx + 0x24], xmm0
movups xmmword [edx + 0x14], xmm0
movups xmmword [edx + 4], xmm0
mov dword [edx], 0x44
lea esi, [ebp - 0x18]
movups xmmword [esi], xmm0
sub esp, 0x28
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x455fe0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4015a5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4015b2
xor ebx, ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add esp, 0x54
pop esi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x40159c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4015ae
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x40159c

Function at 0x401800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x220
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea esi, [ebp - 0x22a]
mov word [esi + 0x208], bx
mov word [esi], bx
push edi
push 0x104
push esi
call fcn.00402f50
add esp, 0xc
test al, al
je 0x4018a9
push 0x45603a
push 0x104
push esi
call fcn.00402f90
add esp, 0xc
test al, al
je 0x4018a7
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
lea ebx, [ebp - 0x20]
mov dword [ebx], edi
mov edi, dword [ebp + 0x10]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], eax
push ebx
push 0x4015d0
push 0x45604e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
je 0x4018a7
push 0x104
push edi
call fcn.00402f20
add esp, 8
test eax, eax
je 0x4018a7
push 0x104
mov edi, dword [ebp + 0x14]
push edi
call fcn.00402f20
add esp, 8
test eax, eax
je 0x4018c5
xor ebx, ebx
mov eax, ebx
add esp, 0x220
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x4018a7
jmp 0x4018dd
push ebx
push 0x4015d0
push 0x456054
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
je 0x4018b6
push 0x104
push edi
call fcn.00402f20
add esp, 8
test eax, eax
je 0x401924
push esi
push edi
call fcn.004026b0
add esp, 8
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x4018a7
mov bl, 1
push esi
push 0x104
push edi
call fcn.00402f50
add esp, 0xc
test al, al
jne 0x4018a9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4018a7
push 0x104
push edi
call fcn.00402f20
add esp, 8
test eax, eax
setne bl
jmp 0x4018a9
Function at 0x401a10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x260
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], ebx
lea edi, [ebp - 0x26a]
mov word [edi + 0x208], bx
mov word [edi], bx
mov dword [ebp - 0x10], ebx
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x401aee
sub esp, 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
lea esi, [ebp - 0x10]
mov dword [esp + 0x14], esi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401aee
test byte [ebp - 0x10], 8
mov bl, 1
je 0x401af0
mov dword [ebp - 0x10], 0
push esi
call fcn.00401970
add esp, 4
xor ebx, ebx
test al, al
je 0x401af0
mov word [ebp - 0x12], bx
mov word [ebp - 0x26a], bx
push str.D:PAI_A__FA___BA__A_OIIOCI_GA___BA__A__FA___SY__A_OIIOCI_GA___SY__A_OIIOCI_GA___CO__A__FA___
push 0x12c
push edi
call fcn.00402f90
add esp, 0xc
test al, al
je 0x401ae3
push dword [ebp - 0x10]
push 0x12c
push edi
call fcn.00402f90
add esp, 0xc
test al, al
je 0x401ae1
push 0x456114
push 0x12c
push edi
call fcn.00402f90
add esp, 0xc
test al, al
jne 0x401afd
xor ebx, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401af0
mov bl, 1
mov eax, ebx
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push dword [ebp + 0xc]
push 1
push edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
setne bl
jmp 0x401ae3
Function at 0x401b20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
push 0x104
push ebx
call fcn.00402f50
add esp, 0xc
test al, al
je 0x401b59
push 0x456118
push 0x104
push ebx
call fcn.00402f90
add esp, 0xc
test al, al
jne 0x401b65
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 0x104
push esi
push ebx
call fcn.00402f20
add esp, 8
mov ecx, eax
mov dword [ebp - 0x10], eax
sub esi, eax
xor ebx, ebx
cmp esi, 0xb
jb 0x401b5b
lea eax, [ebp - 0x28]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov byte [eax + 8], 0
mov dword [eax - 4], 0xc
push eax
push edi
call fcn.00401a10
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ecx + 8], al
test al, al
je 0x401b5b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor ecx, eax
lea eax, [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x1c], eax
add ecx, 5
mov dword [ebp - 0x18], ecx
mov ebx, 0xfffffff6
jmp 0x401c37
xor ebx, ebx
cmp byte [ebp - 0x20], 0
je 0x401b5b
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401b5b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401b5b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov word [eax + ecx*2 + 0xa], 0
push 0x456120
push 0x104
mov edi, dword [ebp + 0xc]
push edi
call fcn.00402f90
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
lea ecx, [ebp - 0x2c]
cmovne eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401c58
inc dword [ebp - 0x14]
inc ebx
je 0x401bd4
push esi
push dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00402eb0
add esp, 0x10
test al, al
je 0x401bd4
cmp dword [ebp - 0x18], 0x103
ja 0x401c04
jmp 0x401bf7
push 0x45612a
push 0x104
push dword [ebp + 0xc]
call fcn.00402f90
add esp, 0xc
mov ebx, eax
jmp 0x401bd6

Function at 0x401c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x216]
mov word [edi + 0x208], ax
mov word [edi], ax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401cc5
mov bl, 1
push esi
push edi
call fcn.00401b20
add esp, 8
test al, al
jne 0x401d02
push 0x104
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x401d00
push eax
push edi
call fcn.00403060
add esp, 8
test eax, eax
je 0x401d00
mov word [eax], 0
push esi
push edi
call fcn.00401b20
add esp, 8
mov ebx, eax
jmp 0x401d02
xor ebx, ebx
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x254
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
push ebx
call fcn.00402f20
add esp, 8
mov edi, eax
push str..
push esi
push ebx
call fcn.00402f90
add esp, 0xc
test al, al
je 0x401d91
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x260]
push 0x250
push 0
push esi
call fcn.00402040
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401d7a
mov edi, eax
mov eax, dword [ebp - 0x10]
lea esi, [eax + 1]
jmp 0x401db5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
cmp eax, 0x103
ja 0x401d8a
mov word [ebx + eax*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x254
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401d73
movzx ecx, word [ebp - 0x2c]
mov edx, 0x2c
lea eax, [ebp - 0x234]
test cx, cx
je 0x401dd1
mov edx, 0x234
lea eax, [ebp - 0x2c]
test eax, eax
je 0x401e0e
cmp word [ebp + edx - 0x260], 0x2e
jne 0x401e0e
lea edx, [ebp - 0x232]
test cx, cx
je 0x401dee
lea edx, [ebp - 0x2a]
movzx edx, word [edx]
test edx, edx
je 0x401da3
cmp edx, 0x2e
jne 0x401e0e
lea edx, [ebp - 0x230]
test cx, cx
je 0x401e08
lea edx, [ebp - 0x28]
cmp word [edx], 0
je 0x401da3
cmp esi, 0x103
ja 0x401e20
mov ecx, dword [ebp - 0x10]
mov word [ebx + ecx*2 + 2], 0
push eax
push 0x104
push ebx
call fcn.00402f90
add esp, 0xc
test al, al
je 0x401da3
test byte [ebp - 0x260], 0x10
je 0x401d9c
push ebx
call fcn.00401d10
add esp, 4
jmp 0x401da3
Function at 0x401e60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x664
xor eax, eax
lea esi, [ebp - 0x670]
mov word [esi + 0x208], ax
mov word [esi], ax
push dword [ebp + 8]
push 0x104
push esi
call fcn.00402f50
add esp, 0xc
test al, al
je 0x401ebf
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402f90
add esp, 0xc
test al, al
je 0x401ebf
push 0x456138
push 0x104
push esi
call fcn.00402f90
add esp, 0xc
test al, al
jne 0x401ed3
add esp, 0x664
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x401ebf
xor edi, edi
lea ebx, [ebp - 0x25c]
push 0x250
push edi
push ebx
call fcn.00402040
add esp, 0xc
push edi
push edi
push 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp eax, 0xffffffff
je 0x401ebf
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x466]
mov word [ecx + 0x208], ax
mov word [ecx], ax
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x401f76
lea ecx, [ebp - 0x24]
cmp word [ecx], 0
je 0x401f64
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x466]
push eax
call fcn.00402f50
add esp, 0xc
test al, al
je 0x401f64
push ebx
push 0x104
lea eax, [ebp - 0x466]
push eax
call fcn.00402f90
add esp, 0xc
test al, al
je 0x401f64
lea eax, [ebp - 0x466]
push eax
call fcn.00401d10
add esp, 4
lea eax, [ebp - 0x25c]
push eax
push esi
call edi
test eax, eax
je 0x401eca
test byte [ebp - 0x25c], 0x10
je 0x401f64
movzx eax, word [ebp - 0x28]
mov ecx, 0x2c
lea ebx, [ebp - 0x230]
test ax, ax
je 0x401f9b
mov ecx, 0x234
lea ebx, [ebp - 0x28]
test ebx, ebx
je 0x401f21
cmp word [ebp + ecx - 0x25c], 0x2e
jne 0x401f21
lea ecx, [ebp - 0x22e]
test ax, ax
je 0x401fbc
lea ecx, [ebp - 0x26]
movzx ecx, word [ecx]
test ecx, ecx
je 0x401f64
cmp ecx, 0x2e
jne 0x401f21
lea ecx, [ebp - 0x22c]
test ax, ax
je 0x401f1b
jmp 0x401f18

Function at 0x401fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20c
xor eax, eax
lea esi, [ebp - 0x20e]
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40202c
push 0x456118
push esi
call fcn.00401e60
add esp, 8
push str.chrome_
push esi
call fcn.00401e60
add esp, 8
add esp, 0x20c
pop esi
pop ebp
ret
Function at 0x402400
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x45c
mov eax, dword [ebp + 8]
xor ecx, ecx
lea edi, [ebp - 0x466]
mov word [edi + 0x208], cx
mov word [edi], cx
mov ebx, 0x104
push eax
push ebx
push edi
call fcn.00402f50
add esp, 0xc
push ebx
push edi
call fcn.00402f20
add esp, 8
mov esi, eax
push str.BRAND_
push ebx
push edi
call fcn.00402f90
add esp, 0xc
lea ebx, [ebp - 0x25c]
push 0x250
push 0
push ebx
call fcn.00402040
add esp, 0xc
push ebx
mov ebx, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4024d6
mov edi, eax
jmp 0x40248e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4024cf
cmp word [ebp - 0x28], 0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x230]
cmove eax, ecx
cmp esi, 0x103
ja 0x4024b1
mov word [ebp + esi*2 - 0x466], 0
push eax
push 0x104
push ebx
call fcn.00402f90
add esp, 0xc
test al, al
je 0x40247c
test byte [ebp - 0x25c], 0x10
jne 0x40247c
jmp 0x402475
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
add esp, 0x45c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4024f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x40250e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 0x14]
cmp word [esi], 0
je 0x40251e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
cmp word [edi], 0
je 0x40252e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esi], 0
je 0x402587
xor eax, eax
lea edi, [ebp - 0x212]
mov word [edi + 0x208], ax
mov word [edi], ax
push esi
push 0x104
push edi
call fcn.00402f50
add esp, 0xc
test al, al
je 0x402587
push str.setup.exe
push 0x104
push edi
call fcn.00402f90
add esp, 0xc
test al, al
je 0x402587
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00402400
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
add esp, 0x20c
pop esi
pop edi
pop ebp
ret
Function at 0x4028b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x208
mov eax, dword [0x4608c0]
test eax, eax
je 0x402923
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [0x4608b4], eax
push str.FDIDestroy
push dword [0x4608c0]
call esi
mov dword [0x4608bc], eax
push str.FDICopy
push dword [0x4608c0]
call esi
mov dword [0x4608b8], eax
xor eax, eax
cmp dword [0x4608b4], 0
je 0x402919
cmp dword [0x4608bc], 0
je 0x402919
cmp dword [0x4608b8], 0
setne al
add esp, 0x208
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x210]
push 0x208
push 0
push esi
call fcn.00402040
add esp, 0xc
mov edi, 0x104
push edi
push esi
push str._WINDIR__system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jb 0x402957
mov eax, dword [0x4608c0]
jmp 0x402967
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x4608c0], eax
test eax, eax
jne 0x4028c4
mov word [ebp - 0x210], 0
push edi
push esi
push str._SYSTEMROOT__system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jb 0x402991
mov eax, dword [0x4608c0]
jmp 0x4029a1
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x4608c0], eax
test eax, eax
jne 0x4028c4
mov word [ebp - 0x210], 0
push edi
push esi
push str.C:Windows_system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jb 0x4029cb
mov eax, dword [0x4608c0]
jmp 0x4029db
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x4608c0], eax
test eax, eax
jne 0x4028c4
jmp 0x4028fb
Function at 0x40b0d0
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 [0x45d008]
xor eax, ebp
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x40b2d2
cmp dword [0x45ebc0], 0xe69e32f3
jne 0x40b2d5
mov edi, 0x308
mov edx, 0x20
mov esi, 0x20
add edi, dword [ecx + 8]
mov byte [esp + 0xf], 0xff
mov al, byte [ecx + 2]
je 0x40b124
bsr esi, edi
xor esi, 0x1f
mov ecx, 0x458a48
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 + 0x458a4c]
and edx, edi
cmp edx, 1
mov edx, dword [ebp + 8]
lea esi, [edx + 0x48]
sbb ecx, 0xffffffff
movzx ecx, word [ecx + ecx + 0x458814]
test al, al
mov dword [esp], edi
jne 0x40b173
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 0x40b26e
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x40b27a
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x40b267
mov edx, dword [esp + 4]
mov ebx, dword [edx + ebx + 0xc]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x40b2d8
mov edx, ecx
and edx, 0x1fc000
je 0x40b2d8
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.004106b0
push esi
push dword [0x4614b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x45fc5c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x98], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00417546
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
jmp 0x40b1df
mov ecx, esi
call fcn.00410fa0
jmp 0x40b195
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.004153b0
test eax, eax
je 0x40b2cb
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 0x40b1fb
xor esi, esi
jmp 0x40b21e
int3
int3
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.0044d040
push edi
call fcn.00401060
add esp, 4
mov ecx, ebx
call fcn.0044d0c0
int3
Function at 0x40c700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x40c717
test eax, eax
je 0x40c717
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x40c725
mov ecx, dword [0x46e64c]
test ecx, ecx
jne 0x40c761
cmp dword [0x46e644], 0
je 0x40c711
mov esi, dword [0x46e648]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40c76b
test esi, esi
je 0x40c711
mov ecx, dword [0x46e644]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40c711
call dword [section..00cfg]
call ecx
jmp 0x40c725
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40c749
Function at 0x417373
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4173b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4173b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4173b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4173b2
cmp dword [ecx + 0x74], 0xe
jbe 0x4173b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret