joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x375c1bcf
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2557469c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401820
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x4bad44]
test eax, eax
jne 0x401866
mov ecx, 0x4bad38
mov dword [esp], 0
call fcn.00410d60
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push ecx
push 0x4018c0
push 0
push 0
call fcn.00491daa
add esp, 0x18
mov dword [0x4bad44], eax
test eax, eax
jne 0x401866
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x401870
Capabilities:
Terminate thread

Disassembly:
mov ecx, 0x4bad38
call fcn.00410e30
mov eax, dword [0x4bad44]
test eax, eax
je 0x4018be
push 0xc350
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4018a4
mov eax, dword [0x4bad44]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4bad44]
test eax, eax
je 0x4018be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4bad44], 0
ret

Function at 0x402560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0x4bacd8
mov dword [esp + 0xc], 0x4bacd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
test esi, esi
je 0x40268a
cmp byte [esi], 0
je 0x40268a
mov al, byte [esp + 0x30]
push ebp
push edi
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00402dc0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00403800
test al, al
je 0x4025fc
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x4bacf8
mov byte [esp + 0x38], 1
call fcn.00404410
mov eax, dword [eax]
mov ecx, dword [0x4bacfc]
pop edi
cmp eax, ecx
mov dword [esp + 0x34], eax
pop ebp
je 0x40263e
add eax, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.00404f40
test eax, eax
jl 0x40263e
lea eax, [esp + 0x30]
jmp 0x40264b
mov eax, dword [0x4bacfc]
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00402dc0
cmp esi, dword [0x4bacfc]
je 0x40268a
cmp dword [esi + 0x1c], 0xffffffff
je 0x40268a
push 0x4bacd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push 0x4bacd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x405830
Capabilities:
Create thread

Disassembly:
mov al, byte [0x516ea4]
sub esp, 0x10c
test al, al
push esi
mov esi, ecx
je 0x405891
mov al, byte [0x516ec4]
test al, al
je 0x405891
mov eax, dword [esp + 0x114]
mov ecx, 0x18
cdq
idiv ecx
lea eax, [esp + 4]
mov dword [esp + 4], 1
mov word [0x516eec], dx
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x405ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x40589d
mov word [0x516eec], ax
xor al, al
pop esi
add esp, 0x10c
ret 4
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.004952a8
mov edi, str.StatData.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4b0188
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xb507
mov edi, 0x4bc668
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
call fcn.00492559
add esp, 0x10
mov esi, eax
test esi, esi
pop edi
pop ebp
je 0x405932
push esi
push 0x2d41c
push 1
push 0x4bc668
call fcn.00492411
push esi
call fcn.00492394
add esp, 0x14
call fcn.00408180
mov al, 1
pop esi
add esp, 0x10c
ret 4
Function at 0x40ea90
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
mov ecx, 0x516f28
call fcn.0040e390
test eax, eax
je 0x40eb73
mov ecx, 0x516f20
call fcn.00410420
test eax, eax
je 0x40eb73
mov eax, dword [esp + 0x20]
push esi
push edi
push 0
push 0x40eb90
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [0x5444e0], eax
call edi
test eax, eax
je 0x40eb53
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
push esi
call ebx
test eax, eax
je 0x40eb2a
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
jne 0x40eb40
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call edi
test eax, eax
jne 0x40eb17
pop ebp
pop ebx
mov ecx, 0x516f20
call fcn.00410500
mov ecx, 0x516f28
call fcn.0040e3d0
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
push 0x10
push str.error
push str.text_filters_initing_has_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
add esp, 0x1c
ret 0x10
Function at 0x40f210
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4b0580]
sub esp, 0x18
push esi
push edi
push eax
call fcn.0040fac0
add esp, 4
test eax, eax
jne 0x40f242
push 0x10
push str.Warning
push str.Setup_dbserver_is_failed_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor al, al
pop esi
add esp, 0x18
ret
mov ecx, dword [0x4b0588]
push ecx
call fcn.00410190
mov edi, dword [esp + 0x28]
add esp, 4
push str.Backup_thread_status:_Running
push 0x3ef
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x517094]
push str.CreateInterface
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
mov dword [esp + 8], esi
je 0x40f2f2
lea ecx, [esp + 8]
push ecx
push 0x4a5508
call eax
test eax, eax
jl 0x40f2f2
lea ecx, [esp + 0x24]
mov eax, 0xa
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 0x400000
mov dword [esp + 0x1c], 0x14
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esp + 8]
push 0x51709c
push 0x4a54f8
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x51709c]
cmp eax, esi
jne 0x40f316
push 0x10
push str.Warning
push str.Initialization_failed__Dont_find_a_correct_heaven.dll
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor al, al
pop esi
add esp, 0x18
ret
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov eax, dword [0x51709c]
push 0x40e740
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [0x51709c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
push 0x4b0584
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jge 0x40f352
pop edi
xor al, al
pop esi
add esp, 0x18
ret
mov eax, dword [0x51709c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], esi
mov edx, dword [eax]
push ecx
push 0x4a54f8
push eax
call dword [edx]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push 0x40e900
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x5170a0], eax
jne 0x40f397
pop edi
xor al, al
pop esi
add esp, 0x18
ret
mov ecx, dword [0x51709c]
push ecx
call fcn.00401820
add esp, 4
mov ecx, 0x517070
call fcn.00410e30
pop edi
mov al, 1
pop esi
add esp, 0x18
ret
Function at 0x40f3c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a23a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.00401870
mov ecx, 0x517078
call fcn.00410e30
mov eax, dword [0x5170a0]
push 0xc350
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f415
mov ecx, dword [0x5170a0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x5170a0]
xor esi, esi
cmp eax, esi
je 0x40f42d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5170a0], esi
mov eax, dword [0x51709c]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x40f44a
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
xor eax, eax
mov dword [0x51709c], eax
cmp eax, esi
mov dword [ebp - 4], 2
je 0x40f461
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x51709c], esi
mov dword [ebp - 4], 0xffffffff
call fcn.0040fb90
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fac0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a245b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push 0x2a4
mov dword [0x4b080c], eax
call fcn.004919a4
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xc], 0
je 0x40fb0f
push str.roledb
push 0x4b0810
mov ecx, eax
call fcn.0040da00
jmp 0x40fb11
xor eax, eax
push 0
push 0x40f9f0
mov ecx, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [0x5444d0], eax
call fcn.0040dba0
mov ecx, dword [0x5444d0]
call fcn.0040dbf0
test al, al
je 0x40fb77
lea ecx, [esp]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0x40fa80
push 0
push 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5444dc], eax
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40fb90
Capabilities:
Terminate thread

Disassembly:
mov ecx, dword [0x5444d0]
test ecx, ecx
je 0x40fbdd
call fcn.0040ddc0
mov eax, dword [0x5444dc]
test eax, eax
jne 0x40fbb2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x5444d0]
call fcn.0040e2c0
call fcn.00410210
mov ecx, dword [0x5444d0]
call fcn.0040dd70
mov ecx, dword [0x5444d0]
test ecx, ecx
je 0x40fbdd
mov eax, dword [ecx]
push 1
call dword [eax]
ret

Function at 0x410260
Capabilities:
Suspend thread

Disassembly:
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x40598a
xor al, al
ret
mov al, byte [0x516ee9]
test al, al
jne 0x405996
xor al, al
ret
mov al, byte [0x516ee8]
test al, al
je 0x4059a2
xor al, al
ret
mov al, byte [0x516eea]
test al, al
je 0x4059ae
xor al, al
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4059bd
xor al, al
ret
mov al, 1
mov byte [0x516eea], al
ret
mov ecx, dword [0x5444d4]
test ecx, ecx
jne 0x41026d
xor al, al
ret
jmp 0x405980
Function at 0x410280
Capabilities:
Resume thread

