joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410dea
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
xor ecx, ecx
cmp edi, esi
jbe 0x410e14
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], esi
je 0x410e6f
mov dword [eax - 4], esi
mov byte [eax], 0
inc ecx
add eax, 0x10
cmp ecx, edi
jb 0x410e01
mov eax, edi
imul eax, eax, 0x24
push ebx
push 0x40
push 0x3000
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
je 0x410e7b
mov dword [ebp - 4], esi
cmp edi, esi
jbe 0x410e63
mov esi, dword [ebp + 8]
add esi, 8
mov edi, dword [esi - 8]
push ebx
push dword [esi - 4]
call fcn.00431308
test eax, eax
je 0x410e63
mov dword [esi], ebx
add ebx, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
add esi, 0x10
cmp eax, dword [ebp + 0xc]
jb 0x410e3e
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x410e73
mov al, 1
jmp 0x410e7d
xor al, al
jmp 0x410e7e
mov ecx, dword [ebp + 8]
call fcn.00410d12
xor al, al
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x411c22
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 2
mov dword [ebp - 4], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x411c73
mov eax, dword [ebp - 4]
test eax, eax
je 0x411c73
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
cmp word [esi], cx
je 0x411c7b
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x411c62
cmp ecx, 0x5c
jne 0x411c68
push 0x7c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x411c55
jmp 0x411c7b
push 0x39
pop eax
call fcn.0040aee3
pop esi
leave
ret

Function at 0x412026
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
mov esi, ecx
push edi
mov edi, eax
test si, si
je 0x41205a
push 2
mov eax, esi
pop edx
call fcn.00411f8c
test al, al
je 0x41205a
mov edi, dword [ebp + 8]
push 0x17
mov eax, esi
pop edx
call fcn.00411f8c
mov ax, si
jmp 0x4120a8
push 2
xor eax, eax
pop edx
call fcn.00411f8c
test al, al
je 0x4120a6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [edi]
mov dword [ebp - 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x412096
mov ax, word [ebp - 0x8a]
rol ax, 8
movzx esi, ax
jmp 0x412048
mov esi, dword [edi]
call fcn.0042facd
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x41236e
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test esi, esi
je 0x41249f
test edi, edi
je 0x41249f
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41249f
mov ecx, dword [edi + 0x3c]
cmp ecx, 0x400
jg 0x41249f
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x41249f
movzx eax, word [ecx + 4]
mov edx, 0x14c
cmp ax, dx
jne 0x412422
add edx, 0xffffffbf
cmp word [ecx + 0x18], dx
jne 0x412422
or dword [esi + 0x10], 0x10000
and dword [ebp - 4], 0
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov dword [esi + 4], ecx
movzx edx, word [ecx + 0x14]
xor ebx, ebx
xor al, al
lea edx, [edx + ecx + 0x18]
cmp bx, word [ecx + 6]
jae 0x41248e
lea ebx, [edx + 0xc]
test al, al
jne 0x412495
mov eax, dword [ebx]
push dword [ebx - 4]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [esi + 4]
movzx ecx, word [ecx + 6]
dec eax
neg eax
sbb al, al
inc al
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], ecx
jb 0x4123f1
jmp 0x41248a
mov edx, 0x8664
cmp ax, dx
jne 0x41249f
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x41249f
or dword [esi + 0x10], 0x10000
and dword [ebp - 4], 0
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov dword [esi + 8], ecx
movzx edx, word [ecx + 0x14]
xor ebx, ebx
xor al, al
lea edx, [edx + ecx + 0x18]
cmp bx, word [ecx + 6]
jae 0x41248e
lea ebx, [edx + 0xc]
test al, al
jne 0x412495
mov eax, dword [ebx]
push dword [ebx - 4]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [esi + 8]
movzx ecx, word [ecx + 6]
dec eax
neg eax
sbb al, al
inc al
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], ecx
jb 0x41245f
test al, al
jne 0x412495
or dword [esi + 0x10], 0x20000
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov al, 1
jmp 0x4124a1
xor al, al
pop ebx
leave
ret 4
Function at 0x4124a6
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
push esi
push edi
cmp dword [ebp + 8], ecx
je 0x4125a9
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x4125a9
cmp dword [ebp + 0x10], ecx
je 0x4125a9
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4125a9
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x4125a9
movzx eax, word [esi + 4]
mov edx, 0x14c
cmp ax, dx
je 0x412506
mov edx, 0x8664
cmp ax, dx
jne 0x4125a9
movzx eax, word [esi + 0x14]
lea eax, [eax + esi + 0x18]
mov dword [ebp + 0x10], eax
cmp eax, ecx
je 0x4125a9
movzx edx, word [esi + 6]
imul edx, edx, 0x28
mov edi, dword [eax + edx - 0x20]
add edi, dword [eax + edx - 0x1c]
mov eax, dword [esi + 0x50]
push 0x40
cmp edi, eax
push 0x1000
cmovb edi, eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4125a9
push edi
push ebx
call fcn.0042b126
push dword [esi + 0x54]
push dword [ebp + 0xc]
push ebx
call fcn.0042b0c1
xor eax, eax
xor edx, edx
cmp ax, word [esi + 6]
jae 0x412588
mov eax, dword [ebp + 0x10]
add eax, 0x14
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push dword [eax - 4]
push ecx
mov ecx, dword [eax - 8]
add ecx, ebx
push ecx
call fcn.0042b0c1
movzx ecx, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, ecx
jb 0x412568
mov esi, dword [ebp + 8]
push 0x700
mov edi, ebx
call fcn.0041236e
test al, al
jne 0x4125b2
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov eax, esi
or dword [eax + 0x10], 0x1000000
mov al, 1
jmp 0x4125ab

Function at 0x412bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp word [0x437258], 0
push ebx
push esi
mov ebx, 0x437258
mov esi, 0x437460
jne 0x412bee
push 3
call fcn.0040d3ec
mov ecx, ebx
call fcn.0042bc28
add eax, eax
push eax
push ebx
push esi
call fcn.0042b0c1
xor ecx, ecx
push esi
mov word [eax + 0x437460], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp byte [esp + 0xc], 0
je 0x412c1c
cmp byte [0x435db4], 1
jbe 0x412c1c
push esi
call fcn.004326bc
push esi
call fcn.0042fe1b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412c1c
push ebx
call fcn.0042fe1b
pop esi
pop ebx
ret 4
Function at 0x413cc3
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
push ebx
push esi
push edi
mov dword [esp + 0x28], edx
mov ebx, ecx
mov byte [esp + 0x13], 0
cmp edx, 1
jbe 0x413ef4
mov esi, dword [ebx + 4]
xor edi, edi
cmp word [esi], di
je 0x413ef4
call fcn.0043197c
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
cmp eax, 1
jne 0x413e36
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x3c]
or eax, 0xffffffff
call fcn.0042c022
test al, al
je 0x413e59
lea eax, [esp + 0x80]
push eax
call fcn.004324ba
test al, al
je 0x413e2b
push dword [ebx + 4]
mov dword [esp + 0x1c], edi
call fcn.0043187f
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x413d5d
push dword [esp + 0x3c]
call fcn.00431aa1
mov dword [esp + 0x14], eax
jmp 0x413d65
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x413e22
lea ecx, [esp + 0x80]
push ecx
push ecx
call fcn.0043293a
test al, al
je 0x413e22
lea esi, [esp + 0x48]
call fcn.0040ce63
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
cmp dword [esp + 0x18], edi
je 0x413dce
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x2c]
or eax, 0xffffffff
call fcn.0042c022
test al, al
je 0x413dce
push dword [esp + 0x2c]
lea esi, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.0040aadc
lea esi, [esp + 0x2c]
call fcn.0042c010
xor edi, edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [0x435f54]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x18], edi
je 0x413e08
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 1
push edi
push edi
lea edi, [esp + 0x50]
call fcn.0042e4b8
push dword [esp + 0x1c]
mov byte [esp + 0x17], al
call fcn.0042b085
xor edi, edi
push dword [esp + 0x14]
call fcn.0042b085
lea esi, [esp + 0x3c]
call fcn.0042c010
jmp 0x413e59
push 0x104
lea eax, [esp + 0x84]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x413e59
mov byte [esp + 0x13], 1
push dword [esp + 0x20]
call fcn.0042b085
cmp byte [esp + 0x13], 0
je 0x413ef4
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, 2
jbe 0x413e92
add eax, 0xfffffffe
push eax
add ebx, 8
push ebx
call fcn.0042bb43
mov esi, eax
cmp esi, edi
jne 0x413e92
mov byte [esp + 0x13], 0
jmp 0x413ef4
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push esi
lea eax, [esp + 0x90]
push eax
call fcn.0042de20
test eax, eax
setne byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x413ed2
mov edi, dword [esp + 0x34]
call fcn.00426627
push dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0x2c]
call edi
jmp 0x413eee
push 1
push edi
push esi
lea eax, [esp + 0x8c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg byte [esp + 0x13]
push esi
call fcn.0042b085
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4147b5
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push edi
push 0x40
push 0x1000
push 0x28
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, edi
jne 0x4147d6
xor al, al
jmp 0x41488a
push 0x28
pop eax
call fcn.0042b055
mov edx, eax
cmp edx, edi
jne 0x4147f3
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4147cf
push 0x28
push edi
push edx
call fcn.0042b138
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], edi
mov dword [edx + 8], edi
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], edi
mov byte [esi], 0xb8
mov dword [esi + 1], edx
mov byte [esi + 5], 0xe9
mov eax, 0x415e06
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov dword [edx + 0x18], esi
lea eax, [esi + 0xa]
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov byte [eax + 5], 0xe9
mov ecx, 0x415e22
sub ecx, esi
sub ecx, 0x14
mov dword [eax + 6], ecx
mov dword [edx + 0x1c], eax
lea eax, [esi + 0x14]
mov ecx, 0x415e38
sub ecx, esi
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov byte [eax + 5], 0xe9
sub ecx, 0x1e
mov dword [eax + 6], ecx
mov dword [edx + 0x20], eax
lea eax, [esi + 0x1e]
mov ecx, 0x415e5c
sub ecx, esi
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov byte [eax + 5], 0xe9
sub ecx, 0x28
mov dword [eax + 6], ecx
mov dword [edx + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
ret 8
Function at 0x4153e1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4153f5
push 0xfffffffffffffffe
pop eax
jmp 0x415505
push edi
push 0x40
push 0x1000
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
jne 0x415414
push 0xfffffffffffffffe
pop eax
jmp 0x415504
push esi
push 0x34
pop eax
call fcn.0042b055
mov esi, eax
cmp esi, ebx
jne 0x41542b
push 0x8000
push ebx
jmp 0x41545b
push 0xc
pop eax
call fcn.0042b055
mov ebx, eax
test ebx, ebx
je 0x41544e
mov eax, dword [ebp + 0x14]
call fcn.0042b055
mov dword [ebp - 4], eax
test eax, eax
jne 0x41546a
push ebx
call fcn.0042b085
push esi
call fcn.0042b085
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xfffffffffffffffe
pop eax
jmp 0x415503
push 0x34
push 0
push esi
call fcn.0042b138
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
mov edx, dword [ecx]
mov dword [ebx], edx
mov ecx, dword [ecx + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 8], ecx
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], esi
mov dword [esi], esi
mov ecx, dword [eax + 4]
push eax
push dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edi
mov dword [esi + 0x30], ecx
mov edx, 0x415d81
sub edx, edi
push ebx
push dword [ebp + 0xc]
sub edx, 0xa
mov dword [edi + 6], edx
mov edx, dword [ebp + 0x1c]
mov byte [edi], 0xb8
mov dword [edi + 1], esi
mov byte [edi + 5], 0xe9
push dword [ecx + 0x10]
mov dword [edx], esi
call fcn.0041463e
cmp eax, 0xffffffff
je 0x415503
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x18]
mov dword [edx + 4], ecx
mov dword [esi + 0x1c], eax
pop esi
pop edi
pop ebx
leave
ret 0x18
Function at 0x416cd9
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push ebx
push esi
push 0x5f
lea esi, [ebp - 0x8c]
pop eax
call fcn.0040aee3
lea eax, [ebp - 0x49c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x416e5a
lea eax, [ebp - 0x49c]
push eax
push eax
mov eax, esi
call fcn.0043293a
test al, al
je 0x416e5a
push 0x61
lea esi, [ebp - 0x6c]
pop eax
call fcn.0040aee3
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x6a4]
push eax
mov eax, esi
call fcn.0043293a
test al, al
je 0x416e5a
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416e5a
push 0x62
lea esi, [ebp - 0x38]
pop eax
call fcn.0040aee3
push 0x63
lea esi, [ebp - 0x50]
pop eax
call fcn.0040aee3
push 0x64
lea esi, [ebp - 0x10]
pop eax
call fcn.0040aee3
mov byte [ebp - 1], bl
push edi
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xa
pop edx
lea edi, [ebp - 0x24]
call fcn.0042bebe
pop ecx
pop ecx
cmp eax, 1
jl 0x416e59
lea eax, [ebp - 0x6a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416e59
lea eax, [ebp - 0x6a4]
push eax
push 0x104
lea eax, [ebp - 0x294]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x416e4c
lea eax, [ebp - 0x294]
cmp word [ebp - 0x294], bx
je 0x416e10
cmp word [eax], 0x2f
jne 0x416e08
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x416dfc
cmp esi, 1
jne 0x416e3a
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x294]
call fcn.0043293a
test al, al
je 0x416e4c
lea ecx, [ebp - 0x8ac]
jmp 0x416e40
lea ecx, [ebp - 0x294]
mov edx, dword [ebp + 8]
call fcn.00416e60
test al, al
je 0x416e59
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x416d88
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push esi
push edi
push 0x60
lea esi, [ebp - 0x1c]
pop eax
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.0040aee3
push edi
lea eax, [ebp - 0x36c]
push eax
mov eax, esi
call fcn.0043293a
test al, al
je 0x416f41
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x416f41
push ebx
push 0x65
lea edi, [ebp - 0x164]
pop eax
xor bl, bl
call fcn.0040aead
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
mov edi, 0x146
push edi
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x416f1e
cmp dword [ebp - 8], edi
jne 0x416f1e
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x416f18
call fcn.0042bc16
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x416f1c
cmp dword [ebp - 8], edi
jne 0x416f1c
mov bl, 1
jmp 0x416f1e
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
jne 0x416f41
lea eax, [ebp - 0x36c]
push eax
call fcn.004323be
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x419d3b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
push edi
push 0x5a
lea esi, [esp + 0x24]
pop eax
call fcn.0040aee3
mov eax, esi
mov dword [esp + 8], eax
xor edi, edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push 0x21
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x419dd5
push 0x5b
lea esi, [esp + 0x1c]
pop eax
call fcn.0040aee3
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, 0x419cb2
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.004327de
lea eax, [esp + 0x30]
push eax
push eax
lea eax, [esp + 0x20]
call fcn.0043293a
test al, al
je 0x419dd5
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.004327de
test bl, 2
je 0x419dec
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x419fae
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1000
call fcn.0042b055
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x419fe3
push esi
call fcn.0042b085
xor al, al
jmp 0x41a0bf
mov ebx, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0x419f65
push dword [ebp + 8]
call ebx
push 0x28
pop edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [eax], esi
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], esi
mov byte [esp + 0x1b], 1
call fcn.0042b138
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
push esi
push 8
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x41a053
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41a089
lea eax, [ebp + 0xc]
push eax
call fcn.0042ff61
jmp 0x41a01e
cmp dword [esp + 0x30], esi
je 0x41a08e
mov eax, dword [edi]
add eax, dword [esp + 0x30]
mov esi, dword [ebp + 0x10]
call fcn.0042b000
test al, al
je 0x41a089
push dword [esp + 0x30]
mov eax, esi
mov eax, dword [eax]
push dword [esp + 0x14]
add eax, dword [edi]
push eax
call fcn.0042b0c1
mov eax, dword [esp + 0x30]
add dword [edi], eax
xor esi, esi
jmp 0x41a01e
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x14]
inc eax
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
push eax
push dword [ebp + 8]
call ebx
push dword [esp + 0x10]
call fcn.0042b085
cmp byte [esp + 0xf], 0
jne 0x41a0bb
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0042b085
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ae88
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor bl, bl
jmp 0x41aeb3
cmp byte [ebp + 0x10], 0
jne 0x41aea2
cmp bl, 0xa
je 0x41aecc
movzx eax, bl
add eax, 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc bl
push 0x20
push edi
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.0043217c
test al, al
je 0x41ae97
mov al, 1
jmp 0x41aece
xor al, al
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41af90
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [ebp + 8]
test eax, eax
je 0x41affd
push edi
push dword [ebp + 0xc]
call fcn.0042fe89
mov edi, eax
test edi, edi
je 0x41aff3
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41afed
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x4096a4
push eax
call fcn.0042bf39
add esp, 0xc
test eax, eax
jle 0x41afec
push dword [ebp + 8]
push esi
call fcn.0042de7b
push dword [ebp + 8]
call fcn.0042b085
pop esi
push edi
call fcn.0042b085
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret 0x10
Function at 0x41c041
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf24
push ebx
push esi
push edi
push 1
lea ebx, [esp + 0x8b4]
call fcn.0040d3ec
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, ebx
push eax
call esi
push 2
lea ebx, [esp + 0x4a4]
call fcn.0040d3ec
mov eax, ebx
push eax
call esi
push 3
lea ebx, [esp + 0x6ac]
call fcn.0040d3ec
mov eax, ebx
push eax
call esi
or dword [0x435b48], 2
push 0
call fcn.0041af5a
call fcn.0040f81e
lea ecx, [esp + 0x8b0]
call fcn.00432723
lea ecx, [esp + 0x4a0]
call fcn.00432723
mov ecx, ebx
call fcn.00432723
push 4
lea ebx, [esp + 0x29c]
call fcn.0040d3ec
mov eax, ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x8b4]
push eax
call esi
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x4a4]
push eax
call esi
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x6ac]
push eax
call esi
push 0x3a
lea edi, [esp + 0x14]
pop eax
call fcn.0040aead
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x2a0]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0x2ac]
push eax
mov eax, edi
push eax
mov edi, 0x474
lea esi, [esp + 0xad4]
call fcn.0042bf02
add esp, 0x1c
test eax, eax
jle 0x41c178
mov eax, esi
push eax
call fcn.0042e019
cmp dword [0x435f58], 0xffffffff
jne 0x41c189
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c192
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
lea eax, [ebp - 0xa4]
push eax
xor esi, esi
mov dword [ebp - 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41c27b
push 2
pop ecx
cmp dword [ebp - 0x94], ecx
jne 0x41c27b
xor eax, eax
inc eax
cmp byte [ebp + 0x76], al
jne 0x41c22f
cmp dword [ebp - 0xa0], 5
jne 0x41c202
cmp dword [ebp - 0x9c], esi
jne 0x41c1ee
mov esi, eax
jmp 0x41c27b
cmp dword [ebp - 0x9c], eax
je 0x41c1fe
cmp dword [ebp - 0x9c], ecx
jne 0x41c27b
mov esi, ecx
jmp 0x41c27b
cmp dword [ebp - 0xa0], 6
jne 0x41c27b
cmp dword [ebp - 0x9c], esi
jne 0x41c217
push 4
jmp 0x41c27a
cmp dword [ebp - 0x9c], eax
jne 0x41c223
push 6
jmp 0x41c27a
cmp dword [ebp - 0x9c], ecx
jne 0x41c27b
push 8
jmp 0x41c27a
cmp byte [ebp + 0x76], cl
je 0x41c23a
cmp byte [ebp + 0x76], 3
jne 0x41c27b
cmp dword [ebp - 0xa0], 5
jne 0x41c24f
cmp dword [ebp - 0x9c], ecx
jne 0x41c27b
push 3
jmp 0x41c27a
cmp dword [ebp - 0xa0], 6
jne 0x41c27b
cmp dword [ebp - 0x9c], esi
jne 0x41c264
push 5
jmp 0x41c27a
cmp dword [ebp - 0x9c], eax
jne 0x41c270
push 7
jmp 0x41c27a
cmp dword [ebp - 0x9c], ecx
jne 0x41c27b
push 9
pop esi
mov eax, esi
pop esi
add ebp, 0x78
leave
ret