joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf8c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4bf8d9
mov esi, edi
mov edi, eax
jmp 0x4bf8db
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4bf8eb
mov eax, ebx
jmp 0x4bf8f5
push eax
push ebx
call fcn.00416750
add esp, 8
test eax, eax
jne 0x4bf8fd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4bf919
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4bf904
cmp eax, dword [esi + 4]
jge 0x4bf930
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4bf920
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4bf951
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4bf94e
dec eax
test eax, eax
jg 0x4bf940
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4e07c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.005336e0
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.004cadf0
add esp, 0xc
test eax, eax
je 0x4e081a
lea esp, [esp]
mov edx, dword [esp + 0xc]
shl edx, 0xa
test dword [esp + 0x1c], edx
je 0x4e07fe
inc edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
inc ebp
push ebp
call fcn.004cadf0
add esp, 0xc
test eax, eax
jne 0x4e07f0
test edi, edi
jne 0x4e083e
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.004126e0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
push ebx
mov ebx, eax
cmp edi, 1
jne 0x4e0855
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.00530a90
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.004cadf0
add esp, 0x18
test eax, eax
je 0x4e0934
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x20], eax
je 0x4e0910
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e0941
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x54]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x60]
push edi
push eax
call fcn.004e03b0
add esp, 0x34
test eax, eax
je 0x4e095f
add edi, ebx
test esi, esi
jle 0x4e0910
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec ebp
jne 0x4e0907
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.004cadf0
add esp, 0xc
test eax, eax
jne 0x4e0890
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.004126e0
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x4e3af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005336e0
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
inc ebp
test byte [ecx + 0x38], 1
je 0x4e3b38
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x4e3b2b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x4e3b43
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x4e3b24
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x4e3b96
cmp dword [edi + 0x88], 0
jne 0x4e3b96
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5a18ec
push eax
call fcn.004143a0
add esp, 0xc
test eax, eax
jne 0x4e3b89
test bl, 1
jne 0x4e3b89
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x4e3b96
test ebx, ebx
je 0x4e3b96
dec ebx
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.0040f9d0
add esp, 4
test eax, 0x200000
je 0x4e3bc1
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x4e3bef
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
je 0x4e3c47
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x4e3c10
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x4e3c80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.005336e0
mov eax, dword [0x5ca1e0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x1c], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
cmp ebx, edi
jae 0x4e3cea
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.00414360
add esp, 0xc
cmp edi, 0x40
jbe 0x4e3d06
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.00414360
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x20], ecx
cmp ebx, edx
jbe 0x4e3d30
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x14], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.00530a90
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
cmp ecx, dword [esp + 0xc4]
jae 0x4e3e10
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0xc]
shr edx, 0x1f
sub ecx, ebx
sub ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
jmp 0x4e3da8
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add ebx, ecx
shr ebx, 0x1f
xor bl, dl
mov eax, ebp
shr eax, 0x1f
xor dl, al
or bl, dl
mov dl, byte [esp + 0x2c]
xor bl, al
dec bl
mov byte [esp + 0x13], bl
mov ebx, ecx
shr ebx, 0x1f
xor bl, dl
xor dl, al
or bl, dl
mov edx, dword [esp + 0x18]
mov dl, byte [edx + ebp]
xor al, bl
dec al
not al
and al, dl
and al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
or byte [esi + edx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ebx, esi
xor ebx, edi
or eax, ebx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
inc ecx
cmp ebp, dword [esp + 0xc4]
jb 0x4e3da0
mov ebx, dword [esp + 0x24]
jmp 0x4e3e14
mov edx, dword [esp + 0x20]
xor esi, esi
test edi, edi
je 0x4e3e4d
lea ebx, [ebx]
mov ecx, ebx
xor ecx, 0x20
mov al, byte [ecx + edx]
mov cl, byte [ebx + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + esi], cl
inc ebx
mov ecx, ebx
sub ecx, edi
xor ecx, edi
mov eax, ebx
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
inc esi
and ebx, ecx
cmp esi, edi
jb 0x4e3e20
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005310be
add esp, 0xa4
ret
Function at 0x505c60
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x50c600
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5644d8
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x50c674
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
call fcn.00402c6b
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0
call fcn.00508da0
push 0x5bb850
lea ecx, [esp + 0x24]
push ecx
call fcn.00530bea
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret

Function at 0x50c730
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x564526
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [esi + 0x14]
xor ebx, ebx
push ebx
push esi
push ecx
push edx
push ebx
call fcn.00538106
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
cmp eax, ebx
jne 0x50c7c0
push 0x14
push str.cannot_create_thread
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402c6b
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xb4], ebx
call fcn.00508da0
push 0x5bb850
lea eax, [esp + 0x48]
push eax
call fcn.00530bea
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x50c81c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x50c81c
push 0x1a
push str.cannot_set_thread_priority
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00402c6b
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb4], 1
call fcn.00508da0
push 0x5bb850
lea edx, [esp + 0x78]
push edx
call fcn.00530bea
mov ecx, dword [esp + 0xa4]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 8
Function at 0x511680
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x564b81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, 0x7fff
xor ecx, ecx
xor ebx, ebx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], ebx
push edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x1c], 1
neg ecx
or ecx, eax
push ecx
call fcn.0052fb68
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
push esi
push edi
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x5117a3
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
ja 0x511740
push 0x2a
push str.Cannot_get_system_directory_long_path_name
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00402c6b
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 2
call fcn.00508da0
push 0x5bb850
lea ecx, [esp + 0x40]
push ecx
call fcn.00530bea
mov esi, dword [esp + 0x7c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push esi
push edi
mov dword [esp + 0x14], 1
call fcn.00521260
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x51176f
mov eax, dword [esi]
jmp 0x511771
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x511786
push 1
push 0x58964c
mov ecx, esi
call fcn.00402f44
push edi
call fcn.00530c36
mov ecx, dword [esp + 0x70]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0x23
push str.Cannot_get_temporary_directory_path
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00402c6b
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 3
call fcn.00508da0
push 0x5bb850
lea eax, [esp + 0x40]
push eax
call fcn.00530bea
int3
Function at 0x5210c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5655e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x5210ee
mov eax, dword [esi]
jmp 0x5210f0
mov eax, esi
lea ecx, [esp + 0x30]
mov byte [eax], 0
call fcn.00526a90
push 2
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call fcn.00526ed0
push 0x3f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.00526f80
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push esi
lea eax, [edx + edx]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00527210
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00526fa0
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.00526c40
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.00526870
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x521cc0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5656e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], 0
mov word [esp], ax
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.00521660
mov eax, dword [esp + 8]
add esp, 8
cmp dword [esp + 0x14], 8
jae 0x521d11
lea eax, [esp]
push ebx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [esp + 0x18], 8
jb 0x521d36
mov eax, dword [esp + 4]
push eax
call fcn.00530309
add esp, 4
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x522830
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5657f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebp
mov dword [esp + 4], 0
push esi
xor eax, eax
push edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov ebp, dword [esp + 0x80]
lea ecx, [esp + 0x20]
push ecx
push ebp
mov dword [esp + 0x7c], 1
call fcn.00521660
mov eax, dword [esp + 0x28]
add esp, 8
cmp dword [esp + 0x34], 8
jae 0x522896
lea eax, [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push eax
call edi
mov esi, eax
test esi, esi
jne 0x5228c3
push eax
push ebp
lea ecx, [esp + 0x44]
call fcn.00508a40
push 0x5b947c
lea edx, [esp + 0x40]
push edx
call fcn.00530bea
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], 1
test esi, esi
je 0x5228fb
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052fb68
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov byte [esp + 0x74], 2
jae 0x52290f
lea eax, [esp + 0x20]
push esi
push ebp
push eax
call edi
mov edi, dword [esp + 0x7c]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
push edi
dec esi
push esi
push ebp
mov dword [esp + 0x18], 1
call fcn.005210c0
push ebp
call fcn.00530c36
add esp, 0x10
cmp dword [esp + 0x34], 8
jb 0x522957
mov eax, dword [esp + 0x20]
push eax
call fcn.00530309
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret

Function at 0x524950
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x52496f
push 0
push 0x60
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x52497a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5249af
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x13
ja case.0x52499b.4
movzx eax, byte [eax + 0x5249bc]
jmp dword [eax*4 + 0x5249b4]
xor al, al
pop esi
ret
add esi, 4
push esi
call fcn.00523ee0
mov al, 1
pop esi
ret

Function at 0x524a80
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x524aa2
push 0
push 0xa1
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x524aad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x524ac2
add esi, 4
push esi
call fcn.00523ee0
shr eax, 4
and eax, 1
pop esi
ret
Function at 0x524e40
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
jne 0x524e63
push 0
push 0x10f
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
cmp dword [edi + 0x34], 8
lea esi, [edi + 0x20]
jb 0x524e70
mov eax, dword [esi]
jmp 0x524e72
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x524e87
add edi, 4
push edi
call fcn.00523ee0
cmp byte [esp + 0xc], 0
je 0x524e93
and eax, 0xfffffffe
jmp 0x524e96
or eax, 1
cmp dword [esi + 0x14], 8
jb 0x524e9e
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x524eb3
add edi, 4
push edi
call fcn.00523ee0
pop edi
pop esi
ret 4

Function at 0x524ec0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x565a78
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x524efa
push 0
push 0x125
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.00523be0
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [esp + 0x18], 8
jae 0x524f36
lea ecx, [esp + 4]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x524f41
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x524f58
add esi, 4
push esi
call fcn.00523ee0
cmp dword [esp + 0x18], 8
jb 0x524f6c
mov eax, dword [esp + 4]
push eax
call fcn.00530309
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x524ed8
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x565a78
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x524efa
push 0
push 0x125
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.00523be0
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [esp + 0x18], 8
jae 0x524f36
lea ecx, [esp + 4]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x524f41
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x524f58
add esi, 4
push esi
call fcn.00523ee0
cmp dword [esp + 0x18], 8
jb 0x524f6c
mov eax, dword [esp + 4]
push eax
call fcn.00530309
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x525040
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x525062
push 0
push 0x13b
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
mov ecx, esi
call fcn.00524a80
test al, al
lea eax, [esi + 0x20]
je 0x52508c
cmp dword [eax + 0x14], 8
jb 0x525078
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x5250a8
add esi, 4
push esi
call fcn.00523ee0
cmp dword [eax + 0x14], 8
jb 0x525094
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5250a8
add esi, 4
push esi
call fcn.00523ee0
pop esi
ret

Function at 0x525120
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x525142
push 0
push 0x15e
push str.d:_tstpoco_1.7.8p2_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.005056d0
add esp, 0x10
mov ecx, esi
call fcn.00524950
test al, al
je 0x52515c
mov ecx, esi
call fcn.00524a80
test al, al
je 0x52515c
xor al, al
pop esi
ret
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x525167
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x52517d
add esi, 4
push esi
call fcn.00523ee0
mov al, 1
pop esi
ret

Function at 0x529fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x34
mov edi, ecx
call fcn.00530b6a
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x52a03e
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.00529b80
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.00530034
push 0x5b8558
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00530bea
int3

Function at 0x5310be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ca1e0]
jne 0x5310c8
repz ret
jmp fcn.0053c27c