joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x25c], ebx
push edi
test esi, esi
je 0x407940
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
test ecx, ecx
je 0x4076eb
mov eax, dword [ecx + 0x270]
mov dword [ebp - 0x218], 0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4076eb
lea edx, [ebp - 0x218]
push edx
push ebx
push ecx
call eax
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
je 0x4076eb
mov eax, dword [ebp - 0x218]
push 0
mov dword [esi], eax
mov dword [esi + 4], 0
call fcn.0042933f
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x407727
cmp byte [ebx + 4], 0
jne 0x407727
cmp dword [ebx], 0x2f777777
jne 0x407727
mov dword [esi], 0x200
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi + 0x18], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
push ecx
lea eax, [ebp - 0x214]
mov edx, ebx
push eax
call fcn.004074b0
add esp, 8
lea eax, [ebp - 0x23c]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x407940
mov ecx, dword [ebp - 0x220]
xor eax, eax
or eax, dword [ebp - 0x21c]
mov edx, 0xe57a42bd
mov dword [esi + 4], ecx
mov ebx, 0xd6bf94d5
xor ecx, ecx
mov dword [esi], eax
or ecx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
add ecx, 0x2ac18000
adc eax, 0xfe624e21
mov dword [ebp - 0x218], eax
mov eax, ecx
mul edx
mov dword [ebp - 0x254], eax
mov edi, edx
mov eax, ecx
mov ecx, 0xe57a42bd
mul ebx
mov ebx, eax
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x218]
mul ecx
mov ecx, eax
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x218]
mov edx, 0xd6bf94d5
mul edx
add ecx, edi
mov dword [ebp - 0x244], edx
mov edx, dword [ebp - 0x240]
adc edx, 0
mov dword [ebp - 0x218], eax
add ebx, ecx
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x254], ebx
invalid
popfd
invalid

Function at 0x4078c4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4078ff
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4078e6
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4078f7
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x407901
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4078dc
xor eax, eax
pop edi
pop esi
ret
Function at 0x408160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00407894
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00407849
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x401010
repz ret
jmp fcn.00401598

Function at 0x407585
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c65
and dword [ebp - 4], 0
cmp dword [0x42c55c], 0
mov ebx, eax
jne 0x407636
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076e7
push eax
call fcn.00404bf3
mov dword [esp], 0x427a54
push edi
mov dword [0x42c55c], eax
call esi
push eax
call fcn.00404bf3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c560], eax
call esi
push eax
call fcn.00404bf3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c564], eax
call esi
push eax
call fcn.00404bf3
pop ecx
mov dword [0x42c56c], eax
test eax, eax
je 0x407636
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404bf3
pop ecx
mov dword [0x42c568], eax
mov eax, dword [0x42c568]
cmp eax, ebx
je 0x40768e
cmp dword [0x42c56c], ebx
je 0x40768e
push eax
call fcn.00404c6e
push dword [0x42c56c]
mov esi, eax
call fcn.00404c6e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40768e
test edi, edi
je 0x40768e
call esi
test eax, eax
je 0x407685
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407685
test byte [ebp - 0xc], 1
jne 0x40768e
or dword [ebp + 0x10], 0x200000
jmp 0x4076c7
mov eax, dword [0x42c560]
cmp eax, ebx
je 0x4076c7
push eax
call fcn.00404c6e
pop ecx
test eax, eax
je 0x4076c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4076c7
mov eax, dword [0x42c564]
cmp eax, ebx
je 0x4076c7
push eax
call fcn.00404c6e
pop ecx
test eax, eax
je 0x4076c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c55c]
call fcn.00404c6e
pop ecx
test eax, eax
je 0x4076e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x31ebe20
Capabilities:
Encode data using xor

Disassembly:
jmp 0x31ebe2a
pushal
call 0x31ebe30
pop ebp
sub ebp, 0x10
sub ebp, 0x2debe20
jmp 0x31ebe46
mov eax, 0x2debe20
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0x9e9e7f3a
xor byte [eax], dl
inc eax
dec ecx
jne 0x31ebe5d
jmp 0x31ebe70
mov cl, 0xf7
mov cl, 0xb3
push es
cmp bh, byte [edx]
cmp bh, byte [ebx + 0x3a3ac2fb]
cmp bh, byte [ecx]
test dword [edx + 0x3a3a3a3c], 0x3a3a1280
cmp cl, ch
fdivr dword [ecx]
mov cl, 0xbb
cmp bh, byte ss:[edx]
cmp bh, byte [ecx]
push dword [edi - 0x4c39e1a2]
push ds
push 0x52
ret 0x180f
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 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x48651a03
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, str._b
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x621c3ccc
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x405c74
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ebc], 0
push esi
jne 0x405cab
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c85
mov dword [ecx*4 + 0x422eb8], eax
inc ecx
cmp ecx, 0x100
jl 0x405c80
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cdc
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422eb8]
xor eax, esi
inc ecx
dec edx
jne 0x405cbe
pop edi
not eax
pop esi
ret 0xc
Function at 0x431006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..3ean
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x22cb74a7
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..7LWLf
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4b061208
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x719008], 0x8088405
inc edx
mov dword [ebx + 0x719008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41bbe0
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0xc0
pop ebp
jbe 0x41bb84
outsd dx, dword [esi]
sbb cl, byte [ecx + 0x77]
popfd
mov eax, 0xed9d76af
pop ecx
retf 0x53f2

Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x6fc89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6fc8a5
ret
Function at 0x401e50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push 0x2f
mov esi, ecx
xor ebx, ebx
push str..pipe86A12194_0576_496F_911E_CB6B64509AA9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00406100
mov eax, dword [esp + 0x18]
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jae 0x401e98
lea eax, [esp + 0x18]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x401f40
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x401eba
lea eax, [esp + 0x18]
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401f3f
cmp dword [esi + 0x18], ebp
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], ebx
jb 0x401ee9
mov esi, dword [esi + 4]
jmp 0x401eec
add esi, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401f38
xor eax, eax
push ebx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
push 0x14
lea eax, [esp + 0x40]
push eax
push edi
mov byte [esp + 0x48], bl
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [esp + 0x2c], ebp
jb 0x401f53
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043c992
add esp, 4
mov ecx, dword [esp + 0x44]
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043c23a
add esp, 0x3c
ret

Function at 0x4030e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4605d6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
push 0x10
call fcn.0043c928
add esp, 4
xor edi, edi
cmp eax, edi
je 0x403127
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov esi, eax
jmp 0x403129
xor esi, esi
cmp esi, edi
mov dword [esp + 0x24], 0xffffffff
je 0x403159
push ebx
push esi
call fcn.004064d0
push edi
push edi
push esi
push 0x401f70
push edi
push edi
call fcn.0043c645
add esp, 0x18
cmp eax, edi
je 0x403159
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
call fcn.0043c928
add esp, 4
cmp eax, edi
je 0x403174
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov esi, eax
jmp 0x403176
xor esi, esi
cmp esi, edi
mov dword [esp + 0x24], 0xffffffff
je 0x4031a6
push ebx
push esi
call fcn.004064d0
push edi
push edi
push esi
push 0x402550
push edi
push edi
call fcn.0043c645
add esp, 0x18
cmp eax, edi
je 0x4031a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4036e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40377c
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x403775
nop
lea ecx, [esp + 0x2c]
push 0x463f5c
push ecx
call fcn.00457625
add esp, 8
test eax, eax
je 0x403773
lea edx, [esp + 0x2c]
push str.LUpdater.exe
push edx
call fcn.00457625
add esp, 8
test eax, eax
je 0x403773
lea eax, [esp + 0x2c]
push str.webclient.exe
push eax
call fcn.00457625
add esp, 8
test eax, eax
je 0x403773
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403720
jmp 0x403775
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043c23a
add esp, 0x230
ret
Function at 0x406780
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x406798
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4067ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4067d0
mov eax, dword [ecx]
push eax
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x4067e5
cmp eax, 1
jne 0x4067e8
mov ecx, dword [ecx]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x406812
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x409380
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4093bc
lea ecx, [esp + 8]
push ecx
push 0x464198
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4093c2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40940f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov al, 1
add esp, 0x24
ret
Function at 0x409420
Capabilities:
Check if file exists
Enumerate processes
Get file attributes
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x45e192
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4dc]
mov dword [esp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
mov dword [esp + 0x1c], ebp
mov byte [ebp + 4], 0
push 0
mov dword [esp + 0x4d8], 0
push 2
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40965e
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409657
jmp 0x4094d0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x464]
push 0x4641bc
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x44]
push 0x4641c0
push eax
call fcn.00457625
add esp, 8
test eax, eax
je 0x409547
lea ecx, [esp + 0x44]
push str.pd.exe
push ecx
call fcn.00457625
add esp, 8
test eax, eax
je 0x409547
lea edx, [esp + 0x44]
push str.ltm.exe
push edx
call fcn.00457625
add esp, 8
test eax, eax
je 0x409547
lea eax, [esp + 0x44]
push str.nos.exe
push eax
call fcn.00457625
add esp, 8
test eax, eax
jne 0x409644
mov ecx, dword [esp + 0x28]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x409623
push 0x104
lea edx, [esp + 0x35d]
push 0
push edx
mov byte [esp + 0x364], 0
call fcn.0043eb30
add esp, 0xc
push 0x104
lea eax, [esp + 0x35c]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edi, 0x463d0b
lea esi, [esp + 0x358]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x409618
push 0x104
push edx
lea eax, [esp + 0x259]
push eax
mov byte [esp + 0x25c], dl
call fcn.0043eb30
lea ecx, [esp + 0x25c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x35c]
call fcn.004090b0
add esp, 4
lea edx, [esp + 0x250]
push 0x5c
push edx
call fcn.0043c8a0
add esp, 8
test eax, eax
je 0x409618
lea ecx, [esp + 0x250]
sub eax, ecx
mov edx, ecx
push eax
push edx
mov ecx, ebp
call fcn.00406100
push 7
push 0x464200
mov eax, ebp
call fcn.00408660
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov eax, ebp
call fcn.00406200
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409657
push 0
push 0x463d0b
mov ecx, ebp
call fcn.00406100
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4094d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.0043c23a
add esp, 0x4c4
ret