joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a100
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x52a224
mov dword [esp], ecx
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
movzx ecx, byte [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ch, dl
and ch, 0x3f
cmp ch, 0xd
je 0x52a245
and edx, 0x3f
cmp edx, 0xe
je 0x52a254
cmp edx, 0xf
jne 0x52a233
mov eax, dword [edi + 0x68]
test eax, eax
je 0x52a233
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x52a2b6
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 8], edx
mov edx, ecx
mov ecx, dword [esp + 8]
jmp 0x52a188
mov dword [esp + 0xc], edx
sub edx, edi
jbe 0x52a1c7
mov esi, dword [ebp + 0xc]
shr edx, 1
xor ebx, ebx
add edx, edi
imul eax, edx, 0x110
cmp dword [ecx + eax + 0x108], esi
mov eax, 0xff
setne bl
cmovb ebx, eax
cmp bl, 1
je 0x52a180
movzx eax, bl
cmp eax, 0xff
jne 0x52a2b6
inc edx
mov edi, edx
mov edx, dword [esp + 0xc]
sub edx, edi
ja 0x52a188
test edi, edi
je 0x52a2b6
mov eax, dword [esp + 0x28]
dec edi
cmp edi, eax
jae 0x52a32b
mov edx, dword [esp + 8]
imul ecx, edi, 0x110
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
cmp dword [edx + ecx + 0xa8], 0
jne 0x52a209
add edx, ecx
mov ecx, dword [edx + 0xac]
cmp ecx, eax
jbe 0x52a2d8
mov edx, dword [esp]
movzx eax, byte [esp + 0x12]
movzx esi, word [esp + 0x10]
mov byte [esp + 6], al
mov word [esp + 4], si
jmp 0x52a2b9
mov dword [ecx + 4], 0
mov byte [ecx], 0x4b
jmp 0x52a2d0
mov eax, dword [esp]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x52a2d0
movzx edx, cl
mov ecx, dword [esp]
push esi
push edi
push ebx
push eax
push dword [ebp + 0x14]
jmp 0x52a282
mov edx, ebx
movzx ebx, cl
lea ecx, [esp + 0x10]
push ebx
push eax
call fcn.00521ee0
add esp, 8
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x52a28c
mov ecx, dword [esp]
mov edx, ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.005289f0
add esp, 0x14
jmp 0x52a2d0
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp]
movzx edi, word [esp + 0x11]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [edx + 3], cl
mov word [edx + 1], di
mov byte [edx], al
mov dword [edx + 4], esi
movsd qword [edx + 8], xmm0
jmp 0x52a2d0
mov edx, dword [esp]
movzx eax, byte [esp + 6]
movzx esi, word [esp + 4]
mov byte [edx + 3], al
mov word [edx + 1], si
mov byte [edx], 0x37
mov dword [edx + 4], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub eax, ecx
xor ecx, ecx
cmp byte [edx + 0xc9], 8
mov dword [esp + 8], edx
mov edi, eax
sete cl
shl ecx, 3
add ecx, dword [edx + 0xcc]
mov edx, dword [edx + 0xc4]
sub ecx, edx
add ecx, 4
sub edi, ecx
jb 0x52a324
cmp edi, edx
jae 0x52a324
mov edi, dword [esp + 0x24]
mov ecx, dword [esp]
mov edx, 1
add edi, 8
push esi
push edi
push ebx
push eax
push dword [esp + 0x18]
jmp 0x52a282
mov ecx, eax
jmp 0x52a209
push 0x5ff1e4
push eax
push edi
call fcn.00425270
add esp, 0xc
ud2
Function at 0x52bc40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov ebx, 0x200
xor edi, edi
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], 0
cmp ebx, 0x201
jae 0x52bcb0
jmp 0x52bc91
mov edi, dword [ebp - 0x10]
jbe 0x52bd39
cmp ebx, 0x201
jae 0x52bcb0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0x200
lea esi, [ebp - 0x438]
mov edi, ebx
jmp 0x52bce1
mov eax, dword [ebp - 0x1c]
sub ebx, edi
sub eax, edi
cmp eax, ebx
jae 0x52bcd2
mov edx, edi
lea ecx, [ebp - 0x28]
push ebx
call fcn.005166d0
add esp, 4
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
push 0
call sub.KERNEL32.dll_SetLastError
push esi
push edi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x52bd02
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x52bd86
cmp ebx, edi
jne 0x52bc80
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x52bda1
lea ebx, [edi + edi]
test edi, edi
mov edi, dword [ebp - 0x10]
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x52bc91
jmp 0x52bcb0
mov eax, dword [ebp - 0x18]
cmp ebx, eax
ja 0x52bdb7
lea eax, [ebp - 0x38]
push ebx
push esi
push eax
call fcn.0052f440
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test edi, edi
je 0x52bd78
push dword [ebp - 0x14]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 8]
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
test edi, edi
jne 0x52bd68
jmp 0x52bd78
push 0x601238
push 0x28
push str.internal_error:_entered_unreachable_codeL
call fcn.004251d0
add esp, 0xc
jmp 0x52bdc6
push 0x601228
push eax
push ebx
call fcn.004287f0
add esp, 0xc
ud2
Function at 0x52fda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x52fdbe
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x52fdd5
test edx, edx
jne 0x52fdfe
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x52fde8
test edx, edx
jne 0x52fdf2
mov ecx, edi
call fcn.0052fcb0
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x52fe5f
jmp 0x52fe0b
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x52fe5f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x52fe5f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x52ff78]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov esi, dword [edi + 4]
lea ebx, [eax + ecx]
mov dword [ebp - 0x1c], ecx
cmp esi, ebx
jb 0x52ff5e
mov ecx, edi
mov edi, dword [edi]
cmp esi, ebx
mov edx, edi
lea edx, [edi + ebx]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov edx, esi
jne 0x52fe9b
movzx eax, byte [ecx + 8]
mov edi, dword [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0xd], al
xor eax, eax
jmp 0x52ff0c
movzx ecx, byte [ecx + 8]
cmp cl, 3
mov byte [ebp - 0xd], cl
jae 0x52fecd
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edx
sub eax, edx
lea esi, [edx + esi - 1]
nop dword [eax + eax]
cmp byte [esi], 0x5c
je 0x52fef8
dec esi
inc eax
jne 0x52fec0
xor eax, eax
jmp 0x52ff0c
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov ecx, edx
sub eax, edx
lea edi, [edx + esi - 1]
nop dword [eax + eax]
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x52fef8
cmp esi, 0x5c
je 0x52fef8
dec edi
inc eax
jne 0x52fee0
mov edi, dword [ebp - 0x18]
xor eax, eax
jmp 0x52ff0c
not eax
lea ebx, [ebx + eax + 1]
cmp ecx, ebx
jb 0x52ff66
mov edi, dword [ebp - 0x14]
mov eax, 1
add edi, ebx
sub ecx, ebx
je 0x52ff33
movzx ebx, byte [ebp - 0xd]
mov dl, 9
cmp ecx, 2
je 0x52ff37
cmp ecx, 1
jne 0x52ff46
cmp byte [edi], 0x2e
jne 0x52ff46
xor edx, edx
cmp bl, 3
setae dl
lea edx, [edx + edx*2 + 7]
jmp 0x52ff46
mov dl, 0xa
jmp 0x52ff46
cmp byte [edi], 0x2e
jne 0x52ff46
cmp byte [edi + 1], 0x2e
sete dl
xor dl, 9
mov esi, dword [ebp - 0x20]
add eax, ecx
mov dword [esi], eax
mov byte [esi + 4], dl
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5ffcd4
push esi
jmp 0x52ff6c
push 0x5ffce4
push ecx
push ebx
call fcn.00428790
add esp, 0xc
ud2
Function at 0x5359b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.0058cb30
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x53d280
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x535ad6
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x535a0e
cmp dword [ebp - 0x18], 0
jne 0x535ae5
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x535ae5
cmp ebx, 0x1000
ja 0x535b0d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x535afc
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x53d280
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x535add
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x535a80
cmp dword [ebp - 0x18], 0
jne 0x535ae2
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x535a40
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x53d280
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x535a0e
call sub.KERNEL32.dll_GetLastError
jmp 0x535ae5
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x600ca8
push ebx
push edi
call fcn.00428850
add esp, 0xc
jmp 0x535b20
push 0x600ca8
push 0x1000
push ebx
call fcn.004287f0
add esp, 0xc
ud2

Function at 0x5396f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x539751
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.0053c170
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x53974e
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x539758
mov byte [esi], 4
test edi, edi
jne 0x539767
jmp 0x539775
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x539775
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x539775
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x539b20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x539be8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
push 1
call fcn.0053c170
add esp, 4
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x539be5
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x18]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
test ecx, ecx
je 0x539bf2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 1
call fcn.0053c170
add esp, 4
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
test ebx, ebx
je 0x539bef
push 1
push ebx
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x539c1a
mov eax, dword [ebp + 8]
test esi, esi
mov byte [eax], 4
je 0x539bdc
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 8]
test edi, edi
je 0x539c10
jmp 0x539c00
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x539c10
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov esi, ecx
mov dword [ecx + 4], eax
test edi, edi
je 0x539c10
push dword [ebp - 0x1c]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
test esi, esi
mov esi, ecx
mov byte [ecx], 0
mov dword [ecx + 4], eax
je 0x539bfc
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
jmp 0x539bfc

Function at 0x53a4b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x53a516
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.0053c170
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x53a513
push dword [ebp + 0x14]
push ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x53a51d
mov byte [esi], 4
test edi, edi
jne 0x53a52c
jmp 0x53a53a
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x53a53a
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x53a53a
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x53a800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x53a844
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x53a84a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x53a87d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x53a88d
mov dword [esi + 4], 0
jmp 0x53a89f
cmp eax, 0x103
je 0x53a8b8
test eax, eax
js 0x53a8aa
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x53a8a2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x600a5c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0052f050
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.005105b0
mov ecx, 7
int 0x29
ud2

Function at 0x53a920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x53a964
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x53a96a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x53a9a4
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x53a9c8
test eax, eax
js 0x53a9b3
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x53a9be
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x600a5c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0052f050
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.005105b0
mov ecx, 7
int 0x29
ud2
Function at 0x53d370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x53d444
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x53d39d
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x53d411
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x53d42d
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x53d3d7
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x53d3f4
jmp 0x53d3e8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x53d3ef
cmp eax, 0x6d
jne 0x53d406
mov word [esi], 4
jmp 0x53d3fe
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x53d3fe
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00516640
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x53d3a8
mov ecx, ebx
push 1
call fcn.00516640
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x53d3a8
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.005126d0
ud2
Function at 0x540ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ecx, ecx
je 0x540d05
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.00539020
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x540d18
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x540d44
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x540d86
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0
cmp al, 3
je 0x540d23
jmp 0x540d80
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x540d80
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x540d72
cmp dword [ebx + 8], 9
jae 0x540d5e
mov eax, dword [ebp - 0x10]
jmp 0x540d64
test ebx, ebx
mov dword [esi], 0
je 0x540d86
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
jmp 0x540d86
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x541420
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x541465
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x600dd4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], fcn.0052dbf0
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x600e00
push eax
call fcn.00425150
add esp, 8
ud2
Function at 0x541bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x607474]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x541bdd
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x541c70
mov dword [0x6320d0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x541c70
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov dword [edi + 4], ecx
push 0
push 0x10000
push edi
push 0x541cc0
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x541c20
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x541c66
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x541c4a
cmp dword [esi + 8], 9
jb 0x541c3c
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x541e40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x541ea9
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x541ee3
cmp dword [ebp - 0x14], 0
je 0x541eca
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x541f05
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x6320e0]
mov dword [edi + 8], eax
lock cmpxchg dword [0x6320e0], edi
jne 0x541e90
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x541ed9
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x541f45
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x541ece
mov esi, dword [ebp - 0x10]
jmp 0x541ed9
mov esi, dword [edi]
jmp 0x541ed8
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x6010a4
push 0x601104
push eax
call fcn.00512670
add esp, 8
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x6010bc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x6010f4
push eax
call fcn.00425150
add esp, 8
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x6010bc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00512730
ud2