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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40794f
jl 0x407946
test edi, edi
jne 0x40794f
xor eax, eax
xor edx, edx
jmp 0x407a10
cmp dword [ebx + 0x38], 0
je 0x407964
push eax
push edi
push dword [ebp + 8]
call fcn.00407a16
jmp 0x407a10
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4079ab
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4079ab
cmp eax, edi
jb 0x407985
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408ef0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4079b1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407a05
mov ecx, ebx
call fcn.00407187
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4079f0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040e39e
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407a05
jmp 0x4079c3
test edx, edx
je 0x407a05
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040e39e
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x408d32
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408d71
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408d71
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408d71
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408d71
cmp dword [ecx + 0x74], 0xe
jbe 0x408d71
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41413e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425470
push 0x425468
push str.FlsAlloc
push 0x1e
call fcn.00413fab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414172
push dword [ebp + 8]
mov ecx, esi
call dword [0x422144]
call esi
jmp 0x414178
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4141bc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425480
push 0x425478
push str.FlsGetValue
push 0x20
call fcn.00413fab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4141f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x422144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416623
Capabilities:
Read file on windows

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

Function at 0x416a1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ea0
mov eax, dword [0x42f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415689
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416a5f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416bbb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420a00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x430968]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004179fa
mov ecx, dword [esi*4 + 0x430968]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x416bb4
cmp eax, dword [edi + ecx + 0x24]
jne 0x416bb4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416bb4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004179fa
add esp, 0x14
test edx, edx
jl 0x416bb4
jg 0x416b2a
test eax, eax
jb 0x416bb4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416bb4
jl 0x416b44
cmp dword [ebp - 0x1008], eax
ja 0x416bb4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416b62
test ebx, ebx
je 0x416b9b
cmp ecx, edi
jae 0x416b9b
mov al, byte [ecx]
cmp al, 0xd
jne 0x416b7c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416b88
cmp byte [ecx + 1], 0xa
jne 0x416b88
inc ecx
jmp 0x416b88
movzx eax, al
movsx eax, byte [eax + 0x42f2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416b62
cmp edx, ebx
jne 0x416b62
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416bb9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408137
leave
ret
Function at 0x416eb2
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 + 0x430968]
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 0x416ef2
cmp byte [ebx], 0xa
jne 0x416ef2
or byte [eax + edi + 0x28], 4
jmp 0x416ef7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416ff5
mov al, byte [edx]
cmp al, 0x1a
je 0x416fd7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416f26
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416f4b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416f55
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 0x416f08
jmp 0x416ff5
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 0x416fd2
cmp dword [ebp - 0xc], 0
je 0x416fd2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x430968]
test byte [eax + edi + 0x28], 0x48
je 0x416fac
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416f97
mov byte [esi], dl
jmp 0x416fa8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430968]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416ff5
cmp byte [ebp - 1], 0xa
jne 0x416fbb
cmp esi, ebx
jne 0x416fbb
mov byte [esi], 0xa
jmp 0x416ff4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417a18
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416ff5
mov byte [esi], 0xd
jmp 0x416ff4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x430968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ff1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416ff5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416ffe
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 + 0x430968]
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 0x417041
cmp word [esi], dx
jne 0x417041
or byte [edi + eax + 0x28], 4
jmp 0x417046
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 0x41717f
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 0x41715f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417088
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4170be
cmp eax, edx
jae 0x4170ca
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 0x417060
jmp 0x41717f
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 0x41715b
cmp dword [ebp - 0x14], 0
je 0x41715b
mov eax, dword [ebx*4 + 0x430968]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417133
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x417179
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x430968]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x430968]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x430968]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41717c
pop ebx
cmp word [ebp - 4], bx
jne 0x417144
cmp esi, dword [ebp + 0xc]
jne 0x417144
mov word [esi], bx
jmp 0x41717c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417a18
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41717f
push 0xd
jmp 0x417178
mov ecx, dword [ebx*4 + 0x430968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417176
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41717f
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 0x41afae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b04b
push ebx
push esi
call fcn.0041af77
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00419c3b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41aff8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b04a
push edi
push eax
call fcn.00414494
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b018
call fcn.00412deb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b049
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419c3b
add esp, 0x20
test eax, eax
jne 0x41b037
push edi
call fcn.00412deb
jmp 0x41b03f
push ebx
call fcn.00412deb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4209c0
Capabilities:
Parse pe header

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

Disassembly:
push esi
push edi
cmp word [ecx], 3
mov edi, edx
mov esi, ecx
jne 0x414b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x414b7e
mov eax, dword [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.00414930
test eax, eax
jne 0x414b85
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x415260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x35c
push ebx
push esi
push edi
mov ebx, ecx
push ebp
mov ebp, edx
call fcn.004151e0
test eax, eax
je 0x415284
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
lea eax, [esp + 0x20]
mov edi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA_1]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x41c0c0]
mov edi, ebx
mov word [esp + 0x64], ax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c0c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x4153c6
cmp byte [ebp], 0
je 0x4153c6
mov edi, 0x41c0bc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c0c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x6c]
push 0
lea eax, [esp + 0x274]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
Function at 0x416d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x416d6b
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 4]
push eax
mov dword [esp + 0xc], 0x104
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x416d80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
xor esi, esi
push ebx
mov eax, dword [esp + 0x220]
push esi
push eax
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push 0x41c154
push esi
call ebp
cmp eax, 0x20
jg 0x416e73
mov ecx, edi
call fcn.004151e0
test eax, eax
jne 0x416dc4
xor eax, eax
jmp 0x416e7a
lea eax, [esp + 0x10]
mov edx, 0x41c14c
push eax
mov ecx, 0x80000000
call fcn.00416d10
test eax, eax
jne 0x416e78
lea eax, [esp + 0x10]
push 0x41c138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, 0x80000000
call fcn.00416d10
test eax, eax
jne 0x416e78
lea eax, [esp + 0x10]
push 0x41c130
push eax
call fcn.0041be20
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x416e4a
lea eax, [esp + 0x10]
push 0x41c12c
push eax
call fcn.0041be20
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x416e4a
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebp
lea ebp, [esp + eax + 0xf]
jmp 0x416e4e
mov byte [ebp], 0
push 0x41c044
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x416e78
mov esi, 1
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x417350
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, edx
mov edi, dword [esp + 0xc]
mov edx, dword [ecx + 2]
xor edx, dword [ecx + 6]
xor edx, dword [ecx + 0xa]
add edi, edx
xor edx, edx
mov eax, dword [ecx + 6]
inc edx
xor dword [edi + edx*4 - 4], eax
inc edx
mov eax, dword [ecx + 0xa]
xor dword [edi + edx*4 - 4], eax
cmp edx, 0x14
jl 0x417365
mov ecx, dword [esi]
call fcn.0041a5e0
mov dword [esi], 0
cmp word [0x41c1b8], 0
je 0x41739d
cmp word [0x41c1c0], 0
je 0x41739d
call edi
push 0
push 0x41c238
push 0x41c228
push 0
call dword [sym.imp.USER32.dll_MessageBoxA_1]
pop edi
pop esi
ret 4

Function at 0x417420
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [0x41f948], bl
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x417457
mov byte [esp + 0x11c], 0x63
mov byte [esp + 0x11d], bl
xor edx, edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4174a0
mov ebx, 0x5c
cmp byte [esp + edx + 0x11c], bl
je 0x417498
inc edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jg 0x417475
jmp 0x4174a0
mov byte [esp + edx + 0x11d], 0
lea eax, [esp + 0x18]
push 0x104
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x230]
push eax
lea edx, [esp + 0x130]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4174ee
lea eax, [esp + 0x18]
push 0xa
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0041bc50
add esp, 0xc
jmp 0x4174fd
mov edx, 0x41c284
mov ecx, 0x41c26c
call fcn.0041a5f0
xor eax, eax
mov edx, 0x38
mov cl, byte [esp + eax + 0x18]
cmp cl, 0x30
jl 0x41751a
cmp cl, 0x39
jg 0x41751a
mov byte [eax + 0x41f940], cl
jmp 0x417520
mov byte [eax + 0x41f940], dl
inc eax
cmp eax, 8
jl 0x417504
mov edi, 0x41f940
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x1a]
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x18]
mov byte [0x41f940], cl
mov cl, byte [esp + 0x1b]
mov byte [0x41f943], al
mov al, byte [esp + 0x1d]
mov byte [0x41f942], dl
mov byte [0x41f944], cl
mov byte [0x41f941], al
mov byte [0x41f945], 0
cmp byte [esp + 0x1a], 0x30
jne 0x417595
mov al, byte [esp + 0x1a]
inc al
mov byte [0x41f940], al
mov edx, 0x41c264
mov ecx, 0x41f940
call fcn.0041aa60
pop edi
mov dword [0x41f9d4], eax
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x419240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push ebx
push esi
push edi
push ebp
push eax
push 0x41c198
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x41926c
mov ax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x419292
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov dword [esp + 0x10], 0xbb80
lea eax, [esp + 0x10]
push eax
push ebp
push 0x41c198
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4192e7
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
dec dword [esp + 0x10]
push eax
mov edx, dword [esp + 0x14]
push ecx
mov ecx, ebp
xor ebx, ebx
call fcn.0041a770
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [ecx + 8]
mov dword [esp + 0x10], edx
cmp edx, ebx
jle 0x41932e
mov ecx, 0xc
mov esi, eax
mov edi, dword [0x41fb78]
repe cmpsb byte [esi], byte es:[edi]
je 0x41932e
add eax, 0xc
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x419313
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, dword [esp + 0x10]
je 0x419384
or byte [0x41f94a], 0x20
mov ax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret