joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c870
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4970c5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [ebp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x4b9bec
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x40c8ee
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0x4b9bec
push eax
jmp 0x40c945
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x40c932
test eax, eax
je 0x40c932
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x10000
call fcn.00407de0
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x40c977
mov byte [ebp - 4], 0
push esi
call fcn.0047662a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4b9bec
test edi, edi
je 0x40c952
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0047615e
lea esp, [ebp + 0x94]
pop ebp
ret
xor ebx, ebx
mov dword [ebp], 0x67452301
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x68], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c9e7
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40c9e7
mov edx, dword [ebp - 0x24]
lea eax, [ecx + ebx]
cmp eax, edx
ja 0x40c9d8
push ecx
push esi
lea ecx, [ebp]
call fcn.0040de00
add ebx, dword [ebp - 0x14]
jmp 0x40c9a1
sub edx, ebx
lea ecx, [ebp]
push edx
push esi
mov dword [ebp - 0x14], edx
call fcn.0040de00
lea ecx, [ebp]
call fcn.0040ded0
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp]
call fcn.0040dfa0
mov bl, al
mov byte [ebp - 4], 0
push esi
call fcn.0047662a
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4b9bec
test edi, edi
je 0x40ca31
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
test bl, bl
je 0x40c952
mov al, byte [ebp + 0x6c]
mov byte [ebp - 0xd], al
test al, al
je 0x40ca84
mov ebx, dword [ebp - 0x28]
lea edi, [ebp + 0x6c]
nop dword [eax]
movzx esi, word [ebx]
mov eax, esi
lea ecx, [eax - 0x41]
add eax, 0x20
movzx edx, ax
cmp cx, 5
mov eax, esi
cmova edx, eax
movsx eax, byte [ebp - 0xd]
movzx ecx, dx
cmp eax, ecx
jne 0x40c952
mov al, byte [edi + 1]
inc edi
add ebx, 2
mov byte [ebp - 0xd], al
test al, al
jne 0x40ca50
mov al, 1
jmp 0x40c954
Function at 0x40cb00
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x49711e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40cba3
call fcn.004039e0
test eax, eax
je 0x40cc1c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047615e
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x40cbb6
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x40cc17
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x40cc1c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00406f20
test al, al
jne 0x40cb72
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cbf7
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407090
jmp 0x40cb72
call fcn.00476759
push 0x80004005
call fcn.00402150
int3

Function at 0x40ce70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496e6d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x40cf3a
call fcn.0040d0f0
test al, al
jne 0x40cf3a
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x40cf65
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x4b99bc
call fcn.00406f20
test al, al
jne 0x40cef4
push 4
push 0x4b99bc
lea ecx, [ebp - 0x10]
call fcn.00407090
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00402030
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cf48
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40cf48
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x40cf52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402150
int3
Function at 0x40d510
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4973d5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040cf70
test al, al
je 0x40d557
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
cmp eax, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
sete byte [ebp - 0xd]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d1a0
cmp dword [ebp - 0x24], 0
jle 0x40d6e8
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00402250
mov byte [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x24]
or ebx, 0xffffffff
dec eax
mov dword [ebp - 0x1c], eax
lea esi, [edi + 1]
cmp eax, esi
jle 0x40d69e
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402250
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 1
push 0x4bb74c
call fcn.00402030
cmp esi, dword [ebp - 0x24]
jge 0x40d6e8
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00402030
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x40d61f
cmp byte [ebp - 0xd], 0
je 0x40d673
push 1
push 0x4bb74c
lea ecx, [ebp - 0x18]
call fcn.00402030
cmp esi, dword [ebp - 0x24]
jge 0x40d6e8
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00402030
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d667
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x40d5c0
jmp 0x40d69e
cmp esi, 1
jbe 0x40d680
lea ecx, [ebp - 0x18]
call fcn.0040ce70
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d69e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
cmp edi, 0xb7
cmovne esi, edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d6c5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00408180
int3
Function at 0x40dbc0
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497455
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040d830
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40dc7e
push eax
lea ecx, [ebp - 0x14]
call fcn.00407de0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x40dc31
mov edi, 8
jmp 0x40dc86
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40dc7e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4bb74c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40dc86
cmp dword [ebp - 0x24], 0
je 0x40dc86
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x40dc70
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40dc86
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x40dc86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x40dc97
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0047662a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0047662a
add esp, 4
mov dword [ebp - 0x14], 0
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 0x410810
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 0
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x410841
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x410830
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x41d8e0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x30
mov eax, dword [0x4da064]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
lea eax, [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
xorps xmm0, xmm0
push eax
push 0x24
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x34], xmm0
call ebp
test eax, eax
jne 0x41d945
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0047615e
add esp, 0x30
ret 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], esi
je 0x41d999
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call ebp
test eax, eax
je 0x41d9ca
cmp dword [esp + 0x1c], esi
je 0x41d999
call edi
sub eax, dword [esp + 0x14]
cmp eax, 0x7530
ja 0x41d9b0
cmp dword [esp + 0x1c], esi
jne 0x41d960
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0047615e
add esp, 0x30
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0047615e
add esp, 0x30
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047615e
add esp, 0x30
ret 8
Function at 0x41e870
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x49a648
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x41e979
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x10], edi
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x41e979
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41e94e
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41e94e
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e94e
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e933
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407090
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047615e
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.00402150
int3
Function at 0x41e990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a6bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004039e0
test eax, eax
je 0x41eb86
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.004039e0
test eax, eax
je 0x41eb86
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x4bccc8
call fcn.00406f20
test al, al
jne 0x41ea19
push 3
push 0x4bccc8
lea ecx, [ebp - 0x18]
call fcn.00407090
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x4bccc8
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ef90
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ea56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x41ea68
push 0x18
push str.Unable_to_get_temp_file
jmp 0x41eb0c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], 0x4b9bec
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x41eaa6
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4b9bec
push eax
jmp 0x41eaf8
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41eae8
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41eb27
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4b9bec
test esi, esi
je 0x41eb05
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
push 0x1b
push str.Unable_to_save_script_file
lea ecx, [ebx + 4]
call fcn.00407090
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00402030
xor bl, bl
jmp 0x41eb51
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4b9bec
test esi, esi
je 0x41eb44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0041eba0
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41eb70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402150
int3
Function at 0x41ef90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a785
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.004056b0
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041f060
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x41eff4
mov edx, dword [edx]
test edx, edx
jne 0x41effc
xor ecx, ecx
jmp 0x41f010
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f001
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403630
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403630
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047615e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426450
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b4b5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
test al, al
jne 0x426496
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [edi], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x426583
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [esi + 0x24]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.00407380
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00407170
mov byte [ebp - 4], 3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426515
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x34], 0
je 0x42652a
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x24]
call fcn.00427a30
test al, al
jne 0x426535
push dword [ebp + 8]
lea ecx, [esi + 0x24]
call fcn.00407fe0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x426551
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x18]
test al, al
jne 0x42656f
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x18]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402150
int3
Function at 0x437420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e995
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004039e0
test eax, eax
je 0x437585
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00438320
or esi, 0xffffffff
test al, al
jne 0x437487
xor bl, bl
jmp 0x437550
mov edi, dword [edi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], eax
call fcn.004039e0
test eax, eax
je 0x437585
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], edi
call fcn.00407fe0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4374f1
xor bl, bl
jmp 0x437516
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push dword [ebp + 0x10]
lea edx, [ebp + 0xc]
mov dword [ebp + 8], 4
push edx
push 0
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437528
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437550
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43756f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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
push 0x80004005
call fcn.00402150
int3