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

Disassembly:
push 0xffffffffffffffff
push 0x43877b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
xor ebx, ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00401e40
cmp eax, ebx
jge 0x403071
cmp eax, 0x80004002
je 0x403071
push eax
call fcn.004134e0
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
mov dword [esp + 0x128], ebx
jne 0x40308a
push 0x80004003
call fcn.004134e0
mov eax, dword [esi + 0x1c]
cmp eax, ebx
lea edi, [esi + 0x1c]
je 0x40309c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
mov dword [edi], ebx
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
push 0x43c68c
push ebp
call ecx
cmp dword [edi], ebx
jne 0x403109
push 0x103
lea edx, [esp + 0x1d]
push ebx
push edx
mov byte [esp + 0x24], 0
call fcn.004141c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.CFileNotifySink::FinalConstruct_FindConnectionPoint_Fail__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
mov dword [esp + 0x12c], 0xffffffff
call eax
mov eax, 0x80004005
jmp 0x403176
lea ebx, [esi + 0x20]
mov dword [ebx], 0
cmp dword [edi], 0
jne 0x403121
push 0x80004003
call fcn.004134e0
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
push ebx
push esi
push edi
call edx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push 2
push 0
push eax
call edx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push 1
push eax
call edx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x43c630
push eax
call edx
mov ecx, esi
call fcn.00402d80
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
mov dword [esp + 0x12c], 0xffffffff
call ecx
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00413d5c
add esp, 0x118
ret
Function at 0x403260
Capabilities:
Create thread
Print debug messages

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0x43c4bc
push 4
push 0
push 0x43c4ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4032bb
push str.CFileNotifySink::LoadFileGuarder_CoCreateInstance_Success
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x24], 1
push edi
mov ecx, esi
call fcn.00403010
mov edi, eax
test edi, edi
jne 0x4032b5
lea edx, [esi + 0x2c]
push edx
push eax
push esi
push 0x402570
push eax
push eax
call fcn.00414339
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov ecx, esi
call fcn.00402070
test eax, eax
je 0x403292
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x4031a0
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.00414339
add esp, 0x18
mov dword [0x44a0ac], eax
mov eax, 0x80004005
pop esi
pop ecx
ret

Function at 0x4034f0
Capabilities:
Check mutex on windows

Disassembly:
push 0
push str.KVPortableMonitor
push 0
push 0
mov dword [0x44a0a8], 0
call dword [0x449f54]
test eax, eax
jne 0x403544
push str.Jiangmin_KVPORTABLE_SINGLE
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x44a0a8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40354a
mov eax, dword [0x44a0a8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [0x44a0a8], 0
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40dde0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x439359
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [0x44a334]
mov edx, dword [eax + 0xc]
mov ecx, 0x44a334
mov dword [esp + 0x28], ebp
call edx
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
lea esi, [ebx + 0x100]
lea ecx, [ebx + 0x28]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
push esi
call fcn.0040cc80
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004013c0
cmp ebp, 4
je 0x40dea4
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x40de82
push esi
mov ecx, edi
call fcn.004012e0
test esi, esi
mov eax, dword [edi]
mov word [eax + ebx*2], 0x2d
jl 0x40ded6
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x40ded6
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov word [eax + esi*2], 0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ebp, 1
add esi, 4
add ecx, 0x2c
cmp ebp, 5
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
jl 0x40de48
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push 0x80070057
call fcn.00401000
int3
Function at 0x40f54f
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [esp + 0x214], 0x8004
push esi
mov esi, ecx
jne 0x40f5b0
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004141c0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push 0
call dword [0x449ed8]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f5b0
mov ecx, dword [esi + 0x408]
test ecx, ecx
je 0x40f5a0
push eax
call fcn.00401c20
mov eax, dword [esi + 4]
push 0
push 0
push 0x10
push eax
call dword [0x449f94]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00413d5c
add esp, 0x20c
ret 0x10
Function at 0x4127cc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x448270]
mov dword [ebp - 4], eax
mov eax, dword [0x44b17c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4127fb
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x412988
push dword [0x448198]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x412988
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x412833
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x41284b
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x41286c
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x412889
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0041272f
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4128ac
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4128c0
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0041272f
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4128f5
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x412907
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00412660
test eax, eax
pop esi
jne 0x412948
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00412660
test eax, eax
jne 0x412976
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00412660
test eax, eax
jne 0x412988
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00412660
test eax, eax
je 0x412988
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.00413d5c
leave
ret
Function at 0x412f53
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x448270]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00412e92
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004141c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x412fa2
cmp dword [ebp - 0x1c], 5
jb 0x412fba
jmp 0x412fb6
cmp dword [ebp - 0x10], 1
jne 0x412fba
cmp dword [ebp - 0x1c], 4
ja 0x412fb6
jne 0x412fba
cmp dword [ebp - 0x18], 0
jbe 0x412fba
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43dcf0
call fcn.004035a0
test eax, eax
jge 0x412fdb
mov byte [0x44a004], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413d5c
add ebp, 0x78
leave
ret

Function at 0x4134cc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x44a378], 0
push esi
jne 0x41343f
call fcn.0041336a
test eax, eax
je 0x413482
mov eax, dword [0x44a378]
cmp eax, 1
jne 0x413460
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x413482
pop esi
ret
push eax
call dword [0x44a380]
test eax, eax
jne 0x4134ca
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x413486
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x44a378]
call dword [0x44a380]
mov edi, eax
test edi, edi
je 0x4134ad
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4134c9
lea edi, [esi + 0xff0]
push esi
push dword [0x44a378]
call dword [0x44a37c]
add esi, 0x10
cmp esi, edi
jb 0x4134b3
mov eax, esi
pop edi
pop esi
ret
jmp 0x41342c

Function at 0x413d5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448270]
jne 0x413d66
repz ret
jmp fcn.004187fc
Function at 0x41965b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4485a8]
je 0x419676
inc edi
cmp edi, 0x17
jb 0x419667
cmp edi, 0x17
jae 0x4197f6
push ebp
push 3
call fcn.0041edc9
cmp eax, 1
pop ecx
je 0x4197c2
push 3
call fcn.0041edc9
test eax, eax
pop ecx
jne 0x4196aa
cmp dword [0x4482c4], 1
je 0x4197c2
cmp ebx, 0xfc
je 0x4197f5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44a890
push ebp
call fcn.0041c739
add esp, 0xc
test eax, eax
je 0x4196e0
push esi
push esi
push esi
push esi
push esi
call fcn.00415a0f
add esp, 0x14
push 0x104
mov esi, 0x44a8a9
push esi
push 0
mov byte [0x44a9ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419724
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041c739
add esp, 0xc
test eax, eax
je 0x419724
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415a0f
add esp, 0x14
push esi
call fcn.0041c7a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419769
push esi
call fcn.0041c7a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44aba4
push 0x43e3fc
sub ecx, eax
push ecx
push eax
call fcn.0041520f
add esp, 0x14
test eax, eax
je 0x419769
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00415a0f
add esp, 0x14
jmp 0x41976b
xor esi, esi
push 0x43e3f8
push ebx
push ebp
call fcn.0041ed58
add esp, 0xc
test eax, eax
je 0x41978b
push esi
push esi
push esi
push esi
push esi
call fcn.00415a0f
add esp, 0x14
push dword [edi*8 + 0x4485ac]
push ebx
push ebp
call fcn.0041ed58
add esp, 0xc
test eax, eax
je 0x4197ad
push esi
push esi
push esi
push esi
push esi
call fcn.00415a0f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041eb9b
add esp, 0xc
jmp 0x4197f5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4197f5
cmp ebp, 0xffffffff
je 0x4197f5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4485ac]
push dword [esi]
call fcn.0041c7a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x426c90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 4]
push 0x43f924
push ecx
call fcn.00436a90
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x426ce0
sub eax, edx
xor ecx, ecx
test eax, eax
jle 0x426d03
mov dl, byte [esp + ecx]
xor dl, al
xor dl, 0x89
mov byte [esp + ecx], dl
add ecx, 1
cmp ecx, eax
jl 0x426cf1
mov ecx, dword [esp + 0x20]
xor ecx, esp
lea eax, [esp]
call fcn.00413d5c
add esp, 0x24
ret 4
Function at 0x42b110
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43a258
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0042cdb0
xor ebx, ebx
push 0x50
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x20], ebx
call fcn.004141c0
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
jne 0x42b19a
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 0xe
jmp 0x42b2b8
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
call fcn.0042a650
mov edi, eax
test edi, edi
je 0x42b1c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, edi
jmp 0x42b2b8
mov edi, dword [esp + 0x80]
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, esi
call fcn.00427060
test eax, eax
jne 0x42b1f8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 0xb
jmp 0x42b2b8
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00426d20
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x42b256
mov eax, dword [esp + 0x64]
cmp dword [eax], edi
jne 0x42b21f
cmp dword [eax + 4], 0
jne 0x42b21f
mov ebx, 1
add eax, 0x3c
sub ecx, 1
jne 0x42b210
test ebx, ebx
je 0x42b256
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, esi
call fcn.00426f60
test eax, eax
jne 0x42b256
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 9
jmp 0x42b2b8
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, esi
call fcn.0042a110
test eax, eax
jne 0x42b27f
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 0x10
jmp 0x42b2b8
mov eax, dword [esp + 0x14]
test edi, eax
jne 0x42b2a5
or eax, edi
push eax
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00426e40
test eax, eax
jne 0x42b2a5
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00426e40
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00413d5c
add esp, 0x68
ret 8
Function at 0x42b2e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43a288
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0042cdb0
xor ebx, ebx
push 0x50
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x20], ebx
call fcn.004141c0
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
jne 0x42b36a
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 0xe
jmp 0x42b488
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
call fcn.0042a650
mov edi, eax
test edi, edi
je 0x42b395
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, edi
jmp 0x42b488
mov edi, dword [esp + 0x80]
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, esi
call fcn.00427060
test eax, eax
jne 0x42b3c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 0xb
jmp 0x42b488
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00426d20
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x42b426
mov eax, dword [esp + 0x64]
cmp dword [eax], edi
jne 0x42b3ef
cmp dword [eax + 4], 0
jne 0x42b3ef
mov ebx, 1
add eax, 0x3c
sub ecx, 1
jne 0x42b3e0
test ebx, ebx
je 0x42b426
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, esi
call fcn.00426f60
test eax, eax
jne 0x42b426
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 9
jmp 0x42b488
lea edx, [esp + 0x18]
push edx
push edi
mov ecx, esi
call fcn.0042a110
test eax, eax
jne 0x42b44f
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
mov eax, 0x10
jmp 0x42b488
mov eax, dword [esp + 0x14]
test edi, eax
jne 0x42b475
or eax, edi
push eax
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00426e40
test eax, eax
jne 0x42b475
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00426e40
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401bf0
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00413d5c
add esp, 0x68
ret 8
Function at 0x42c7d0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a45b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x12c]
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.0042cdb0
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x130], 0
call fcn.004141c0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.mylicense.lic
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0041ed58
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x42c87f
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.0042e8b0
mov esi, eax
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.0042e910
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x130]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.0042b2e0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x124], 0xffffffff
call fcn.00401bf0
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00413d5c
add esp, 0x118
ret 8
Function at 0x42e2c0
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], 0x449588
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x42e391
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x42e38f
test esi, 3
je 0x42e307
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x42e2f0
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x42e375
jmp 0x42e320
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x42e320
mov ecx, edx
jecxz 0x42e38f
lea esp, [esp]
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x42e380
not eax
pop ecx
pop edx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e910
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e920
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
pop esi
ret 8

Function at 0x42e950
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x42e978
pop esi
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edi
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
pop edi
pop esi
ret 0xc