joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov dword [ebp - 0x50], eax
xor eax, eax
push edi
mov dword [ebp - 0x58], edx
xor edi, edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
jmp 0x411990
xor eax, eax
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push eax
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call fcn.00406900
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.0042df00
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c630
cmp dword [ebp - 0x38], 8
jb 0x4119e1
push dword [ebp - 0x4c]
call fcn.004d8fe0
add esp, 4
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
cmovae ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
test eax, eax
je 0x411a01
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413090
sub esp, 8
call fcn.00434470
add esp, 8
lea ecx, [ebp - 0x4c]
mov edx, eax
call fcn.0042df00
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c630
cmp dword [ebp - 0x38], 8
jb 0x411a44
push dword [ebp - 0x4c]
call fcn.004d8fe0
add esp, 4
sub esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
push eax
call fcn.0040eb70
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x411a79
push 0xffffffffffffffff
push 0
push eax
call fcn.00406900
cmp dword [ebp - 0x38], 8
jb 0x411a8a
push dword [ebp - 0x4c]
call fcn.004d8fe0
add esp, 4
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push eax
call ebx
test eax, eax
jne 0x411ac0
cmp dword [ebp - 8], 8
jb 0x411aaf
push dword [ebp - 0x1c]
call fcn.004d8fe0
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x411990
xor bl, bl
jmp 0x411ae9
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x34]
cmp eax, ecx
je 0x411ad6
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00406900
cmp dword [ebp - 8], 8
jb 0x411ae7
push dword [ebp - 0x1c]
call fcn.004d8fe0
add esp, 4
mov bl, 1
cmp dword [ebp - 0x20], 8
jb 0x411afa
push dword [ebp - 0x34]
call fcn.004d8fe0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x411b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x55b0a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x411bad
mov ebx, dword [edi]
jmp 0x411baf
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411bf1
test al, 0x10
je 0x411bd3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x411bdd
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040e040
cmp dword [edi + 0x14], 8
jb 0x411c07
mov eax, dword [edi]
jmp 0x411c09
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.0040fef0
test eax, eax
jne 0x411c2e
test esi, esi
je 0x411c76
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x411c7c
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00411b80
test al, al
jne 0x411c41
xor bl, bl
jmp 0x411c7c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x411c69
mov ecx, edi
call fcn.00411470
test al, al
jne 0x411c7a
test esi, esi
je 0x411c76
mov ecx, ebx
call fcn.00433e10
mov dword [esi], eax
xor bl, bl
jmp 0x411c7c
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x411c8f
push dword [esp + 0x14]
call fcn.004d8fe0
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x412080
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x4120a0
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x23c], 0
test esi, esi
je 0x41224f
lea ecx, [ebp - 0x23c]
call fcn.00405a40
cmp esi, 0xffffffff
je 0x41211c
mov dword [ebp - 0x23c], esi
call fcn.004169c0
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x55f478]
mov dword [ebp - 0x244], eax
test ecx, ecx
jne 0x412108
call fcn.00424940
mov ecx, dword [0x55f478]
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
push ebx
push dword [ebp - 0x244]
push edx
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x41224f
cmp eax, 0xffffffff
je 0x41224f
push 0
push 1
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x240], 0
test esi, esi
je 0x412240
lea ecx, [ebp - 0x240]
call fcn.00405a40
cmp esi, 0xffffffff
je 0x4121a7
mov dword [ebp - 0x240], esi
call fcn.004169c0
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x55f478]
mov dword [ebp - 0x244], eax
test ecx, ecx
jne 0x412193
call fcn.00424940
mov ecx, dword [0x55f478]
mov eax, dword [ecx]
lea edx, [ebp - 0x240]
push ebx
push dword [ebp - 0x244]
push edx
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x412240
cmp eax, 0xffffffff
je 0x412240
push 1
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x412240
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x10e
lea ecx, [ebp - 0x220]
push ecx
push esi
push eax
call dword [sym.imp.PSAPI.DLL_GetMappedFileNameW]
test eax, eax
je 0x41222c
sub esp, 8
lea eax, [ebp - 0x220]
mov ecx, esp
push eax
call fcn.004043f0
lea ecx, [ebp - 0x238]
call fcn.0040d920
cmp edi, eax
je 0x41221f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00406900
lea ecx, [ebp - 0x238]
call fcn.0040d9a0
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x240]
call fcn.00405a40
jmp 0x412251
lea ecx, [ebp - 0x240]
xor bl, bl
call fcn.00405a40
jmp 0x412251
xor bl, bl
lea ecx, [ebp - 0x23c]
call fcn.00405a40
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x412d50
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0040f000
test al, al
jne 0x412dbc
mov ecx, esi
call fcn.0040f000
test al, al
jne 0x412dbc
cmp dword [edi + 0x10], 0x104
jae 0x412dbc
cmp dword [esi + 0x10], 0x104
jae 0x412dbc
cmp dword [esi + 0x14], 8
jb 0x412d85
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x412d8d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x412dbc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412dbc
test al, 1
je 0x412db6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x4140d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x4140f6
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4140f1
mov eax, dword [ebx]
jmp 0x4140f3
mov eax, ebx
mov byte [eax], 0
call fcn.0040f000
test al, al
je 0x414107
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, 0x547ed8
mov ecx, esi
call fcn.004123b0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x414126
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10000
call fcn.004d9125
push edi
push 0x10000
mov esi, eax
mov dword [ebp - 8], 0
push 1
push esi
call fcn.004dd923
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4141a5
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x414178
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.00404f30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x4141bb
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004dd923
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x414156
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004dd26b
add esp, 4
test eax, eax
jne 0x4141be
mov byte [ebp - 1], 1
jmp 0x4141c2
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004dd1ce
add esp, 4
test esi, esi
je 0x4141d8
push esi
call fcn.004d912e
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414300
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00411b80
Function at 0x415b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x55b0a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x415c44
cmp byte [ebx + 0x45], 0
je 0x415c44
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x415b4d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
lea esp, [esp]
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x14]
cmovae edi, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmovae esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x415bc1
dec eax
je 0x415bc5
sub eax, 2
je 0x415c1b
xor bl, bl
jmp 0x415c1d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x415bfc
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004e2e48
add esp, 0x10
cmp esi, eax
jne 0x415bbd
cmp byte [ebx + 0x45], 0
je 0x415c1b
test esi, esi
jne 0x415b80
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00405020
jmp 0x415b80
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x415c30
push dword [esp + 0x14]
call fcn.004d8fe0
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret

