joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021f04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10047898], eax
je 0x10021f20
mov eax, 0x10dd
jmp 0x10022001
mov eax, dword [0x1004789c]
test eax, eax
jne 0x10022001
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10021f3d
push 6
pop eax
jmp 0x10022000
cmp dword [edi], 0
jne 0x10021f55
push 6
pop eax
mov dword [0x1004789c], eax
mov dword [0x100478a0], edi
jmp 0x10022000
push ebx
push esi
push 0x18
call fcn.10022670
mov esi, eax
test esi, esi
pop ecx
jne 0x10021f6a
push 8
pop edi
jmp 0x10021fe3
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.100218ea
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x10021fd8
cmp ecx, 0x17
ja 0x10021fd8
cmp dword [edi + 0x1c], eax
jne 0x10021fd8
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10021fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10021fe3
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x100478a8]
mov dword [esi], eax
mov dword [0x100478a8], esi
xor eax, eax
jmp 0x10021ffe
cmp dword [0x10047894], edx
push 9
pop edi
jne 0x10021fe9
mov dword [0x1004789c], edi
test esi, esi
je 0x10021ff4
push esi
call fcn.100223c1
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x100478a0], eax
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x100223cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100459c0]
jne 0x100223d6
repz ret
jmp fcn.1002918f

Function at 0x100261b2
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 0x100261ed
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100261d4
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100261e5
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100261ef
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100261ca
xor eax, eax
pop edi
pop esi
ret

Function at 0x10026820
Capabilities:
Inspect section memory permissions

Disassembly:
rol dword [ebx], 0x40
add al, 0xeb
test eax, 0xeb0c5d89
push es
Function at 0x10032733
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100459c0]
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.10029b81
and dword [ebp - 0x14], 0
cmp dword [0x10048628], 0
mov dword [ebp - 0x18], eax
jne 0x100327e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1003288e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1003288e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10048628], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1004862c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10048630], eax
call edi
push eax
call esi
mov dword [0x10048638], eax
test eax, eax
je 0x100327e6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10048634], eax
mov eax, dword [0x10048634]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1003283f
cmp dword [0x10048638], ecx
je 0x1003283f
push eax
call esi
push dword [0x10048638]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1003283f
test ebx, ebx
je 0x1003283f
call edi
test eax, eax
je 0x10032836
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10032836
test byte [ebp - 8], 1
jne 0x1003283f
or dword [ebp + 0x10], 0x200000
jmp 0x10032872
mov eax, dword [0x1004862c]
cmp eax, dword [ebp - 0x18]
je 0x10032872
push eax
call esi
test eax, eax
je 0x10032872
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10032872
mov eax, dword [0x10048630]
cmp eax, dword [ebp - 0x18]
je 0x10032872
push eax
call esi
test eax, eax
je 0x10032872
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10048628]
call esi
test eax, eax
je 0x1003288e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10032890
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100223cc
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404a40
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430f00
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x404bef
or ebp, 0xffffffff
cmp eax, ebp
je 0x404bef
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x404bef
mov edi, edx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x404bef
push edx
lea ecx, [esi + 0x38]
call fcn.00429b85
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x404aac
mov eax, 0x440fc0
push eax
lea ecx, [esi + 0x3c]
call fcn.00429b85
mov eax, dword [esp + 0x40]
mov dword [esi + 0x2c], eax
mov eax, dword [0x43f88c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x2c]
lea ecx, [esi + 0x48]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
mov byte [esp + 0x38], 1
mov dword [esp + 0x28], ebx
call fcn.00406e90
add esp, 0x14
test eax, eax
push edi
jne 0x404b0f
push 0x43e4b0
push 3
call fcn.00410ad0
add esp, 0xc
jmp 0x404bd5
lea ecx, [esi + 0x44]
call fcn.00429b85
push 1
mov ecx, esi
call fcn.00404c10
cmp eax, ebx
mov dword [esi + 0x50], eax
jne 0x404b62
push 0x43e490
push 3
call fcn.00410ad0
add esp, 8
mov ecx, esi
push 1
call fcn.00405790
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x24], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.004299fc
mov eax, esi
jmp 0x404bf1
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.004066b0
mov edx, dword [esi + 0x50]
push edi
mov dword [edx + 0xc], esi
mov ecx, dword [esi + 0x50]
call fcn.00406950
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ebx
push esi
push 0x4049d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x404bc6
cmp eax, ebp
je 0x404bc6
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.004299fc
mov eax, 1
jmp 0x404bf1
push 0x43e470
push 2
call fcn.00410ad0
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.004299fc
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
Function at 0x404ff0
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430f76
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0
push 2
push 0xffffffffffffffff
mov dword [esi + 0x34], eax
call fcn.00407480
mov ecx, dword [esi + 0x50]
add esp, 0x10
call fcn.00406ce0
test eax, eax
je 0x4051db
mov ecx, esi
call fcn.00405e60
mov eax, dword [esi + 0x2c]
test eax, eax
mov eax, dword [esi + 0x40]
je 0x4050d1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405200
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0xc]
call fcn.004299fc
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40514a
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 0x58]
test eax, eax
je 0x40514a
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405200
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x13c], 0
call fcn.0042a1b3
test eax, eax
je 0x405125
mov edx, dword [esi + 0x50]
mov ecx, esi
mov edi, dword [edx + 0x60]
call fcn.00405d90
mov edx, dword [esp + 0x20]
add eax, edi
cmp edx, eax
sete al
test al, al
je 0x405125
mov bl, 1
jmp 0x405127
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0042a1b3
test eax, eax
je 0x405070
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
mov edi, edx
mov eax, dword [ecx + 0xd4]
sub edi, eax
cmp edi, 2
jg 0x405070
sub eax, edx
cmp eax, 2
jg 0x405070
mov ecx, dword [ecx + 0x60]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x405070
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40514a
mov eax, 2
jmp 0x4051db
xor bl, bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call fcn.004299fc
test bl, bl
je 0x40514a
mov ecx, esi
call fcn.00405450
test eax, eax
jne 0x4051af
mov eax, dword [esi + 0x50]
mov ecx, esi
mov ebx, dword [eax + 0x60]
call fcn.00405d90
mov edi, eax
add edi, ebx
test ebx, ebx
jl 0x405169
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x40516b
xor edi, edi
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00405200
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x13c], 1
call fcn.00411660
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
mov dword [esp + 0x134], 0xffffffff
call fcn.004299fc
test bl, bl
je 0x4051af
xor eax, eax
jmp 0x4051db
mov ecx, esi
call fcn.00405290
test eax, eax
jne 0x4051cd
push 0x43e4f8
push 2
call fcn.00410ad0
add esp, 8
xor eax, eax
jmp 0x4051db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x405200
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x430f9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x43f88c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [ecx + 0x40]
lea edx, [esp + 4]
push ecx
push 0x43e50c
push edx
mov dword [esp + 0x20], 1
call fcn.00424f28
mov eax, dword [esp + 0x10]
add esp, 0xc
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00429771
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004299fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x405790
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x43f88c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0042a51e
mov eax, dword [ebp + 8]
mov ebx, 1
test eax, eax
mov byte [ebp - 4], bl
je 0x4057e9
mov ecx, esi
call fcn.004055f0
jmp 0x40596a
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00405200
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00429b35
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004299fc
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x4058b2
mov ecx, dword [eax + 0x60]
test ecx, ecx
jle 0x4058b2
lea ecx, [ebp - 0x34]
call fcn.0042a4c2
mov edx, dword [ebp - 0x14]
push 0
push 0xb042
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0042a630
mov eax, dword [esi + 0x50]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + 0x60]
push eax
call fcn.0042a8fe
mov edi, ebx
jmp 0x40587a
mov dword [ebp - 4], ebx
call fcn.0042a500
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x405896
cmp eax, 0xffffffff
je 0x405896
lea ecx, [ebp - 0x2c]
call fcn.0042a84b
test edi, edi
jne 0x4058b2
mov ecx, dword [ebp - 0x14]
push ecx
push 0x43e5a0
push 2
call fcn.00410ad0
add esp, 0xc
jmp 0x405967
mov edx, dword [ebp - 0x14]
push 4
push edx
call fcn.00414cc1
add esp, 8
test eax, eax
jne 0x40596a
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x34]
call fcn.0042a4c2
mov eax, dword [esi + 0x40]
push 8
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 4], ebx
call fcn.0042a500
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x14c]
push ecx
push eax
xor edi, edi
call fcn.0042a1b3
test eax, eax
je 0x405932
mov edx, dword [esi + 0x50]
lea ecx, [ebp - 0x14c]
push ecx
mov eax, dword [edx + 0xd4]
mov byte [ebp - 0x13c], 0
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x40]
push eax
call fcn.0042a318
mov edi, ebx
jmp 0x40596a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1c]
push eax
push edx
call fcn.00410fb0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push 0x43e580
push 2
mov byte [ebp - 4], 0xa
call fcn.00410ad0
add esp, 0x18
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004299fc
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 8]
push esi
push edx
push 3
push 0xffffffffffffffff
call fcn.00407480
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [esi + 4], bl
mov byte [ebp - 4], 0
call fcn.0042a573
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004299fc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407d95
xor al, al
ret 0x18
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407dca
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
ret 0x18
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret 0x18

Function at 0x407e20
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4314cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x43f88c]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x70]
lea ecx, [esp + 0x24]
push ecx
push ebp
mov dword [esp + 0x6c], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call fcn.0041509a
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407ef9
lea edx, [esp + 0x70]
lea eax, [esp + 0x18]
push edx
push eax
push 0x43e8a4
push esi
mov dword [esp + 0x80], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407ef9
test dword [esp + 0x70], 0xfffffffc
jbe 0x407ef9
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov cx, word [eax + 2]
xor edx, edx
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push 0x43e87c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407ef9
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00429b85
cmp esi, ebx
je 0x407f06
push esi
call fcn.00415052
add esp, 4
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00429771
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], bl
call fcn.004299fc
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x407f50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4314eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
mov esi, 0xfffffffe
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 0x100
push eax
push 0x20019
push 0
push 0x43e8c8
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407fb6
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40802c
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x43e8c0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40801f
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call fcn.00429a6a
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x128], 0
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x120], 0xffffffff
call fcn.004299fc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4

Function at 0x408050
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43150b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
mov esi, 0xfffffffe
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x100
push eax
push 0x20019
push 0
push 0x43e8f8
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4080bc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408141
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408134
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408134
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.00407e20
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x12c], 0
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x124], 0xffffffff
call fcn.004299fc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x409480
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
mov ecx, esi
call fcn.00429987
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4094c6
cmp dword [esp + 0x14], 2
jne 0x4094c6
cmp dword [esp + 8], 6
jb 0x4094c6
push 0x43ea98
mov ecx, esi
call fcn.00429b85
pop esi
add esp, 0x94
ret 4

Function at 0x4094d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov edx, dword [esp + 0x44]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 4]
mov dword [esp + 4], 0x3c
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x43ec3c
mov dword [esp + 0x20], 0x43e3c4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0xc

Function at 0x409540
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4318c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
push ebp
push esi
push edi
lea ecx, [esp + 0x36c]
mov dword [esp + 0x364], 0
call fcn.00429f10
push 0
push 2
mov dword [esp + 0x18], 0x128
mov dword [esp + 0x140], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
mov ecx, dword [0x43f88c]
test eax, eax
setne al
xor edi, edi
mov dword [esp + 0xc], ecx
test al, al
mov byte [esp + 0x364], 1
je 0x409687
mov edx, dword [esp + 0x18]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x138]
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
setne al
test al, al
je 0x40962e
lea ecx, [esp + 0x258]
push ecx
lea ecx, [esp + 0x10]
call fcn.00429b85
lea ecx, [esp + 0xc]
call fcn.00429f10
mov edx, dword [esp + 0x36c]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.00414fa3
add esp, 8
test eax, eax
je 0x40965b
lea ecx, [esp + 0x138]
push ecx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
setne al
test al, al
jne 0x4095e4
test edi, edi
je 0x409641
mov eax, dword [esp + 0x370]
test eax, eax
jne 0x409662
test edi, edi
jne 0x409687
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
jne 0x4095bf
jmp 0x409687
mov edi, 1
jmp 0x409632
mov eax, dword [esp + 0x18]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409687
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov byte [esp + 0x364], 0
call fcn.004299fc
lea ecx, [esp + 0x36c]
mov dword [esp + 0x364], 0xffffffff
call fcn.004299fc
mov ecx, dword [esp + 0x35c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x35c
ret 8