joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005a070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1568
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100cb2bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 4]
test esi, esi
je 0x1005a1f7
xorps xmm0, xmm0
push 0x100d13c4
push 4
movlpd qword [ebp - 0x20], xmm0
call fcn.10098688
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005a0c7
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x1005a0c9
xor eax, eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.10056590
cmp dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
je 0x1005a1cf
mov eax, dword [esi + 4]
push 0x100d13c4
push 0x18
mov dword [ebp - 0x18], eax
call fcn.10098688
mov edi, eax
add esp, 8
test edi, edi
je 0x1005a1cf
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test ebx, ebx
je 0x1005a1cf
cmp dword [ebx + 0x5c], 0x10
lea eax, [ebx + 0x48]
mov dword [ebp + 0xc], eax
jb 0x1005a158
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp dword [ebx + 0x44], 0x10
lea eax, [ebx + 0x30]
mov dword [ebp - 0x10], eax
jb 0x1005a169
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x14], ebx
jb 0x1005a177
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
call fcn.10056ce0
mov esi, dword [ebp + 8]
mov ecx, eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.10056850
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
jne 0x1005a19d
test eax, eax
je 0x1005a1cf
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x20]
push 0
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
push edi
mov dword [edi], eax
mov dword [edi + 8], ecx
mov eax, dword [eax]
push 0x1005a6e0
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x60]
push 0
push 0
mov dword [edi + 0xc], eax
call fcn.1007a3ef
add esp, 0x18
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1005a1f7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1005a1f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1005a1f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005ab00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1696
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x100cb2bc]
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, dword [ebp + 8]
lea eax, [ebp - 0x2e0]
push 0x2d0
push 0
push eax
call fcn.10073780
mov esi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0x2e4]
add esp, 0xc
mov dword [ebp - 0x2e4], 0x168
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0x100a56f0
push str.http
push 1
push 0
call esi
xor ebx, ebx
test eax, eax
setns bl
test eax, eax
jns 0x1005aba2
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0
push str.iexplore.exe
push 2
push 2
call esi
xor ebx, ebx
test eax, eax
setns bl
test ebx, ebx
je 0x1005ace6
call fcn.1000b120
mov ecx, eax
test ecx, ecx
je 0x1005ad04
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2e8], eax
lea eax, [ebp - 0x2e0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2e8]
call fcn.100264c0
test al, al
jne 0x1005ac12
lea ecx, [ebp - 0x2e0]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005abf0
sub ecx, edx
lea eax, [ebp - 0x2e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.100131e0
mov esi, dword [ebp - 0x2e8]
mov dword [ebp - 4], 1
cmp dword [esi - 0xc], 0
jge 0x1005ac2a
or eax, 0xffffffff
jmp 0x1005ac45
push str..exe
push esi
call fcn.100738da
add esp, 8
test eax, eax
jne 0x1005ac41
or eax, 0xffffffff
jmp 0x1005ac45
sub eax, esi
sar eax, 1
mov ecx, dword [esi - 0xc]
test eax, eax
jle 0x1005ac76
sub ecx, eax
add eax, 4
add ecx, 4
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.10026730
push 1
push 0
lea ecx, [ebp - 0x2e8]
call fcn.10026730
mov esi, dword [ebp - 0x2e8]
push 1
push 0
push dword [edi]
push esi
push 0x100a56f0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x1005acb0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005ace6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1005ace6
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 1
push dword [edi]
push esi
call fcn.1005adc0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005ace6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.10051a36
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000aeb0
int3
Function at 0x1005ad10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a16c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100cb2bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 0x10], 0
call fcn.10048000
push 0x100ac3c8
push 0x100ac3cc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1002c400
push 0xa
push 0
push dword [esi]
push 0x100ac3d0
push 0x100a56f0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
mov dword [ebp - 4], 0xffffffff
cmp ecx, eax
mov eax, dword [ebp - 0x10]
sbb esi, esi
add eax, 0xfffffff0
neg esi
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1005ada5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005adc0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a16f8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100cb2bc]
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]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], eax
test edi, edi
jne 0x1005ae04
xor eax, eax
jmp 0x1005af86
cmp word [edi], 0
je 0x1005adfd
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ae10
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x1005adfd
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005adfd
cmp dword [ebp + 0x14], 0
je 0x1005ae48
push dword [ebp - 0x6c]
push edi
call fcn.100530f0
add esp, 8
test eax, eax
je 0x1005adfd
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
call fcn.100261e0
push esi
push edi
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push str.__s___s
push eax
call fcn.1000b010
mov esi, dword [ebp - 0x68]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x1005ae88
push dword [esi - 0xc]
lea ecx, [ebp - 0x68]
call fcn.1000af90
mov esi, dword [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
xor eax, eax
movlpd qword [ebp - 0x60], xmm0
mov word [ebp - 0x22], ax
mov eax, 0xa
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x32], xmm0
movlpd qword [ebp - 0x2a], xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x81
mov word [ebp - 0x34], ax
call fcn.100268e0
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1005af5d
push 0x100a5384
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1005af00
push 0x100a5384
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1005af45
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005af45
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0
push esi
push 0
push 0
push dword [ebp - 0x74]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1005af4b
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x6c], 1
jmp 0x1005af4b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x74]
call esi
cmp dword [ebp - 0x6c], 0
je 0x1005af5d
mov esi, 1
jmp 0x1005af7c
push 0xa
push 0
push dword [ebp - 0x70]
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov dword [ebp - 0x70], ecx
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.1000abe0
mov eax, esi
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.10051a36
mov esp, ebp
pop ebp
ret
Function at 0x1005d6ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1008cd38
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x100d09a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008cd79
cmp byte [edx], 0xa
jne 0x1008cd79
or byte [eax + edi + 0x28], 4
jmp 0x1008cd7e
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x1008ce6f
mov al, byte [ebx]
cmp al, 0x1a
je 0x1008ce50
cmp al, 0xd
je 0x1008cda7
mov byte [esi], al
inc esi
inc ebx
jmp 0x1008ce45
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x1008cdc7
cmp byte [eax], 0xa
jne 0x1008cdbc
push 2
mov byte [esi], 0xa
pop eax
jmp 0x1008cdc2
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x1008ce45
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008ce3e
cmp dword [ebp - 0x14], 0
je 0x1008ce3e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100d09a8]
test byte [eax + edi + 0x28], 0x48
je 0x1008ce15
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x1008ce05
mov byte [esi], dl
jmp 0x1008ce41
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d09a8]
mov byte [eax + edi + 0x2a], dl
jmp 0x1008ce41
cmp byte [ebp - 1], 0xa
jne 0x1008ce27
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x1008ce27
mov byte [esi], 0xa
jmp 0x1008cdc4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007f8a5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1008ce42
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x1008cd90
jmp 0x1008ce6f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100d09a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008ce6a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008ce6f
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008ce7a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x100d09a8]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x1008cebe
cmp word [edx], bx
jne 0x1008cebe
or byte [edi + eax + 0x28], 4
jmp 0x1008cec3
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x1008d017
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x1008cff7
cmp ax, word [ebp - 0x10]
je 0x1008cefc
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x1008cfec
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x1008cf22
push 0xa
pop ecx
cmp word [eax], cx
jne 0x1008cf12
push ecx
pop eax
push 4
jmp 0x1008cf17
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x1008cfe6
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008cfdd
cmp dword [ebp - 0x18], 0
je 0x1008cfdd
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x100d09a8]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x1008cfa9
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x1008cf6d
mov word [esi], ax
jmp 0x1008cfa1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x100d09a8]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x100d09a8]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x100d09a8]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x1008cfec
cmp word [ebp - 4], ax
jne 0x1008cfbe
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x1008cfbe
mov word [esi], ax
add esi, 2
jmp 0x1008cfec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007f8a5
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1008cfe9
jmp 0x1008cfe0
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x1008cedc
jmp 0x1008d017
mov ecx, dword [ecx*4 + 0x100d09a8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1008d00e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1008d017
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008f018
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008ecba
Function at 0x100983f0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a29d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100cb2bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x10098539
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10098539
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10098539
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10098539
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push 0x80000000
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x10098525
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1009851e
cmp dword [ebp - 0x1c], ebx
jne 0x1009851e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x100984bd
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x100984b7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x100984c9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10006180
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.1003d8bb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x1009851e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409416
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004094f0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x409409
test ebx, ebx
je 0x409414
mov edx, dword [section..data_1]
mov eax, dword [edx + 0xc]
mov ecx, section..data_1
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.__s_
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406e00
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409414
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40945c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40beb0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4284c8
push 0x416480
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x84f0
call fcn.004207e0
mov eax, dword [0x42a520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
push 6
push 0x4267d4
push esi
call fcn.0041196f
add esp, 0xc
test eax, eax
je 0x40c0ce
call fcn.00409740
xor eax, eax
mov word [ebp - reloc.winhttp.dll_WinHttpCrackUrl], ax
push 0x206
push ebx
lea ecx, [ebp - 0x4ae]
push ecx
call fcn.00412510
add esp, 0xc
push 0x104
lea edx, [ebp - 0x4b0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40c0ed
xor eax, eax
mov word [ebp - reloc.winhttp.dll_WinHttpCrackUrl], ax
push 0x206
push ebx
lea ecx, [ebp - 0x2a6]
push ecx
call fcn.00412510
add esp, 0xc
lea edx, [ebp - 0x2a8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40c0ed
lea eax, [ebp - 0x2a8]
push eax
push ebx
push ebx
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40c0ed
call fcn.004079c0
test eax, eax
je 0x40c0ed
mov byte [ebp - 0xa0], bl
push 0x80
push ebx
lea edx, [ebp - 0x9f]
push edx
call fcn.00412510
add esp, 0xc
mov dword [ebp - 0x84b4], 0x81
lea edx, [ebp - 0x84b4]
lea eax, [ebp - 0xa0]
call fcn.0040a290
test eax, eax
je 0x40c0ed
lea ecx, [ebp - 0x2a8]
lea edx, [ebp - 0x4b0]
call fcn.0040ba60
test eax, eax
je 0x40c0ed
xor eax, eax
mov word [ebp - reloc.winhttp.dll_WinHttpCrackUrl], ax
push 0x7ffe
push ebx
lea ecx, [ebp - 0x84ae]
push ecx
call fcn.00412510
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
push str.__s____help_s_t_S
push 0x4000
lea edx, [ebp - 0x84b0]
push edx
call fcn.00411448
mov dword [ebp - 0x8508], ebx
push reloc.winhttp.dll_WinHttpOpenRequest
push ebx
lea eax, [ebp - 0x8504]
push eax
call fcn.00412510
add esp, 0x30
mov dword [ebp - 0x8508], 0x44
xor ecx, ecx
mov word [ebp - reloc.winhttp.dll_WinHttpCrackUrl], cx
mov dword [ebp - 0x84dc], 1
mov dword [ebp - 0x84c4], ebx
xor eax, eax
mov dword [ebp - 0x84c0], eax
mov dword [ebp - 0x84bc], eax
mov dword [ebp - 0x84b8], eax
lea edx, [ebp - 0x84c4]
push edx
lea eax, [ebp - 0x8508]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x84b0]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x40c0ed
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040bae0
add esp, 4
jmp 0x40c0ed
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004106c7
mov esp, ebp
pop ebp
ret 0x10