Function at 0x41f3c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov ecx, str._t_n_v_f_r
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f400
sub ecx, esi
lea eax, [ebp - 0x1c]
sar ecx, 1
push eax
push ecx
push str._t_n_v_f_r
mov ecx, edx
call fcn.00419a80
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x41f45a
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.0041e350
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x41f46b
push dword [ebp - 0x1c]
call fcn.004d8fe0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 4
Function at 0x427630
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x55b0a0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00428600
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00407f40
mov eax, dword [0x55f4c4]
test eax, eax
je 0x427699
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x42781b
test byte [0x55c664], 2
je 0x4276b9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4276be
cmp dword [ebx], 2
jl 0x4276f9
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004e42b2
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004e2e48
call fcn.004e42b2
add eax, 0x40
push eax
call fcn.004e2bb2
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x55c664], 1
je 0x427798
xor edx, edx
xor ecx, ecx
call fcn.00426d50
cmp dword [0x55f49c], 0
jne 0x427728
push 0xffffffffffffffff
push dword [0x55f4a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x427734
push dword [0x55f4c0]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00426f20
test al, al
je 0x427775
push 2
push 0
push 0
push dword [0x55f4c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x55f4c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x55f49c], 0
jne 0x42778c
push dword [0x55f4a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x427798
push dword [0x55f4c0]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x42781b
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x4277cc
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004dad60
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0043be00
add esp, 4
cmp dword [0x55f4bc], 0
je 0x427811
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00407f40
lea eax, [esp + 0x28]
push eax
call dword [0x55f4bc]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x42781b
push dword [esp + 0x28]
call fcn.004d8fe0
add esp, 4
jmp 0x42781b
cmp byte [0x5605d4], 0
jne 0x427868
int3
cmp dword [esp + 0x24], 0x10
jb 0x42782e
push dword [esp + 0x10]
call fcn.004d8fe0
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00404430
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0050fd01
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
push 1
call fcn.004e6141
int3
Function at 0x428c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
push edi
mov edi, ecx
jne 0x428c75
cmp byte [0x5605d4], 0
jne 0x428d98
int3
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
jne 0x428d50
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x18]
call fcn.00428f80
push eax
lea ecx, [ebp - 8]
call fcn.00429060
mov ecx, eax
add esp, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [ecx]
test edx, edx
je 0x428cb2
mov ecx, 1
lock xadd dword [edx], ecx
mov ecx, dword [edi + 4]
push esi
or esi, 0xffffffff
mov dword [edi + 4], edx
test ecx, ecx
je 0x428cd7
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x428cd7
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edi + 8], eax
test ecx, ecx
je 0x428cfe
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x428cfe
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x428d1e
lock xadd dword [ecx], esi
dec esi
setne al
test al, al
jne 0x428d1e
test ecx, ecx
je 0x428d1e
push ecx
call fcn.004d8fe0
add esp, 4
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], esi
call fcn.004405d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
push 0xffffffffffffffff
push edi
push 0x428e80
push esi
push ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
pop esi
test eax, eax
jne 0x428d5a
mov dword [edi + 0xc], eax
mov dword [ebx], eax
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004405d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0xc], edi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x428d85
cmp dword [eax], edi
je 0x428d81
add eax, 4
cmp eax, edx
jne 0x428d76
cmp eax, edx
jne 0x428d8e
lea eax, [ebp + 0xc]
push eax
call fcn.004426b0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
call fcn.004e6141
int3

