joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c30
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40e1c8
call fcn.00402c2c
push 8
call fcn.00403dc9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x411e98], esi
jne 0x401c64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x411e94], esi
mov al, byte [ebp + 0x10]
mov byte [0x411e90], al
cmp dword [ebp + 0xc], edi
jne 0x401cae
cmp dword [0x412688], edi
je 0x401c9e
mov eax, dword [0x412684]
sub eax, 4
mov dword [0x412684], eax
cmp eax, dword [0x412688]
jb 0x401c9e
mov eax, dword [eax]
cmp eax, edi
je 0x401c7f
call eax
jmp 0x401c7f
push 0x411028
mov eax, 0x411020
call fcn.00401b81
pop ecx
push 0x411030
mov eax, 0x41102c
call fcn.00401b81
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x401cdf
cmp dword [ebp + 0x10], edi
jne 0x401ced
mov dword [0x411e98], esi
push dword [ebp + 8]
call fcn.00401b30
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x401cec
push 8
call fcn.00403ced
pop ecx
ret
call fcn.00402c67
ret

Function at 0x401d4c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x411510]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x411518]
je 0x401d81
inc eax
cmp eax, 0x13
jb 0x401d72
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x411518]
jne 0x401ea4
mov eax, dword [0x411e4c]
cmp eax, 1
je 0x401e7f
cmp eax, edx
jne 0x401db1
cmp dword [0x411288], 1
je 0x401e7f
cmp ecx, 0xfc
je 0x401ea4
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401de7
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00404200
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00404430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401e1b
mov eax, edi
push eax
call fcn.00404430
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e5c0
push edi
call fcn.00404300
add esp, 0x10
push edi
call fcn.00404430
push dword [esi + 0x41151c]
mov ebx, eax
call fcn.00404430
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402d90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404200
push edi
push ebx
call fcn.00404210
push 0x40e5a0
push ebx
call fcn.00404210
push dword [esi + 0x41151c]
push ebx
call fcn.00404210
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004040f9
add esp, 0x2c
jmp 0x401ea4
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x41151c]
push dword [esi]
call fcn.00404430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x8c]
call fcn.00401b1d
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x4040f9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41211c], ebx
push esi
push edi
jne 0x404179
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4041b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41211c], eax
je 0x4041b4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x412120], eax
call esi
cmp dword [0x411e58], 2
mov dword [0x412124], eax
jne 0x404179
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41212c], eax
je 0x404179
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412128], eax
mov eax, dword [0x412128]
test eax, eax
je 0x4041be
call eax
test eax, eax
je 0x4041a5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41212c]
test eax, eax
je 0x4041a5
test byte [ebp - 8], 1
jne 0x4041be
cmp dword [0x411e64], 4
jb 0x4041b8
or byte [ebp + 0x12], 0x20
jmp 0x4041dd
xor eax, eax
jmp 0x4041ed
or byte [ebp + 0x12], 4
jmp 0x4041dd
mov eax, dword [0x412120]
test eax, eax
je 0x4041dd
call eax
mov ebx, eax
test ebx, ebx
je 0x4041dd
mov eax, dword [0x412124]
test eax, eax
je 0x4041dd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41211c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406bbb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406be9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406bf0
cmp ebx, dword [eax + 4]
jae 0x406bf0
xor eax, eax
jmp 0x406de0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406c01
xor eax, eax
inc eax
jmp 0x406ddf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406c17
cmp ecx, edx
jae 0x406d5c
cmp dword [eax + 4], 0
je 0x406c20
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406c08
cmp dword [ebp + 8], 0
je 0x406c42
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406d5c
cmp eax, esi
jae 0x406d5c
mov eax, dword [0x412148]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406c67
cmp dword [esi*4 + 0x412150], edi
je 0x406d60
inc esi
cmp esi, eax
jl 0x406c55
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406ddc
cmp dword [ebp - 8], 0x1000000
jne 0x406ddc
test byte [ebp - 0xc], 0xcc
je 0x406ce5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406ddc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406ddc
cmp word [eax + 0x18], 0x10b
jne 0x406ddc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406ddc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406ce5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406ce5
test byte [ecx + 0x27], 0x80
jne 0x406d5c
push 1
push 0x412190
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406bf9
mov ecx, dword [0x412148]
test ecx, ecx
mov edx, ecx
jle 0x406d19
lea eax, [ecx*4 + 0x41214c]
cmp dword [eax], edi
je 0x406d19
dec edx
sub eax, 4
test edx, edx
jg 0x406d0d
test edx, edx
jne 0x406d4a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406d26
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406d3e
lea eax, [edx*4 + 0x412150]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406d2c
cmp ecx, 0x10
jge 0x406d4a
inc ecx
mov dword [0x412148], ecx
push 0
push 0x412190
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406bf9
xor eax, eax
jmp 0x406ddf
test esi, esi
jle 0x406bf9
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x412190
call ebx
test eax, eax
jne 0x406bf9
cmp dword [esi*4 + 0x412150], edi
je 0x406db6
mov eax, dword [0x412148]
lea esi, [eax - 1]
test esi, esi
jl 0x406da4
cmp dword [esi*4 + 0x412150], edi
je 0x406da0
dec esi
jns 0x406d94
test esi, esi
jge 0x406db4
cmp eax, 0x10
jge 0x406daf
inc eax
mov dword [0x412148], eax
lea esi, [eax - 1]
jmp 0x406db6
je 0x406dce
xor ecx, ecx
test esi, esi
jl 0x406dce
lea eax, [ecx*4 + 0x412150]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406dbc
push 0
push 0x412190
call ebx
jmp 0x406bf9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407083
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x411510]
xor ecx, ecx
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4070bd
xor eax, eax
jmp 0x407227
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x412580]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4070fb
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0040ab04
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407195
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4071f8
jmp 0x40711f
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x40715a
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40714b
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x40712b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4071b9
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4071c2
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x40711d
jmp 0x4071c2
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4071b9
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4071c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x407222
cmp dword [ebp - 0x68], eax
je 0x4071f5
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4071ea
call fcn.0040758d
mov dword [eax], 9
call fcn.0040759b
mov dword [eax], esi
jmp 0x40721d
push dword [ebp - 0x68]
call fcn.004075a9
pop ecx
jmp 0x40721d
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40720a
cmp byte [edi], 0x1a
jne 0x40720a
xor eax, eax
jmp 0x407225
call fcn.0040758d
mov dword [eax], 0x1c
call fcn.0040759b
and dword [eax], 0
or eax, 0xffffffff
jmp 0x407225
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
pop edi
call fcn.00401b1d
add ebp, 0x3a4
leave
ret
Function at 0x40af9a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402d90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b035
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x411e58]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b035
cmp eax, 1
je 0x40b056
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b035
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b002
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b031
xor eax, eax
inc eax
jmp 0x40b075
cmp edi, eax
jae 0x40b039
xor eax, eax
jmp 0x40b075
cmp eax, esi
jae 0x40b040
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x411e58]
jmp 0x40b059
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c083
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4101d0
call fcn.00402c2c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4122d8], edi
jne 0x40c0c7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c0b2
mov dword [0x4122d8], ebx
jmp 0x40c0c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40c0c7
mov dword [0x4122d8], 2
mov eax, dword [0x4122d8]
cmp eax, ebx
jne 0x40c0e7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40c1aa
cmp eax, 2
je 0x40c0f0
cmp eax, edi
jne 0x40c118
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x40c103
mov eax, dword [0x4121b4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x40c11f
xor eax, eax
jmp 0x40c1aa
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00402d90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40c152
cmp esi, edi
jne 0x40c168
push dword [ebp - 0x20]
call fcn.004045e7
pop ecx
mov esi, eax
cmp esi, edi
je 0x40c118
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40c19b
cmp dword [ebp + 0x14], edi
jne 0x40c185
push edi
push edi
jmp 0x40c18b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x40c1a7
push esi
call fcn.004044c0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00402c67
ret
Function at 0x40c1b8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4101e0
call fcn.00402c2c
xor esi, esi
cmp dword [0x4122dc], esi
jne 0x40c1fc
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c1e7
mov dword [0x4122dc], edi
jmp 0x40c1fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40c1fc
mov dword [0x4122dc], 2
mov eax, dword [0x4122dc]
cmp eax, 2
je 0x40c2dd
cmp eax, esi
je 0x40c2dd
cmp eax, 1
jne 0x40c241
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40c22a
mov eax, dword [0x4121b4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x40c248
xor eax, eax
jmp 0x40c2ef
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00402d90
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40c27e
cmp edi, esi
jne 0x40c299
lea eax, [ebx + ebx]
push eax
call fcn.004045e7
pop ecx
mov edi, eax
cmp edi, esi
je 0x40c241
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c2cc
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40c2b6
push esi
push esi
jmp 0x40c2bc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x40c2d8
push edi
call fcn.004044c0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40c2ef
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00402c67
ret
Function at 0x40caa2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40cabb
or eax, 0xffffffff
jmp 0x40cb1c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40cb18
push 0x3d
push esi
call fcn.0040ccac
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40cb18
cmp esi, eax
je 0x40cb18
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x411e78]
sete cl
cmp eax, dword [0x411e7c]
mov dword [ebp - 8], ecx
jne 0x40cafe
mov edi, eax
call fcn.0040ca3c
mov dword [0x411e78], eax
cmp eax, ebx
jne 0x40cb57
cmp dword [ebp + 0xc], ebx
je 0x40cb20
cmp dword [0x411e80], ebx
je 0x40cb20
call fcn.0040c5a9
test eax, eax
je 0x40cb57
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40cb29
xor eax, eax
jmp 0x40cb1b
push 4
call fcn.004045e7
cmp eax, ebx
pop ecx
mov dword [0x411e78], eax
je 0x40cb18
mov dword [eax], ebx
cmp dword [0x411e80], ebx
jne 0x40cb57
push 4
call fcn.004045e7
cmp eax, ebx
pop ecx
mov dword [0x411e80], eax
je 0x40cb18
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x411e78]
call fcn.0040c9ea
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40cbb8
cmp dword [esi], ebx
je 0x40cbb8
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004044c0
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40cb9b
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40cbf9
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40cb92
mov eax, edi
shl eax, 2
push eax
push dword [0x411e78]
call fcn.00407621
cmp eax, ebx
pop ecx
pop ecx
je 0x40cbf9
jmp 0x40cbf4
cmp dword [ebp - 8], ebx
jne 0x40cc64
cmp edi, ebx
jge 0x40cbc7
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x411e78]
call fcn.00407621
cmp eax, ebx
pop ecx
pop ecx
je 0x40cb18
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x411e78], eax
cmp dword [ebp + 0xc], ebx
je 0x40cc4e
push dword [ebp - 4]
call fcn.00404430
inc eax
inc eax
push eax
call fcn.004045e7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40cc4e
push dword [ebp - 4]
push esi
call fcn.00404200
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40cc47
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004044c0
pop ecx
cmp dword [ebp - 8], ebx
je 0x40cc5c
push dword [ebp - 4]
call fcn.004044c0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40cb1b
push dword [ebp - 4]
call fcn.004044c0
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40cb25
Function at 0x105b8
Capabilities:
Delete file
Get file attributes
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x10ace
lea eax, [ebp - 0x1c]
push eax
call edi
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
xor esi, esi
push esi
push esi
push 0x20
push 1
push 1
push 0x80
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call ebx
test eax, eax
jl 0x106da
push 5
push 0x18
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
push dword [ebp - 0x64]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push esi
push esi
push dword [ebp - 0x64]
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push 0x109c4
lea eax, [ebp - 0x24]
push eax
call edi
push esi
push esi
push 0x20
push 5
push 2
push 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call ebx
push esi
push esi
push dword [ebp - 0x64]
lea eax, [ebp - 0x14]
push dword [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push dword [ebp - 4]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call edi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
push dword [ebp - 8]
call edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push 0x10b30
lea eax, [ebp - 0x18]
push eax
call esi
push 0x10b24
lea eax, [ebp - 0x10]
push eax
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
xor ebx, ebx
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
cmp eax, 0xc0000034
je 0x107b9
cmp dword [ebp - 8], ebx
je 0x107b9
push dword [ebp - 8]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push edi
push 2
push eax
push dword [ebp - 4]
call esi
test eax, eax
jge 0x1079b
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x107c4
cmp dword [edi + 4], 4
jne 0x107a6
mov esi, dword [edi + 0xc]
jmp 0x10786
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x107c2
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x107ce
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push 0x10d7c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor esi, esi
push esi
push esi
push 0x20
xor ebx, ebx
inc ebx
push ebx
push ebx
push 0x80
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jge 0x10882
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
call fcn.000106e4
cmp eax, ebx
jne 0x10866
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x10b24
push 0x10d70
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
xor al, al
jmp 0x1087e
cmp eax, 2
jne 0x1087c
push 0x10d24
push 0x10ca4
push esi
call dword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
mov al, bl
pop esi
pop ebx
leave
ret
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, 0x10ba2
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x10896
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0x10d24
push 0x10ca4
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
call esi
pop edi
test eax, eax
jge 0x1087c
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x10b24
push 0x10d70
push ebx
mov dword [ebp - 8], 2
call esi
jmp 0x10862