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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a5000]
push edi
jmp 0x6028da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6028e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6028d0
mov eax, 1
add ebx, ebx
jne 0x6028f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x602904
jne 0x602923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x602923
dec eax
add ebx, ebx
jne 0x602910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6028e8
add ebx, ebx
jne 0x60291f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x602975
xor ecx, ecx
sub eax, 3
jb 0x60293b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6029aa
sar eax, 1
mov ebp, eax
jmp 0x602946
add ebx, ebx
jne 0x602946
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x602914
inc ecx
add ebx, ebx
jne 0x602954
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x602914
add ebx, ebx
jne 0x602961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x602956
jne 0x602972
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x602956
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x602994
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x602986
jmp 0x6028d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x602994
add edi, ecx
jmp 0x6028d6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6029b2
cmp byte [edi], 0x11
jne 0x6029b2
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 0x6029b7
lea edi, [esi + 0x1fb000]
mov eax, dword [edi]
or eax, eax
je 0x602a2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31eeb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31f034]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6029e4
mov ecx, edi
jns 0x602a13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31f038]
or eax, eax
je 0x602a29
mov dword [ebx], eax
add ebx, 4
jmp 0x602a01
call dword [esi + 0x31f048]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x602a60
cmp al, 0xef
ja 0x602a53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x602a35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x602a42
mov ebp, dword [esi + 0x31f03c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x602a94
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
lea esi, [ebp - 0xc]
push 0x400000
push esi
call fcn.00402a02
add esp, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401096
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ecx]
mov edi, dword [ebp + 8]
mov esi, ecx
test eax, eax
je 0x4010b3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
xor eax, eax
mov dword [esi + 4], str.8A69D345_D564_463c_AFF1_A69D9E530F96
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x13], eax
mov dword [esi + 0xf], eax
push edi
call fcn.004010e8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, esi
push eax
call fcn.0040114e
pop esi
pop edi
pop ebp
ret 4

Function at 0x4010e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push 0xa
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x401143
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401143
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x401143
mov edi, eax
and eax, 1
jne 0x401143
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401143
and edi, 0xfffffffe
cmp word [edi + eax - 2], 0
jne 0x401143
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40114e
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, ecx
lea edi, [ecx + 0xc]
mov dword [ecx + 8], eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esi], eax
je 0x40126c
cmp dword [edi], 2
mov dword [ebp - 0x10], edi
jl 0x40122c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 2
push str.__system_level
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x4011f5
mov eax, dword [esi]
push str.__chrome_beta
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x4011fb
mov eax, dword [esi]
push str.__chrome_dev
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401204
mov eax, dword [esi]
push str.__chrome_sxs
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x40120d
mov eax, dword [esi]
push str.__cleanup
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401216
mov eax, dword [esi]
push str.__chrome_frame
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
jne 0x40121d
mov byte [esi + 0x16], 1
jmp 0x40121d
mov byte [esi + 0x14], 1
jmp 0x40121d
mov dword [esi + 4], str.8237E44A_0054_442C_B6B6_EA0509993955
jmp 0x40121d
mov dword [esi + 4], str.401C381F_E0DE_4B85_8BD8_3F3F14FBDA57
jmp 0x40121d
mov dword [esi + 4], str.4ea16ac7_fd5a_47c3_875b_dbf4a2008c20
jmp 0x40121d
mov dword [esi + 0x10], 1
mov eax, dword [ebp - 0x10]
cmp ebx, dword [eax]
jge 0x40122c
mov eax, dword [esi]
inc ebx
jmp 0x40118b
cmp byte [esi + 0x14], 0
jne 0x40125e
xor eax, eax
lea edi, [ebp - 0x18]
mov word [edi + 4], ax
mov word [edi], ax
push 2
push edi
push str.GoogleUpdateIsMachine
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 1
sete al
cmp word [edi], 0x31
sete cl
and cl, al
mov byte [esi + 0x14], cl
mov ecx, esi
call fcn.00401278
mov byte [esi + 0x15], al
mov al, 1
jmp 0x40126e
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x401358
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x406048]
test eax, eax
jne 0x4013cf
lea esi, [esp + 0x10]
push 0x208
push 0
push esi
call fcn.00401020
add esp, 0xc
mov edi, 0xfffffff4
mov ebx, 0x104
mov word [esp + 0x10], 0
push ebx
push esi
push dword [edi + 0x404280]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, ebx
jae 0x4013ba
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x406048], eax
jmp 0x4013bf
mov eax, dword [0x406048]
test eax, eax
jne 0x4013cf
add edi, 4
jne 0x40138e
mov eax, dword [0x406040]
jmp 0x401406
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [0x40603c], eax
push str.FDIDestroy
push dword [0x406048]
call esi
mov dword [0x406044], eax
push str.FDICopy
push dword [0x406048]
call esi
mov dword [0x406040], eax
xor ebx, ebx
cmp dword [0x40603c], 0
je 0x401520
cmp dword [0x406044], 0
je 0x401520
test eax, eax
je 0x401520
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + eax*2]
test eax, eax
jle 0x401448
cmp word [ebx], 0x5c
je 0x401448
add ebx, 0xfffffffe
cmp ebx, esi
ja 0x40143b
cmp ebx, esi
je 0x40151e
add ebx, 2
xor edx, edx
dec edx
mov ecx, ebx
call fcn.0040152a
sub ebx, esi
mov ecx, esi
mov edi, eax
mov dword [esp + 0xc], eax
sar ebx, 1
mov edx, ebx
call fcn.0040152a
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, eax
mov dword [esp + 8], eax
dec edx
call fcn.0040152a
xor ebx, ebx
test esi, esi
mov dword [esp + 4], eax
je 0x401501
test edi, edi
je 0x401501
test eax, eax
je 0x401501
xor ebx, ebx
lea eax, [esp + 0x10]
mov dword [esp], edi
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
push eax
push 0xffffffffffffffff
push 0x4015b0
push 0x4015d0
push 0x4015f0
push 0x401630
push 0x401670
push 0x401740
push 0x401760
call dword [0x40603c]
add esp, 0x24
test eax, eax
je 0x401501
mov edi, eax
push dword [ebp + 0xc]
push ebx
push 0x401780
push ebx
push esi
push dword [esp + 0x14]
push eax
call dword [0x406040]
add esp, 0x1c
test eax, eax
setne bl
push edi
call dword [0x406044]
add esp, 4
lea ecx, [esp + 4]
call fcn.00401828
lea ecx, [esp + 8]
call fcn.00401828
lea ecx, [esp + 0xc]
call fcn.00401828
jmp 0x401520
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401b45
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea edx, [esp + 0x10]
xorps xmm0, xmm0
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx], 0x44
movaps xmmword [edx], xmm0
push edx
push ecx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401be7
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], 0
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401c05
mov edi, 0x6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp edi, 3
je 0x401c2c
cmp edi, 2
jne 0x401c3e
mov ecx, dword [ebp + 0x14]
jmp 0x401c2f
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401bda
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esi], edi
jmp 0x401c31
mov ecx, dword [ebp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edi
jmp 0x401c34
Function at 0x40234d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x210
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0x218]
mov dword [ebp - 0xc], 0
mov word [esi + 0x208], bx
mov word [esi], bx
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x4023a3
lea eax, [ebp - 0xc]
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4023a3
mov bl, byte [ebp - 0xc]
and bl, 8
shr bl, 3
mov eax, ebx
add esp, 0x210
pop esi
pop ebx
pop ebp
ret

Function at 0x402509
Capabilities:
Create directory
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0x6c
push esi
push 0x104
push edi
call fcn.00402c62
add esp, 0xc
test al, al
je 0x402643
push 0x404542
push 0x104
push edi
call fcn.00402c9d
add esp, 0xc
test al, al
je 0x402643
mov eax, edi
mov edi, 0x104
push edi
push eax
call fcn.00402c3a
add esp, 8
sub edi, eax
mov ecx, eax
xor eax, eax
cmp edi, 0xb
jb 0x402645
lea edx, [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx - 4], 0xc
push edx
push esi
call fcn.00402449
add esp, 8
test al, al
je 0x402631
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov esi, 0xfffffff6
mov dword [eax + 4], 0
mov dword [eax], 0x6d
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add eax, 5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov ebx, 4
push ebx
lea edi, [ebp - 0x2c]
push edi
call sub.ADVAPI32.dll_SystemFunction036
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push ebx
push edi
call fcn.00402bd8
add esp, 0x10
cmp dword [ebp - 0x18], 0x103
ja 0x4025fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 + 0xa], 0
push str..tmp
push 0x104
mov eax, dword [ebp + 0xc]
mov ebx, eax
push eax
call fcn.00402c9d
add esp, 0xc
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
test eax, eax
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40264d
inc esi
jne 0x4025c8
jmp 0x40266c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 0x75
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x404464
push 0x104
push dword [ebp + 0xc]
call fcn.00402c9d
add esp, 0xc
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40267a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
sete al
jmp 0x402645
Function at 0x402685
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x218]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4026cd
mov bl, 1
push dword [ebp + 0x10]
push edi
push esi
call fcn.00402509
add esp, 0xc
test al, al
jne 0x402715
push 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x402713
push eax
push esi
call fcn.00402ef0
add esp, 8
xor ebx, ebx
cmp eax, esi
je 0x402715
mov word [eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], ebx
mov dword [eax], ebx
push eax
push edi
push esi
call fcn.00402509
add esp, 0xc
mov ebx, eax
jmp 0x402715
xor ebx, ebx
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402722
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x254
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
push ebx
call fcn.00402c3a
add esp, 8
mov edi, eax
push 0x404468
push esi
push ebx
call fcn.00402c9d
add esp, 0xc
test al, al
je 0x40283e
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x260]
push 0x250
push 0
push esi
call fcn.00401020
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402827
mov ecx, dword [ebp - 0x10]
mov edi, eax
lea esi, [ecx + 1]
cmp word [ebp - 0x2c], 0
mov ecx, 0x234
mov eax, 0x2c
lea edx, [ebp - 0x234]
cmove ecx, eax
lea eax, [ebp - 0x2c]
cmove eax, edx
cmp word [ebp + ecx - 0x260], 0x2e
jne 0x4027ca
movzx ecx, word [eax + 2]
test cx, cx
je 0x40280a
cmp cx, 0x2e
jne 0x4027ca
cmp word [eax + 4], 0
je 0x40280a
cmp esi, 0x103
ja 0x4027dc
mov ecx, dword [ebp - 0x10]
mov word [ebx + ecx*2 + 2], 0
push eax
push 0x104
push ebx
call fcn.00402c9d
add esp, 0xc
test al, al
je 0x40280a
test byte [ebp - 0x260], 0x10
jne 0x402801
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40280a
push ebx
call fcn.00402722
add esp, 4
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40278b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
cmp eax, 0x103
ja 0x402837
mov word [ebx + eax*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x254
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402849
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x668
lea esi, [ebp - 0x674]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push dword [ebp + 8]
push 0x104
push esi
call fcn.00402c62
add esp, 0xc
test al, al
je 0x4029a3
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402c9d
add esp, 0xc
test al, al
je 0x4029a3
push 0x404472
push 0x104
push esi
call fcn.00402c9d
add esp, 0xc
test al, al
je 0x4029a3
xor edi, edi
lea ebx, [ebp - 0x25c]
push 0x250
push edi
push ebx
call fcn.00401020
add esp, 0xc
push edi
push edi
push 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp eax, 0xffffffff
je 0x4029a3
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x468]
mov word [ecx + 0x208], ax
mov word [ecx], ax
test byte [ebp - 0x25c], 0x10
je 0x40298a
cmp word [ebp - 0x28], 0
mov eax, 0x234
mov ecx, 0x2c
lea ebx, [ebp - 0x28]
lea edx, [ebp - 0x230]
cmove eax, ecx
cmove ebx, edx
cmp word [ebp + eax - 0x25c], 0x2e
jne 0x402947
movzx eax, word [ebx + 2]
test ax, ax
je 0x40298a
cmp ax, 0x2e
jne 0x402947
cmp word [ebx + 4], 0
je 0x40298a
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.00402c62
add esp, 0xc
test al, al
je 0x40298a
push ebx
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.00402c9d
add esp, 0xc
test al, al
je 0x40298a
lea eax, [ebp - 0x468]
push eax
call fcn.00402722
add esp, 4
lea eax, [ebp - 0x25c]
push eax
push esi
call edi
test eax, eax
jne 0x4028fb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x668
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4029ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20c
lea esi, [ebp - 0x214]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4029f8
mov edi, 0xfffffff8
push dword [edi + 0x404484]
push esi
call fcn.00402849
add esp, 8
add edi, 4
jne 0x4029e4
add esp, 0x20c
pop esi
pop edi
pop ebp
ret
Function at 0x402a02
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x660
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call fcn.004029ae
lea edi, [esp + 0x1c]
xor eax, eax
mov ecx, edi
mov dword [esp], eax
mov dword [esp + 4], eax
call fcn.00401040
mov ecx, edi
push ebx
call fcn.00401096
test al, al
je 0x402a55
cmp byte [esp + 0x32], 0
je 0x402a69
mov dword [esi], 0x76
mov dword [esi + 4], 0
jmp 0x402bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0x65
mov dword [esi + 4], eax
jmp 0x402bc3
cmp dword [esp + 0x2c], 1
jne 0x402a81
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov dword [esi + 4], eax
jmp 0x402bb6
xor eax, eax
lea ecx, [esp + 0x450]
mov word [ecx + 0x208], ax
mov word [ecx], ax
mov eax, esp
push eax
push ecx
push ebx
call fcn.00402685
add esp, 0xc
test al, al
je 0x402bba
push edi
call fcn.00401922
add esp, 4
lea edx, [esp + 0x38]
xor eax, eax
lea ecx, [esp + 0x244]
mov word [ecx + 0x208], ax
mov word [edx + 0x208], ax
mov word [ecx], ax
mov word [edx], ax
push edx
push ecx
lea eax, [esp + 0x458]
push eax
push ebx
push edi
lea ebx, [esp + 0x1c]
push ebx
call fcn.00401dc4
add esp, 0x18
mov eax, ebx
mov ebx, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
dec ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test ebx, ebx
jne 0x402b42
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x248]
push eax
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00402149
add esp, 0x10
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 8], 0
push 2
lea eax, [esp + 0xc]
push eax
push 0x404568
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push 0x80000001
call fcn.00403176
add esp, 0x14
test al, al
je 0x402b78
cmp word [esp + 8], 0x30
je 0x402b9d
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x244]
push eax
call ebx
lea eax, [esp + 0x38]
push eax
call ebx
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esp + 0x14]
push ebx
push dword [esp + 0x1c]
push edi
call fcn.00401893
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ebx
mov dword [esi], eax
jmp 0x402bc3
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
lea ecx, [esp + 0x1c]
call fcn.00401062
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f42
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402ff3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x402ff5
mov edi, dword [ebp + 8]
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402ff5
test esi, esi
je 0x402fda
xor ebx, ebx
mov edi, esi
mov eax, 0x800000
sub edi, ebx
cmp edi, eax
cmovae edi, eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
add eax, ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fea
add ebx, edi
cmp esi, ebx
ja 0x402fa8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
jmp 0x402ff5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40305e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x10]
xor eax, eax
add edx, edx
mov dword [ebx], edx
lea edx, [ebp - 0x14]
mov dword [edx], eax
push ebx
push edi
push edx
push eax
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4030c7
cmp dword [ebp - 0x14], 1
mov eax, 0x32
jne 0x4030c7
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
ja 0x4030a9
mov word [edi], 0
jmp 0x4030c5
shr ecx, 1
xor eax, eax
cmp word [edi + ecx*2 - 2], 0
je 0x4030c7
cmp ecx, dword [ebp + 0x10]
mov eax, 0xea
jae 0x4030c7
mov word [edi + ecx*2], 0
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4030d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
xor edx, edx
lea esi, [ebp - 0x14]
mov dword [esi], edx
mov dword [edi], 4
push edi
push ebx
push esi
push edx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40311b
cmp dword [ebp - 0x14], 4
mov eax, 0x32
jne 0x40311b
xor ecx, ecx
cmp dword [ebp - 0x10], 4
mov eax, 0xe8
cmove eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8