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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x41a088
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a09b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x41a0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x57a120]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x41a1ad
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x41a0f2
xor ecx, ecx
jmp 0x41a10f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a100
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.0040ea10
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41a12a
mov ecx, dword [eax]
jmp 0x41a12c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040ea10
lea ecx, [esp + 8]
call fcn.00410490
lea eax, [esp + 8]
cmp esi, eax
je 0x41a15a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407970
cmp dword [esp + 0x1c], 8
jb 0x41a16d
push dword [esp + 8]
call fcn.004f2e36
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x34], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x41a197
push dword [esp + 0x20]
call fcn.004f2e36
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x41a3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
mov dword [ebp - 0x450], 0
jb 0x41a3e9
mov ecx, dword [ecx]
lea eax, [ebp - 0x210]
push eax
push 0
push 0x55d048
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41a414
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x41a4d7
test eax, eax
je 0x41a4d7
xor ecx, ecx
mov dword [ebp - 0x420], 7
push eax
lea eax, [ebp - 0x41c]
mov word [ebp - 0x434], cx
push eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x424], 0
call fcn.00407440
sub esp, 8
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x420], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x434]
mov dword [ecx], eax
mov eax, dword [ebp - 0x424]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x44c]
call fcn.0040ea10
cmp esi, eax
je 0x41a4af
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407970
cmp dword [ebp - 0x438], 8
jb 0x41a4c6
push dword [ebp - 0x44c]
call fcn.004f2e36
add esp, 4
cmp dword [ebp - 0x420], 8
jb 0x41a544
push dword [ebp - 0x434]
jmp 0x41a53c
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x41a4f2
xor ecx, ecx
jmp 0x41a50f
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
jmp 0x41a500
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a500
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x44c]
call fcn.0040ea10
cmp esi, eax
je 0x41a52d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407970
cmp dword [ebp - 0x438], 8
jb 0x41a544
push dword [ebp - 0x44c]
call fcn.004f2e36
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x41a560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x57a120]
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 0x41a5a0
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.00407970
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.004362e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d700
cmp dword [ebp - 0x38], 8
jb 0x41a5f1
push dword [ebp - 0x4c]
call fcn.004f2e36
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 0x41a611
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041bcb0
sub esp, 8
call fcn.0043c860
add esp, 8
lea ecx, [ebp - 0x4c]
mov edx, eax
call fcn.004362e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d700
cmp dword [ebp - 0x38], 8
jb 0x41a654
push dword [ebp - 0x4c]
call fcn.004f2e36
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.0040fc60
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x41a689
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
cmp dword [ebp - 0x38], 8
jb 0x41a69a
push dword [ebp - 0x4c]
call fcn.004f2e36
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 0x41a6d0
cmp dword [ebp - 8], 8
jb 0x41a6bf
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x41a5a0
xor bl, bl
jmp 0x41a6f9
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x34]
cmp eax, ecx
je 0x41a6e6
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00407970
cmp dword [ebp - 8], 8
jb 0x41a6f7
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
mov bl, 1
cmp dword [ebp - 0x20], 8
jb 0x41a70a
push dword [ebp - 0x34]
call fcn.004f2e36
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x41a7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x41a7c8
mov ebx, dword [edi]
jmp 0x41a7ca
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a80a
test al, 0x10
je 0x41a7ed
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41a7f7
mov dword [esi], 0xfffffff7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040f130
cmp dword [edi + 0x14], 8
jb 0x41a81f
mov eax, dword [edi]
jmp 0x41a821
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push 0
call fcn.00410fe0
test eax, eax
jne 0x41a844
test esi, esi
je 0x41a88b
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x41a891
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.0041a7a0
test al, al
jne 0x41a856
xor bl, bl
jmp 0x41a891
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a88f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x41a87e
mov ecx, edi
call fcn.0041a080
test al, al
jne 0x41a88f
test esi, esi
je 0x41a88b
mov ecx, ebx
call fcn.0043c220
mov dword [esi], eax
xor bl, bl
jmp 0x41a891
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x41a8a2
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x41ac90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x41acb0
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x23c], 0
test esi, esi
je 0x41ae5f
lea ecx, [ebp - 0x23c]
call fcn.00406ab0
cmp esi, 0xffffffff
je 0x41ad2c
mov dword [ebp - 0x23c], esi
call fcn.0041c520
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x57f470]
mov dword [ebp - 0x244], eax
test ecx, ecx
jne 0x41ad18
call fcn.00429ab0
mov ecx, dword [0x57f470]
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 0x41ae5f
cmp eax, 0xffffffff
je 0x41ae5f
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 0x41ae50
lea ecx, [ebp - 0x240]
call fcn.00406ab0
cmp esi, 0xffffffff
je 0x41adb7
mov dword [ebp - 0x240], esi
call fcn.0041c520
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x57f470]
mov dword [ebp - 0x244], eax
test ecx, ecx
jne 0x41ada3
call fcn.00429ab0
mov ecx, dword [0x57f470]
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 0x41ae50
cmp eax, 0xffffffff
je 0x41ae50
push 1
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41ae50
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 0x41ae3c
sub esp, 8
lea eax, [ebp - 0x220]
mov ecx, esp
push eax
call fcn.00405460
lea ecx, [ebp - 0x238]
call fcn.0040ea10
cmp edi, eax
je 0x41ae2f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407970
lea ecx, [ebp - 0x238]
call fcn.0040ea90
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x240]
call fcn.00406ab0
jmp 0x41ae61
lea ecx, [ebp - 0x240]
xor bl, bl
call fcn.00406ab0
jmp 0x41ae61
xor bl, bl
lea ecx, [ebp - 0x23c]
call fcn.00406ab0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x41b1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
jb 0x41b200
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x41b28c
lea ecx, [ebp - 4]
call fcn.00406ab0
cmp esi, 0xffffffff
je 0x41b266
mov dword [ebp - 4], esi
call fcn.0041c520
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x57f470]
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x41b255
call fcn.00429ab0
mov ecx, dword [0x57f470]
mov eax, dword [ecx]
lea edx, [ebp - 4]
push ebx
push dword [ebp - 0xc]
push edx
push esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41b28c
cmp eax, 0xffffffff
je 0x41b28c
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b28c
mov esi, dword [ebp - 8]
cmp esi, edi
je 0x41b28f
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00406ab0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b960
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004100f0
test al, al
jne 0x41b9ca
mov ecx, esi
call fcn.004100f0
test al, al
jne 0x41b9ca
cmp dword [edi + 0x10], 0x104
jae 0x41b9ca
cmp dword [esi + 0x10], 0x104
jae 0x41b9ca
cmp dword [esi + 0x14], 8
jb 0x41b994
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41b99c
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41b9ca
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b9ca
test al, 1
je 0x41b9c5
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x4245c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x57a120]
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 0x424600
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.0041f160
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x42465a
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.00423550
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x42466b
push dword [ebp - 0x1c]
call fcn.004f2e36
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 4
Function at 0x42c7a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x57a120]
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.0042d770
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00408fb0
mov eax, dword [0x57f4bc]
test eax, eax
je 0x42c809
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 0x42c98b
test byte [0x57b6e4], 2
je 0x42c829
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x42c82e
cmp dword [ebx], 2
jl 0x42c869
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004fef9d
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004fca24
call fcn.004fef9d
add eax, 0x40
push eax
call fcn.004fc78e
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x57b6e4], 1
je 0x42c908
xor edx, edx
xor ecx, ecx
call fcn.0042bec0
cmp dword [0x57f494], 0
jne 0x42c898
push 0xffffffffffffffff
push dword [0x57f49c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42c8a4
push dword [0x57f4b8]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0042c090
test al, al
je 0x42c8e5
push 2
push 0
push 0
push dword [0x57f4c0]
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 [0x57f4c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x57f494], 0
jne 0x42c8fc
push dword [0x57f49c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x42c908
push dword [0x57f4b8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x42c98b
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 0x42c93c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004f50c0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004441d0
add esp, 4
cmp dword [0x57f4b4], 0
je 0x42c981
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00408fb0
lea eax, [esp + 0x28]
push eax
call dword [0x57f4b4]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x42c98b
push dword [esp + 0x28]
call fcn.004f2e36
add esp, 4
jmp 0x42c98b
cmp byte [0x58062c], 0
jne 0x42c9d8
int3
cmp dword [esp + 0x24], 0x10
jb 0x42c99e
push dword [esp + 0x10]
call fcn.004f2e36
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004054a0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.005298e0
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
push 1
call fcn.004fcf46
int3
Function at 0x42ddc0
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 0x42dde5
cmp byte [0x58062c], 0
jne 0x42df08
int3
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
jne 0x42dec0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x18]
call fcn.0042e0f0
push eax
lea ecx, [ebp - 8]
call fcn.0042e1d0
mov ecx, eax
add esp, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [ecx]
test edx, edx
je 0x42de22
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 0x42de47
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x42de47
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 0x42de6e
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x42de6e
mov eax, dword [ecx + 4]
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42de8e
lock xadd dword [ecx], esi
dec esi
setne al
test al, al
jne 0x42de8e
test ecx, ecx
je 0x42de8e
push ecx
call fcn.004f2e36
add esp, 4
mov esi, dword [ebp + 8]
mov dword [edi + 0xc], esi
call fcn.004489a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
push 0xffffffffffffffff
push edi
push 0x42dff0
push esi
push ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
pop esi
test eax, eax
jne 0x42deca
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.004489a0
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 0x42def5
cmp dword [eax], edi
je 0x42def1
add eax, 4
cmp eax, edx
jne 0x42dee6
cmp eax, edx
jne 0x42defe
lea eax, [ebp + 0xc]
push eax
call fcn.0044aa90
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
call fcn.004fcf46
int3

Function at 0x42df40
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 0x42df60
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 0x42df59
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42df9e
mov byte [eax + 5], 0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x42df9e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x42df9e
push ecx
call fcn.004f2e36
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004489a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [eax + 0x54]
call fcn.00449dd0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x432067
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x432062
mov eax, dword [ebx]
jmp 0x432064
mov eax, ebx
mov byte [eax], 0
call fcn.004100f0
test al, al
je 0x432079
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x563034
mov ecx, esi
call fcn.0041afc0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x432070
push 0x10000
call fcn.004f3b58
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004f6a13
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x432110
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x4320e3
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.00405fa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x432126
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004f6a13
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4320c1
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004f635b
add esp, 4
test eax, eax
jne 0x432129
mov byte [ebp - 1], 1
jmp 0x43212d
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004f62be
add esp, 4
test esi, esi
je 0x432143
push esi
call fcn.004f3b61
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x57a120]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x433a74
cmp byte [ebx + 0x45], 0
je 0x433a74
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x43397d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f3b66
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 0x4339f1
dec eax
je 0x4339f5
sub eax, 2
je 0x433a4b
xor bl, bl
jmp 0x433a4d
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 0x433a2c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004fca24
add esp, 0x10
cmp esi, eax
jne 0x4339ed
cmp byte [ebx + 0x45], 0
je 0x433a4b
test esi, esi
jne 0x4339b0
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00406090
jmp 0x4339b0
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x433a60
push dword [esp + 0x14]
call fcn.004f2e36
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f3b66
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.004f3b66
mov esp, ebp
pop ebp
ret