joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41688b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4201b0
call fcn.00415840
push 8
call fcn.00415c73
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x425c04], esi
jne 0x4168bf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x425c00], esi
mov al, byte [ebp + 0x10]
mov byte [0x425bfc], al
cmp dword [ebp + 0xc], edi
jne 0x416909
cmp dword [0x42726c], edi
je 0x4168f9
mov eax, dword [0x427268]
sub eax, 4
mov dword [0x427268], eax
cmp eax, dword [0x42726c]
jb 0x4168f9
mov eax, dword [eax]
cmp eax, edi
je 0x4168da
call eax
jmp 0x4168da
push 0x424048
mov eax, 0x424040
call fcn.00416809
pop ecx
push 0x424054
mov eax, 0x42404c
call fcn.00416809
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41693a
cmp dword [ebp + 0x10], edi
jne 0x416948
mov dword [0x425c04], esi
push dword [ebp + 8]
call fcn.004167c7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x416947
push 8
call fcn.00415bbe
pop ecx
ret
call fcn.0041587b
ret

Function at 0x41b194
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42482c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4250d0]
je 0x41b1cb
inc eax
cmp eax, 0x13
jb 0x41b1bc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4250d0]
jne 0x41b2ee
mov eax, dword [0x425a18]
cmp eax, 1
je 0x41b2c9
cmp eax, edx
jne 0x41b1fb
cmp dword [0x424854], 1
je 0x41b2c9
cmp ecx, 0xfc
je 0x41b2ee
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b231
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004176e0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004177e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b265
mov eax, edi
push eax
call fcn.004177e0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4202bc
push edi
call fcn.00414a00
add esp, 0x10
push edi
call fcn.004177e0
push dword [esi + 0x4250d4]
mov ebx, eax
call fcn.004177e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414f90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004176e0
push edi
push ebx
call fcn.004176f0
push 0x4202b8
push ebx
call fcn.004176f0
push dword [esi + 0x4250d4]
push ebx
call fcn.004176f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041bb22
add esp, 0x2c
jmp 0x41b2ee
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4250d4]
push dword [esi]
call fcn.004177e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004145af
add ebp, 0x90
leave
ret
Function at 0x41bb22
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425d60], ebx
push esi
push edi
jne 0x41bba2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bbdd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420be4
push edi
call esi
test eax, eax
mov dword [0x425d60], eax
je 0x41bbdd
push 0x420bd4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x425d64], eax
call esi
cmp dword [0x425bc4], 2
mov dword [0x425d68], eax
jne 0x41bba2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x425d70], eax
je 0x41bba2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x425d6c], eax
mov eax, dword [0x425d6c]
test eax, eax
je 0x41bbe7
call eax
test eax, eax
je 0x41bbce
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425d70]
test eax, eax
je 0x41bbce
test byte [ebp - 8], 1
jne 0x41bbe7
cmp dword [0x425bd0], 4
jb 0x41bbe1
or byte [ebp + 0x12], 0x20
jmp 0x41bc06
xor eax, eax
jmp 0x41bc16
or byte [ebp + 0x12], 4
jmp 0x41bc06
mov eax, dword [0x425d64]
test eax, eax
je 0x41bc06
call eax
mov ebx, eax
test ebx, ebx
je 0x41bc06
mov eax, dword [0x425d68]
test eax, eax
je 0x41bc06
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425d60]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c093
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41c269
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x425f00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41c269
test cl, 0x48
je 0x41c0fe
cmp byte [eax + 5], 0xa
je 0x41c0fe
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41c138
call fcn.00418541
mov dword [eax], 9
call fcn.0041854a
mov dword [eax], esi
jmp 0x41c148
cmp eax, 0x6d
je 0x41c269
push eax
call fcn.00418553
pop ecx
or eax, 0xffffffff
jmp 0x41c26b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41c264
test eax, eax
je 0x41c177
cmp byte [ebx], 0xa
jne 0x41c177
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41c180
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41c25e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c24e
cmp al, 0xd
je 0x41c1b2
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41c240
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41c1cc
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41c1c7
add dword [ebp + 0x10], 2
jmp 0x41c220
mov dword [ebp + 0x10], eax
jmp 0x41c23c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c1f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c23c
cmp dword [ebp - 0xc], 0
je 0x41c23c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c215
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c220
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c23f
cmp ebx, dword [ebp + 0xc]
jne 0x41c225
cmp byte [ebp - 1], 0xa
jne 0x41c225
mov byte [ebx], 0xa
jmp 0x41c23f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d7d8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c240
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41c196
jmp 0x41c25e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41c25e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41c26b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c4e1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42482c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41c51d
xor eax, eax
jmp 0x41c687
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x425f00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c55b
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041d7d8
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c5f5
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41c658
jmp 0x41c57f
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41c5ba
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c5ab
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41c58b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c619
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41c622
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41c57d
jmp 0x41c622
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c619
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41c622
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41c682
cmp dword [ebp - 0x68], eax
je 0x41c655
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41c64a
call fcn.00418541
mov dword [eax], 9
call fcn.0041854a
mov dword [eax], esi
jmp 0x41c67d
push dword [ebp - 0x68]
call fcn.00418553
pop ecx
jmp 0x41c67d
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c66a
cmp byte [edi], 0x1a
jne 0x41c66a
xor eax, eax
jmp 0x41c685
call fcn.00418541
mov dword [eax], 0x1c
call fcn.0041854a
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41c685
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004145af
add ebp, 0x3a4
leave
ret
Function at 0x401340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401359
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40136d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40138e
cmp esi, eax
jae 0x401367
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401380
cmp esi, eax
jae 0x401367
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4018d0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4018f0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x401920
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401932
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x402530
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x415110]
xor eax, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x4025a1
test ecx, ecx
je 0x402593
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x4025af
test ecx, ecx
je 0x40265b
push ecx
jmp 0x402655
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x402622
jmp 0x4025e0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00402530
mov edi, eax
test edi, edi
jne 0x40267b
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x4025e0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x402639
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40265b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x120]
xor ecx, dword [esp + 0x124]
pop edi
pop esi
call fcn.0040c184
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40268a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40265d
Function at 0x4052a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x415110]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x415030]
mov dword [ebp - 0x1c], esi
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x424], esi
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 4], esi
je 0x40532b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov esi, esp
test esi, esi
mov dword [ebp - 0x10], esp
je 0x40532b
mov eax, dword [ebp - 0x18]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x40534b
call fcn.00401420
mov esi, eax
jmp 0x40541e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x40536a
call fcn.00401420
jmp 0x405415
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [ebp + 0x10], esi
jne 0x405385
call fcn.00401420
jmp 0x405415
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x400
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
jbe 0x4053b4
push eax
lea ecx, [ebp - 0x424]
call fcn.00402070
jmp 0x4053cb
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x4053cb
mov eax, dword [ebp - 0x424]
test eax, eax
mov dword [ebp - 4], 0
jne 0x4053e3
mov esi, 0x8007000e
jmp 0x405417
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 0x14]
mov byte [ebx + eax], 0
mov edx, dword [ebp - 0x424]
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004048c0
mov edi, dword [ebp + 8]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
cmp ecx, eax
je 0x405439
lea ecx, [ebp - 0x424]
call fcn.00402060
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0040c184
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x415218]
push esi
mov esi, ecx
push edi
mov ecx, 0x415218
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], 0
call fcn.004056e0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
add esp, 0xc
push ecx
push edi
mov ecx, esi
call fcn.00404a10
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4059f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x405a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x415218]
push esi
mov esi, ecx
push edi
mov ecx, 0x415218
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], 0
call fcn.004056e0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
add esp, 0xc
push ecx
push edi
mov ecx, esi
call fcn.00402e50
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x408be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
call dword [0x415030]
mov esi, dword [ebp + 8]
cmp esi, edi
mov dword [ebp - 0x1c], eax
je 0x408c4f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov edi, esp
test edi, edi
je 0x408c4f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push ecx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408d24
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x10
push 0
push esi
call dword [sym.imp.ole32.dll_StgOpenStorage]
test eax, eax
jge 0x408c96
mov ecx, ebx
call fcn.00408060
test eax, eax
jge 0x408d24
push 0
push esi
push str.CHpodRenditionMgr::Load___::StgOpenStorage___call_failed_for_file__s.
mov ecx, ebx
call fcn.00405a10
jmp 0x408cfc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0
push 0x10
push 0
push str.HpodRenditionMgr
push eax
call dword [ecx + 0x10]
test eax, eax
jge 0x408cd0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, ebx
call fcn.00408060
test eax, eax
jge 0x408d24
push 0
push esi
push str.CHpodRenditionMgr::Load___::OpenStream___call_failed_for_file__s.
jmp 0x408d04
mov edx, dword [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00407d10
test eax, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
jge 0x408d18
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, ebx
call fcn.00408060
test eax, eax
jge 0x408d24
push 0
push esi
push str.CHpodRenditionMgr::Load____Cannot_clean_cache_completely.
mov ecx, ebx
call fcn.00405a10
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
jmp 0x408d2d
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b9b0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 1
push 4
push 0x415234
mov esi, ecx
call fcn.0040b2c0
mov edi, eax
test edi, edi
jne 0x40ba04
mov al, byte [esi + 0x3c]
test al, al
je 0x40ba08
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x30], eax
je 0x40b9f9
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40b3b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ba08
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
mov byte [esi + 0x3c], 0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4