joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aa36
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041e360
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41aa51
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41aa5e
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41ab21
movzx eax, word [esi]
test ax, ax
je 0x41ab21
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41aaab
test edi, edi
je 0x41aab5
test ebx, ebx
jne 0x41aab5
test ecx, ecx
je 0x41aaa7
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41aacc
cmp eax, 0xd
je 0x41aadf
cmp eax, 0xa
je 0x41aae2
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41aada
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41aa8d
jmp 0x41aae2
mov byte [edx], 1
jmp 0x41aae2
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41ab1b
mov word [edi], ax
test ebx, ebx
je 0x41ab1b
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040fe56
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41ab23
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41ab2e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41ab89
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x433260]
call esi
pop esi
jmp 0x41ab91
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d096
Capabilities:
Hide graphical window

Disassembly:
and dword [0x448454], 0
push 1
push dword [esp + 8]
mov byte [0x448451], 1
mov byte [0x448452], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012c8
cmp dword [0x44843c], 0
jne 0x41d0d6
cmp byte [0x448463], 0
je 0x41d0df
cmp dword [0x44845c], 0
jne 0x41d0f2
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41d1f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e360
cmp byte [0x44a470], 0
je 0x41d281
cmp word [0x44a472], 0
je 0x41d281
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a472
call fcn.0041bdb0
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d280
push dword [ebp + 8]
call fcn.004235b3
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d287
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e360
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040fbd8
mov esi, eax
test esi, esi
je 0x41d2df
movzx ecx, word [esi]
push ecx
jmp 0x41d2ca
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040fcf1
test al, al
jne 0x41d2c3
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401318
Capabilities:
Encode data using xor

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov eax, 0x5848
call fcn.00401a2c
call fcn.00401820
lea edi, [ebp - 0x38]
mov esi, str.kernel32
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x582c]
mov esi, 0x403040
mov cx, 0x15fd
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x583c], edx
call sub.KERNEL32.dll_FreeConsole
mov ebx, dword [ebp - 0x638]
lea esi, [ebp - 0x38]
mov dword [esp], esi
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp], eax
xor eax, eax
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea ecx, [esi + ecx]
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x57f4
mov dword [esp], 0
call eax
sub esp, 0x10
mov edi, eax
xor esi, esi
mov edx, dword [ebp - 0x583c]
mov ecx, edi
mov al, byte [edx + esi]
mov byte [edi + esi], al
inc esi
cmp esi, 0x57f4
jne 0x4013c4
lea edx, [edi + 0x51f4]
nop
xor dword [ecx], ebx
add ebx, 0x499602d2
add ecx, 4
cmp ecx, edx
jne 0x4013dc
call edi
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
leave
lea esp, [ecx - 4]
ret

Function at 0x401510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401536
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4015ca
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401585
cmp eax, 0x40
je 0x401585
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401529
cmp eax, 0x40
je 0x401529
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401529
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40118e
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x42208b]
shl eax, 2
mov dword [0x42208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00416334
pop edx
call fcn.00416298
call fcn.00416374
push 0
call fcn.00417780
pop ecx
push 0x422034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x422093], eax
push 0
jmp fcn.0041cb94

