joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426e60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542601
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xe0]
mov ebx, dword [ebp + 8]
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
call fcn.004287c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ecx + 0x10], 2
push dword [ecx + 0xc]
call fcn.00410430
mov edx, esi
lea ecx, [ebp - 0xd0]
call fcn.0042b410
mov edx, str.with_thread__
mov ecx, eax
call fcn.0042b410
push edi
mov ecx, eax
call fcn.004288b0
mov edx, str.___trace_token:
mov ecx, eax
call fcn.0042b410
mov edx, ebx
mov ecx, eax
call fcn.0042b410
mov edx, 0x56aa00
mov ecx, eax
call fcn.0042b410
mov edx, dword [ebp - 0x30]
mov ecx, eax
call fcn.0042b410
mov edx, 0x56a9fc
mov ecx, eax
call fcn.0042b410
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004287a0
cmp dword [eax + 0x14], 8
jb 0x426f48
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x426f64
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403300
lea ecx, [ebp - 0x78]
call fcn.0040b4b0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.004ea6b2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret

Function at 0x428480
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfa0
push 0x58b4a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4284ac
push str.InitializeCriticalSectionAndSpinCount_failed_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
push 1
push 0x56ed74
call fcn.004265b0
mov dword [0x58b4c8], 0xa
mov dword [0x58b4c4], 0xa00000
mov dword [0x58b4c0], 5
mov dword [0x587304], 0
call fcn.00426920
mov byte [0x58b4bc], 1
call fcn.00426300
call fcn.004264c0
add esp, 8
push 0x4280d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4283f0
call fcn.00519f51
push 0x428470
call fcn.00521f3c
push 0x428470
call fcn.0051705f
add esp, 0xc
xor eax, eax
pop ebp
ret 0x10
Function at 0x429430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x14], 8
mov edi, dword [ebx + 0x10]
jb 0x42944c
mov esi, dword [ebx]
jmp 0x42944e
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x429471
lea esp, [esp]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x429460
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 4], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
cmp edx, edi
jne 0x429499
mov eax, edi
jmp 0x42949d
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x429501
push ebx
lea ecx, [esi + 8]
call fcn.00407260
test eax, eax
je 0x4294b8
mov esi, dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x429491
mov eax, esi
mov dword [ebp - 0xc], eax
lea ecx, [ecx]
cmp dword [ebp - 4], edi
jne 0x4294c9
mov eax, edi
jmp 0x4294d0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4294e7
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.00407260
test eax, eax
jne 0x4294e7
mov esi, dword [esi]
jmp 0x4294c0
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x429501
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx + 4], esi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42dd90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x14], 8
mov edi, dword [ebx + 0x10]
jb 0x42ddac
mov esi, dword [ebx]
jmp 0x42ddae
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x42ddd1
lea esp, [esp]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x42ddc0
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 4], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
cmp edx, edi
jne 0x42ddf9
mov eax, edi
jmp 0x42ddfd
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x42de29
push ebx
lea ecx, [esi + 8]
call fcn.00407260
test eax, eax
je 0x42de18
mov esi, dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x42ddf1
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.00407260
test eax, eax
jne 0x42de29
mov edi, esi
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42ec80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542c40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5868f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x42ecc7
mov esi, dword [eax]
jmp 0x42ecc9
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x42ece5
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x42ecd4
mov eax, dword [ebx + 0x18]
and eax, edx
lea ecx, [eax*8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov edi, dword [eax + ecx]
cmp edi, dword [ebx + 4]
jne 0x42ed04
mov esi, dword [ebx + 4]
jmp 0x42ed0a
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x42ed2c
mov edi, edi
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
call fcn.00407260
test eax, eax
sete al
test al, al
jne 0x42ed73
cmp esi, edi
jne 0x42ed10
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x42ed59
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x42edb6
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x42edd8
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [ebx + 8]
call fcn.00430990
push edi
call fcn.00451480
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x42edbe
mov dword [ecx], edi
jmp 0x42edd8
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x42edd8
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0042f230
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42f2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x42f2eb
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x42f307
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x42f2f6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x42f33d
cmp dword [ecx], edi
jne 0x42f335
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x42f345
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x42f345
cmp dword [ecx], edi
jne 0x42f348
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.00430990
push edi
call fcn.00451480
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [0x58b9d4]
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
test eax, eax
je 0x430daf
mov esi, dword [0x58b9d8]
mov ecx, esi
push 1
push 2
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov eax, dword [0x58b9d4]
test eax, eax
je 0x430df3
mov esi, dword [0x58b9dc]
mov ecx, esi
push 0
push dword [esp + 0x14]
push 3
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x430e00
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x430ed0
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x430fec
cmp eax, 0x104
jae 0x430fec
lea eax, [esp + 0x10]
xor esi, esi
push 0x5c
push eax
call fcn.00516e7a
add esp, 8
test eax, eax
je 0x430faa
add eax, 2
push 0x5c
push eax
call fcn.00516e7a
mov edi, eax
add esp, 8
test edi, edi
je 0x430faa
lea ebx, [esi + 0x5c]
test esi, esi
jne 0x430f91
xor eax, eax
push eax
mov word [edi], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x430f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
mov word [edi], bx
neg eax
push 0x5c
sbb eax, eax
not eax
and esi, eax
lea eax, [edi + 2]
push eax
call fcn.00516e7a
mov edi, eax
add esp, 8
test edi, edi
jne 0x430f41
test esi, esi
je 0x430faa
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x430f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x430f91
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430ffb
mov eax, 0x7a
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
Function at 0x431060
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542ee9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5868f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x24], edi
mov dword [edi + 0x10], 0
jb 0x4310bd
mov eax, dword [edi]
jmp 0x4310bf
mov eax, edi
mov byte [eax], 0
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x431230
lea ecx, [ecx]
mov al, byte [edx]
dec ebx
mov byte [ebp + esi - 0x10], al
inc edx
mov ah, byte [ebp - 0xe]
inc esi
mov ch, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x17], ah
mov byte [ebp - 0x15], ch
mov byte [ebp - 0x16], cl
cmp esi, 3
jne 0x431177
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x14], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x13], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], al
xor esi, esi
jmp 0x431140
cmp dword [0x58b958], 0x10
movzx ecx, byte [ebp + esi - 0x14]
mov eax, dword [0x58b944]
jae 0x431158
mov eax, 0x58b944
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
push 1
call fcn.00407310
inc esi
cmp esi, 4
jl 0x431140
mov edx, dword [ebp - 0x1c]
xor esi, esi
mov ch, byte [ebp - 0x15]
mov cl, byte [ebp - 0x16]
test ebx, ebx
jne 0x4310e0
test esi, esi
je 0x431230
mov eax, esi
cmp esi, 3
jge 0x4311ae
cmp eax, 3
jae 0x4311a9
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 3
jl 0x431191
mov dl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
jmp 0x4311b1
call fcn.004fe898
mov dl, byte [ebp - 0x17]
mov al, cl
shr dl, 6
shr al, 2
and cl, 3
mov byte [ebp - 0x14], al
xor ebx, ebx
mov al, ch
shl cl, 4
shr al, 4
and ch, 0xf
add cl, al
shl ch, 2
add ch, dl
mov byte [ebp - 0x13], cl
lea eax, [esi + 1]
mov byte [ebp - 0x12], ch
test eax, eax
jle 0x43120e
cmp dword [0x58b958], 0x10
movzx ecx, byte [ebp + ebx - 0x14]
mov eax, dword [0x58b944]
jae 0x4311f8
mov eax, 0x58b944
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
push 1
call fcn.00407310
inc ebx
lea eax, [esi + 1]
cmp ebx, eax
jl 0x4311e0
cmp esi, 3
jge 0x431230
mov ebx, 3
sub ebx, esi
lea ebx, [ebx]
push 0x3d
push 1
mov ecx, edi
call fcn.00407310
sub ebx, 1
jne 0x431220
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4314d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10024
call fcn.004fede0
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x10020], eax
push esi
mov esi, ecx
test esi, esi
je 0x431613
push 0x10000
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00516d20
add esp, 0xc
lea eax, [esp + 0x20]
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x43153d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
cmp eax, 0x8000
ja 0x4315c8
cmp eax, 0x104
ja 0x4315c8
push 0x104
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.00408480
add esp, 4
test al, al
je 0x43157d
xor esi, esi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov esi, 0x7a
lea ecx, [esp + 8]
push esi
push str.Failed_when_copying_expanded_environment_string._Error___d.
push 0
push 2
push 0x56b984
push 0
push 0
push str.ExpandEnvironmentStringsInPlace
push 0x37
push str.EnvVariable.cpp
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
push eax
push str.Insufficient_buffer_when_expanding_environment_string__needed__d.
push 0
push 2
push 0x56b8fc
push 0
push 0
push str.ExpandEnvironmentStringsInPlace
push 0x26
push str.EnvVariable.cpp
lea ecx, [esp + 0x30]
call fcn.00424320
push eax
call fcn.00424820
mov esi, 0x7a
add esp, 0x18
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10024]
mov eax, 0x57
pop esi
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x434280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x28], ebx
push edi
cmp dword [esi + 0x10], 0
jne 0x434323
mov dword [esp + 0x10], str.OracleOciJsonHandler.cpp
mov dword [esp + 0x14], str.OciStatusHandler::Load
mov dword [esp + 0x18], 0x3df
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
push str.OCI_status_handler_is_not_initialized
push 0
push 2
lea ecx, [esp + 0x24]
push 0x56d88c
push ecx
call fcn.00424820
add esp, 0x1c
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x434334
mov ebx, dword [esp + 0x2c]
cmp dword [esi + 0x14], 8
jb 0x43433e
mov eax, dword [esi]
jmp 0x434340
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4343ba
push ebx
push esi
call fcn.00434b10
mov ebx, eax
test ebx, ebx
je 0x43449b
inc edi
cmp edi, 0x14
jge 0x434427
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0x12c
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
call fcn.00435bc0
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
call fcn.004ea554
add esp, 4
cmp edi, 0x14
jl 0x434330
jmp 0x434427
cmp dword [esi + 0x14], 8
mov ebx, 2
jb 0x4343c9
mov edi, dword [esi]
jmp 0x4343cb
mov edi, esi
mov dword [esp + 0x10], str.OracleOciJsonHandler.cpp
mov dword [esp + 0x14], str.OciStatusHandler::Load
mov dword [esp + 0x18], 0x3e8
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
push edi
push str.OCI:_Specified_status_file___s__does_not_currently_exist.
push 0
push 4
lea eax, [esp + 0x28]
push 0x56d90c
push eax
call fcn.00424820
add esp, 0x20
push ecx
push ebx
lea ecx, [esp + 0x50]
call fcn.00407db0
cmp dword [esi + 0x14], 8
jb 0x43443a
mov esi, dword [esi]
mov dword [esp + 0x10], str.OracleOciJsonHandler.cpp
mov dword [esp + 0x14], str.OciStatusHandler::Load
mov dword [esp + 0x18], 0x3ff
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
lea eax, [esp + 0x50]
push eax
push esi
push str.OCI:_Failed_to_load_status_file___s_:__s
push 0
push 2
lea eax, [esp + 0x2c]
push 0x56d96c
push eax
call fcn.00424820
add esp, 0x24
mov ecx, dword [esp + 0x44c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
Function at 0x436900
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54375b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x80
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00516d20
movzx eax, word [ebp - 0x96]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x98]
push eax
movzx eax, word [ebp - 0x9a]
push eax
movzx eax, word [ebp - 0x9c]
push eax
movzx eax, word [ebp - 0xa4]
push eax
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0xa2]
push eax
lea eax, [ebp - 0x94]
push str.__02d__02d__04d__02d:_02d:_02d._03d_:
push eax
call fcn.0042b230
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x94]
add esp, 0x24
push eax
call esi
push ebx
call esi
push 0x56a9fc
call esi
add edi, 0x208
cmp word [edi], 0
je 0x436a52
mov ecx, edi
call fcn.0044c900
push 0xb0
mov esi, eax
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00516d20
push edi
lea ecx, [ebp - 0x154]
call fcn.00437da0
mov dword [ebp - 4], 0
test esi, esi
je 0x436a24
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x154]
call fcn.0042b410
mov edx, str.Failed_to_rotate_the_log_file__ignoring_the_error
mov ecx, eax
call fcn.0042b410
push eax
call fcn.00438ec0
add esp, 4
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x154]
call fcn.0042b410
mov edx, ebx
mov ecx, eax
call fcn.0042b410
push eax
call fcn.00438ec0
add esp, 4
lea ecx, [ebp - 0x154]
call fcn.00436a80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
Function at 0x437b60
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x214], eax
push esi
mov esi, ecx
test eax, eax
jne 0x437ba8
push str.Null_security_attribute_for_creating_directory_path
push 0x58ba20
call fcn.004372e0
add esp, 8
mov eax, 0x57
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00516d20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x437bc6
mov esi, dword [esi]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x437ce8
cmp eax, 0x104
jae 0x437ce8
push edi
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x5c
push eax
call fcn.00516e7a
add esp, 8
test eax, eax
jne 0x437c30
lea eax, [ebp - 0x20c]
push eax
push str.Invalid_Path___s_
push 0x58ba20
call fcn.004372e0
add esp, 0xc
lea eax, [edi + 0x57]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
push ebx
add eax, 2
push 0x5c
push eax
call fcn.00516e7a
add esp, 8
mov esi, eax
xor bl, bl
xor eax, eax
mov dword [ebp - 0x210], eax
test esi, esi
je 0x437c54
xor ecx, ecx
mov word [esi], cx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x437c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437c84
xor edi, edi
jmp 0x437c88
test edi, edi
jne 0x437cbb
test esi, esi
je 0x437cad
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.00516e7a
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x210]
test esi, esi
jne 0x437c4f
test bl, bl
jne 0x437cd5
mov eax, dword [ebp - 0x214]
mov bl, 1
jmp 0x437c45
lea eax, [ebp - 0x20c]
push eax
push str.Directory_creation_for___s__failed
push edi
push 0x58ba20
call fcn.00437520
add esp, 0x10
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
push str.Failed_to_expand_path__Env_string_
push 0x58ba20
call fcn.004372e0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x65b
pop esi
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret