joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a43c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42123e
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x432034]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x3fc
call fcn.0040872d
test eax, eax
je 0x40a5ca
call fcn.004010c5
mov edi, eax
call fcn.00404e4d
test eax, eax
je 0x40a5ca
push 0x40
xor esi, esi
lea eax, [esp + 0x34]
push esi
push eax
mov dword [esp + 0x38], 0x44
call sub.MSVCR100.dll_memset
xor eax, eax
mov dword [esp + 0x28], esi
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
inc ebx
stosd dword es:[edi], eax
mov eax, ebx
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebx
mov word [esp + 0x5c], ax
call fcn.00414842
lea ecx, [esp + 0x14]
push 0x42872c
push ecx
mov ecx, eax
mov dword [esp + 0x88], esi
call fcn.004057c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], bl
push str.___manual_0
push ecx
mov ebx, eax
call fcn.00405748
add esp, 0x10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401613
mov byte [esp + 0x80], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x40a53d
push dword [eax - 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.00401506
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
or eax, 0xffffffff
lea esi, [esp + 0x10]
call fcn.0040583a
test edi, edi
je 0x40a5a6
push 0xffffffffffffffff
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x20]
call esi
push 0x428730
mov ecx, 0x427118
call int.00416d9e
mov eax, dword [esp + 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.00401613
xor eax, eax
inc eax
jmp 0x40a5cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateCrashApp:_launch_txupd_failed__lu
mov ecx, 0x427118
call int.00416d9e
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401613
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c568
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
or dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x2c], bl
jne 0x40c59e
push str.GIF_not_initialized
mov ecx, 0x427068
call int.00416d9e
pop ecx
jmp 0x40c5e5
cmp dword [esi + 0x24], 1
jbe 0x40c5e5
cmp dword [esi + 0x14], ebx
jne 0x40c5e5
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x40c7f3
push ebx
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x40c5de
push str.Couldnt_start_a_GIF_animation_thread_n
mov ecx, 0x427068
call int.00416d9e
pop ecx
mov al, 1
jmp 0x40c5e7
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x40c644
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x4237c0
push 0x86
mov esi, eax
mov byte [ebp - 1], 0
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40c677
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40c6e1
push edi
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40c673
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40c6d4
cmp dword [ebp + 8], 0
push edi
jne 0x40c6b0
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
jmp 0x40c6d0
mov esi, dword [esi]
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x40c6d4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40cc14
Capabilities:
Check for sandbox and av modules
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov esi, eax
mov edi, ecx
push esi
mov ebx, 0x427054
push 0x428d60
mov ecx, ebx
call int.00416d9e
add esp, 0xc
test esi, esi
je 0x40cd97
cmp dword [ebp + 8], 0
je 0x40cd97
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cc5e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40cdaa
mov esi, 0x428dfc
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40ccb0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40ccb0
push str.Load_dbghelp.dll_failed
mov ecx, ebx
call int.00416d9e
pop ecx
jmp 0x40cdaa
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x40ccdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_MiniDumpWriteDump_failed___ld_
mov ecx, ebx
call int.00416d9e
pop ecx
jmp 0x40ccaa
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x40cd0e
push dword [ebp + 0xc]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], 1
cmp eax, esi
jne 0x40cd0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed___ld_
jmp 0x40ccd1
mov eax, dword [edi + 0x44]
mov ecx, dword [eax]
lea ecx, [ecx*8 + 4]
push ecx
push eax
push 0x10fff
call fcn.0040cdb3
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0x10]
push 0xc
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40cd42
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0x40c97f
push dword [ebp + 0x14]
mov dword [ebp - 0x18], edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [ebp - 0xc]
test eax, eax
jne 0x40cd78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump_failed___08X_
jmp 0x40ccd1
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x40], 0
call esi
cmp dword [ebp - 8], 0
je 0x40cd92
push dword [ebp + 0x10]
call esi
xor eax, eax
inc eax
jmp 0x40cdac
push dword [ebp + 8]
mov ecx, ebx
push esi
push str.Invalid_parameters__file_s__exceptioninfo_p
call int.00416d9e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40da29
Capabilities:
Get file version info

Disassembly:
push 0x238
mov eax, 0x421166
call fcn.0041fc5d
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x244], eax
cmp eax, edi
jne 0x40da4e
xor eax, eax
jmp 0x40dc4f
push ecx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor eax, eax
cmp esi, edi
je 0x40dc4f
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push edi
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
test eax, eax
jne 0x40daa4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40da47
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x234], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x40da47
push esi
call fcn.0041f201
pop ecx
push eax
push esi
push dword [ebp - 0x234]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40da47
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x23c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x228]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
call esi
xor ebx, ebx
test dword [ebp - 0x230], 0xfffffffc
mov dword [ebp - 0x238], edi
jbe 0x40dc3c
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x23c]
lea eax, [eax + ebx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x22c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.004062b2
add esp, 0x10
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x224], edi
push dword [ebp - 0x228]
mov dword [ebp - 0x240], edi
call esi
test eax, eax
jne 0x40dbc7
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push str.StringFileInfo040904e4CompanyName
push dword [ebp - 0x228]
call esi
test eax, eax
je 0x40dbe7
cmp dword [ebp - 0x224], edi
je 0x40dbe7
push dword [ebp - 0x244]
push dword [ebp - 0x224]
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x40dc0d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [ebp - 0x230]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x40db3d
jmp 0x40dc3c
push dword [ebp - 0x224]
mov ecx, 0x427040
push str.company_name__s
call int.00416d9e
mov eax, dword [ebp - 0x22c]
pop ecx
pop ecx
add eax, 0xfffffff0
mov dword [ebp - 0x238], 1
call fcn.00401613
push dword [ebp - 0x228]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x238]
pop ecx
call fcn.0041fce0
ret
Function at 0x41165f
Capabilities:
Encode data using xor

Disassembly:
cmp edi, dword [ebx - 6]
push 0x23
movsb byte es:[edi], byte [esi]
mov bh, 0x77
jp 0x41160d
out dx, al
loope 0x411627
arpl di, ax
fimul dword [edx + 0x1f9b889a]
mov ebp, 0xedede3d9
in eax, dx
leave
mov ch, 0xf0
mov esp, 0xc90c1f3e
pop ds
or al, 0xc9
mov al, byte [0x6f3ebeee]
mov byte [0x73a5aff9], al
fisub dword [ebp + 0x34]
pop ebp
xor al, 0x5d
salc
push ecx
cmp dl, byte [edx - 0x52111990]
fst qword [edx - 0x39]
in eax, 0x53
jge 0x41160b
sub bh, 0x3f
xor al, 0x90
sahf
mov al, 0x86
insd dword es:[edi], dx
xchg edi, eax
cld
and dword [ebx], 0xe1ce29e9
jg 0x4115dd
hlt
xor edx, dword [ecx + 0x4b]
sbb eax, 0x5527f76f
loop 0x4115f6
pop ebp
and dword [esi + 0x4b], esp
stc
aam 0xbe
fimul word [bp + si]
pop ss
and al, 0x36
mov edx, 0x3d9c8e5c
sub dword [edx - 0x4d], ebp
retf
push esi
lodsb al, byte fs:[esi]
add esi, edx
push 0x47
lds esi, [ebx - 0xd4268e1]
dec esi
cwde
loope 0x411688
shr edx, 1
mov dl, 0x3d
jg 0x4116e4
js 0x4115fc
std
mov ecx, 0x28e665ba
xlatb
call esp
mov ch, byte [eax - 0x5c]
test esp, 0x71d9e3f1
xor esi, esp
loope 0x411637
fnstenv [ecx + 0x33]
hlt
lcall 0xd4ca, 0x79cb6094
sbb eax, 0x47ba7bce
test eax, 0xe9558cce
mov edi, 0xf01b246f
daa
jle 0x4116b0
dec ecx
jae 0x4116fc
xor al, 0x46
mov ch, 0xe2
jge 0x411716
jge 0x411716
outsb dx, byte [esi]
mov ecx, 0xe751546d
xor dword [edi - 0x40e5e6f1], eax
hlt
scasb al, byte es:[edi]
mov ch, 0xec
leave
fldz
mov byte [ebp + 0x24], ch
push ds
pop esi
jno 0x4116af
fdiv dword [edx - 0x39]
push eax
sbb eax, 0x4ad9b4ab
mov cs, word [ecx + ebp - 0x57b3a059]
xchg esp, eax
sub dword [edi - 0x6b57b3a1], esp
sti
mov cl, 0x36
out 0xde, eax
mov dl, 0xbd
test al, cl
xchg bl, ch
pop edi
sbb al, 0x48
invalid
sub al, 0xe9
mov byte [0x9d2a00ae], al
or byte [edi], dl
push ecx
lahf
lahf
fimul word [edi + 0xab395a]
mov eax, dword gs:[0xba2d0e58]
pop ds
mov edx, 0x9a3a8bd1
add dword [esi], ebx
lodsd eax, dword [esi]
dec ebp
lodsb al, byte [esi]
popfd
jns 0x41176e
xchg edi, eax
cmp ebx, esp
mov al, byte [0xfebabd79]
pop es
lea eax, [edi - 0x32]
invalid
dec edi
mov edi, 0x68ba3ddd
or eax, 0xd7de13af
push ss
insb byte es:[edi], dx
into
jmp 0xd6992f68
Function at 0x41966e
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x432034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
push str..PhysicalDrive0
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
je 0x419765
mov esi, dword [sym.imp.MSVCR100.dll_memset]
push ebx
push 0xc
lea eax, [ebp - 0x410]
push edi
push eax
call esi
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x41c], edi
call esi
add esp, 0x18
push edi
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop ebx
test eax, eax
je 0x419759
mov esi, dword [ebp - 0x3f4]
lea esi, [ebp + esi - 0x404]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR100.dll_isalnum]
pop ecx
test eax, eax
je 0x419759
push esi
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x418]
call fcn.00406bd6
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x419767
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f212
leave
ret 4

