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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x422568]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4148ac
cmp word [ebx], dx
jne 0x4148ac
or byte [eax + edi + 0x28], 4
jmp 0x4148b1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x414a14
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4149f4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4148f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414928
cmp eax, edx
jae 0x414936
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4148cd
jmp 0x414a14
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4149ef
cmp dword [ebp - 0x18], 0
je 0x4149ef
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x422568]
test byte [eax + edi + 0x28], 0x48
je 0x4149c5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x414989
mov word [esi], cx
jmp 0x4149c0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x422568]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x422568]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x422568]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x414a14
pop eax
cmp word [ebp - 4], ax
jne 0x4149d5
cmp esi, ebx
jne 0x4149d5
mov word [esi], ax
jmp 0x414a11
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414689
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x414a14
push 0xd
pop eax
jmp 0x4149d0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x422568]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x414a0e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x414a14
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4151e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00415161
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x415354
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x415354
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x415309
jg 0x415241
test eax, eax
je 0x4152ff
push 1
push 0x1000
call fcn.0040aaa5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x415264
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4152f6
push 0x8000
push ebx
call fcn.004095d2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41528d
jg 0x415288
cmp ecx, 0x1000
jb 0x41528d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00410873
add esp, 0x10
cmp eax, 0xffffffff
je 0x4152d2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x415288
jl 0x4152b9
test ecx, ecx
jne 0x41527a
push dword [ebp - 0xc]
push ebx
call fcn.004095d2
push esi
call fcn.0040a704
add esp, 0xc
xor ebx, ebx
jmp 0x415362
cmp byte [edi + 0x24], 0
je 0x4152e9
cmp dword [edi + 0x20], 5
jne 0x4152e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4152f4
mov ebx, dword [edi + 0x18]
jmp 0x4152f6
xor ebx, ebx
push esi
call fcn.0040a704
pop ecx
jmp 0x415362
test ecx, ecx
jg 0x4152cb
jl 0x415309
test eax, eax
jae 0x4152cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414689
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x415329
cmp byte [edi + 0x1c], 0
je 0x4152cb
jmp 0x41535a
push ebx
call fcn.0040ec63
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4152cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x415362
cmp byte [edi + 0x1c], 0
je 0x41535f
mov ebx, dword [edi + 0x18]
jmp 0x415362
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00414689
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417a70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417a9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417a9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407fcd
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x220
mov eax, 0x40fc71
call fcn.0040f815
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push eax
xor ebx, ebx
mov dword [ebp - 0x220], esi
push 0x402048
mov dword [ebp - 0x21c], ebx
call fcn.0040a14d
mov dword [ebp - 4], ebx
test edi, edi
je 0x408181
cmp word [edi], bx
je 0x408181
mov eax, dword [esi + 0x10]
mov ecx, edi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x218], ebx
call fcn.00409873
test eax, eax
js 0x40817a
mov eax, dword [ebp - 0x218]
lea ebx, [eax + 0x104]
cmp ebx, eax
jb 0x40817a
and dword [ebp - 0x218], 0
push ebx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00408d20
mov esi, dword [ebp - 0x218]
test al, al
jne 0x40807f
mov edi, 0x8007000e
jmp 0x40816c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x40809b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x408154
cmp edi, ebx
jbe 0x4080a9
mov edi, 0x8007007a
jmp 0x40816c
mov eax, dword [ebp - 0x220]
mov ecx, 0x40151c
mov ebx, 0x401c18
cmp byte [eax + 0x32], 0
jne 0x4080c1
mov ebx, ecx
cmp byte [eax + 0x31], 0
mov edx, 0x401bf4
jne 0x4080ce
mov edx, ecx
cmp byte [eax + 0x30], 0
mov eax, 0x401bc8
jne 0x4080db
mov eax, ecx
mov ecx, dword [ebp - 0x224]
test ecx, ecx
jne 0x4080ea
mov ecx, 0x40151c
push ebx
push edx
push eax
push ecx
push 0x402080
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.00405844
add esp, 0x1c
lea eax, [ebp - 0x214]
xor ecx, ecx
push 5
push ecx
push eax
push esi
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
jg 0x40816a
mov eax, dword [0x411038]
cmp eax, 0x411038
je 0x408145
test byte [eax + 0x1c], 8
je 0x408145
push ebx
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.00406b43
cmp ebx, 2
jl 0x408163
cmp ebx, 3
jle 0x408154
cmp ebx, 0xb
jne 0x408163
test edi, edi
jle 0x40816c
movzx edi, di
or edi, 0x80070000
jmp 0x40816c
mov edi, 0x80004005
jmp 0x40816c
xor edi, edi
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x408186
mov edi, 0x80004005
jmp 0x408186
mov edi, 0x80070057
lea ecx, [ebp - 0x22c]
call fcn.0040a195
mov eax, edi
call fcn.0040f7b2
ret 0xc
Function at 0x408727
Capabilities:
Set registry value

Disassembly:
push 0xc4
mov eax, 0x40fd0f
call fcn.0040f7dc
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push 0x2001f
push 0x401b48
mov word [edi], ax
push 0x80000001
mov word [ebx], ax
call fcn.0040654b
test eax, eax
jne 0x408890
lea ecx, [ebp - 0xd0]
call fcn.00406093
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.0040619c
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408885
lea eax, [ebp - 0x18]
push eax
call fcn.004092f1
mov esi, dword [eax]
mov eax, dword [esi + 0x14]
mov ecx, 0x401eb8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4087c6
test dx, dx
je 0x4087c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4087c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4087a0
xor eax, eax
jmp 0x4087cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40887b
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call fcn.004064b4
test eax, eax
jne 0x40887b
mov eax, dword [ebp - 0x10]
test al, 2
je 0x40887b
mov ecx, dword [ebp - 0x1c]
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
xor eax, eax
mov dword [ecx + 0x98], 1
push eax
mov eax, dword [ebp + 0x18]
push dword [esi]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test byte [ebp - 0x10], 1
je 0x40884f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x40882d
sub ecx, edx
sar ecx, 1
je 0x40884b
push 0x401ed4
mov ecx, edi
call fcn.004094e5
mov ecx, edi
jmp 0x408874
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x408854
sub ecx, edx
sar ecx, 1
je 0x408872
push 0x401ed4
mov ecx, ebx
call fcn.004094e5
mov ecx, ebx
push dword [esi]
call fcn.004094e5
cmp dword [ebp - 0x18], 0
jne 0x40878d
lea ecx, [ebp - 0xd0]
call fcn.0040611a
call fcn.0040f798
ret 0x14
Function at 0x40954e
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0xa2
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov eax, 0xa3
push eax
shr ebx, 0xf
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
push 2
pop edx
jae 0x409590
or ebx, edx
mov eax, 0xa4
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095a6
or ebx, 4
mov eax, 0xa5
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095bc
or ebx, 8
mov eax, 0xa0
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095d2
or ebx, 0x10
mov eax, 0xa1
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095e8
or ebx, 0x20
push 0x1c0
lea eax, [ebp - 0x1c4]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor edi, edi
xor ecx, ecx
inc edi
mov edx, 0x1000
push 2
pop esi
test bl, 1
je 0x409630
mov eax, 0xa2
mov dword [ebp - 0x1c4], edi
mov ecx, edi
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1b4], edx
test bl, 2
je 0x409662
imul eax, ecx, 0x1c
mov esi, 0xa3
push 2
inc ecx
mov word [ebp + eax - 0x1c0], si
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1bc], 3
mov dword [ebp + eax - 0x1b4], edx
pop esi
test bl, 4
je 0x409690
imul eax, ecx, 0x1c
mov esi, 0xa4
push 2
inc ecx
mov word [ebp + eax - 0x1c0], si
pop esi
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1bc], esi
mov dword [ebp + eax - 0x1b4], edx
test bl, 8
je 0x4096c2
imul eax, ecx, 0x1c
mov esi, 0xa5
push 2
inc ecx
mov word [ebp + eax - 0x1c0], si
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1bc], 3
mov dword [ebp + eax - 0x1b4], edx
pop esi
test bl, 0x10
je 0x4096f0
imul eax, ecx, 0x1c
inc ecx
mov dword [ebp + eax - 0x1c4], edi
mov edi, 0xa0
mov word [ebp + eax - 0x1c0], di
xor edi, edi
mov dword [ebp + eax - 0x1bc], esi
inc edi
mov dword [ebp + eax - 0x1b4], edx
test bl, 0x20
je 0x40971b
imul eax, ecx, 0x1c
mov ebx, 0xa1
inc ecx
mov dword [ebp + eax - 0x1c4], edi
mov word [ebp + eax - 0x1c0], bx
mov dword [ebp + eax - 0x1bc], esi
mov dword [ebp + eax - 0x1b4], edx
imul eax, ecx, 0x1c
mov ebx, 0x1000
push 0x5b
pop esi
inc ecx
push 0x55
and dword [ebp + eax - 0x1bc], 0
mov dword [ebp + eax - 0x1b4], edx
mov dword [ebp + eax - 0x1c4], edi
mov word [ebp + eax - 0x1c0], si
imul eax, ecx, 0x1c
inc ecx
pop edx
push 2
and dword [ebp + eax - 0x1bc], 0
mov word [ebp + eax - 0x1c0], dx
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1b4], ebx
imul eax, ecx, 0x1c
inc ecx
mov word [ebp + eax - 0x1c0], dx
mov dword [ebp + eax - 0x1c4], edi
pop edx
mov dword [ebp + eax - 0x1bc], edx
mov dword [ebp + eax - 0x1b4], ebx
imul eax, ecx, 0x1c
push 0x1c
mov dword [ebp + eax - 0x1c4], edi
mov word [ebp + eax - 0x1c0], si
mov dword [ebp + eax - 0x1bc], edx
mov dword [ebp + eax - 0x1b4], ebx
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret
Function at 0x409ee3
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x222c
call fcn.0040f8d0
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov dword [ebp - 0x2224], ecx
push edi
mov dword [ebp - 0x2228], eax
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x2210]
push eax
push 0x2000
lea eax, [ebp - 0x220c]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40a059
mov eax, dword [ebp - 0x2210]
mov ecx, 0x800
shr eax, 2
mov dword [ebp - 0x2210], eax
cmp eax, ecx
jbe 0x409f4f
mov dword [ebp - 0x2210], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [ebp - 0x2214], edi
lea eax, [ebp - 0x2214]
mov dword [ebp - 0x2218], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a059
push esi
mov esi, edi
cmp dword [ebp - 0x2210], esi
jbe 0x40a054
lea eax, [ebp - 0x221c]
push eax
push dword [ebp + esi*4 - 0x220c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a036
mov eax, dword [ebp - 0x221c]
cmp eax, dword [ebp - 0x2214]
jne 0x40a036
cmp ebx, dword [ebp + esi*4 - 0x220c]
je 0x40a036
push dword [ebp + esi*4 - 0x220c]
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40a030
lea eax, [ebp - 0x222c]
push eax
push 4
lea eax, [ebp - 0x2220]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x40a029
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2220]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x40a029
push dword [ebp - 0x2224]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40a045
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2218]
inc esi
cmp esi, dword [ebp - 0x2210]
jb 0x409f88
jmp 0x40a054
mov eax, dword [ebp - 0x2228]
mov edi, dword [ebp + esi*4 - 0x220c]
mov dword [eax], ebx
mov eax, edi
pop esi
jmp 0x40a05b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret 4

Function at 0x40a0a2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 2
push dword [ebp + 8]
mov dword [ebp - 4], 0x208
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40a0e0
xor ecx, ecx
mov word [esi], cx
test eax, eax
jle 0x40a0e0
movzx eax, ax
or eax, 0x80070000
pop esi
leave
ret 0xc
Function at 0x40a656
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x40ffef
call fcn.0040f815
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push eax
push 0x402864
push 0x17
push ebx
push 0x403108
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40a718
mov eax, dword [ebp - 0x21c]
push 2
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x41244c]
call esi
mov esi, eax
test esi, esi
js 0x40a718
mov ecx, dword [ebp - 0x21c]
mov edx, 0x1c0
call fcn.0040a54b
test eax, eax
jns 0x40a716
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x402738
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a6f2
call fcn.0040599c
mov esi, eax
test esi, esi
js 0x40a718
mov eax, dword [edi]
push ebx
push 0x1c0
mov esi, dword [eax + 0x50]
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
mov ecx, esi
call dword [0x41244c]
call esi
mov esi, eax
test esi, esi
js 0x40a718
mov esi, ebx
lea ecx, [ebp - 0x21c]
call fcn.0040a882
mov eax, esi
call fcn.0040f7b2
ret
Function at 0x40b953
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [ebp - 0x214], eax
push ecx
lea ecx, [ebp - 0x20c]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0040a8d6
push 0x402c98
lea ecx, [ebp - 0x20c]
call fcn.0040acba
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40b9cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b9f9
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0040b6ee
mov edi, eax
jmp 0x40b9f9
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov ecx, esi
call fcn.0040b839
mov ebx, eax
test ebx, ebx
jns 0x40b9ff
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.0040b6d1
mov edi, ebx
test esi, esi
je 0x40ba17
jmp 0x40ba11
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.0040b743
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret 8

Function at 0x40c569
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, cl
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push esi
test cl, cl
je 0x40c5b6
xor esi, esi
push esi
push eax
push esi
push 3
push 1
push esi
push esi
push 0x402dd8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c5e9
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x402cac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40c5e0
push eax
push 0xf003f
push 0
push 0x402d00
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c5e9
push 0x402e90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40c5f2
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0040c2ca
test al, al
lea eax, [ebp - 4]
je 0x40c641
xor esi, esi
push esi
push eax
push esi
push 3
push 1
push esi
push esi
push 0x402dd8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c674
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x402cbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40c66b
push eax
push 0xf003f
push 0
push 0x402d00
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c674
push 0x402e90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x43ee20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b55f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00439dc0
test eax, eax
jne 0x43ee8c
push ebp
push 0x4dbda8
mov ecx, edi
call fcn.0043e0a0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00439940
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0042ee90
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00439f70
add esp, 4
test eax, eax
je 0x43ef2f
add esi, 0x18
push esi
call fcn.0042f840
add esi, eax
push esi
call fcn.0042f840
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x43f232
jmp dword [ecx*4 + 0x43e670]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0043e1e0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.0042f840
add esi, eax
push esi
call fcn.0042f840
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x43ef80
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x4b8480]
test eax, eax
je 0x43ef80
mov eax, 1
jmp 0x43ef82
xor eax, eax
cmp ebx, 8
jge 0x43f1e7
cmp ebx, 7
ja 0x43f232
jmp dword [ebx*4 + 0x43e680]
test eax, eax
jne 0x43f1fa
mov ecx, dword [esp + 0x10]
push eax
push 0x4dbd94
call fcn.0043e0a0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0043f740
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4c19a4
call fcn.0042f090
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x447ea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f2318]
xor edx, edx
cmp eax, edx
jne 0x447ec6
xor eax, eax
mov byte [eax + 0x4f2218], al
inc eax
cmp eax, 0x100
jl 0x447eae
mov dword [0x4f2318], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f2218
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x447f57
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x447f2a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x447ef8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x447fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x448023
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44800a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret