joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401da0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
cmp byte [eax + 0x10], 0
push ebx
lea ebx, [eax + 0x10]
mov dword [esp + 4], ebx
je 0x401de1
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004038f9
add esp, 0x10c
ret
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00403910
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x401e13
sub esi, ecx
lea edi, [esi + 6]
cmp esi, edi
jge 0x401e54
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
xor edx, edx
mov ecx, 0x1a
div ecx
push 1
add dl, 0x61
mov byte [esp + esi + 0x18], dl
call ebp
add esi, 1
cmp esi, edi
jl 0x401e32
mov ebx, dword [esp + 0x10]
pop ebp
lea eax, [esp + 0x10]
pop edi
add eax, 0xffffffff
pop esi
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401e60
mov edx, dword [str..exe]
mov cl, byte [0x40f294]
mov dword [eax], edx
mov byte [eax + 4], cl
lea eax, [esp + 8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401e85
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
mov al, 1
call fcn.004038f9
add esp, 0x10c
ret

Function at 0x401eb0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00401da0
lea edi, [esi + 0x10]
push edi
push edi
mov bl, al
call fcn.004018e0
add esp, 0xc
cmp dword [esi], 1
je 0x401edb
mov eax, dword [0x4129e4]
cmp eax, 0xffffffff
jne 0x401efe
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4129e4], eax
je 0x401f53
mov ecx, dword [esi + 8]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401f3d
mov eax, dword [esi + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x4129e4]
push eax
lea ecx, [esi + 0x114]
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401f59
mov eax, dword [0x4129e4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4129e4], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi], 3
jne 0x401f82
mov ecx, dword [0x4129e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
mov dword [0x4129e4], 0xffffffff
je 0x401f82
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x401ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x4021e4
push ebp
push esi
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4021bf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4021bf
test ebp, ebp
je 0x4021bf
push 4
push 0x1000
push 0x19400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4021c9
xor edi, edi
lea esp, [esp]
push 0x19400
push 0
push esi
call fcn.00403910
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4021c5
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x19000
lea edx, [esi + 0x114]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4021e2
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x10]
push edx
push ebx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edi
mov dword [esi], 2
mov dword [esi + 4], ebp
call fcn.00401870
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00403910
push 0x103
lea ecx, [esp + 0x135]
push 0
push ecx
mov byte [esp + 0x13c], 0
call fcn.00403910
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.00401f90
push 0x413d34
lea eax, [esp + 0x44]
push eax
mov eax, 0x51eb851f
mul ebp
shr edx, 0xf
add edx, 1
push edx
mov eax, 0x51eb851f
mul edi
shr edx, 0xf
add edx, 1
push edx
lea ecx, [esp + 0x154]
push str._d_of__d_for__s_on__s
push ecx
call fcn.00403b50
mov eax, dword [esp + 0x50]
add esp, 0x40
push 3
lea edx, [esp + 0x120]
push edx
add eax, 0x114
push eax
push esi
call fcn.004019c0
add esp, 0x10
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x19000
cmp edi, ebp
jbe 0x402090
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021d4
mov esi, dword [esp + 0x10]
jmp 0x4021c9
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4021e2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop ebx
xor ecx, esp
xor al, al
call fcn.004038f9
add esp, 0x214
ret
Function at 0x402960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00403910
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp]
mov byte [esp + 3], 0
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4029a8
mov edx, dword [str.Program_Files__x86_]
mov ecx, dword [0x40f334]
mov dword [eax], edx
mov edx, dword [0x40f338]
mov dword [eax + 4], ecx
mov ecx, dword [0x40f33c]
mov dword [eax + 8], edx
mov edx, dword [0x40f340]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp]
push eax
call fcn.00402900
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
call fcn.004038f9
add esp, 0x108
ret

Function at 0x402a00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push 0x40f210
push ebp
call fcn.00403b3d
add esp, 8
test eax, eax
je 0x402a24
push eax
call fcn.004039fd
add esp, 4
xor al, al
pop ebp
ret
mov eax, dword [esp + 8]
push esi
push 0x40f21c
push eax
call fcn.00403b3d
mov esi, eax
add esp, 8
test esi, esi
jne 0x402a42
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.004041e2
push esi
call fcn.004040ed
push 0
push 0
push esi
mov edi, eax
call fcn.004041e2
push edi
call fcn.00403e92
push esi
push 1
mov ebx, eax
push edi
push ebx
call fcn.00403e28
push esi
call fcn.004039fd
add esp, 0x34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x40f344
push ebp
mov dword [ebx + edi - 8], eax
call fcn.00403b3d
mov esi, eax
push esi
push 1
push edi
push ebx
call fcn.0040477f
push esi
call fcn.004039fd
add esp, 0x1c
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret
Function at 0x402ab0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
xor eax, eax
push esi
xor esi, esi
cmp dword [esp + 0x30], esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 5
jne 0x402afb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x14], ebx
je 0x402bd8
or edi, 0xffffffff
cmp ebx, edi
je 0x402bd8
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402b3f
mov dword [esp + 0x10], edi
jmp 0x402be0
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402b68
mov dword [esp + 0x10], edi
jmp 0x402be0
push 0x400
call fcn.00403e92
push 0x400
mov edi, eax
push esi
push edi
call fcn.00403910
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [edi]
cmp ebp, esi
jle 0x402be4
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402bc8
add esi, 1
add ebx, 8
cmp esi, ebp
jl 0x402ba4
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x402be4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
xor esi, esi
jmp 0x402be4
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x402bf1
push edi
call fcn.00404267
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x402c00
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp ebx, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402c12
cmp ebx, 0xffffffff
je 0x402c12
push ebx
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402c22
cmp eax, 0xffffffff
je 0x402c22
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004038f9
add esp, 0x20
ret
Function at 0x402cd0
Capabilities:
Delete registry key
Persist via run registry key
Self delete
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0x378
jne 0x402d15
lea ecx, [esp + 4]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402d05
mov edx, dword [esp + 4]
push 0x41212c
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402c40
ret

Function at 0x402d20
Capabilities:
Get session user name

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x1c8], eax
push 0x94
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00403910
mov ecx, dword [str.___x_7__3_x59_]
mov edx, dword [ecx + 0x19c]
mov dword [esp + 0x14], edx
call fcn.00401000
mov dword [esp + 0x10], eax
call fcn.00402960
movzx eax, al
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], eax
call fcn.00402470
add esp, 0x10
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x402d90
mov eax, 1
jmp 0x402dc1
call fcn.00401000
cmp eax, 4
jge 0x402da1
mov eax, 3
jmp 0x402dc1
push 0
call fcn.00402ab0
add esp, 4
cmp eax, 1
jne 0x402db7
mov eax, 2
jmp 0x402dc1
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push 0x12b
lea edx, [esp + 0xa1]
push 0
push edx
mov dword [esp + 0x34], eax
mov byte [esp + 0xa8], 0
call fcn.00403910
add esp, 0xc
lea eax, [esp]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 8], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402e14
push 0x64
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00403910
add esp, 0xc
jmp 0x402e31
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0xcc], 0
call fcn.00401870
add esp, 8
mov edx, dword [str._4_5:]
mov eax, dword [0x412194]
mov ecx, dword [0x412198]
push 0
push 0x413d34
mov dword [esp + 0x98], edx
lea edx, [esp + 0xc]
push 0x98
push edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
call fcn.004019c0
mov ecx, dword [esp + 0x1d8]
add esp, 0x10
xor ecx, esp
call fcn.004038f9
add esp, 0x1cc
ret
Function at 0x4038f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4129e8]
jne 0x403903
repz ret
jmp fcn.004050b8

Function at 0x40c4a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408e14
xor ebx, ebx
cmp dword [0x414760], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c57a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c4e5
xor eax, eax
jmp 0x40c63e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c4de
push eax
call fcn.00408db1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414760], eax
call esi
push eax
call fcn.00408db1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414764], eax
call esi
push eax
call fcn.00408db1
mov dword [0x414768], eax
lea eax, [ebp - 8]
push eax
call fcn.004048b5
test eax, eax
pop ecx
pop ecx
je 0x40c548
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c57a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408db1
cmp eax, ebx
pop ecx
mov dword [0x414770], eax
je 0x40c57a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408db1
pop ecx
mov dword [0x41476c], eax
mov eax, dword [0x41476c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c5f3
cmp dword [0x414770], esi
je 0x40c5f3
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
je 0x40c5c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414770]
call fcn.00408e1d
pop ecx
call eax
test eax, eax
je 0x40c5c0
test byte [ebp - 0x18], 1
jne 0x40c5f3
lea eax, [ebp - 0xc]
push eax
call fcn.004048ec
test eax, eax
pop ecx
je 0x40c5db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c5ea
or dword [ebp + 0x10], 0x200000
jmp 0x40c624
or dword [ebp + 0x10], 0x40000
jmp 0x40c624
mov eax, dword [0x414764]
cmp eax, esi
je 0x40c624
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c624
mov eax, dword [0x414768]
cmp eax, esi
je 0x40c624
push dword [ebp - 4]
push eax
call fcn.00408e1d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x414760]
call fcn.00408e1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push 0xc
push 0
mov dword [edi], 0x426898
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x401139
mov dword [esi + 1], edi
sub eax, esi
mov byte [esi], 0xb9
sub eax, 0xa
mov byte [esi + 5], 0xe9
mov dword [esi + 6], eax
mov eax, edi
mov dword [edi + 8], esi
pop edi
pop esi
leave
ret

Function at 0x401ba8
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x42a2c0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x401c08
lea eax, [esi + esi]
call fcn.00423270
mov edi, esp
test edi, edi
je 0x401c08
push esi
push edi
push 0xffffffffffffffff
push 0x42a2c0
push ebx
xor eax, eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x401c0a
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.bugreport_cmdline:_s__BUGREPORT_VERSION
mov esi, 0x426928
push esi
call fcn.00419776
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
lea ecx, [ebp - 8]
call fcn.00415e5a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0040188c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 8
push eax
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x437974
push 0x437e90
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x401c8f
push str.GdiPlus_init_failed
push esi
call fcn.00419776
pop ecx
pop ecx
call fcn.0040117a
mov ecx, eax
call fcn.004048d6
test eax, eax
jne 0x401ca4
push 2
pop esi
jmp 0x401cb0
call fcn.0040a7f7
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [0x437e90]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004221ab
leave
ret 0x10
Function at 0x40475d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xc], ebx
je 0x40484d
cmp dword [ecx + 8], ebx
je 0x40484d
mov eax, dword [esi + 0xc]
mov edi, ebx
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x20]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.00401d37
push 8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.00401d37
cmp dword [esp + 0x1c], ebx
je 0x4047e5
cmp dword [esp + 0x24], ebx
je 0x4047e5
mov eax, dword [esi + 4]
push 4
push ecx
add eax, 8
lea ecx, [esp + 0x18]
push eax
call fcn.00401d8b
mov eax, dword [esi + 4]
push 8
push ecx
add eax, 0xc
lea ecx, [esp + 0x18]
push eax
call fcn.00401d8b
inc edi
push ebx
mov ecx, esi
call fcn.004035fd
mov ecx, esi
call fcn.00403b9d
test eax, eax
jne 0x404809
push 0x42b1ac
push 0x426940
call fcn.00419776
pop ecx
pop ecx
push ebx
push ebx
push esi
push 0x404730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [0x437e58], eax
test edi, edi
je 0x4048a9
push 4
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d8b
push 8
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d8b
jmp 0x4048a9
push 0x20
mov ecx, esi
call fcn.00403904
mov edi, eax
test edi, edi
jne 0x40486d
push 0x42b1d8
push 0x426940
call fcn.00419776
pop ecx
pop ecx
push edi
mov ecx, esi
call fcn.004035fd
mov ecx, esi
call fcn.00403b9d
test eax, eax
jne 0x404891
push 0x42b200
push 0x426940
call fcn.00419776
pop ecx
pop ecx
push ebx
push ebx
push esi
push 0x404730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [0x437e58], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
mov ecx, dword [esi + 4]
push ebx
push dword [ecx + 0x5d4]
push 0x4046de
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404954
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [esp + 0x24], 0x44
lea eax, [esp + 0x28]
mov esi, ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
add esp, 0xc
stosd dword es:[edi], eax
push ecx
lea ecx, [esp + 0x24]
push ecx
stosd dword es:[edi], eax
push ebx
push ebx
push ebx
stosd dword es:[edi], eax
xor eax, eax
inc eax
push ebx
mov dword [esp + 0x64], eax
mov word [esp + 0x68], ax
mov eax, dword [esi + 4]
push ebx
push ebx
push dword [eax + 0x5e0]
push dword [eax + 0x5dc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x4049d1
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
jmp 0x4049e2
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.00419776
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405588
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0x218
mov eax, 0x423b78
call fcn.004231c0
mov esi, ecx
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax + 0x5e4], edi
jne 0x4055ad
xor eax, eax
jmp 0x405759
mov dword [ebp - 4], edi
call fcn.00401b0a
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401564
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
push ecx
mov ecx, esp
push dword [eax + 0x5e4]
call fcn.0040655d
lea ecx, [ebp - 0x21c]
call fcn.0041638c
mov esi, str..tlg
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
pop ecx
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.00406e96
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x405656
push 0x42b7b4
lea eax, [ebp - 0x218]
push eax
call ebx
push str.TencentLogs_
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
jle 0x405684
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.0040161a
mov esi, dword [ebp - 0x21c]
push esi
lea eax, [ebp - 0x218]
push eax
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00406678
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40574f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ebx, 0x437f78
push eax
mov ecx, ebx
call fcn.00401692
lea ecx, [ebp - 0x220]
call fcn.00414bff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], edi
je 0x405747
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x224]
call fcn.004061a4
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0040650f
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.0040188c
push dword [0x437f78]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push dword [0x437f78]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 0x10]
call fcn.0040188c
lea ecx, [esi - 0x10]
call fcn.0040188c
mov eax, edi
call fcn.0042316a
ret 4
Function at 0x407eea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407f40
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407f40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x407f32
cmp esi, ecx
jae 0x407f40
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x407f20
cmp esi, ecx
jae 0x407f40
cmp word [esi], 0
je 0x407f40
mov eax, esi
jmp 0x407f42
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40834b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x423efc
call fcn.0042318c
mov esi, ecx
and dword [ebp - 4], 0
call fcn.00401b0a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401564
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4083a8
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
lea ecx, [ebp - 0x10]
push eax
push eax
call fcn.00401528
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00406678
mov edi, dword [ebp - 0x10]
lea ecx, [edi - 0x10]
call fcn.00406d2d
mov esi, dword [ebp + 8]
lea ecx, [edi - 0x10]
add eax, 0x10
mov dword [esi], eax
call fcn.0040188c
mov eax, esi
call fcn.00423155
ret 8