Function at 0x428dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x428df0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x428de9
mov eax, dword [esi + 0x18]
test eax, eax
je 0x428e2e
mov byte [eax + 5], 0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x428e2e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x428e2e
push ecx
call fcn.004d8fe0
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004405d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [eax + 0x54]
call fcn.004419f0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov dword [ebp - 8], 0
mov esi, ecx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], esi
test ebx, ebx
jns 0x433376
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x560578]
push edi
xor edi, edi
test ecx, ecx
je 0x4333ba
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4333ba
mov ecx, dword [0x560578]
lea edi, [esi + 0x1c]
mov eax, ebx
mov dword [ebp + 0x14], str.File::Read
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
push edi
push str.File::Read
call dword [esi + 0x10]
mov esi, dword [ebp - 4]
jmp 0x4333c0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], 0
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4333f8
mov esi, dword [ebp - 8]
jmp 0x43340a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x433407
xor esi, esi
jmp 0x43340a
or esi, 0xffffffff
test edi, edi
je 0x433421
mov ecx, dword [0x560578]
test ecx, ecx
je 0x433421
mov edx, dword [ecx]
push edi
push dword [ebp + 0x14]
call dword [edx + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434100
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
test bl, 0x10
je 0x434156
mov dword [ebp + 0xc], 5
jmp 0x43415e
test eax, eax
je 0x4342bb
xor edx, edx
mov eax, 4
test bl, 0x40
push edi
mov edi, 0x40000000
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x434182
or edx, 0x80000000
test ebx, 0x4000
je 0x434190
or edx, 0x100
test ebx, 0x40000
je 0x43419e
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x4341b3
or ecx, 2
test ebx, 0x8000
je 0x4341bd
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x4341d5
or eax, 0x100
test ebx, 0x1000
je 0x4341e0
or eax, 2
test ebx, 0x2000
je 0x4341ed
or eax, 0x4000000
test ebx, 0x20000
je 0x4341fa
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x434205
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x43425e
mov ecx, esi
call fcn.00405a40
test edi, edi
je 0x43425e
cmp edi, 0xffffffff
je 0x43425e
mov dword [esi], edi
call fcn.004169c0
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x55f478]
mov dword [ebp + 8], eax
test ecx, ecx
jne 0x434251
call fcn.00424940
mov ecx, dword [0x55f478]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
push esi
push edi
call dword [eax + 4]
mov eax, dword [esi]
pop edi
test eax, eax
je 0x4342ab
cmp eax, 0xffffffff
je 0x4342ab
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 0x25], al
je 0x43429a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x4342bb
mov byte [esi + 0x24], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00433e10
mov dword [esi + 0x20], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8