joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb050
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
push ebx
push esi
push edi
lea edi, [ebp - 0x2f8]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5ddc34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5920dc]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x5920e0]
mov dword [ebp - 0x20c], ecx
mov edx, dword [0x5920e4]
mov dword [ebp - 0x208], edx
mov eax, dword [0x5920e8]
mov dword [ebp - 0x204], eax
mov ecx, dword [0x5920ec]
mov dword [ebp - 0x200], ecx
push 0x1f4
push 0
lea eax, [ebp - 0x1fc]
push eax
call fcn.004f6010
add esp, 0xc
mov esi, esp
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4bb130
lea eax, [ebp - 0x234]
push eax
push 4
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4bb130
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call sub.PSAPI.DLL_GetModuleBaseNameW
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str._s___PID:__u__n
call fcn.004f8140
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f4cf0
push edx
mov ecx, ebp
push eax
lea edx, [0x4bb190]
call fcn.004f4c90
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f4d70
add esp, 0x2f8
cmp ebp, esp
call fcn.004f4cf0
mov esp, ebp
pop ebp
ret
Function at 0x406eb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425097
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
mov dword [ebx], 0x431e9c
mov dword [ebx + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00402530
push 8
call fcn.0040cf3b
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.0040ae8b
add esp, 4
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
lea eax, [ebx + 4]
mov ecx, edi
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
push 0x20
mov dword [edi + 0x3c], 0
call fcn.00408660
cmp dword [edi + 0x38], 0
mov word [edi + 0x40], ax
jne 0x406fcd
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00402530
mov dword [ebp - 4], 3
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [ebx + 4], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040cf3b
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 4
call fcn.0040ae8b
mov dword [esi + 4], eax
lea ecx, [ebx + 0xc]
lea eax, [ebx + 8]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x10], eax
add esp, 4
lea eax, [ebx + 0x18]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x2c]
mov dword [ebx + 0x34], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x24]
mov dword [eax], 0
mov eax, dword [ebx + 0x34]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, ebx
mov dword [ebx + 4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 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 8
Function at 0x408540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425120
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040cf3b
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040ae8b
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b847
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x40b86c
xor eax, eax
jmp 0x40b8c8
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b899
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x40b899
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x40b94d
cmp dword [edi + 0x4c], 0
je 0x40b8c2
mov ecx, edi
call fcn.0040b499
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40b8d8
push dword [edi + 0x4c]
push ebx
call fcn.0040b0d3
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x40b8c7
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040cf25
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x42618c]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x40b8c2
cmp eax, 1
jle 0x40b920
cmp eax, 3
jne 0x40b8c2
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40b8b4
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40b93d
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004136d3
add esp, 0x10
cmp esi, eax
jne 0x40b8c2
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x40b8c2
mov ax, bx
jmp 0x40b8c7

Function at 0x419423
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004190d4
Function at 0x41942e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041925e

Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40101d
Capabilities:
Check mutex on windows

Disassembly:
push 0
mov eax, 0x41e6b0
call fcn.0040dded
mov edi, dword [ebp + 8]
lea ebx, [edi + 8]
mov esi, ebx
mov byte [edi], 0
call fcn.00402682
and dword [ebp - 4], 0
mov esi, str.360Game_MainProcess_Window_F0FC7FBC_62F5_4b0d_BE58_6430D5A021A6
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401060
mov byte [edi], 1
push esi
push ebx
call fcn.0040260f
mov eax, edi
call fcn.0040de8c
ret 4

Function at 0x401207
Capabilities:
Check if file exists
Copy file
Create process on windows

Disassembly:
push 0x14
mov eax, 0x41e7d5
call fcn.0040dded
mov eax, dword [0x428b8c]
and dword [ebp - 0x1c], 0
mov esi, 0x428b8c
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
mov eax, dword [0x428b8c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x428b8c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, str.360Base.dll
lea eax, [ebp - 0x20]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.004028c7
pop ecx
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401cb9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402660
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012ba
xor esi, esi
inc esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402660
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402660
lea eax, [ebx - 0x10]
call fcn.00402660
mov eax, esi
call fcn.0040de8c
ret
lea edi, [ebp - 0x18]
call fcn.00401aa0
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x4012f7
push esi
push ebx
push str._s_s
lea eax, [ebp - 0x14]
call fcn.0040209f
add esp, 0xc
xor esi, esi
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4012f9
mov dword [ebp - 0x1c], 1
jmp 0x40132f
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40014
push 0x42116c
push 0x421180
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40132f
push 0x40
push esi
push esi
push str.http:__360game.360.cn
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [ebp - 0x1c]
jmp 0x401294
Function at 0x4017bf
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 8
mov eax, 0x41e68a
call fcn.0040dded
mov esi, str.360GameCore.dll
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004028c7
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x428b8c]
mov ecx, 0x428b8c
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40181b
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004019e8
add esp, 0x10
mov ebx, eax
jmp 0x40184d
push 0x40014
push 0x42116c
push 0x421180
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40184d
push 0x40
push esi
push esi
push str.http:__360game.360.cn
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [edi - 0x10]
call fcn.00402660
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402660
mov eax, ebx
call fcn.0040de8c
ret 0xc

Function at 0x40186a
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x426050]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
mov dword [ebp - 0x80], str.libcef.dll
mov dword [ebp - 0x7c], str.libEGL.dll
mov dword [ebp - 0x78], str.libGLESv2.dll
xor edi, edi
push dword [ebp + edi*4 - 0x80]
lea eax, [ebp - 0x74]
push ebx
push eax
call esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401902
inc edi
cmp edi, 3
jne 0x4018a4
xor edi, edi
push dword [ebp + edi*4 - 0x80]
lea eax, [ebp - 0x74]
push ebx
push eax
call esi
lea eax, [ebp - 0x74]
push eax
push 0x427d30
call fcn.00404a90
test eax, eax
je 0x401902
inc edi
cmp edi, 3
jne 0x4018c5
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c22f
add ebp, 0x198
leave
ret
xor eax, eax
jmp 0x4018eb

Function at 0x4019e8
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x41e634
call fcn.0040dded
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
xor esi, esi
call fcn.004028c7
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 0x10]
push ebx
push 0x427d30
call fcn.00404a90
test eax, eax
jne 0x401a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40014
push 0x42116c
push 0x421180
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401a4f
push 0x40
push esi
push esi
push str.http:__360game.360.cn
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or esi, 0xffffffff
lea eax, [ebx - 0x10]
call fcn.00402660
mov eax, esi
call fcn.0040de8c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x401a4f
push str.RunProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x401a97
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0x1001
je 0x401a52
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401a52
Function at 0x401aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x426050]
xor eax, ebp
mov dword [ebp + 0x190], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0040d640
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401b1b
cmp ax, word [ebp - 0x78]
je 0x401b1b
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.0040260f
xor eax, eax
inc eax
jmp 0x401b1d
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0040c22f
add ebp, 0x194
leave
ret

Function at 0x40220e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402225
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40225a
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402256
cmp edi, eax
jae 0x40225a
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402248
cmp edi, eax
jb 0x40225e
xor eax, eax
jmp 0x402267
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4026dc
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push edi
test esi, esi
je 0x402737
cmp word [esi], 0
je 0x402737
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x402733
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402712
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x402733
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402733
xor eax, eax
inc eax
pop edi
ret
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4029da
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x426050]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x41e5c6
call fcn.0040dded
mov eax, dword [ebp + 0x218]
xor edi, edi
mov dword [ebp - 0x10], edi
test byte [0x42a26c], 1
mov dword [ebp - 0x14], eax
mov esi, 0x42a268
jne 0x402a40
or dword [0x42a26c], 1
mov dword [ebp - 4], edi
push esi
mov edi, 0x421588
call fcn.004023a4
push 0x41ea0d
call fcn.0040c8a6
or dword [ebp - 4], 0xffffffff
pop ecx
xor edi, edi
mov eax, dword [0x42a268]
cmp dword [eax - 0xc], edi
jne 0x402a89
xor eax, eax
push 0x208
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.0040d640
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4215bc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.0040260f
lea eax, [ebp - 0x10]
push str.tcdump
push eax
mov ecx, esi
call fcn.00402b9a
push edi
push dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 4], 1
call fcn.0040283f
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00402660
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0040c22f
add ebp, 0x210
leave
ret

Function at 0x404c2e
Capabilities:
Check if file exists

Disassembly:
push 0x3c
mov eax, 0x41e840
call fcn.0040de56
lea ecx, [ebp - 0x48]
xor edi, edi
call fcn.00404bac
and dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404e13
pop ecx
pop ecx
push edi
push 1
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401dd4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404c6e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ca5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404c85
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404ca5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404c9c
lea eax, [ebp - 0x28]
push eax
call fcn.004048c0
pop ecx
mov edi, eax
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401dd4
mov eax, edi
call fcn.0040dea0
ret

Function at 0x405270
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x426050]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00409240
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004092e0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0040c22f
add esp, 0x68
ret
Function at 0x405400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x423388
push 0x80000002
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405591
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405493
cmp dword [esp + 0x14], 1
jne 0x405578
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x405578
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x4054d8
cmp dword [esp + 0x14], 1
jne 0x405578
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x405578
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x40550f
cmp dword [esp + 0x14], 1
jne 0x405578
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x405578
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x405578
cmp dword [esp + 0x14], 3
jne 0x405578
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x405578
lea eax, [esi + 0xc]
call fcn.004052e0
test eax, eax
je 0x405578
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret