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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4cee48]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47035f
cmp byte [ebx], 0xa
jne 0x47035f
or byte [eax + edi + 0x28], 4
jmp 0x470364
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x470462
mov al, byte [edx]
cmp al, 0x1a
je 0x470444
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x470393
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4703b8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4703c2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x470375
jmp 0x470462
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47043f
cmp dword [ebp - 0xc], 0
je 0x47043f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4cee48]
test byte [eax + edi + 0x28], 0x48
je 0x470419
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x470404
mov byte [esi], dl
jmp 0x470415
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cee48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x470462
cmp byte [ebp - 1], 0xa
jne 0x470428
cmp esi, ebx
jne 0x470428
mov byte [esi], 0xa
jmp 0x470461
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004711b4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x470462
mov byte [esi], 0xd
jmp 0x470461
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4cee48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47045e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470462
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47046b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4cee48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4704ae
cmp word [esi], dx
jne 0x4704ae
or byte [edi + eax + 0x28], 4
jmp 0x4704b3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x470606
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4705e6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4704f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47052b
cmp eax, edx
jae 0x470537
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4704cd
jmp 0x470606
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4705e2
cmp dword [ebp - 0x14], 0
je 0x4705e2
mov eax, dword [ebx*4 + 0x4cee48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4705ba
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x470583
mov word [esi], cx
jmp 0x4705b6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4cee48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4cee48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4cee48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x470606
pop ebx
cmp word [ebp - 4], bx
jne 0x4705cb
cmp esi, dword [ebp + 0xc]
jne 0x4705cb
mov word [esi], bx
jmp 0x470603
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004711b4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x470606
push 0xd
jmp 0x4705ff
mov ecx, dword [ebx*4 + 0x4cee48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4705fd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470606
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x712005c3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x19f17926
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, dword [ebx + ecx*4]
inc ebp
or al, 0x8b
cmpsd dword [esi], dword es:[edi]
or byte [ebp + 0x7d8b5756], ch
adc al, 0xff
invalid

Function at 0x40b590
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
xchg ecx, eax
dec dword [edx + 0x44]
and al, 0x14
cmpsd dword [esi], dword es:[edi]
sar byte [ebp + 0x14], 0x47
mov edx, dword [esp + 0x10]
neg eax
neg edx
sbb eax, 0
mov dword [esp + 0x14], eax
mov dword [esi + eax + 0x10], edx
mov eax, dword [esp + 0x1c]
or eax, eax
jge 0x40b5cd
inc edi
xchg edx, eax
out dx, al
and al, 0x18
neg eax
neg edx
out 0xd8, al
add byte [ebx], al
inc esp
inc ebx
sbb al, 0x89
stosd dword es:[edi], eax
and al, 0x2b
or eax, eax
jne 0x40b5f5
mov ecx, dword [esp + 0x18]
lodsb al, byte [esi]
and al, 0xe6
xor edx, edx
div ecx
mov eax, eax
mov eax, dword [ecx + ecx*8 + 0x10]
idiv dword [ebp + 0x41ebd3fb]
mov ebp, 0x41ebd3fb
xchg al, bl
mov ecx, dword [esp + 0xd]
mov edx, dword [esp + 0x14]
jne 0x40b639
and al, 0x10
jns 0x40b5e4
lodsd eax, dword [esi]
invalid
add byte [edi + 0x68d76aec], dl
invalid

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
push 0x40
push 0x1000
push 0x1b5bf
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x401030
push 0x1b5bf
push 0x403058
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call esi
xor eax, eax
pop esi
ret

Function at 0x401839
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401878
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401878
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401878
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401878
cmp dword [ecx + 0x74], 0xe
jbe 0x401878
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4137a5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d32e7
call fcn.00476d58
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.004b92f2
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.004b68b0
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004b92f2
mov eax, dword [0x5757d0]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004b6811
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x413826
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.004b8feb
mov dword [ebp - 0x1c], ebx
jmp 0x41387c
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp + 0x14]
push ebx
push eax
call fcn.004b6811
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004b6811
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x413869
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x413832
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.004b8feb
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004b927e
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.004b927e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b927e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4138b2
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d3323
call fcn.00476d58
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.004b92f2
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.004b68b0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004b92f2
mov eax, dword [0x5757d0]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004b6811
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x413933
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.004b8feb
mov dword [ebp - 0x1c], ebx
jmp 0x413989
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004b6811
add esp, 0x10
lea eax, [ebp + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004b6811
add esp, 0x14
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x413976
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x41393f
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.004b8feb
mov dword [ebp - 0x1c], 1
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.004b927e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b927e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b927e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413a74
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x2b4
mov esi, ecx
push edi
push 0
push eax
call fcn.00476d80
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0xc
lea eax, [esp + 0x10]
mov ebp, 0x501110
push 0x4001
push edi
push eax
push 0
push ebp
call ebx
mov dword [esi + 4], eax
push 0x4000
lea eax, [esp + 0x14]
push edi
push eax
push 0
push ebp
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x413afd
test eax, eax
je 0x413afd
push ecx
lea ecx, [esi + 0xc]
call fcn.004b7884
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0xffffffffffffffff
push dword [esi + 0x10]
call edi
push dword [esi + 8]
lea ecx, [esi + 0x14]
call fcn.004b7884
push 0xffffffffffffffff
push dword [esi + 0x18]
call edi
xor eax, eax
jmp 0x413b00
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret
Function at 0x413b28
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push esi
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.00476d80
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
mov ecx, 0x4010
and al, 0x90
add eax, 0x80
cmp dword [ebp + 0xc], 0
je 0x413b69
inc ecx
cmp dword [ebp + 0x10], 0
je 0x413b72
or ecx, 2
push ecx
lea ecx, [ebp - 0x2b4]
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop esi
jne 0x413b8f
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp - 0x2b0]
leave
ret

Function at 0x413cca
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d3394
call fcn.00476d58
push ecx
push ecx
push ebx
push 0x57cfec
lea ecx, [ebp - 0x10]
call fcn.004b92f2
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.004135b0
pop ecx
test eax, eax
pop ecx
je 0x413d06
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004b9415
mov eax, dword [0x5757d0]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._e___s_
push eax
call fcn.004b6811
add esp, 0xc
push 1
push ebx
push dword [ebp - 0x14]
push str.explorer.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004b927e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b927e
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413e71
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x413ed3
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x413ed3
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x413ed5
xor eax, eax
pop esi
leave
ret
Function at 0x4164de
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x417685
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4d36f8
call fcn.00476d58
push ecx
mov eax, dword [0x5757d0]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x5757d0]
and dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov eax, dword [0x5757d0]
mov dword [esi + 0x24], eax
mov eax, dword [0x5757d0]
mov dword [esi + 0x28], eax
mov eax, dword [0x5757d0]
mov dword [esi + 0x2c], eax
mov eax, dword [0x5757d0]
mov dword [esi + 0x30], eax
mov eax, dword [0x5757d0]
mov dword [esi + 0x34], eax
mov eax, dword [0x5757d0]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x4df4f0
mov dword [esi + 0xc], eax
call fcn.004187ac
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x419293
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d3a1b
call fcn.00476d58
sub esp, 0x10
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004191c5
push 1
lea eax, [ebp - 0x14]
pop ebx
mov dword [ebp - 4], ebx
mov dword [esp], str.Components
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b9523
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419304
lea eax, [ebp - 0x14]
push str.Modules
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004b9523
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004b93c5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004b927e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004b8feb
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004b927e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b927e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41b863
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00477b60
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x57cfec
call fcn.004b9415
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00476d80
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41b8c6
or eax, 0xffffffff
jmp 0x41b920
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1001
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
je 0x41b8fd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b8c1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x41b8c1
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.0041b926
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x42645f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00477b60
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x57cfec
call fcn.004b9415
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00476d80
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4264c2
or eax, 0xffffffff
jmp 0x42651c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1001
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
je 0x4264f9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4264bd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x4264bd
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.004265c4
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x426522
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00477b60
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.00476d80
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, ebx
mov dword [ebp - 8], 0x1001
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.004266d3
test eax, eax
jne 0x426590
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x426595
or eax, 0xffffffff
jmp 0x4265be
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
push 3
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4265b3
or edi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8