joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ef0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
xor ebx, ebx
cmp esi, ebp
push edi
je 0x403fa0
cmp byte [esi + 0x5c], 0x77
jne 0x403fa0
mov dword [esi + 4], ebp
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x403f41
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0040b3be
add esp, 0x10
cmp eax, edi
jne 0x403f84
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
cmp ebx, ebp
jne 0x403f8f
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.004049c0
add esp, 8
cmp edi, ebp
mov dword [esi + 0x38], eax
jne 0x403f62
cmp eax, 0xfffffffb
jne 0x403f62
mov dword [esi + 0x38], ebp
cmp dword [esi + 0x10], ebp
jne 0x403f71
cmp dword [esi + 0x38], 1
je 0x403f71
xor ebx, ebx
jmp 0x403f76
mov ebx, 1
mov eax, dword [esi + 0x38]
cmp eax, ebp
je 0x403f11
cmp eax, 1
jne 0x403f8f
jmp 0x403f11
or eax, 0xffffffff
mov dword [esi + 0x38], eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret

Function at 0x405e10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x405e1b
xor eax, eax
ret
mov eax, dword [esp + 4]
push edi
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
push ebx
not eax
jb 0x405f1d
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4165a8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4165a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4165a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4165a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4165a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4165a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4165a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4165a8]
xor eax, edx
inc ecx
dec edi
jne 0x405e36
test esi, esi
je 0x405f3f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4165a8]
xor eax, edx
inc ecx
dec esi
jne 0x405f21
pop ebx
pop esi
not eax
pop edi
ret
Function at 0x409fb6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c470]
jne 0x409fc0
repz ret
jmp fcn.0040bb8e

Function at 0x413ddc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c6b1
and dword [ebp - 0x14], 0
cmp dword [0x41e440], 0
mov dword [ebp - 0x18], eax
jne 0x413e8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413f37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413f37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e440], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e444], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e448], eax
call edi
push eax
call esi
mov dword [0x41e450], eax
test eax, eax
je 0x413e8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e44c], eax
mov eax, dword [0x41e44c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413ee8
cmp dword [0x41e450], ecx
je 0x413ee8
push eax
call esi
push dword [0x41e450]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413ee8
test ebx, ebx
je 0x413ee8
call edi
test eax, eax
je 0x413edf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413edf
test byte [ebp - 8], 1
jne 0x413ee8
or dword [ebp + 0x10], 0x200000
jmp 0x413f1b
mov eax, dword [0x41e444]
cmp eax, dword [ebp - 0x18]
je 0x413f1b
push eax
call esi
test eax, eax
je 0x413f1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413f1b
mov eax, dword [0x41e448]
cmp eax, dword [ebp - 0x18]
je 0x413f1b
push eax
call esi
test eax, eax
je 0x413f1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e440]
call esi
test eax, eax
je 0x413f37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413f39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fb6
leave
ret
Function at 0x43f7a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a000]
push edi
jmp 0x43f7ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43f7c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43f7b0
mov eax, 1
add ebx, ebx
jne 0x43f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43f7c8
jne 0x43f7e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f7c8
xor ecx, ecx
sub eax, 3
jb 0x43f7f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43f86a
mov ebp, eax
add ebx, ebx
jne 0x43f803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43f810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43f834
inc ecx
add ebx, ebx
jne 0x43f820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43f815
jne 0x43f831
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f815
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43f854
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43f845
jmp 0x43f7b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43f854
add edi, ecx
jmp 0x43f7b6
pop esi
mov edi, esi
mov ecx, 0x249
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43f872
cmp byte [edi], 2
jne 0x43f872
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43f877
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x43f8ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x43138]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x431ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43f8a4
mov ecx, edi
jns 0x43f8d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x431f0]
or eax, eax
je 0x43f8e9
mov dword [ebx], eax
add ebx, 4
jmp 0x43f8c1
call dword [esi + 0x43200]
mov ebp, dword [esi + 0x431f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43f923
sub esp, 0xffffff80
jmp 0x4030fa

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401770
Capabilities:
Enumerate process modules
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401893
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x40188c
push edi
call fcn.00402821
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401883
cmp dword [ebp - 0xc], edi
jne 0x401883
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
jne 0x40185e
push 0x9c40
call fcn.00402821
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0x9c40
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x401893
mov eax, dword [ebp - 8]
xor esi, esi
shr eax, 2
mov dword [ebp - 8], eax
test eax, eax
je 0x40184b
mov eax, dword [ebp - 0x10]
mov edx, ebx
push 1
push edi
mov ecx, dword [eax + esi*4]
call fcn.00401a50
inc esi
add esp, 8
cmp esi, dword [ebp - 8]
jb 0x401832
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004026f1
mov esp, ebp
pop ebp
ret
push 0
push edi
mov edx, ebx
mov ecx, eax
call fcn.00401a50
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004026f1
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0040282a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004026f1
mov esp, ebp
pop ebp
ret
Function at 0x401d10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, edx
mov edx, dword [ecx + 0x3c]
add edx, ecx
movzx eax, word [edx + 0x14]
lea esi, [edx + 0x18]
add esi, eax
mov dword [ebp - 4], esi
cmp edi, dword [esi + 0x14]
jae 0x401d38
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
movzx ebx, word [edx + 6]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 8], ebx
cmp ax, bx
jae 0x401d8e
nop dword [eax]
movzx edx, cx
lea eax, [edx + edx*4]
mov esi, dword [esi + eax*8 + 0xc]
cmp edi, esi
jb 0x401d6e
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + eax*8 + 0x10]
mov ebx, dword [ebp - 8]
add eax, esi
cmp edi, eax
jb 0x401d79
inc ecx
cmp cx, bx
jae 0x401d8e
mov esi, dword [ebp - 4]
jmp 0x401d50
mov ecx, dword [ebp - 4]
lea eax, [edx + edx*4]
pop ebx
mov eax, dword [ecx + eax*8 + 0x14]
sub eax, esi
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
mov ebx, edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 0xe4], ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x401ee2
push esi
xor esi, esi
mov dword [ebp - 0xe8], esi
cmp dword [ebp - 0xd0], esi
jbe 0x401ee1
nop
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x64
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xd4], 4
push eax
lea eax, [ebp - 0xdc]
push eax
push 0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x401ece
cmp dword [ebp - 0xdc], 4
jne 0x401ece
mov edx, dword [edi]
xor ecx, ecx
mov ebx, dword [ebp - 0xe0]
test edx, edx
je 0x401e73
mov eax, dword [edi + 8]
cmp dword [eax], ebx
je 0x401ec8
inc ecx
add eax, 4
cmp ecx, edx
jb 0x401e67
mov eax, dword [edi + 4]
mov ecx, edx
cmp edx, eax
jne 0x401ec0
add eax, 0x10
xor ecx, ecx
mov dword [edi + 4], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402821
mov ecx, dword [edi]
mov esi, eax
shl ecx, 2
push ecx
push dword [edi + 8]
push esi
call fcn.00404210
mov ecx, dword [edi + 8]
push ecx
mov dword [edi + 8], esi
call fcn.0040282a
mov ecx, dword [edi]
add esp, 0x14
mov esi, dword [ebp - 0xe8]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ebx, dword [ebp - 0xe4]
inc esi
mov dword [ebp - 0xe8], esi
cmp esi, dword [ebp - 0xd0]
jb 0x401e00
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004026f1
mov esp, ebp
pop ebp
ret
Function at 0x401f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
mov esi, edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov dword [ebp - 0xe0], esi
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4020a1
push ebx
push 0x20a
call fcn.00402821
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xd0], eax
jbe 0x402097
nop dword [eax]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x64
push ecx
push ebx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xd4], 0x104
push ecx
push 0
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40207e
cmp dword [ebp - 0xdc], 1
jne 0x40207e
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x401ff7
cmp dword [edi + 8], 0
mov eax, dword [edi + 0xc]
push ebx
push dword [eax + esi*4]
je 0x401fdd
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401fe3
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x402078
mov eax, dword [edi]
inc esi
cmp esi, eax
jb 0x401fc8
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x40203a
lea eax, [ecx + 0x10]
mov edx, 4
xor ecx, ecx
mov dword [edi + 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402821
mov ecx, dword [edi]
mov esi, eax
shl ecx, 2
push ecx
push dword [edi + 0xc]
push esi
call fcn.00404210
mov eax, dword [edi + 0xc]
push eax
mov dword [edi + 0xc], esi
call fcn.0040282a
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402821
mov edx, dword [edi]
add esp, 4
mov ecx, dword [edi + 0xc]
push ebx
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
mov edx, dword [eax + ecx*4]
lea eax, [ecx + 1]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xe4]
inc eax
mov dword [ebp - 0xe4], eax
cmp eax, dword [ebp - 0xd0]
jb 0x401f70
push ebx
call fcn.0040282a
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004026f1
mov esp, ebp
pop ebp
ret
Function at 0x4020c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x224], edx
push 0x9c40
mov esi, ecx
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x214], edi
call fcn.00402821
push 0x9c40
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], edi
call fcn.00402821
add esp, 8
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], edi
push eax
push 0x9c40
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x4022bb
mov eax, dword [ebp - 0x20c]
shr eax, 2
push ebx
xor ebx, ebx
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x4022ba
add esi, 8
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x210]
push dword [eax + ebx*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4022a7
lea eax, [ebp - 0x208]
push eax
push 0x9c40
push dword [ebp - 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x4022a0
mov eax, dword [ebp - 0x208]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x208], eax
test eax, eax
je 0x4022a0
nop dword [eax + eax]
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x218]
push dword [eax + esi*4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402207
mov cx, word [ebp - 0x1c4]
mov eax, 0x7277
cmp cx, ax
je 0x402215
mov eax, 0x7273
cmp cx, ax
je 0x402215
mov eax, 0x7268
cmp cx, ax
je 0x402215
inc esi
cmp esi, dword [ebp - 0x208]
jb 0x4021c0
jmp 0x4022a0
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x214]
cmp edx, dword [eax]
jae 0x402296
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp - 0x21c]
mov eax, dword [eax + ebx*4]
mov dword [esi - 8], eax
mov eax, 0x7277
mov word [esi - 4], cx
cmp cx, ax
jne 0x402268
mov eax, dword [ebp - 0x1c2]
inc edx
mov ecx, dword [ebp - 0x1be]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 0x10
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x21c], esi
jmp 0x4022a0
xorps xmm0, xmm0
inc edx
movlpd qword [ebp - 0x220], xmm0
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 0x10
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x21c], esi
jmp 0x4022a0
mov dword [ebp - 0x228], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x20c]
jb 0x402161
mov edi, dword [ebp - 0x214]
pop ebx
push dword [ebp - 0x210]
call fcn.0040282a
push dword [ebp - 0x218]
call fcn.0040282a
mov eax, dword [ebp - 0x224]
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, dword [ebp - 0x228]
pop edi
pop esi
call fcn.004026f1
mov esp, ebp
pop ebp
ret
Function at 0x2e174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x2e17a6
cmp eax, 0xffffffff
je 0x2e17a6
cmp dword [ebp + 8], ebx
je 0x2e17a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2ef302
cmp esi, dword [ebp - 4]
jne 0x2ef31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x2e179e

Function at 0x2e227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x2f621c
call fcn.002e1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x2fb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.002e2097
test eax, eax
jne 0x2e23c4
lea eax, [ebp - 0x20]
push eax
push dword [0x2fb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.002e23dc
test eax, eax
jne 0x2e23c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.002e13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x2e23c4
lea eax, [ebp - 0x20]
push eax
push dword [0x2fb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.002e23dc
test eax, eax
jne 0x2e23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x2e23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002e13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x2e23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x2e23b2
cmp dword [ebp + 8], ebx
je 0x2eea08
push dword [0x2fb460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002e13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x2e23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.002e21cb
push dword [0x2fb460]
push edi
push dword [ebp - 0x18]
call fcn.002e2436
push dword [ebp - 0x14]
call fcn.002e13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.002e13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.002e1f10
mov eax, dword [ebp - 0x18]
call fcn.002e1390
ret 4
Function at 0x2e23dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x2e242c
cmp dword [ebp - 4], 2
ja 0x2ee965
mov ecx, dword [edi]
test cl, 1
jne 0x2e242c
cmp esi, ebx
je 0x2e2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x2e242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x2e2425

Function at 0x2e24ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x2f6b05
call fcn.002e1350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x2e2519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x2e265b
cmp dword [ebp + 0xc], edi
je 0x2e265b
push 1
call fcn.002e227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x2e264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002e13e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x2e259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.002e21cb
mov ebx, eax
test ebx, ebx
jl 0x2e259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.002e2436
mov ebx, eax
test ebx, ebx
jl 0x2e259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x2e2632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002e13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x2e2654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.002e21cb
mov ebx, eax
test ebx, ebx
jl 0x2e2623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.002e2436
mov ebx, eax
test ebx, ebx
jl 0x2e2623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x2e2623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x2ef3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x2e2632
push dword [ebp - 0x14]
call fcn.002e13c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x2e2641
push dword [ebp - 0x18]
call fcn.002e13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.002e13c0
pop ecx
mov eax, ebx
call fcn.002e1390
ret 8
mov ebx, 0x8007000e
jmp 0x2e25fe
mov ebx, 0x80070057
jmp 0x2e264a
Function at 0x2e3a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x2e3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x2e3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x2e3ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x2ee30e
mov eax, dword [ebp - 8]
leave
ret