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

Disassembly:
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
push ebx
push esi
push edi
test eax, eax
je 0x426164
xor ebx, ebx
lea esi, [esp + 0x24]
xor eax, eax
mov edx, eax
lea ecx, [ebx + eax]
and edx, 7
inc eax
xor cl, byte [edx + 0x43fa34]
mov byte [esi], cl
inc esi
cmp eax, 0x10
jl 0x425fd2
inc ebx
cmp ebx, 8
jl 0x425fd0
push 0x126ed
call fcn.0042b280
mov edi, eax
add esp, 4
test edi, edi
je 0x426164
xor esi, esi
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + section..text]
mov edx, esi
mov ebx, esi
mov byte [esi + edi], al
inc ecx
inc esi
cmp ecx, 0x24dd8
jae 0x426066
and edx, 7
mov al, byte [edx + 0x43fa34]
xor al, byte [ecx + section..text]
inc ecx
test al, 0xc0
jne 0x426066
test bl, 1
je 0x42605e
cmp ecx, 0x24dd8
jae 0x426066
mov eax, esi
and eax, 7
mov al, byte [eax + 0x43fa34]
xor al, byte [ecx + section..text]
inc ecx
test al, 0xc0
jne 0x426066
cmp ecx, 0x24dd8
jb 0x426010
mov eax, esi
neg eax
and eax, 0xf
push ebp
push 1
mov dword [esp + 0x14], eax
lea ebp, [esi + eax]
push ebp
call fcn.00429280
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4260aa
push edi
call fcn.0042b270
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004262de
add esp, 0x9c
ret
push esi
push edi
push ebx
call fcn.00427dc0
push dword [esp + 0x1c]
lea eax, [esi + ebx]
push 0x90
push eax
call fcn.00427340
push edi
call fcn.0042b270
add esp, 0x1c
test ebp, ebp
je 0x426116
lea edi, [ebp - 1]
mov esi, ebx
shr edi, 4
inc edi
nop word [eax + eax]
movups xmm0, xmmword [esi]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
movups xmmword [esp + 0x18], xmm0
call fcn.00425e20
lea esi, [esi + 0x10]
movups xmm0, xmmword [esp + 0x18]
movups xmmword [esi - 0x10], xmm0
sub edi, 1
jne 0x4260e0
mov esi, ebp
cmp byte [ebx + esi - 1], 0x90
jne 0x426118
sub esi, 1
jne 0x426108
jmp 0x426118
mov esi, ebp
push esi
call fcn.0042b280
mov edi, eax
add esp, 4
test edi, edi
jne 0x42613d
push ebp
push eax
push ebx
call fcn.00427340
push ebx
call fcn.0042b270
add esp, 0x10
jmp 0x42608f
push esi
push ebx
push edi
call fcn.00427dc0
mov eax, dword [esp + 0x20]
push ebp
push 0
push ebx
mov dword [eax], esi
call fcn.00427340
push ebx
call fcn.0042b270
add esp, 0x1c
mov eax, edi
jmp 0x426091
mov ecx, dword [esp + 0xa4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004262de
add esp, 0x9c
ret

Function at 0x426660
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x426695
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x426692
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x42669e
add edx, 0x28
cmp edx, esi
jne 0x426680
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42669b
Function at 0x426add
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426b1c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426b1c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426b1c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426b1c
cmp dword [ecx + 0x74], 0xe
jbe 0x426b1c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43063d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4306da
push ebx
push esi
call fcn.00430606
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043059c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430687
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4306d9
push edi
push eax
call fcn.0042d460
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4306a7
call fcn.0042ca80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4306d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043059c
add esp, 0x20
test eax, eax
jne 0x4306c6
push edi
call fcn.0042ca80
jmp 0x4306ce
push ebx
call fcn.0042ca80
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x434cbb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x434cd5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x434cec
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x434d44
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00430d76
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x434d44
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x434d44
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x434d44
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x434d3e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x434d40
xor bl, bl
mov al, bl
jmp 0x434d46
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x438aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438acd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4273d4]
jne 0x40b47a
repz ret
jmp fcn.0041166c

Function at 0x41731c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4273d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e41f
and dword [ebp - 0x14], 0
cmp dword [0x45ed0c], 0
mov dword [ebp - 0x18], eax
jne 0x4173cf
push 0x4037ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417477
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037e0
push ebx
call edi
test eax, eax
je 0x417477
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037d0
push ebx
mov dword [0x45ed0c], eax
call edi
push eax
call esi
push 0x4037bc
push ebx
mov dword [0x45ed10], eax
call edi
push eax
call esi
push 0x4037a0
push ebx
mov dword [0x45ed14], eax
call edi
push eax
call esi
mov dword [0x45ed1c], eax
test eax, eax
je 0x4173cf
push 0x403788
push ebx
call edi
push eax
call esi
mov dword [0x45ed18], eax
mov eax, dword [0x45ed18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417428
cmp dword [0x45ed1c], ecx
je 0x417428
push eax
call esi
push dword [0x45ed1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417428
test ebx, ebx
je 0x417428
call edi
test eax, eax
je 0x41741f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41741f
test byte [ebp - 8], 1
jne 0x417428
or dword [ebp + 0x10], 0x200000
jmp 0x41745b
mov eax, dword [0x45ed10]
cmp eax, dword [ebp - 0x18]
je 0x41745b
push eax
call esi
test eax, eax
je 0x41745b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41745b
mov eax, dword [0x45ed14]
cmp eax, dword [ebp - 0x18]
je 0x41745b
push eax
call esi
test eax, eax
je 0x41745b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45ed0c]
call esi
test eax, eax
je 0x417477
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417479
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b470
leave
ret
Function at 0x41f630
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041e7e0
cmp dword [0x7ffa90], 0x37
jne 0x41f6c1
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x40441c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404428
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7ffa94]
mov edx, dword [0x7fbf00]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x4043a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4043f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4043f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4043ea
cmp esi, edx
jae 0x4043f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4043d8
cmp esi, edx
jae 0x4043f9
cmp word [esi], 0
je 0x4043f9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x406680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447250
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x45a1cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00406550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406730
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447286
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x45a1cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x2c], eax
lea ecx, [ebp - 0x230]
push 0x2001f
setne al
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call fcn.00407d40
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x4068c7
call fcn.00403870
mov ecx, eax
test ecx, ecx
je 0x4068f4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str.__s___s
push eax
call fcn.00407a70
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00425410
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406856
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x406844
cmp eax, 2
jne 0x406856
cmp dword [ebp - 0x21c], 0
jne 0x406856
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00429148
add esp, 8
test eax, eax
je 0x4068a4
test esi, esi
je 0x4068a4
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406880
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4068c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4068c9
xor esi, esi
test edi, edi
je 0x4068d4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c009
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402420
int3
Function at 0x407a00
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esi + 0x14]
lea edi, [esi + 0x30]
push 0xffffffffffffffff
push dword [esi + 0x1c]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x407a32
mov eax, 0xd
mov edx, str.task_disabled
push eax
push edx
mov ecx, edi
call fcn.00403300
pop edi
pop esi
ret
push 0
push 1
mov ecx, esi
call fcn.00407df0
test eax, eax
mov edx, str.task_succ
mov ecx, str.task_fail
cmove edx, ecx
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a51
sub eax, esi
mov ecx, edi
sar eax, 1
push eax
push edx
call fcn.00403300
pop edi
pop esi
ret

Function at 0x407b30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447498
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45a1cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x45b4d8], 0
jne 0x407b74
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x45b4d8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.00403870
mov ecx, eax
test ecx, ecx
je 0x407be0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x45b4d8
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00404120
test al, al
jne 0x407bcc
mov ecx, 0x45b4d8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407bb0
sub ecx, edx
sar ecx, 1
push ecx
push 0x45b4d8
mov ecx, esi
call fcn.00403300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402420
int3
Function at 0x409810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x45a1cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00425410
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00425410
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409873
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x409878
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x409896
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x409898
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x4098ac
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x45b9c8]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041c009
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447806
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x45a1cc]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40b9ec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40b9ec
call fcn.0040a4b0
mov edi, eax
jmp 0x40bb0b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ba0f
call fcn.0040a4b0
jmp 0x40bafe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40ba2d
call fcn.0040a4b0
jmp 0x40bafe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40ba4e
mov edi, 0x8007000e
jmp 0x40bb00
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40bb44
jb 0x40ba6c
cmp eax, 0xffffffff
ja 0x40bb44
cmp eax, 0x400
jbe 0x40ba81
push eax
lea ecx, [ebp - 0x418]
call fcn.0040a3d0
jmp 0x40baa7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40baa7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40babe
mov edi, 0x8007000e
jmp 0x40bb00
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40bade
call fcn.0040a4b0
jmp 0x40bafe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040b7a0
mov edi, eax
test esi, esi
je 0x40bb0b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40bb24
lea ecx, [ebp - 0x418]
call fcn.0040ab20
mov eax, edi
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.0041c009
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00402420
int3
Function at 0x40e680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447928
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45a1cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xc], 0
je 0x40e6cf
push 0xa
push str.drv_giveup
lea ecx, [ebx + 0x10]
call fcn.00403300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
sub eax, 0x10
push eax
call fcn.004032a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push esi
mov dword [ebp - 4], 0
lea edi, [esi - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e70a
push 9
lea ecx, [ebx + 0x10]
push str.drv_other
call fcn.00403300
jmp 0x40e72c
push 0
push esi
call fcn.00412990
add esp, 8
test eax, eax
je 0x40e72c
mov eax, dword [ebx]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.0040ea30
add esp, 0x18
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e744
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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 0x40ebc0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ebe0
push 9
push str.svc_other
lea ecx, [esi + 0xc]
call fcn.00403300
pop esi
ret
call fcn.004156e0
test eax, eax
je 0x40ebfa
push 6
push str.svc_hr
lea ecx, [esi + 0xc]
call fcn.00403300
pop esi
ret
push 0
push dword [esi]
call fcn.00412990
add esp, 8
test eax, eax
je 0x40ec2d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ec2d
push 0x44aa40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ec2d
push 0x45220c
call eax
pop esi
ret
Function at 0x40f320
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4479ea
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x45a1cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x424], edi
lea eax, [edi + 8]
mov dword [edi], vtable.CSmartLogger.0
push eax
mov dword [ebp - 0x428], edi
mov dword [edi + 4], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
call fcn.00403870
mov ecx, eax
test ecx, ecx
je 0x40f49c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x2c], eax
push 0x44aa80
push 0
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 1
call fcn.0042c909
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00425410
add esp, 0x14
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x44aa84
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00425410
add esp, 0xc
lea eax, [ebp - 0x218]
push str.Logcommonhelper.log.on
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [0x45b94c], eax
lea eax, [ebp - 0x218]
push str.Logldshelper.log
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f460
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [edi + 0x2c]
push edx
push eax
call fcn.00403300
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c009
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402420
int3