Disassembly:
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4059da
xor al, al
ret
mov al, byte [0x516eea]
test al, al
jne 0x4059e6
xor al, al
ret
mov al, byte [0x516ee9]
test al, al
jne 0x4059f2
xor al, al
ret
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x405a01
xor al, al
ret
mov byte [0x516eea], 0
mov al, 1
ret
mov ecx, dword [0x5444d4]
test ecx, ecx
jne 0x41028d
xor al, al
ret
jmp 0x4059d0

Function at 0x4102e0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x405a64
xor al, al
pop esi
add esp, 8
ret
mov al, byte [0x516ee9]
test al, al
jne 0x405a74
xor al, al
pop esi
add esp, 8
ret
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push 0
push ecx
push 0x405b20
push 0
push 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x405aab
mov word [0x516eec], ax
xor al, al
pop esi
add esp, 8
ret
mov al, 1
pop esi
add esp, 8
ret
mov ecx, dword [0x5444d4]
test ecx, ecx
jne 0x4102ed
xor al, al
ret
jmp 0x405a50

Function at 0x4134f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x41350c
mov eax, dword [ebp - 4]
jmp 0x4135e7
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4135c2
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a557c]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4a557c]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a557c]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4a557c]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a557c]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4a557c]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a557c]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4a557c]
dec ebp
jne 0x41352c
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4135de
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4a557c]
dec ecx
jne 0x4135cc
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x38]
mov esi, dword [eax + 0x54]
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x3c]
xor ebx, ebx
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.00435d00
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x435cef
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x435b77
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
cmp ecx, 3
je 0x435cb6
cmp ecx, 4
je 0x435cb6
inc eax
lea ecx, [esp + 0x10]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
mov eax, dword [esp + 0x3c]
push ebx
push ecx
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call dword [ebp + 0x164]
add esp, 0xc
cmp eax, ebx
jne 0x435cf1
mov eax, dword [esp + 0x10]
mov ecx, 6
lea edi, [esp + 0x20]
push 0x1e
mov edx, dword [eax + 0x50]
or edx, 2
mov dword [eax + 0x50], edx
xor eax, eax
rep stosd dword es:[edi], eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [eax + 0x4c]
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x435cdf
mov eax, dword [esp + 0x10]
push 0x13
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 0x50]
or ecx, 4
mov dword [eax + 0x50], ecx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call dword [eax + 0x4c]
add esp, 0x10
test eax, eax
jne 0x435c5a
cmp dword [esp + 0x24], 4
jb 0x435c3f
mov eax, dword [esp + 0x20]
cmp dword [eax], 0xb
jne 0x435c3f
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xf0], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xf4], edx
lea eax, [esp + 0x20]
push 0x13
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [eax + 0x4c]
add esp, 0x10
test eax, eax
je 0x435c1b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x50]
and ecx, 0xfffffffb
mov dword [eax + 0x50], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x50], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x74], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x78], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x54]
mov ecx, dword [eax + 0x10]
add edx, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x54], edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
add ecx, eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x64], eax
jmp 0x435cc3
inc eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
test byte [ebp + 0x20], 4
je 0x435cdf
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
push ecx
push edx
push str.Finding_last_valid_log_LSN:_file:__lu_offset__lu
push ebp
call fcn.0041c9b0
add esp, 0x10
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x435cef
push ebx
push eax
call dword [eax + 0x48]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x449ad0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x408
test ah, 2
push esi
jne 0x449af6
test ah, 4
je 0x449be6
call fcn.00449e70
test eax, eax
je 0x449be6
push str.TMPDIR
call fcn.00493d4c
add esp, 4
test eax, eax
je 0x449b1a
cmp byte [eax], 0
jne 0x449bc6
push str.illegal_TMPDIR_environment_variable
jmp 0x449ba9
push str.TEMP
call fcn.00493d4c
add esp, 4
test eax, eax
je 0x449b56
cmp byte [eax], 0
jne 0x449bc6
mov ecx, dword [esp + 0x410]
push str.illegal_TEMP_environment_variable
push ecx
call fcn.0041c9b0
add esp, 8
mov eax, 0x16
pop esi
add esp, 0x408
ret
push 0x4b5b3c
call fcn.00493d4c
add esp, 4
test eax, eax
je 0x449b8e
cmp byte [eax], 0
jne 0x449bc6
mov edx, dword [esp + 0x410]
push str.illegal_TMP_environment_variable
push edx
call fcn.0041c9b0
add esp, 8
mov eax, 0x16
pop esi
add esp, 0x408
ret
push str.TempFolder
call fcn.00493d4c
add esp, 4
test eax, eax
je 0x449be6
cmp byte [eax], 0
jne 0x449bc6
push str.illegal_TempFolder_environment_variable
mov eax, dword [esp + 0x414]
push eax
call fcn.0041c9b0
add esp, 8
mov eax, 0x16
pop esi
add esp, 0x408
ret
mov ecx, dword [esp + 0x410]
lea edx, [ecx + 0x84]
push edx
push eax
push ecx
call fcn.00418480
add esp, 0xc
pop esi
add esp, 0x408
ret
lea eax, [esp + 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 2
jle 0x449c55
lea eax, [esp + eax + 8]
mov byte [eax], 0
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
je 0x449c10
cmp cl, 0x2f
jne 0x449c13
mov byte [eax], 0
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
call fcn.00449cc0
add esp, 8
test eax, eax
jne 0x449c55
mov eax, dword [esp + 4]
test eax, eax
je 0x449c55
mov eax, dword [esp + 0x410]
lea edx, [esp + 8]
lea ecx, [eax + 0x84]
push ecx
push edx
push eax
call fcn.00418480
add esp, 0xc
pop esi
add esp, 0x408
ret
mov eax, dword [str._var_tmp]
mov esi, 0x4b5a90
test eax, eax
je 0x449c89
mov ecx, dword [esi]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00449cc0
add esp, 8
test eax, eax
jne 0x449c7f
mov eax, dword [esp + 4]
test eax, eax
jne 0x449c93
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x449c63
xor eax, eax
pop esi
add esp, 0x408
ret
mov eax, dword [esp + 0x410]
mov ecx, dword [esi]
lea edx, [eax + 0x84]
push edx
push ecx
push eax
call fcn.00418480
add esp, 0xc
pop esi
add esp, 0x408
ret

Function at 0x449cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x4b0b50]
push esi
test eax, eax
push edi
je 0x449cdd
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
ret
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x449cfc
call fcn.00425340
mov edi, eax
cmp edi, 4
je 0x449ceb
pop ebp
pop ebx
test edi, edi
je 0x449d0c
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x449d19
and esi, 0x10
mov dword [eax], esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x450950
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
call fcn.004733f0
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x450a00
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], 0
mul dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, ebx
dec eax
mov dword [esp + 0x14], edx
je 0x4509bd
dec eax
jne 0x4509e7
mov eax, dword [0x4b0b88]
test eax, eax
jne 0x450a00
call fcn.00475420
test eax, eax
jne 0x450a00
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450a00
jmp 0x4509e7
mov eax, dword [0x4b0b6c]
test eax, eax
jne 0x450a00
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450a00
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jne 0x450a00
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword [ecx], eax
xor eax, eax
add esp, 0x14
ret
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [esp + 0x24]
push edi
test eax, eax
je 0x450a1d
test byte [eax + 0x24], 1
jne 0x450a1d
push eax
push ebp
call fcn.0042a340
add esp, 8
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push 2
push 0
push 0
push edx
push eax
push ecx
push ebp
call fcn.00450ea0
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x450a78
mov eax, ebx
dec eax
je 0x450a5d
dec eax
jne 0x450a78
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
push ebp
call fcn.00450b60
jmp 0x450a73
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
call fcn.00450aa0
add esp, 0x14
mov edi, eax
mov esi, dword [esi + 4]
test esi, esi
je 0x450a8f
test byte [esi + 0x24], 1
jne 0x450a8f
push esi
push ebp
call fcn.0042a420
add esp, 8
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret