joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x40e5fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e5f0
mov eax, 1
add ebx, ebx
jne 0x40e613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e608
jne 0x40e624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e608
xor ecx, ecx
sub eax, 3
jb 0x40e638
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e6aa
mov ebp, eax
add ebx, ebx
jne 0x40e643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e674
inc ecx
add ebx, ebx
jne 0x40e660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e655
jne 0x40e671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e655
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e685
jmp 0x40e5f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e694
add edi, ecx
jmp 0x40e5f6
pop esi
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e6f3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1299c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e6b1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a2c]
or eax, eax
je 0x40e6ed
mov dword [ebx], eax
add ebx, 4
jmp 0x40e6ce
call dword [esi + 0x12a28]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40e724
cmp al, 0xef
ja 0x40e717
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40e6f9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40e706
mov ebp, dword [esi + 0x12a30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40e758
sub esp, 0xffffff80
jmp 0x403222
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401038
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40106a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401066
cmp esi, eax
jae 0x40106a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401058
cmp esi, eax
jb 0x401070
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x40dbc0
call fcn.00401b11
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401134
test esi, esi
jne 0x401134
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x401118
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401112
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401112
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x401101
cmp esi, eax
jae 0x401105
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f3
cmp esi, eax
jb 0x401109
xor eax, eax
jmp 0x401112
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40113d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x40dbc0
call fcn.00401b11
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4010a5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4018b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407c19
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x20], esi
mov ebx, 1
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push ecx
push 0x80000002
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4019a9
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push ecx
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
jne 0x4019a9
mov eax, dword [ebp - 0x14]
cmp eax, 2
jbe 0x4019a9
add eax, eax
call fcn.004067e0
mov edx, dword [ebp + 0x10]
mov esi, esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push esi
lea ecx, [ebp - 0x1c]
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x4019a9
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.00401350
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401400
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4019a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
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 0x4019cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
lea esp, [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401dc4
mov esp, ebp
pop ebp
ret

Function at 0x401dc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d040]
jne 0x401dce
repz ret
jmp fcn.004023ca
Function at 0x406250
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403e85
and dword [ebp - 0x14], 0
cmp dword [0x40e998], 0
mov dword [ebp - 0x18], eax
jne 0x406303
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4063ab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b070
push ebx
call edi
test eax, eax
je 0x4063ab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e998], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e99c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e9a0], eax
call edi
push eax
call esi
mov dword [0x40e9a8], eax
test eax, eax
je 0x406303
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e9a4], eax
mov eax, dword [0x40e9a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40635c
cmp dword [0x40e9a8], ecx
je 0x40635c
push eax
call esi
push dword [0x40e9a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40635c
test ebx, ebx
je 0x40635c
call edi
test eax, eax
je 0x406353
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406353
test byte [ebp - 8], 1
jne 0x40635c
or dword [ebp + 0x10], 0x200000
jmp 0x40638f
mov eax, dword [0x40e99c]
cmp eax, dword [ebp - 0x18]
je 0x40638f
push eax
call esi
test eax, eax
je 0x40638f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40638f
mov eax, dword [0x40e9a0]
cmp eax, dword [ebp - 0x18]
je 0x40638f
push eax
call esi
test eax, eax
je 0x40638f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e998]
call esi
test eax, eax
je 0x4063ab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4063ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401dc4
leave
ret
Function at 0x1a418e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x148c000]
push edi
or ebp, 0xffffffff
jmp 0x1a41902
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a41909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a418f8
mov eax, 1
add ebx, ebx
jne 0x1a4191b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a4192c
jne 0x1a4194b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4194b
dec eax
add ebx, ebx
jne 0x1a41938
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a41910
add ebx, ebx
jne 0x1a41947
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a4199d
xor ecx, ecx
sub eax, 3
jb 0x1a41963
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a419d2
sar eax, 1
mov ebp, eax
jmp 0x1a4196e
add ebx, ebx
jne 0x1a4196e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4193c
inc ecx
add ebx, ebx
jne 0x1a4197c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4193c
add ebx, ebx
jne 0x1a41989
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a4197e
jne 0x1a4199a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a4197e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a419bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a419ae
jmp 0x1a418fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a419bc
add edi, ecx
jmp 0x1a418fe
pop esi
mov edi, esi
mov ecx, 0x4ca7fd
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1a419f7
cmp byte [edi], 0x65
jne 0x1a419dc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1a419da
lea edi, [esi + 0x1605000]
mov eax, dword [edi]
or eax, eax
je 0x1a41a3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25e5f94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25e60c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a419fd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25e60cc]
or eax, eax
je 0x1a41a39
mov dword [ebx], eax
add ebx, 4
jmp 0x1a41a1a
call dword [esi + 0x25e60c8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1a41a70
cmp al, 0xef
ja 0x1a41a63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1a41a45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1a41a52
mov ebp, dword [esi + 0x25e60d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1a41aa4
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x9af075
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9af09c
call fcn.00951578
mov dword [eax], esi
call fcn.00951565
push 0x16
pop esi
mov dword [eax], esi
call fcn.009521ba
mov eax, esi
jmp 0x9af0f1
test dword [ebp + 0xc], 0xfffffff9
jne 0x9af082
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9af0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0095158b
pop ecx
call fcn.00951565
mov eax, dword [eax]
jmp 0x9af0f1
test al, 0x10
jne 0x9af0ef
test al, 1
je 0x9af0ef
test byte [ebp + 0xc], 2
je 0x9af0ef
call fcn.00951578
mov dword [eax], 5
call fcn.00951565
mov dword [eax], 0xd
jmp 0x9af0c0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x501d70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502358
push 0x501f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x503454], 0xffffffff
mov dword [0x503458], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x503450]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x50344c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x50345c], ecx
call fcn.00501f60
mov eax, dword [0x503184]
test eax, eax
jne 0x501e01
push 0x501f50
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00501f30
push 0x50300c
push 0x503008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x503448]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x503444]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x503004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x501f0f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e75
cmp al, 0x22
jne 0x501e67
cmp byte [esi], 0x22
jne 0x501e7e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e8e
cmp al, 0x20
ja 0x501e8e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501e7e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x501eaf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x501eb4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x501ef4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x501e7e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501f0f
Function at 0x4057f1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405842
xor eax, eax
jmp 0x405869
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405869
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40583e
call esi
pop esi
leave
ret 4

Function at 0x4058a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058e6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405984
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d8b
mov edi, eax
cmp edi, 0xffffffff
je 0x4059c5
test byte [esp + 0x10], 1
push esi
je 0x4059a7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ad
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059b6
xor eax, eax
inc eax
jmp 0x4059c7
test byte [esp + 0x10], 4
jne 0x4059c5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x69007910
Capabilities:
Extract resource via kernel32 functions

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
sub esp, 0x48
mov eax, dword [ecx + 8]
test byte [0x6900d028], 8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x24], eax
jne 0x69007a00
mov dword [esp + 4], esi
mov dword [esp + 8], 5
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x69007aac
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
mov edi, eax
je 0x69007aac
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
test eax, eax
je 0x69007aa0
call fcn.69005b50
xor edi, edi
test eax, eax
mov edx, eax
je 0x690079da
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], eax
call sub.user32.dll_CreateDialogIndirectParamW
mov edx, dword [ebp - 0x1c]
sub esp, 0x14
mov edi, eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeResource]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
test esi, esi
je 0x69007ac0
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x69007a80
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov edx, 0x6900f94d
jne 0x69007a37
mov eax, esi
call fcn.69004550
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__s__p__p__Ix__n
mov dword [esp + 8], str.AtlAxCreateDialogW
mov dword [esp + 4], 0x6900d028
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], 3
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], eax
call fcn.690046d0
jmp 0x69007948
movzx eax, si
mov dword [esp], 0x6900f957
mov dword [esp + 4], eax
call fcn.690041b0
mov edx, eax
jmp 0x69007a37
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FreeResource]
sub esp, 4
lea esp, [ebp - 0x10]
xor edi, edi
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov edx, 0x6900f946
jmp 0x69007a37
Function at 0x69007de0
Capabilities:
Extract resource via kernel32 functions

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
sub esp, 0x48
test byte [0x6900d028], 8
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
jne 0x69007eb0
mov dword [esp + 8], 5
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x69007ea0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x69007ea0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
call fcn.69005b50
test eax, eax
mov edx, eax
je 0x69007ea0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [ebp - 0x20], edx
mov dword [esp + 8], eax
call sub.user32.dll_DialogBoxIndirectParamW
mov edx, dword [ebp - 0x20]
sub esp, 0x14
mov dword [ebp - 0x1c], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
test edx, edx
je 0x69007f60
mov eax, edx
shr eax, 0x10
test eax, eax
je 0x69007f40
mov dword [esp], edx
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
mov ecx, 0x6900f94d
mov edx, dword [ebp - 0x20]
jne 0x69007ef0
mov eax, edx
call fcn.69004550
mov edx, dword [ebp - 0x20]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.instance__p__name__s__owner__p__proc__p__param__Ix_n
mov dword [esp + 0x18], eax
mov dword [esp + 8], str.AtlAxDialogBoxW
mov dword [esp + 4], 0x6900d028
mov dword [esp], 3
mov dword [ebp - 0x20], edx
call fcn.690046d0
mov edx, dword [ebp - 0x20]
jmp 0x69007e12
movzx eax, dx
mov dword [esp], 0x6900f957
mov dword [ebp - 0x20], edx
mov dword [esp + 4], eax
call fcn.690041b0
mov edx, dword [ebp - 0x20]
mov ecx, eax
jmp 0x69007ef0
mov ecx, 0x6900f946
jmp 0x69007ef0