Function at 0x4036ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
push 0xa
push 0x211
push 0
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x40374f
push eax
push 0
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
mov ebp, 0x401468
mov eax, fcn.004036ac
push esp
sub eax, ebp
push 8
mov edi, ebp
push eax
push edi
mov ebx, edi
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
setne dl
and edx, 1
xor ecx, ecx
jmp 0x403711
mov eax, ecx
mov edi, 0x41b
xor edx, edx
div edi
mov al, byte [esi + edx]
xor byte [ebx], al
inc ebx
inc ecx
cmp ebx, fcn.004036ac
jne 0x4036ff
lea edx, [esp + 4]
mov esi, fcn.004036ac
push edx
mov ebx, 0x401468
mov ecx, dword [esp + 4]
mov eax, esi
sub eax, ebx
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
setne al
and eax, 1
sub esi, ebx
push esi
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_FlushInstructionCache
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406388
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4063c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00414144
jmp 0x4063ca
mov eax, ebx
mov edx, esi
call fcn.004140a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4063d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4063f5
mov al, byte [esp]
jmp 0x4063f7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x401de0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401e2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e24
test esi, esi
je 0x401e24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e00
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402010
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402138
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40209e
cmp eax, 4
jne 0x4020c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020ae
cmp edx, 4
je 0x4020ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402010
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x984058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9841a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x98407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98406a
add dl, dl
jne 0x984089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9840dc
xor eax, eax
add dl, dl
jne 0x984096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98417d
add dl, dl
jne 0x9840a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9840b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9840bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9840c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9840d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x984075
mov eax, 1
add dl, dl
jne 0x9840ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9840f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9840e1
sub eax, ebx
mov ebx, 1
jne 0x984128
mov ecx, 1
add dl, dl
jne 0x98410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x984119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x984105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x984075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x98413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x984136
cmp eax, 0x7d00
jae 0x98416d
cmp eax, 0x500
jb 0x984168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x984075
cmp eax, 0x7f
ja 0x984170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x984075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x98419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x984075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
push 0
mov dword [edi], 0x422824
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, 0x401082
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov byte [esi], 0xb9
mov byte [esi + 5], 0xe9
mov dword [esi + 1], edi
mov dword [edi + 8], esi
mov eax, edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
lea ecx, [esp + 4]
call fcn.004119e6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
call fcn.004016af
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x432b80
push 0x432fc8
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x401752
push 0x42283c
push 0x426584
call fcn.0041524e
pop ecx
pop ecx
call fcn.004010c5
mov ecx, eax
call fcn.00403275
test eax, eax
jne 0x401767
push 2
pop esi
jmp 0x401773
call fcn.00408643
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [0x432fc8]
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4026ad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x40266a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret 4

Function at 0x40334a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
stosd dword es:[edi], eax
push esi
push esi
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push dword [eax + 0x5e0]
push dword [eax + 0x5dc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x4033bc
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4033cd
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.0041524e
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x403ff1
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0x218
mov eax, 0x42075c
call fcn.0041f61b
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x5e4], edi
jne 0x404016
xor eax, eax
call fcn.0041f69e
ret
mov eax, dword [0x432bb0]
mov ecx, 0x432bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esp
mov dword [ebp - 0x224], esp
push ecx
mov ecx, dword [eax + 0x5e4]
call fcn.004047c9
lea ecx, [ebp - 0x21c]
call fcn.00411f02
lea eax, [ebp - 0x21c]
mov dword [esp], str..tlg
push eax
call fcn.0040487e
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
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]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4040c4
push 0x427334
lea eax, [ebp - 0x218]
push eax
call esi
push 0x427338
lea eax, [ebp - 0x218]
push eax
call esi
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x4040f3
push dword [ebx - 0xc]
lea eax, [ebp - 0x21c]
push eax
call fcn.004015c7
mov ebx, dword [ebp - 0x21c]
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
cmp ebx, edi
jne 0x404105
xor eax, eax
jmp 0x40410d
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x21c]
call fcn.004014c7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404136
lea eax, [ebx - 0x10]
call fcn.004016af
jmp 0x40400e
lea eax, [ebp - 0x218]
push eax
mov edi, 0x4330bc
push edi
call fcn.0040145a
lea eax, [ebp - 0x220]
push eax
call fcn.004109ac
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x404183
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.004016af
lea eax, [ebx - 0x10]
call fcn.004016af
mov eax, esi
jmp 0x404010
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040495b
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404825
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004016af
push dword [0x4330bc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [0x4330bc]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
jmp 0x404166
Function at 0x406374
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4063cc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4063bd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4063b9
cmp edi, eax
jae 0x4063bd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4063ab
cmp edi, eax
jb 0x4063c1
xor eax, eax
jmp 0x4063cb
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x40653d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4206c3
call fcn.0041f5b2
and dword [ebp - 0x10], 0
mov eax, dword [0x432bb0]
mov ecx, 0x432bb0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4065ae
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.0040149f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x40659e
xor eax, eax
jmp 0x4065a6
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004014c7
add esi, 0xfffffff0
mov eax, esi
call fcn.004052d7
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.004016af
mov eax, ebx
call fcn.0041f68a
ret 8