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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47f520]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c873
cmp byte [ebx], 0xa
jne 0x41c873
or byte [eax + edi + 0x28], 4
jmp 0x41c878
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c976
mov al, byte [edx]
cmp al, 0x1a
je 0x41c958
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c8a7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c8cc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c8d6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c889
jmp 0x41c976
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c953
cmp dword [ebp - 0xc], 0
je 0x41c953
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47f520]
test byte [eax + edi + 0x28], 0x48
je 0x41c92d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c918
mov byte [esi], dl
jmp 0x41c929
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f520]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c976
cmp byte [ebp - 1], 0xa
jne 0x41c93c
cmp esi, ebx
jne 0x41c93c
mov byte [esi], 0xa
jmp 0x41c975
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d3b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c976
mov byte [esi], 0xd
jmp 0x41c975
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47f520]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c972
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c976
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c97f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47f520]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c9c2
cmp word [esi], dx
jne 0x41c9c2
or byte [edi + eax + 0x28], 4
jmp 0x41c9c7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cb1a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cafa
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ca09
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ca3f
cmp eax, edx
jae 0x41ca4b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c9e1
jmp 0x41cb1a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41caf6
cmp dword [ebp - 0x14], 0
je 0x41caf6
mov eax, dword [ebx*4 + 0x47f520]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cace
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ca97
mov word [esi], cx
jmp 0x41caca
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47f520]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47f520]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47f520]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cb1a
pop ebx
cmp word [ebp - 4], bx
jne 0x41cadf
cmp esi, dword [ebp + 0xc]
jne 0x41cadf
mov word [esi], bx
jmp 0x41cb17
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d3b3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cb1a
push 0xd
jmp 0x41cb13
mov ecx, dword [ebx*4 + 0x47f520]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cb11
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cb1a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41da4c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47ce00]
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 0x41da97
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041dbeb
test al, al
jne 0x41da91
sub edx, 2
cmp edx, edi
jne 0x41da77
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41dab9
lea eax, [edi + 2]
cmp edx, eax
je 0x41dab9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041d998
add esp, 0x10
jmp 0x41dbb3
push esi
lea ecx, [ebp - 0x255]
call fcn.0041dbeb
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 0x41dafc
push dword [ebp - 0x25c]
jmp 0x41daa9
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 0x41db39
cmp word [ebp - 0x226], 0
je 0x41db5a
cmp word [ebp - 0x226], ax
jne 0x41db39
cmp word [ebp - 0x224], 0
je 0x41db5a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041d998
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41dba6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41db13
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41db8e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41dbb3
push 0x41d7c8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004233c0
add esp, 0x10
jmp 0x41db83
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.00409962
leave
ret

Function at 0x424e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4265dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42665d
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42665c
push ebx
mov ebx, 0x47ea88
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x427558
mov byte [edi + esi], al
call fcn.0040eeee
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x4265ff
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00405157
pop edi
pop ebp
ret 0x14
Function at 0x4030e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412b60

Function at 0x405190
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x4410cc]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
push edi
mov edi, dword [ebp + 0x10]
movlpd qword [esp + 0x14], xmm0
call fcn.00401070
push str.LocalFsFSSOSLauncherSingleInstanceMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4052ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4052ce
push str.09:07:09
push str.Feb_20_2023
push 0x43ce14
push str.Binary_version:__s__compilation_time:__s__s
push 4
call fcn.0040c260
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.UnzipAPIImpl.0
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x30]
add esp, 0x14
mov dword [esp + 0xc], vtable.ZipExtractor.0
xorps xmm0, xmm0
mov dword [esp + 0x1c], vtable.FSSOSLauncher::AppLogic.0
xor eax, eax
mov dword [esp + 0x30], 0
movups xmmword [esp + 0x20], xmm0
mov word [esp + 0x20], ax
lea eax, [esp + 0xc]
push edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], eax
call fcn.00404400
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040c2f0
mov ecx, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x1c], vtable.FSSOSLauncher::AppLogic.0
cmp ecx, 8
jb 0x4052a9
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40529f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40530b
push ecx
push edx
call fcn.004170ed
add esp, 8
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
mov dword [esp + 0xc], vtable.IZipExtractor.0
mov dword [esp + 8], vtable.IUnzipAPI.0
jmp 0x4052da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4052eb
push eax
call esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4052f6
push ecx
call esi
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004170df
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041a62f
int3
Function at 0x4053e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42da45
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4410cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x4054c3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405424
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405438
test al, 0x10
jne 0x4054c3
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00406290
add esp, 0xc
test al, al
je 0x4054aa
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004053e0
add esp, 8
test al, al
je 0x4054aa
cmp dword [esi + 0x14], 8
jb 0x40549a
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x4054ae
mov byte [ebp - 0x41], 0
lea ecx, [ebp - 0x40]
call fcn.004015b0
lea ecx, [ebp - 0x28]
call fcn.004015b0
mov al, byte [ebp - 0x41]
jmp 0x4054c5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004170df
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4054ee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40613e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406152
test al, 0x10
je 0x406152
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40616e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406182
test al, 0x10
jne 0x406182
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x409330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e11d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4410cc]
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 ebx, ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 8]
or ecx, 0x20019
mov dword [ebp - 0x1c], 0
cmp dword [eax + 0x14], 8
jb 0x409384
mov eax, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push ecx
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4093da
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jb 0x4093c0
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x4093ed
push ecx
push esi
mov ecx, ebx
call fcn.00407a50
mov edi, dword [ebp - 0x1c]
mov bl, al
jmp 0x409474
cmp dword [ebp - 0x18], 7
je 0x40940b
mov dword [ebx + 0xc], 2
test esi, esi
je 0x409404
mov dword [esi], 2
mov edi, dword [ebp - 0x1c]
xor bl, bl
jmp 0x409474
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.0040ac90
cmp dword [ebp - 0x14], 0
je 0x40945e
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 0x20]
jb 0x409427
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0
push edi
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x409461
mov ecx, dword [ebp - 0x20]
push 0
call fcn.0040ac90
push dword [ebp - 0x24]
mov ecx, ebx
push esi
call fcn.00407a50
mov bl, al
jmp 0x409474
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x409472
mov dword [esi], 0
mov bl, 1
test edi, edi
je 0x40947f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004170df
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e11d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4410cc]
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 edx, ecx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
or ecx, 0x20019
mov dword [ebp - 0x1c], 0
cmp dword [eax + 0x14], 8
jb 0x409a97
mov eax, dword [eax]
lea edi, [ebp - 0x1c]
push edi
push ecx
push 0
push eax
push dword [edx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x409b44
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea edi, [esi + 0x10]
nop dword [eax]
mov ecx, dword [edi]
inc eax
shr eax, 1
cmp eax, ecx
ja 0x409aed
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x409ae3
mov ecx, dword [esi]
xor edx, edx
mov dword [edi], eax
mov word [ecx + eax*2], dx
jmp 0x409af9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00406510
push 0
mov ecx, esi
call fcn.00405350
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x409b0c
mov ecx, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x409b2d
mov eax, dword [ebp - 0x14]
jmp 0x409ad0
test eax, eax
je 0x409b57
cmp dword [esi + 0x14], 8
jb 0x409b39
mov esi, dword [esi]
xor ecx, ecx
mov dword [edi], 0
mov word [esi], cx
mov ecx, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call fcn.00407a50
mov bl, al
jmp 0x409c00
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x409b92
cmp eax, 2
je 0x409b92
cmp dword [esi + 0x14], 8
jb 0x409b6c
mov esi, dword [esi]
xor eax, eax
mov dword [edi], 0
mov word [esi], ax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x409b8e
mov dword [eax], 2
xor bl, bl
jmp 0x409c00
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi]
shr eax, 1
cmp eax, ecx
ja 0x409bb1
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x409ba7
mov ecx, dword [esi]
xor edx, edx
mov dword [edi], eax
mov word [ecx + eax*2], dx
jmp 0x409bbd
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00406510
mov eax, dword [edi]
test eax, eax
je 0x409be7
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x409bcf
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0
jne 0x409be7
dec eax
cmp edx, 8
jb 0x409bdf
mov esi, dword [esi]
xor ecx, ecx
mov dword [edi], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x409bfe
mov dword [eax], 0
mov bl, 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409c0e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004170df
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b910
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4410cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x5c], esi
lea edi, [ecx + 2]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x6c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b943
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 3]
mov dword [ebp - 0x60], edi
test edx, edx
jne 0x40b98a
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417716
push esi
push 0x42f920
push dword [ebp - 0x60]
mov edi, eax
push edi
call fcn.0040bac0
add esp, 0x14
jmp 0x40b9d6
mov ecx, edx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b990
sub ecx, edx
mov edx, 2
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
add esi, edi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417716
push dword [ebp - 0x64]
mov edi, eax
push dword [ebp - 0x5c]
push str.__s___s
push esi
push edi
call fcn.0040bac0
mov esi, dword [ebp - 0x5c]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40b9f7
push edi
call fcn.00417153
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004170df
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40b9e4
test ebx, ebx
jne 0x40ba33
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x44
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
jmp 0x40ba58
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 0x40]
mov dword [ebp - 8], eax
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
shr eax, 8
push ecx
push dword [ebp - 0x68]
and eax, 1
xorps xmm0, xmm0
push dword [ebp - 0x6c]
movups xmmword [ebp - 0x58], xmm0
push dword [ebp + 0x10]
push eax
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
test eax, eax
je 0x40b9dc
call fcn.00417153
add esp, 4
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004170df
mov esp, ebp
pop ebp
ret
Function at 0x40baf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e3bd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4410cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x34], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
nop
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40bb55
mov ecx, dword [edi]
push dword [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x18]
mov ecx, eax
cmp ecx, esi
jbe 0x40bbc6
mov eax, dword [ebp - 0x14]
mov edx, ecx
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x40bbb2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [eax + esi*2]
mov dword [ebp - 0x30], eax
test edx, edx
je 0x40bba4
mov edi, dword [ebp - 0x30]
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40bb40
push 0
push edx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push edx
call fcn.004067d0
jmp 0x40bb40
test ecx, ecx
jne 0x40bbdd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov word [eax], cx
jmp 0x40bbeb
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040bc70
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x40bc14
movups xmm0, xmmword [ebp - 0x28]
movups xmm1, xmmword [edi]
movq xmm2, qword [edi + 0x10]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
movups xmmword [ebp - 0x28], xmm1
movq qword [ebp - 0x18], xmm2
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40bc4a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bc40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc65
push ecx
push edx
call fcn.004170ed
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004170df
mov esp, ebp
pop ebp
ret
call fcn.0041a62f
int3