joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490c3e
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x38
mov eax, dword [0x573080]
xor eax, esp
mov dword [esp + 0x34], eax
movaps xmm0, xmmword [0x542fb0]
xor eax, eax
and dword [esp + 0xc], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x20], xmm0
push edi
movaps xmm0, xmmword [0x542fb0]
mov edi, ecx
mov byte [esp + 0x13], dl
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push 0x5364d0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x490cbb
call eax
movzx eax, ax
mov dword [esp + 0x18], eax
push str.GetUserDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x490cd0
call eax
movzx ebx, ax
mov dword [esp + 0x1c], ebx
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x490d66
push esi
mov ecx, edi
call fcn.00409fd1
mov bh, byte [esp + 0x13]
movzx edx, bh
movzx ecx, word [eax]
mov eax, dword [esp + 0x20]
cmp cx, ax
jne 0x490cfc
mov dword [esp + edx*8 + 0x28], esi
cmp cl, al
jne 0x490d04
mov dword [esp + edx*8 + 0x38], esi
mov eax, dword [esp + 0x14]
mov bl, bh
xor bl, 1
cmp cx, ax
jne 0x490d1d
movzx eax, bl
mov dword [esp + eax*8 + 0x28], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x490d28
movzx eax, bl
mov dword [esp + eax*8 + 0x38], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x490d35
mov dword [esp + edx*8 + 0x24], esi
cmp cl, al
jne 0x490d3d
mov dword [esp + edx*8 + 0x34], esi
mov dl, bh
mov ebx, dword [esp + 0x1c]
xor dl, 1
cmp cx, bx
jne 0x490d52
movzx eax, dl
mov dword [esp + eax*8 + 0x24], esi
cmp cl, bl
jne 0x490d5d
movzx eax, dl
mov dword [esp + eax*8 + 0x34], esi
inc esi
cmp esi, ebp
jl 0x490cdd
xor eax, eax
mov edx, dword [esp + eax*4 + 0x24]
test edx, edx
jns 0x490d7a
inc eax
cmp eax, 8
jb 0x490d68
push 0
jmp 0x490d7b
push edx
mov ecx, edi
call fcn.00409fd1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004d5b75
add esp, 0x38
ret
Function at 0x490e26
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x510619
call fcn.004d6783
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040ce6d
push 0
push 0x52aec0
mov dword [ebp - 4], ebx
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.0045171e
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x490e90
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d64d
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00411714
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov eax, esi
call fcn.004d674c
ret

Function at 0x49116a
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x573080]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x4911ee
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x4911f9
mov eax, dword [ebp + 0x30]
jmp 0x4911fd
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0x206
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00410910
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004d5b75
add esp, 0x2c
ret
Function at 0x491520
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x510693
call fcn.004d6783
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x53be88
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push edi
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.004a2e88
mov ecx, dword [ebp - 0x20]
call fcn.004912da
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x4915b0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4915a7
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4915a7
cmp dword [ebp + 8], 0x103
jne 0x4915a7
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004d674c
ret 4
Function at 0x4927c9
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x5108cc
call fcn.004d6783
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4927ea
xor eax, eax
jmp 0x4928bd
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x52aca8
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
push 2
pop edi
cmp esi, 0xffffffff
je 0x4928a1
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov ebx, dword [ebp + 0x10]
add eax, edi
and dword [ebp - 0x20], 0
sub ebx, edi
push 0
push ecx
push eax
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4928a1
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.0045171e
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x49286d
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040d64d
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492895
cmp dword [ebp - 0x10], 0
je 0x492895
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.0049d6a3
movzx edi, al
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x52aca8
test esi, esi
je 0x4928bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004d674c
ret 0xc

Function at 0x4958e8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x510f35
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x218]
xor ecx, ecx
mov esi, dword [ebp + 0x214]
mov edi, ecx
push ecx
push ecx
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp]
push eax
push ecx
jmp 0x49597a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d91c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
call fcn.0046b650
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
inc edi
call fcn.0040d133
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push esi
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x495942
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x20c
leave
ret 8
Function at 0x4959b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x495a16
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d74e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.004116fd
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00410c89
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x495a22
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x510fb2
call fcn.004d67b7
mov esi, ecx
mov dword [ebp - 0x294], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00473350
lea ecx, [ebp - 0x288]
call fcn.0040ce6d
lea eax, [ebp - 0x288]
xor ebx, ebx
push eax
push dword [ebp - 0x28c]
inc ebx
lea eax, [ebp + 8]
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call fcn.00407141
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.00495c9e
test al, al
je 0x495ae3
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e100
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e3d0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0046b650
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040d133
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00495e25
test al, al
je 0x495ae3
xor ebx, ebx
jmp 0x495aea
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x495af1
mov edi, ebx
jmp 0x495c47
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004d99d0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push eax
call fcn.00407141
mov esi, 0x535868
mov byte [ebp - 4], 4
push esi
call fcn.004dbc76
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.00410f2f
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x495b52
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
call fcn.0040d64d
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x29c], 0x535874
mov dword [ebp - 0x298], esi
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, 0xffffffff
je 0x495c17
lea ecx, [ebp - 0x27c]
call fcn.00495c75
test al, al
je 0x495c01
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.00454aca
pop ecx
push dword [ebp - 0x290]
lea eax, [edi - 1]
mov byte [ebp - 4], 6
push dword [ebp - 0x28c]
push eax
push ecx
lea eax, [ebp - 0x280]
mov dword [ebp - 0x2a0], esp
mov ecx, esp
push eax
call fcn.00407141
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.00495a22
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x495c6c
call fcn.0040d133
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x495b8d
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x535874
test esi, esi
je 0x495c39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x298], 0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], bl
call fcn.0040d133
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d133
mov eax, edi
call fcn.004d6761
ret 0x10
call fcn.0040d133
xor edi, edi
jmp 0x495c19
Function at 0x495f59
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x511097
call fcn.004d6783
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
jne 0x495fb4
mov dl, byte [ebp + 0xc]
call fcn.00495ed0
mov ecx, 0x537130
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x495f93
test eax, eax
setne bl
jmp 0x495f98
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x495fad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov al, bl
jmp 0x49607a
push 0x5c
push dword [ecx]
call fcn.004d9e77
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x496068
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sar esi, 1
js 0x496068
push esi
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ecx, eax
call fcn.00406f93
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dl, byte [ebp + 0xc]
call fcn.00495ed0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], 0x537130
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x496043
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00406e5b
push edi
push edi
push edi
push edi
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov ebx, eax
call fcn.0040d133
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x537130
test eax, eax
je 0x49605c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
cmp byte [ebp + 0x14], 0
je 0x496075
test ebx, ebx
sete al
jmp 0x49607a
test ebx, ebx
setne al
call fcn.004d674c
ret 0x10
Function at 0x496583
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x573080]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x4966c8
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x4965c7
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4965b8
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esi], ax
xor cl, cl
push 0x5c
xor al, al
sub esi, 2
pop edi
mov byte [esp + 0xf], al
cmp word [esp + 0x20], di
jne 0x4965fb
cmp word [esp + 0x22], di
jne 0x4965fb
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x496607
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], di
cmove eax, ebx
push 0x5c
pop edx
cmp word [esp + 0x24], dx
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
je 0x496628
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49661c
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x496632
test al, al
je 0x496645
jmp 0x49663d
mov esi, edx
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4966ae
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49668a
cmp word [esi], cx
je 0x496692
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x496682
cmp esi, edi
jb 0x4966c8
cmp byte [esp + 0xf], 0
jne 0x4966a1
cmp esi, edi
jne 0x4966a4
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49664e
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x4966c2
jb 0x4966c4
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x4966c4
xor bl, bl
mov al, bl
jmp 0x4966ca
xor al, al
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5b75
mov esp, ebp
pop ebp
ret
Function at 0x496db2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004d6eb0
push 0xffffffffffffffff
push 0x51129b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x18], eax
jne 0x496e07
xor al, al
jmp 0x496e7f
mov ecx, eax
call fcn.00457206
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x496e71
mov esi, dword [ebp - 0x10]
call fcn.0040d32d
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407083
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0046b650
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d133
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x496e10
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x8004
leave
ret 4
Function at 0x497086
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x51131f
call fcn.004d6783
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 0xc8
call fcn.004d62d0
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x4970c1
add dword [ebp - 0x10], 2
push esi
call fcn.004d62d0
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00486acb
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4970b2
test eax, eax
je 0x4970f9
xor eax, eax
mov bl, al
jmp 0x4971b6
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x497129
cmp eax, 2
je 0x497129
cmp eax, 7
je 0x497129
cmp eax, 4
jne 0x4970f0
push dword [esi]
push 0x5393f8
push dword [ebp + 8]
call fcn.00411714
add esp, 0xc
jmp 0x4971b6
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
xor eax, eax
mov edi, dword [ebp - 0x10]
jmp 0x497142
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49713e
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d32d
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407083
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x4971a9
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49719d
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49719d
mov ecx, edi
call fcn.004070e8
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d635
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x4971a9
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d89e
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004d62d0
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004d674c
ret

Function at 0x4972b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x5764e4
call fcn.0040dd49
cmp byte [0x5764ec], 0
je 0x4972d7
push dword [0x5764e8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x497307
cmp dword [0x5764e8], 0
je 0x497307
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x5764e0
push 0x497329
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x5764f0
call fcn.0040e076
pop ebp
ret 4
Function at 0x4973d2
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x511352
call fcn.004d6783
push edx
lea ecx, [ebp - 0x10]
call fcn.00407141
and dword [ebp - 4], 0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
push dword [ebp - 0x10]
call fcn.004d9e77
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4974bb
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x4974bb
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406e5b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
call fcn.0046eaa0
and dword [ebp - 0x18], 0
mov esi, 0x537130
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x18], 0
je 0x497499
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x4974a0
inc ebx
cmp dword [ebp - 0x18], eax
je 0x497488
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d133
jmp 0x4973f3
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0
je 0x4974af
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d133
mov eax, ebx
call fcn.004d674c
ret

Function at 0x497594
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x50d418
call fcn.004d6783
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x52aca8
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x4975d3
mov edi, ebx
or esi, eax
jmp 0x4975dd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x52aca8
test esi, esi
je 0x4975f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, edi
call fcn.004d674c
ret
Function at 0x4975fe
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x5113aa
call fcn.004d6783
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004d99d0
mov dword [ebp - 0x6c], edi
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
add esp, 0xc
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
inc ebx
cmp byte [ebp + 0x10], 0
je 0x497655
call fcn.0049f82d
mov eax, dword [0x5762e4]
test eax, eax
je 0x497655
lea ecx, [ebp - 0x18]
push ecx
call eax
mov byte [ebp - 0x14], bl
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [edx]
xor eax, eax
cmp dword [ecx - 0xc], eax
push eax
push eax
push dword [ebp + 0xc]
push eax
push eax
push eax
cmovne eax, ecx
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49769b
mov esi, dword [ebp + 8]
test esi, esi
je 0x497697
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor bl, bl
jmp 0x4976c1
cmp dword [ebp + 8], 0
je 0x4976b8
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 2
cmp byte [ebp - 0x14], 0
je 0x4976e7
call fcn.0049f82d
mov ecx, dword [0x5762e8]
test ecx, ecx
je 0x4976e7
lea eax, [ebp - 0x18]
push eax
call ecx
mov byte [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.004d674c
ret