Function at 0x41a137
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x18
mov eax, 0x421b40
call fcn.0041fc5d
mov eax, dword [ebp + 8]
mov edi, str.bugreport
push str.M_GetAdaptersAddresses_begin.
mov ecx, edi
mov dword [ebp - 0x14], eax
call int.00416d9e
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x20], eax
cmp eax, 0x6f
jne 0x41a1e2
cmp esi, ebx
je 0x41a188
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x120
push eax
call fcn.0041f201
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41a1cd
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 5
jl 0x41a165
cmp esi, ebx
je 0x41a1b2
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x20]
mov ecx, edi
push str.GetAdaptersAddresses_failed___ld_.
call int.00416d9e
pop ecx
xor eax, eax
pop ecx
call fcn.0041fce0
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
mov ecx, edi
call int.00416d9e
pop ecx
pop ecx
cmp dword [ebp - 0x20], ebx
jne 0x41a1a6
cmp esi, ebx
je 0x41a1b2
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0041a219
mov edi, eax
cmp edi, ebx
je 0x41a20e
mov ecx, dword [ebp - 0x14]
call fcn.0041a656
mov ecx, dword [ebp - 0x14]
call fcn.0041a8d5
xor edi, edi
inc edi
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, edi
jmp 0x41a1c4
Function at 0x4023e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402406
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x40240f
cmp byte [ebx], 0
jne 0x402416
xor eax, eax
jmp 0x402496
xor esi, esi
jmp 0x402459
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402440
cmp dword [ebp - 4], 0
je 0x402440
test esi, esi
jne 0x402440
cmp dword [ebp + 8], 0
je 0x40243c
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402459
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x40244e
cmp ecx, 0xa
jne 0x402456
cmp ecx, 0xd
jne 0x40245e
inc ebx
jmp 0x40245e
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40241a
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402494
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402494
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040f1b4
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40249e
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x415564]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024da
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024ce
mov edx, 0x414125
mov eax, ebx
call fcn.0040f288
mov edx, 0x415564
mov eax, ebx
call fcn.0040f288
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040f0b4
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402503
lea edx, [ebx + 1]
jmp 0x402505
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402556
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40252e
jmp 0x402527
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402527
mov byte [ebx + eax], 0x20
jmp 0x40252e
inc eax
cmp byte [ebx + eax], 0
jne 0x402517
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x402543
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402555
cmp edx, 0x20
jne 0x40254c
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40255d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40250c
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405e34
mov edi, eax
test edi, edi
je 0x402589
mov edx, str..inf
mov eax, edi
call fcn.0040f23c
test eax, eax
jne 0x402589
mov dword [esi + 0xc], 0x4141f6
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406964
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4025b1
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406a30
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025f4
cmp byte [esp + 1], 0
jne 0x4025f4
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040f1b4
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040f288
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406964
test al, al
je 0x4026dc
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40261e
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4026dc
cmp byte [0x414044], 0
jne 0x402635
cmp byte [esp], 0
je 0x40268d
mov ebx, dword [0x4148b0]
test ebx, ebx
je 0x402649
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40264d
xor eax, eax
jmp 0x402652
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x402665
push 0
push dword [0x4148b0]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x40268d
push 1
push dword [0x4148b0]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4026a9
mov edx, str..exe
mov eax, edi
call fcn.0040f23c
test eax, eax
je 0x4026dc
cmp byte [0x414044], 0
je 0x4026c4
cmp byte [esp], 0
jne 0x4026c4
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4026dc
cmp byte [esp], 0
je 0x4026d1
mov edx, 0xc8
jmp 0x4026d6
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4026e6
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x414045], 0
jne 0x40276f
mov eax, esp
call fcn.00405b5c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040f260
test eax, eax
jne 0x40276f
push 0x414203
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040f134
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040f0b4
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x40282a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41405d], 0
je 0x4028a1
cmp byte [0x41596c], 0
je 0x4028a1
lea edx, [esp + 8]
mov eax, 0x41596c
call fcn.004027f9
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4028a1
mov eax, ebx
call fcn.0040f134
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x4028a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x41405d], 0
je 0x402922
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027f9
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402922
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40291a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040f1b4
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029e8
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret