joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404120
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
movzx ecx, byte [edx + 5]
movzx eax, byte [edx]
mov byte [edx], cl
movzx ecx, byte [edx + 4]
mov byte [edx + 5], al
movzx eax, byte [edx + 1]
mov byte [edx + 1], cl
movzx ecx, byte [edx + 7]
mov byte [edx + 4], al
movzx eax, byte [edx + 2]
mov byte [edx + 2], cl
movzx ecx, byte [edx + 6]
mov byte [edx + 7], al
movzx eax, byte [edx + 3]
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov eax, 1
movzx ecx, byte [ebx + eax]
xor byte [edx + eax], cl
add eax, 1
cmp eax, 7
jne 0x404165
xor esi, esi
mov al, 8
movzx ebx, byte [edx + eax - 1]
lea ecx, [ebx*8]
or ecx, esi
shr bl, 5
mov byte [edx + eax - 1], cl
sub eax, 1
mov esi, ebx
jne 0x404178
or byte [edx + 7], bl
movzx ecx, byte [eax + str.RoNgtEng]
rol cl, 4
add byte [edx + eax], cl
add eax, 1
cmp eax, 8
jne 0x404197
pop ebx
pop esi
ret 8

Function at 0x4041c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push edi
xor edx, edx
push esi
push ebx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
lea esi, [esi]
movzx ebx, byte [edx + str.RoNgtEng]
mov ecx, ebx
shr cl, 4
sub cl, byte [eax + edx]
shl ebx, 4
add ecx, ebx
neg ecx
mov byte [eax + edx], cl
add edx, 1
cmp edx, 8
jne 0x4041d0
xor edi, edi
xor dl, dl
movzx ebx, byte [eax + edx]
mov ecx, ebx
shr cl, 3
or ecx, edi
mov edi, ebx
mov byte [eax + edx], cl
add edx, 1
shl edi, 5
cmp edx, 8
jne 0x4041f5
mov ebx, edi
mov dl, 1
or byte [eax], bl
movzx ecx, byte [esi + edx]
xor byte [eax + edx], cl
add edx, 1
cmp edx, 7
jne 0x404216
movzx ecx, byte [eax + 5]
movzx edx, byte [eax]
mov byte [eax], cl
movzx ecx, byte [eax + 4]
mov byte [eax + 5], dl
movzx edx, byte [eax + 1]
mov byte [eax + 1], cl
movzx ecx, byte [eax + 7]
mov byte [eax + 4], dl
movzx edx, byte [eax + 2]
mov byte [eax + 2], cl
movzx ecx, byte [eax + 6]
mov byte [eax + 7], dl
movzx edx, byte [eax + 3]
mov byte [eax + 3], cl
mov byte [eax + 6], dl
pop ebx
pop esi
pop edi
ret 8
Function at 0x41d020
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x41d058
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x41d04e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x41d05a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x41d040
xor eax, eax
pop ebx
pop esi
ret
Function at 0x425390
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x14]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [0x5bcbcc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
sub esp, 4
mov edx, dword [eax + 0xc]
lea edi, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
lea eax, [eax + edx*4 + 0x14]
cmp edi, eax
mov dword [ebp - 0x24], eax
je 0x425455
mov ebx, eax
mov dword [esp], 0x24
call fcn.004247a0
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [eax], ecx
movzx ecx, word [edx + 4]
mov word [eax + 4], cx
movzx ecx, word [edx + 6]
mov word [eax + 6], cx
movzx ecx, word [edx + 8]
mov word [eax + 8], cx
movzx ecx, word [edx + 0xa]
mov word [eax + 0xa], cx
movzx ecx, word [edx + 0xc]
mov word [eax + 0xc], cx
movzx ecx, word [edx + 0xe]
mov word [eax + 0xe], cx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
movzx ecx, byte [edx + 0x14]
mov byte [eax + 0x14], cl
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
lock inc dword [ecx]
setne cl
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x1c], ecx
lock inc dword [ecx]
setne cl
mov edx, dword [edx + 0x20]
mov dword [eax + 0x20], edx
lock inc dword [edx]
setne cl
mov dword [ebx], eax
add ebx, 4
add esi, 4
cmp edi, ebx
jne 0x4253d6
mov eax, dword [ebp - 0x1c]
lock dec dword [eax]
setne al
test al, al
jne 0x42546a
mov eax, dword [ebp - 0x1c]
call fcn.00401690
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x4254e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ecx]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 4], ebx
lea ebx, [ebp + 8]
mov dword [esp], ebx
lea eax, [eax + edx*4 + 0x14]
mov dword [ebp - 0x20], eax
call dword [0x5bcbc0]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
sub esp, 8
mov edx, dword [eax + 8]
lea edi, [eax + edx*4 + 0x14]
mov edx, dword [ebp + 8]
mov ebx, edi
mov dword [ebp - 0x28], edi
lea esi, [edx*4]
add edi, esi
cmp ebx, edi
je 0x4256a0
mov esi, dword [ebp - 0x20]
mov dword [esp], 0x24
call fcn.004247a0
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [eax], ecx
movzx ecx, word [edx + 4]
mov word [eax + 4], cx
movzx ecx, word [edx + 6]
mov word [eax + 6], cx
movzx ecx, word [edx + 8]
mov word [eax + 8], cx
movzx ecx, word [edx + 0xa]
mov word [eax + 0xa], cx
movzx ecx, word [edx + 0xc]
mov word [eax + 0xc], cx
movzx ecx, word [edx + 0xe]
mov word [eax + 0xe], cx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
movzx ecx, byte [edx + 0x14]
mov byte [eax + 0x14], cl
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
lock inc dword [ecx]
setne cl
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x1c], ecx
lock inc dword [ecx]
setne cl
mov edx, dword [edx + 0x20]
mov dword [eax + 0x20], edx
lock inc dword [edx]
setne cl
mov dword [ebx], eax
add ebx, 4
add esi, 4
cmp edi, ebx
jne 0x425538
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [eax]
lea esi, [edx*4]
mov ecx, dword [eax + 8]
lea ecx, [eax + ecx*4 + 0x14]
mov ebx, dword [eax + 0xc]
add edx, dword [ebp + 0xc]
add esi, dword [ebp - 0x20]
lea edi, [eax + ebx*4 + 0x14]
lea eax, [ecx + edx*4]
cmp edi, eax
mov dword [ebp - 0x20], eax
je 0x42566f
mov ebx, eax
lea esi, [esi]
mov dword [esp], 0x24
call fcn.004247a0
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [eax], ecx
movzx ecx, word [edx + 4]
mov word [eax + 4], cx
movzx ecx, word [edx + 6]
mov word [eax + 6], cx
movzx ecx, word [edx + 8]
mov word [eax + 8], cx
movzx ecx, word [edx + 0xa]
mov word [eax + 0xa], cx
movzx ecx, word [edx + 0xc]
mov word [eax + 0xc], cx
movzx ecx, word [edx + 0xe]
mov word [eax + 0xe], cx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
movzx ecx, byte [edx + 0x14]
mov byte [eax + 0x14], cl
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
lock inc dword [ecx]
setne cl
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x1c], ecx
lock inc dword [ecx]
setne cl
mov edx, dword [edx + 0x20]
mov dword [eax + 0x20], edx
lock inc dword [edx]
setne cl
mov dword [ebx], eax
add ebx, 4
add esi, 4
cmp edi, ebx
jne 0x4255f0
mov eax, dword [ebp - 0x24]
lock dec dword [eax]
setne al
test al, al
jne 0x425684
mov eax, dword [ebp - 0x24]
call fcn.00401690
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [eax + 8]
lea eax, [eax + edx*4 + 0x14]
mov edx, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
lea eax, [eax + edx*4]
pop edi
pop ebp
ret 8
mov ecx, dword [ebp - 0x28]
jmp 0x4255cd
Function at 0x425840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ecx]
mov ebx, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 1
je 0x4258f1
mov dword [esp + 4], 1
mov dword [esp], 0x7fffffff
call fcn.004254e0
sub esp, 8
mov esi, eax
mov dword [esp], 0x24
call fcn.004247a0
mov edx, dword [ebx]
mov dword [eax], edx
movzx edx, word [ebx + 4]
mov word [eax + 4], dx
movzx edx, word [ebx + 6]
mov word [eax + 6], dx
movzx edx, word [ebx + 8]
mov word [eax + 8], dx
movzx edx, word [ebx + 0xa]
mov word [eax + 0xa], dx
movzx edx, word [ebx + 0xc]
mov word [eax + 0xc], dx
movzx edx, word [ebx + 0xe]
mov word [eax + 0xe], dx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x10], edx
movzx edx, byte [ebx + 0x14]
mov byte [eax + 0x14], dl
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x18], edx
lock inc dword [edx]
setne cl
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0x1c], edx
lock inc dword [edx]
setne cl
mov edx, dword [ebx + 0x20]
mov dword [eax + 0x20], edx
lock inc dword [edx]
setne cl
mov dword [esi], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
call dword [0x5bcbc8]
mov dword [esp], 0x24
mov esi, eax
call fcn.004247a0
jmp 0x425880

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401bc1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 0x10]
sub edi, esi
cmp edi, 0xffff
jb 0x401bdb
mov edi, 0xffff
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push edi
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401c03
add esi, dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x401c03
cmp esi, dword [ebp + 0x10]
jb 0x401bc9
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
leave
ret

Function at 0x401c0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 0x10]
sub edi, esi
cmp edi, 0xffff
jb 0x401c26
mov edi, 0xffff
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push edi
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c4e
add esi, dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x401c4e
cmp esi, dword [ebp + 0x10]
jb 0x401c14
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
leave
ret
Function at 0x403391
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [section..data]
test eax, eax
jne 0x4033b1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
leave
ret
cmp eax, 1
jne 0x4033e6
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
call fcn.00401df9
add esp, 0x10
test eax, eax
je 0x4033ed
dec eax
leave
ret
call fcn.00401d34
xor eax, eax
leave
ret

Function at 0x403545
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
test eax, eax
jne 0x403577
push dword [ebp + 0x24]
push dword [ebp + 0x20]
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.ADVAPI32.dll_RegEnumValueW]
leave
ret
cmp eax, 1
jne 0x403692
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
mov ebx, 0x104
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40368b
mov eax, dword [ebp - 4]
push edi
mov edi, dword [ebp + 0x14]
push dword [edi]
inc eax
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00401df9
add esp, 0x10
test eax, eax
mov dword [edi], eax
je 0x4035e1
dec eax
mov dword [edi], eax
cmp dword [ebp - 0xc], 1
mov dword [ebp - 4], ebx
je 0x40361a
cmp dword [ebp - 0xc], 2
je 0x40361a
cmp dword [ebp - 0xc], 7
je 0x40361a
push dword [ebp + 0x24]
lea eax, [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 0x10], eax
jmp 0x40368a
cmp dword [ebp + 0x20], 0
mov ebx, dword [ebp + 0x24]
je 0x403673
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x403673
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
shr eax, 1
push eax
push dword [ebp + 0x20]
push dword [ebp - 8]
push edi
call fcn.00401df9
add esp, 0x10
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40367f
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
test ebx, ebx
je 0x40368a
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebx], eax
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
call fcn.00401d34
xor eax, eax
inc eax
leave
ret
Function at 0x403724
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [section..data]
test eax, eax
jne 0x403747
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
leave
ret
cmp eax, 1
jne 0x403783
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x40378a
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
call fcn.00401df9
add esp, 0x10
test eax, eax
je 0x40378a
dec eax
leave
ret
call fcn.00401d34
xor eax, eax
leave
ret

Function at 0x403961
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [section..data]
test eax, eax
jne 0x40397f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
leave
ret
cmp eax, 1
jne 0x4039df
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0x7fff
cmp esi, eax
push edi
jle 0x403999
mov esi, eax
lea edi, [esi + esi]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4039d5
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push dword [ebp + 0xc]
inc eax
push eax
push ebx
call fcn.00401df9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4039cc
dec esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4039d8
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
call fcn.00401d34
xor eax, eax
leave
ret

Function at 0x404584
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [section..data]
test eax, eax
jne 0x404598
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
cmp eax, 1
jne 0x4045c0
push esi
push edi
push dword [esp + 0xc]
call fcn.00403f0c
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov edi, eax
call fcn.00401db2
pop ecx
mov eax, edi
pop edi
pop esi
ret
call fcn.00401d34
or eax, 0xffffffff
ret

Function at 0x4045c9
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [section..data]
test eax, eax
jne 0x4045e1
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
cmp eax, 1
jne 0x40460d
push esi
push edi
push dword [esp + 0xc]
call fcn.00403f0c
pop ecx
push dword [esp + 0x10]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
mov edi, eax
call fcn.00401db2
pop ecx
mov eax, edi
pop edi
pop esi
ret
call fcn.00401d34
xor eax, eax
ret

Function at 0x4046b4
Capabilities:
Set current directory

Disassembly:
mov eax, dword [section..data]
test eax, eax
jne 0x4046c8
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
ret
cmp eax, 1
jne 0x4046f0
push esi
push edi
push dword [esp + 0xc]
call fcn.00403f0c
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
mov edi, eax
call fcn.00401db2
pop ecx
mov eax, edi
pop edi
pop esi
ret
call fcn.00401d34
xor eax, eax
ret
Function at 0x4049aa
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [section..data]
test eax, eax
jne 0x4049cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
leave
ret
cmp eax, 1
jne 0x404a1f
push esi
push edi
push dword [ebp + 8]
call fcn.00403f0c
mov edi, eax
mov dword [esp], 0x104
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x404a12
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
call fcn.00401df9
add esp, 0x10
mov esi, eax
push edi
call fcn.00401db2
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
call fcn.00401d34
xor eax, eax
leave
ret

Function at 0x404a28
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
test eax, eax
jne 0x404a5d
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
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_CreateProcessW]
leave
ret
cmp eax, 1
jne 0x404b0b
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00403f0c
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.00403f0c
push dword [ebp + 0x24]
mov dword [ebp - 8], eax
call fcn.00403f0c
mov esi, dword [ebp + 0x28]
push dword [esi + 8]
mov dword [ebp - 0xc], eax
call fcn.00403f0c
push dword [esi + 0xc]
mov edi, eax
call fcn.00403f0c
push 0x44
mov ebx, eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0042e3ac
add esp, 0x20
push dword [ebp + 0x2c]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x48], edi
push dword [ebp + 0x20]
mov dword [ebp - 0x44], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 4]
mov esi, eax
call fcn.00401db2
push dword [ebp - 8]
call fcn.00401db2
push dword [ebp - 0xc]
call fcn.00401db2
push edi
call fcn.00401db2
push ebx
call fcn.00401db2
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
call fcn.00401d34
xor eax, eax
leave
ret
Function at 0x404b48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [section..data]
test eax, eax
jne 0x404b70
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.SHELL32.dll_ShellExecuteW]
leave
ret
cmp eax, 1
jne 0x404bdc
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00403f0c
push dword [ebp + 0x10]
mov esi, eax
call fcn.00403f0c
push dword [ebp + 0x14]
mov edi, eax
call fcn.00403f0c
push dword [ebp + 0x18]
mov ebx, eax
call fcn.00403f0c
add esp, 0x10
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push eax
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
mov dword [ebp - 8], eax
call fcn.00401db2
push edi
call fcn.00401db2
push ebx
call fcn.00401db2
push dword [ebp - 4]
call fcn.00401db2
mov eax, dword [ebp - 8]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
call fcn.00401d34
xor eax, eax
leave
ret

Function at 0x404f45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
test eax, eax
jne 0x404f6e
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.ADVAPI32.dll_RegQueryValueExW]
leave
ret
cmp eax, 1
jne 0x40504b
push esi
push dword [ebp + 0xc]
call fcn.00403f0c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push eax
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40503c
cmp dword [ebp - 8], 1
je 0x404fd3
cmp dword [ebp - 8], 2
je 0x404fd3
cmp dword [ebp - 8], 7
je 0x404fd3
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 esi
mov dword [ebp - 0x10], eax
jmp 0x40503c
cmp dword [ebp + 0x18], 0
push ebx
mov ebx, dword [ebp + 0x1c]
je 0x405024
push edi
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405023
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
shr eax, 1
push eax
push dword [ebp + 0x18]
push dword [ebp - 4]
push edi
call fcn.00401df9
add esp, 0x10
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x405030
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
test ebx, ebx
je 0x40503b
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebx], eax
pop ebx
push dword [ebp - 0xc]
call fcn.00401db2
mov eax, dword [ebp - 0x10]
pop ecx
pop esi
leave
ret
call fcn.00401d34
xor eax, eax
inc eax
leave
ret
Function at 0x405055
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [section..data]
test eax, eax
jne 0x40507d
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.ADVAPI32.dll_RegSetValueExW]
leave
ret
push esi
xor esi, esi
inc esi
cmp eax, esi
jne 0x405112
push ebx
push dword [ebp + 0xc]
call fcn.00403f0c
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
je 0x4050c3
cmp ebx, 2
je 0x4050c3
cmp ebx, 7
je 0x4050c3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
jmp 0x405103
mov esi, dword [ebp + 0x1c]
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405102
push esi
push edi
shr esi, 1
push esi
push dword [ebp + 0x18]
call fcn.00401dc4
add esp, 0x10
push eax
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push dword [ebp - 8]
call fcn.00401db2
mov eax, dword [ebp - 4]
pop ecx
pop ebx
jmp 0x405119
call fcn.00401d34
mov eax, esi
pop esi
leave
ret