joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0x1c
mov dword [esp + 8], eax
mov dword [esp + 4], sym._hid_update_thread_proc_4
mov dword [esp], 4
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
sub esp, 0xc
test eax, eax
jne 0x10001c77
test byte [0x100074c0], 4
jne 0x10001e20
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov dword [0x1000c00c], eax
sub esp, 0x10
test eax, eax
je 0x10001dd8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov dword [0x1000c008], eax
sub esp, 0x10
test eax, eax
je 0x10001d90
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._hid_update_thread_proc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x10001d50
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x1000c00c]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 8
leave
ret 0xc
test byte [0x100074c0], 2
je 0x10001d1d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_update_thread__error__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001d1d
test byte [0x100074c0], 2
je 0x10001cdf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_update_event__error__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001cdf
test byte [0x100074c0], 2
je 0x10001cae
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_create_start_event__error__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001cae
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_increase_modules_reference_count__error:__lu_n
mov dword [esp + 8], str.start_update_thread_once
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100074c0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001c77
Function at 0x10004e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10004e88
cmp byte [esi + ebx - 1], 0xa
je 0x10004e5c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000c0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100054b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10005688
mov edi, dword [0x1000c0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10005597
test byte [0x100074e8], 8
jne 0x10005630
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100074f8], 8
jne 0x100055f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10005539
cmp esi, 3
jbe 0x100055a8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000554a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000a528]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10005539
mov dword [esp], 0x100074f8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10005510
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10005510
mov dword [esp], 0x100074e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100054fb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10005503
mov eax, 0xffffffff
jmp 0x10005597
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3dc565f1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42f314
nop
mov ecx, 0x20c92ad1
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x47783249
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x4460f6a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x6823f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x693c30
sub esp, 0x20
mov eax, dword [0x6f5038]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor edi, edi
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x10], eax
mov esi, dword [eax + 0x20]
mov ebp, dword [eax + 0x18]
add esi, ebx
test ebp, ebp
je 0x693c95
mov eax, dword [esi]
lea ecx, [esp + 0x14]
add eax, ebx
push eax
call fcn.00682a5b
push dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
call fcn.006846bc
add esp, 8
test al, al
jne 0x693caa
lea ecx, [esp + 0x14]
add esi, 4
call fcn.00684653
inc edi
cmp edi, ebp
jb 0x693c61
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00683c4e
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + ebx]
lea ecx, [esp + 0x14]
call fcn.00684653
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00683c4e
add esp, 0x20
ret

Function at 0x68481a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x6943a0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x6944d6
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
mov bl, byte [esi + ebx]
push 0x6dc2b8
push 0x6f7720
call fcn.0068396f
xor edx, edx
mov eax, esi
div ebp
add esp, 8
mov bh, byte [edx + section..DOLLA]
push 0x63e163
push 0x6dc2c4
push 0x6f7808
xor bh, bl
call fcn.0068396f
add esp, 8
mov ecx, eax
call fcn.006862f0
mov eax, dword [esp + 0x14]
push 0x63e163
push 0x6dc2d4
push 0x6f7720
mov bl, byte [esi + eax]
call fcn.0068396f
add esp, 8
mov ecx, eax
call fcn.006862f0
mov eax, dword [esp + 0x14]
push 0x63e163
push 0x6dc2e0
push 0x6f7720
add byte [esi + eax], bh
call fcn.0068396f
add esp, 8
mov ecx, eax
call fcn.006862f0
mov eax, dword [esp + 0x14]
push 0x6dc2f4
push 0x6f7720
dec byte [esi + eax]
call fcn.0068396f
mov eax, dword [esp + 0x1c]
push 0x6dc300
push 0x6f7720
add byte [esi + eax], 0xfe
call fcn.0068396f
mov eax, dword [esp + 0x24]
push 0x6dc310
push 0x6f7720
sub byte [esi + eax], bl
call fcn.0068396f
mov ebx, dword [esp + 0x2c]
push 0x6dc31c
push 0x6f7720
inc byte [esi + ebx]
call fcn.0068396f
inc byte [esi + ebx]
push 0x6dc324
push 0x6f7720
call fcn.0068396f
inc byte [esi + ebx]
push 0x6dc330
push 0x6f7720
call fcn.0068396f
inc esi
add esp, 0x30
cmp esi, edi
jb 0x6943c0
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x6863d6
Capabilities:
Parse pe header

Disassembly:
jmp 0x6bae81
push 0
call dword [0x6fa0e4]
test eax, eax
je 0x6baec0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6baec0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6baec0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x6baec0
cmp dword [ecx + 0x74], 0xe
jbe 0x6baec0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x686679
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x693d10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x733f88], eax
pop edi
pop esi
ret
Function at 0x45d610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x432015
lea edi, [esi - 0x31015]
push edi
or ebp, 0xffffffff
jmp 0x45d632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45d639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d628
mov eax, 1
add ebx, ebx
jne 0x45d64b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45d640
jne 0x45d65c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d640
xor ecx, ecx
sub eax, 3
jb 0x45d670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45d6e2
mov ebp, eax
add ebx, ebx
jne 0x45d67b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45d688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45d6ac
inc ecx
add ebx, ebx
jne 0x45d698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45d68d
jne 0x45d6a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d68d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45d6cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45d6bd
jmp 0x45d62e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45d6cc
add edi, ecx
jmp 0x45d62e
pop esi
mov edi, esi
mov ecx, 0x27a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45d6ea
cmp byte [edi], 5
jne 0x45d6ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45d6ef
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45d75e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x60704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x60754]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45d71c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6075c]
or eax, eax
je 0x45d758
mov dword [ebx], eax
add ebx, 4
jmp 0x45d739
call dword [esi + 0x60758]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x45d78f
cmp al, 0xef
ja 0x45d782
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x45d764
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x45d771
mov ebp, dword [esi + 0x60760]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x5d7ea]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45d7db
sub esp, 0xffffff80
jmp 0x4013e0
Function at 0x401c57
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov edx, dword [str.CLSID23170F69_40C1_278A_1000_000100020000InprocServer32]
push esi
lea eax, [ebp - 0x248]
push edi
mov esi, 0x80000000
push eax
push 0
mov ecx, esi
call fcn.00401dc4
test eax, eax
mov edi, 0x80000002
je 0x401d31
push str.7_zip.dll
mov edx, 0x404f28
lea ecx, [ebp - 0x248]
call fcn.00401e50
test eax, eax
je 0x401d31
mov edx, dword [str.CLSID23170F69_40C1_278A_1000_000100020000InprocServer32]
mov ecx, esi
call fcn.00401e08
test eax, eax
jne 0x401cc5
mov edx, dword [str.CLSID23170F69_40C1_278A_1000_000100020000]
mov ecx, esi
call fcn.00401e08
push ebx
mov ebx, 0x40312c
mov edx, dword [ebx]
lea ecx, [ebp - 0x450]
call fcn.0040151a
mov edx, 0x403844
lea ecx, [ebp - 0x450]
call fcn.0040152d
lea edx, [ebp - 0x450]
mov ecx, esi
call fcn.00401e08
add ebx, 4
cmp ebx, 0x403140
jb 0x401ccb
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a0b
test eax, eax
pop ebx
jne 0x401d31
push str.23170F69_40C1_278A_1000_000100020000
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe]
lea eax, [ebp - 0x248]
push eax
push 0
mov ecx, edi
call fcn.00401dc4
test eax, eax
je 0x401d71
push str.7zFM.exe
mov edx, 0x404f28
lea ecx, [ebp - 0x248]
call fcn.00401e50
test eax, eax
je 0x401d71
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe]
mov ecx, edi
call fcn.00401e08
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstall7_Zip]
lea eax, [ebp - 0x248]
push eax
push str.UninstallString
mov ecx, edi
call fcn.00401dc4
test eax, eax
je 0x401dc0
lea ecx, [ebp - 0x248]
call fcn.00401e11
mov edx, 0x404f28
lea ecx, [ebp - 0x248]
push dword [0x403128]
call fcn.00401e50
test eax, eax
je 0x401dc0
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstall7_Zip]
mov ecx, edi
call fcn.00401e08
pop edi
pop esi
leave
ret

Function at 0x401e77
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ebb
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ed8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x401edd
push 1
pop eax
pop esi
ret
call fcn.00401e77
pop esi
ret
Function at 0x422408
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x422447
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422447
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422447
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x422447
cmp dword [ecx + 0x74], 0xe
jbe 0x422447
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x429bab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x429c48
push ebx
push esi
call fcn.00429b74
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00429b08
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x429bf5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x429c47
push edi
push eax
call fcn.00428640
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x429c15
call fcn.0042868e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x429c46
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00429b08
add esp, 0x20
test eax, eax
jne 0x429c34
push edi
call fcn.0042868e
jmp 0x429c3c
push ebx
call fcn.0042868e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42ae57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4338a0
push 0x433898
push str.FlsAlloc
push 0x1f
call fcn.0042ad16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ae8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x431144]
call esi
jmp 0x42ae91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42aed5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4338b0
push 0x4338a8
push str.FlsGetValue
push 0x21
call fcn.0042ad16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42af0c
push dword [ebp + 8]
mov ecx, esi
call dword [0x431144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42af14
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4338b8
push 0x4338b0
push str.FlsSetValue
push 0x22
call fcn.0042ad16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42af4e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x431144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43024d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43024d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret