joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5648b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5bc3e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5648f9
cmp word [ebx], dx
jne 0x5648f9
or byte [eax + edi + 0x28], 4
jmp 0x5648fe
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x564a61
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x564a41
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x56493f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x564975
cmp eax, edx
jae 0x564983
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x56491a
jmp 0x564a61
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x564a3c
cmp dword [ebp - 0x18], 0
je 0x564a3c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5bc3e0]
test byte [eax + edi + 0x28], 0x48
je 0x564a12
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5649d6
mov word [esi], cx
jmp 0x564a0d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5bc3e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5bc3e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5bc3e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x564a61
pop eax
cmp word [ebp - 4], ax
jne 0x564a22
cmp esi, ebx
jne 0x564a22
mov word [esi], ax
jmp 0x564a5e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005642d7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x564a61
push 0xd
pop eax
jmp 0x564a1d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5bc3e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x564a5b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x564a61
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x567c46
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5b60cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x567c91
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00567de1
test al, al
jne 0x567c8b
sub edx, 2
cmp edx, edi
jne 0x567c71
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x567cb3
lea eax, [edi + 2]
cmp edx, eax
je 0x567cb3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00567b92
add esp, 0x10
jmp 0x567dad
push esi
lea ecx, [ebp - 0x255]
call fcn.00567de1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x567cf6
push dword [ebp - 0x25c]
jmp 0x567ca3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x567d33
cmp word [ebp - 0x226], 0
je 0x567d54
cmp word [ebp - 0x226], ax
jne 0x567d33
cmp word [ebp - 0x224], 0
je 0x567d54
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00567b92
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x567da0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x567d0d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x567d88
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x567dad
push 0x5679c2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0056ead0
add esp, 0x10
jmp 0x567d7d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005475b3
leave
ret
Function at 0x5686c3
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 0x568760
push ebx
push esi
call fcn.0056868c
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.00566277
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x56870d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56875f
push edi
push eax
call fcn.00561558
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x56872d
call fcn.0055fc87
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56875e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00566277
add esp, 0x20
test eax, eax
jne 0x56874c
push edi
call fcn.0055fc87
jmp 0x568754
push ebx
call fcn.0055fc87
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 0x568763
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x568774
pop esi
ret
push ebx
push edi
push esi
call fcn.0056868c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00561558
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x56879c
push ebx
push esi
push edi
call fcn.00548c50
add esp, 0xc
push 0
call fcn.0055fc87
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x568ef6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568a11

Function at 0x56ae62
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0055f99c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56aed1
cmp esi, dword [ebp - 4]
je 0x56aecc
cmp dword [ebp + 0xc], 0
je 0x56aecc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x56aea9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0056a9b4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x56aed3
xor eax, eax
inc eax
jmp 0x56aed3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x56af38
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b60cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0055f99c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0055f99c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x56afaf
cmp word [ecx], dx
je 0x56afaf
mov eax, dword [0x584e8c]
push edi
dec eax
push eax
push 0x584d78
call fcn.0056aed7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x56b022
cmp word [eax], dx
je 0x56b022
mov eax, dword [edi]
test eax, eax
je 0x56afd3
cmp word [eax], dx
je 0x56afd3
lea eax, [ebp - 0x10]
push eax
call fcn.0056a8ba
jmp 0x56afdc
lea eax, [ebp - 0x10]
push eax
call fcn.0056a955
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x56b04c
mov eax, dword [0x584d74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x584a68
call fcn.0056aed7
add esp, 0xc
test al, al
je 0x56b04c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x56b017
cmp word [eax], di
je 0x56b017
lea eax, [ebp - 0x10]
push eax
call fcn.0056a8ba
pop ecx
jmp 0x56b04e
lea eax, [ebp - 0x10]
push eax
call fcn.0056a955
jmp 0x56b014
mov eax, dword [edi]
test eax, eax
je 0x56b039
cmp word [eax], dx
je 0x56b039
lea eax, [ebp - 0x10]
push eax
call fcn.0056a86f
pop ecx
jmp 0x56b04c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x56b117
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0056ad5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x56b117
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x56b117
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x56b117
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x56b0a4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005610f9
test ebx, ebx
je 0x56b112
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005610f9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56b117
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56b117
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0056f13d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x56b119
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005475b3
leave
ret
Function at 0x56f255
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0056f1d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x56f3c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x56f3c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x56f379
jg 0x56f2b1
test eax, eax
je 0x56f36f
push 1
push 0x1000
call fcn.0055fcc1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x56f2d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x56f366
push 0x8000
push ebx
call fcn.00559b56
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x56f2fd
jg 0x56f2f8
cmp ecx, 0x1000
jb 0x56f2fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00563eb5
add esp, 0x10
cmp eax, 0xffffffff
je 0x56f342
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x56f2f8
jl 0x56f329
test ecx, ecx
jne 0x56f2ea
push dword [ebp - 0xc]
push ebx
call fcn.00559b56
push esi
call fcn.0055fc87
add esp, 0xc
xor ebx, ebx
jmp 0x56f3d2
cmp byte [edi + 0x24], 0
je 0x56f359
cmp dword [edi + 0x20], 5
jne 0x56f359
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x56f364
mov ebx, dword [edi + 0x18]
jmp 0x56f366
xor ebx, ebx
push esi
call fcn.0055fc87
pop ecx
jmp 0x56f3d2
test ecx, ecx
jg 0x56f33b
jl 0x56f379
test eax, eax
jae 0x56f33b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005642d7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x56f399
cmp byte [edi + 0x1c], 0
je 0x56f33b
jmp 0x56f3ca
push ebx
call fcn.00566c59
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x56f33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x56f3d2
cmp byte [edi + 0x1c], 0
je 0x56f3cf
mov ebx, dword [edi + 0x18]
jmp 0x56f3d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005642d7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x570a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x570a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x570a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100032d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x1000334c
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x10003305
push edi
mov ecx, esi
call fcn.1001b370
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x1000332d
mov ecx, dword [esi]
test ecx, ecx
je 0x10003331
push dword [ecx - 8]
push ecx
call fcn.1003372d
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x1000334c
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1000334c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.10002bb0
int3

Function at 0x10003d60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push eax
push 0x40
push edi
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10003dc6
push edi
push dword [ebp - 8]
push esi
call fcn.1002cae0
add esp, 0xc
push edi
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003dd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 8]
push eax
push 0x40
mov esi, ecx
mov byte [ebp - 1], 0xe9
push 1
push esi
mov ebx, edx
mov dword [ebp - 8], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10003e28
mov al, byte [ebp - 1]
push 1
push esi
mov byte [esi], al
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
inc esi
push 4
sub ebx, esi
push esi
sub ebx, 4
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10003e6c
push 4
push esi
mov dword [esi], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003e80
Capabilities:
Get common file path
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1007c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10003f79
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x10003f79
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x20]
add ecx, edi
push ebx
push esi
add eax, edi
mov dword [ebp - 0x424], ecx
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x420], eax
add esi, edi
push 0x104
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x424]
xor ebx, ebx
mov edx, eax
mov dword [ebp - 0x428], edx
cmp dword [ecx + 0x18], ebx
jbe 0x10003f77
mov eax, dword [ebp - 0x420]
sub eax, esi
mov dword [ebp - 0x420], eax
nop dword [eax + eax]
mov eax, dword [eax + esi]
add eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003f5c
mov ecx, dword [esi]
mov edx, eax
add ecx, edi
call fcn.10003dd0
mov eax, dword [ebp - 0x424]
inc ebx
mov edx, dword [ebp - 0x428]
add esi, 4
cmp ebx, dword [eax + 0x18]
mov eax, dword [ebp - 0x420]
jb 0x10003f40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10027b68
mov esp, ebp
pop ebp
ret

Function at 0x10004540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push esi
push edi
push eax
call fcn.10002730
mov esi, eax
add esp, 4
lea ecx, [esi*2 + 2]
push ecx
call fcn.100335fb
add esp, 4
lea edx, [esi + 1]
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
push esi
call fcn.100026b0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.100335f6
add esp, 4
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x10004680
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060f90
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1007c00c]
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, edx
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push 0x104
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 0
call fcn.10017a90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
sub eax, esi
sar eax, 1
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x3c], eax
jb 0x100046e4
mov ecx, dword [edi]
jmp 0x100046e6
mov ecx, edi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x3c]
jbe 0x1000471f
push eax
lea ecx, [ebp - 0x38]
call fcn.10017a00
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
sub eax, esi
sar eax, 1
cmp dword [edi + 0x14], 8
jb 0x10004712
mov edi, dword [edi]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
jmp 0x10004722
mov edi, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x1000473f
xor ecx, ecx
jmp 0x10004753
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004744
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10018f90
mov byte [ebp - 4], 1
xor eax, eax
push edi
mov dword [ebx + 0x14], 7
mov ecx, ebx
mov dword [ebx + 0x10], 0
push eax
mov word [ebx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.10019090
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10004796
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1001b3d0
mov ecx, dword [ebp - 0x30]
xor eax, eax
sub ecx, esi
mov dword [ebp - 0x14], 7
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1001b3d0
mov eax, ebx
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.10027b68
mov esp, ebp
pop ebp
ret
Function at 0x10004e30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061098
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1007c00c]
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 esi, edx
mov edi, ecx
mov ebx, esi
mov byte [ebp - 0x41], 0
sub ebx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x10004e70
lea ecx, [esi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10004e83
mov eax, dword [0x1006cdb4]
mov dword [ecx], eax
mov eax, dword [str.etect]
mov dword [ecx + 4], eax
mov eax, dword [0x1006cdbc]
mov dword [ecx + 8], eax
mov eax, dword [0x1006cdc0]
push 0x1006cdc4
push esi
mov dword [ecx + 0xc], eax
call fcn.1003aa6f
add esp, 8
test eax, eax
je 0x10004f07
push eax
call fcn.10034290
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ebx + edi - 2], ax
test ax, ax
jne 0x10004ed0
add esi, 0xfffffffe
mov cx, word [esi + 2]
add esi, 2
test cx, cx
jne 0x10004ee3
mov edi, esi
mov al, byte [ebp - 0x41]
mov ecx, 8
mov esi, str.GreenChrome.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x10004f87
push 0x19
xor eax, eax
mov dword [ebp - 0x14], 7
push str._appdata_GreenChrome.ini
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10018f90
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10004680
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10004f51
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1001b3d0
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
cmp edx, 8
cmovae ecx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x10004f60
mov bl, 1
cmp edx, 8
jb 0x10004f85
lea ecx, [edx + 1]
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.1001b3d0
mov al, bl
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.10027b68
mov esp, ebp
pop ebp
ret

Function at 0x10004fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x10082018], 0
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
je 0x10004fe7
mov ecx, 0x10082018
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x10004fd0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.10004e30
mov edi, dword [ebp + 0xc]
mov esi, 0x10082018
mov bl, al
mov edx, edi
sub esi, edi
nop dword [eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x10005000
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10005036
lea eax, [ebp + 0xc]
test bl, bl
push eax
mov eax, str.CONFIG
mov edx, str.CONFIG_UAC
cmove edx, eax
call fcn.1001c650
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret