joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449f90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4810a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00479672
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00449930
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004795a0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475e64
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475e64
push 1
push 0
push 0
mov ecx, esi
call fcn.00475e0c
push 1
push 0
push 1
mov ecx, esi
call fcn.00475e0c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004796e4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44a110
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4810c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00479672
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00449930
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004795a0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44a1d4
cmp dword [esp + 0x40], 1
jne 0x44a1d2
cmp ecx, eax
jge 0x44a1d4
mov eax, ecx
cmp eax, 0xc8
jge 0x44a1e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00449f90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004796e4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44a960
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481133
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00474284
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047991a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047ae79
test eax, eax
je 0x44aa7c
mov ecx, dword [esp + 0x3c]
call fcn.00479947
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44aa40
push edi
mov ecx, esi
call fcn.00476fb0
mov ecx, esi
call fcn.0044abe0
cmp dword [esp + 0x38], 1
jne 0x44aa75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004770eb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44d4a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d4d3
push esi
call fcn.00450590
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d4cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44d559
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d542
mov eax, dword [esi + 8]
test eax, eax
je 0x44d4f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44d53e
cmp eax, 2
je 0x44d542
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d4ea
cmp eax, 3
je 0x44d51d
cmp eax, 1
jne 0x44d4ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44d4ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d4ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d580
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d568
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d580
add esp, 4
pop esi
ret

Function at 0x4590e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x459183
test eax, eax
jbe 0x459183
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x459183
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45912e
xor esi, esi
jmp 0x459134
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45915f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040d6f0
add esi, eax
push esi
mov ebx, esi
call fcn.0040d6f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x459140
pop ebp
test edi, edi
pop edi
jne 0x459183
test ebx, ebx
je 0x459183
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00463990
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4592c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4593dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4593dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004746d6
mov esi, eax
test esi, esi
je 0x4593dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4593dd
mov ecx, esi
call fcn.00459230
cmp edi, eax
jge 0x4593dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x459363
mov dword [esp + 0x34], 1
jmp 0x4593be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4593dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004587e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47507a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4750b2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00473104
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004730dc
jmp 0x4750be
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476768
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4767aa
call fcn.0047c269
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4767aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4767a1
xor eax, eax
jmp 0x4767b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004767b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x47c799
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47c7c7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47c7e5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047c6ff
jmp 0x47c7e5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47c7e5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047c6ff
test edi, edi
mov eax, edi
jne 0x47c7cf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x21
lea ebx, [ebx]
movzx ecx, byte [edx]
shr ecx, 2
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [eax], cl
movzx ecx, byte [edx]
movzx edi, byte [edx + 1]
and ecx, 3
shl ecx, 4
shr edi, 4
or ecx, edi
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [eax + 1], cl
movzx ecx, byte [edx + 1]
movzx edi, byte [edx + 2]
and ecx, 0xf
add ecx, ecx
add ecx, ecx
shr edi, 6
or ecx, edi
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 2]
and ecx, 0x3f
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [eax + 3], cl
add eax, 4
add edx, 3
dec esi
jne 0x401b50
movzx ecx, byte [edx]
shr ecx, 2
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [eax], cl
mov dl, byte [edx]
and dl, 3
shl dl, 4
movzx edx, dl
movzx ecx, byte [ebp + edx - 0x48]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 4]
pop edi
mov word [eax + 2], 0x3d3d
xor ecx, ebp
mov byte [eax + 4], 0
pop esi
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
Function at 0x404cc0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push str.unrar.dll
mov dword [ebp - 0x4e8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x404d03
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RAROpenArchiveEx
push edi
call esi
mov dword [ebp - 0x4f8], eax
cmp eax, ebx
je 0x404ec1
push str.RARReadHeader
push edi
call esi
mov dword [ebp - 0x4ec], eax
cmp eax, ebx
je 0x404ec1
push str.RARProcessFile
push edi
call esi
mov dword [ebp - 0x4f4], eax
cmp eax, ebx
je 0x404ec1
push str.RARCloseArchive
push edi
call esi
mov dword [ebp - 0x4f0], eax
cmp eax, ebx
je 0x404ec1
push 0x9c
lea ecx, [ebp - 0x2a8]
push ebx
push ecx
call fcn.0050f160
push 0x104
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.0050f160
mov ecx, dword [ebp - 0x4e8]
add esp, 0x18
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2a8]
lea edx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x2a0], 1
call dword [ebp - 0x4f8]
mov esi, eax
cmp dword [ebp - 0x29c], ebx
jne 0x404eb4
push 0x70
lea ecx, [ebp - 0x27c]
push ebx
push ecx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
call fcn.0050f160
add esp, 0xc
lea edx, [ebp - 0x4e4]
push edx
push esi
call dword [ebp - 0x4ec]
push 0x103
mov ebx, eax
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0050f160
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test ebx, ebx
jne 0x404eb4
mov ebx, 1
jmp 0x404e50
push 0
lea edx, [ebp - 0x108]
push edx
push 2
push esi
call dword [ebp - 0x4f4]
cmp eax, 0xc
je 0x404e7b
lea eax, [ebp - 0x4e4]
push eax
push esi
call dword [ebp - 0x4ec]
test eax, eax
je 0x404e50
jmp 0x404e7d
xor ebx, ebx
push esi
call dword [ebp - 0x4f0]
test eax, eax
jne 0x404eb4
cmp ebx, 1
jne 0x404eb4
mov ecx, dword [ebp - 0x4e8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x4e8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0050f160
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f30
sub eax, edx
sar eax, 1
jne 0x404f51
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
push edi
push 0x55e394
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x405048
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x404fa0
mov ecx, dword [str.zbmp.rar]
mov edx, dword [0x55e3a0]
push 0
push 0x80
mov dword [eax], ecx
mov ecx, dword [0x55e3a4]
push 2
mov dword [eax + 4], edx
mov edx, dword [0x55e3a8]
push 0
mov dword [eax + 8], ecx
mov cx, word [0x55e3ac]
push 2
mov dword [eax + 0xc], edx
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
mov word [eax + 0x10], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40501f
mov ecx, dword [ebp - 0x210]
push 0
lea eax, [ebp - 0x214]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [ebp - 0x20c]
push edx
call fcn.00404cc0
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
Function at 0x405060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x206
xor esi, esi
lea ecx, [ebp - 0x412]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x414], ax
call fcn.0050f160
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x414]
add esp, 0xc
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4050a0
push 0x206
lea eax, [ebp - 0x20a]
xor edx, edx
push esi
push eax
mov word [ebp - 0x20c], dx
call fcn.0050f160
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, eax
jmp 0x4050e0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4050e0
xor eax, eax
mov dword [ebp - 0x424], eax
mov ecx, 0x414
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x420], eax
mov word [ebp - 0x418], ax
mov word [ebp - 0x424], cx
mov ecx, edx
lea eax, [ebp - 0x414]
push ecx
mov dword [ebp - 0x41e], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x41a], esi
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4051d0
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40519f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40520e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x20a
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0050f160
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x406adb
mov eax, dword [esi]
jmp 0x406add
mov eax, esi
lea edx, [ebp - 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406ae5
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x210]
mov eax, 0x410
push ecx
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], edx
mov word [ebp - 0x220], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x406b75
cmp dword [ebp - 0x21e], eax
jne 0x406b75
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0050ba00
mov esp, ebp
pop ebp
ret
Function at 0x406bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x530d41
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
push esi
push edi
mov eax, dword [0x581e60]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00416dce
xor edi, edi
push edi
call fcn.00417874
push 0xc
call fcn.004092f2
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x240], edi
cmp eax, edi
je 0x406c53
mov ecx, eax
call fcn.00418023
mov dword [esp + 0x18], eax
jmp 0x406c57
mov dword [esp + 0x18], edi
or edi, 0xffffffff
push 0x55fa2c
mov ecx, esi
mov dword [esp + 0x244], edi
call fcn.004181b2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.00407f10
mov dword [esp + 0x240], 1
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x406d01
push 0x55fa4c
push eax
call fcn.0050c47b
add esp, 8
test eax, eax
je 0x406d01
mov edx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, edi
je 0x406d01
mov eax, dword [edx - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004040a0
push eax
mov ecx, 0x59b518
mov byte [esp + 0x244], 2
call fcn.00404a70
mov byte [esp + 0x240], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00408810
lea edx, [esp + 0x24]
mov byte [esp + 0x240], 3
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.004155ad
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x406d32
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov byte [esp + 0x240], 4
lea ecx, [esp + 0xdc]
mov dword [esp + 0xdc], vtable.CDlgYunKong.0
mov dword [esp + method.CDHtmlEventSink.virtual_0], vtable.CDlgYunKong.1.0
call fcn.0040bc87
lea ecx, [esp + 0xd0]
mov byte [esp + 0x240], 6
call fcn.0041a2b8
mov byte [esp + 0x240], 5
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc4], vtable.CBrush.0
call fcn.00407b90
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 1
call fcn.00414e0e
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x406dc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret