joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415346
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41541f
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x28], 0x104
mov eax, str.CommonFilesDir
je 0x4153a1
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x148]
mov ebx, 0x44655c
mov edi, 0x446554
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.00403191
mov esi, 0x446550
push 0x44c700
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.00403200
lea ecx, [ebp - 0x24]
call fcn.004154d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406d6e
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [edi], esi
jmp 0x4154c4
cmp byte [ebp - 0x148], 0
mov ebx, 0x44655c
je 0x415466
lea eax, [ebp - 0x148]
mov edi, 0x446554
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00403191
mov esi, 0x446550
push 0x44c700
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.00403200
jmp 0x415493
lea eax, [ebp - 0x148]
mov edi, 0x446554
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.00403191
mov esi, 0x446550
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406d6e
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4154bb
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x24]
call fcn.00402544
test byte [ebp - 4], 1
je 0x4154c9
lea ecx, [ebp - 0x44]
call fcn.00402544
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417ef6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
push esi
push edi
push 5
push eax
push dword [esp + 0x18]
mov esi, ecx
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov dword [esi + 4], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp dword [esi], edi
je 0x417f42
mov ecx, esi
call fcn.004169ed
mov dword [esi], edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi + 8]
call fcn.00420f70
mov eax, dword [esi + 8]
add esp, 0xc
cmp word [eax + 2], 0xffff
jne 0x417f7a
or dword [eax + 0xc], 0x48
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x4184c5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc], ecx
cmp word [eax + 0xc0], 8
jne 0x41864f
push ebx
push esi
push edi
push 1
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push 1
lea ecx, [ebp - 0x58]
call fcn.00402783
and byte [ebp - 0x28], 0
and dword [ebp - 0x20], 0
push 0x32
lea ecx, [ebp - 0x58]
pop eax
mov dword [ebp - 0x24], ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
call fcn.0040276d
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x2c]
call fcn.00402746
push ebx
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [ebp - 0x58]
mov dword [ebp - 8], eax
call fcn.00402c9d
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x58]
call fcn.00402c9d
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPointA]
call edi
movzx esi, word [ebp - 0x18]
movzx eax, word [ebp - 0x1c]
shl esi, 0x10
or esi, eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x44da14
push dword [ebp - 8]
call edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, si
and byte [ebp - 1], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
shr esi, 0x10
push eax
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub edi, dword [ebp - 0x3c]
sub esi, dword [ebp - 0x38]
cmp edi, dword [ebp - 8]
jge 0x4185ca
mov eax, dword [ebp - 8]
mov byte [ebp - 1], 1
sub eax, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp esi, eax
jge 0x4185d8
lea esi, [eax + 4]
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x418644
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x2c
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x68]
push 1
push esi
push edi
lea eax, [eax + eax*2]
push dword [ebp - 0x64]
sub ecx, eax
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
call ebx
mov eax, dword [ebp - 0xc]
push 9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xc], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x68]
push 1
sub eax, dword [ebp - 0x10]
push esi
push edi
push dword [ebp - 0x64]
push eax
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0x58]
call fcn.00402852
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418f05
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x3dc], 0
je 0x41908d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41908d
mov edi, dword [ebp + 8]
test edi, edi
je 0x41908d
cmp dword [esi + 0xac], edi
lea eax, [esi + 0xac]
je 0x41908d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [eax], edi
test byte [0x451b34], 1
jne 0x418f70
or byte [0x451b34], 1
call ebx
mov dword [0x451b30], eax
call ebx
mov ecx, eax
sub ecx, dword [0x451b30]
cmp byte [0x44d994], 0
mov dword [0x451b30], eax
jne 0x418f91
cmp ecx, 0x64
jb 0x41908d
and byte [0x44d994], 0
xor ebx, ebx
cmp edi, 0x100000
lea edi, [edi + edi*4]
setle bl
dec ebx
push 1
and ebx, 0xa
add ebx, 0xa
shl edi, 1
mov cl, bl
sar edi, cl
lea ecx, [ebp - 0x64]
call fcn.00402783
push 0
lea eax, [ebp - 0x64]
push 0xffffffffffffffff
push eax
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp bx, 0x14
setne al
add eax, 0x4e
push eax
call fcn.00419d4a
push 1
lea ecx, [ebp - 0x48]
call fcn.00402783
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ebp - 0x48]
push 0xffffffffffffffff
push eax
push 0x50
call fcn.00419d4a
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402783
lea ecx, [ebp - 0x48]
call fcn.00402c9d
mov ebx, dword [ebp - 0x44]
lea ecx, [ebp - 0x64]
call fcn.00402c9d
push ebx
lea eax, [ebp - 0x2c]
push dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, edi
xor edx, edx
push 0xa
and byte [ebp - 0xc], 0
pop ecx
and dword [ebp - 4], 0
div ecx
mov eax, edi
mov dword [ebp - 0x10], 0x20
push edx
xor edx, edx
div ecx
lea ecx, [ebp - 0x10]
push eax
push 0x44d934
call fcn.0040276d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.00402746
lea ecx, [ebp - 0x2c]
call fcn.00402c9d
push dword [ebp - 0x28]
push 0x9108
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x2c]
call fcn.00402852
lea ecx, [ebp - 0x48]
call fcn.00402852
lea ecx, [ebp - 0x64]
call fcn.00402852
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x41a44a
Capabilities:
Write file on windows

Disassembly:
push 0x4000
push dword [esp + 8]
push dword [0x451b68]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp fcn.0041a464
Function at 0x41a464
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x443ee0
call fcn.00421bd8
sub esp, 0x34
push ebx
push esi
push dword [0x451b64]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x40]
call fcn.00407a46
push 4
xor ebx, ebx
sub esp, 0x1c
mov ecx, 0x451b3c
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
mov dword [ebp - 4], ebx
call fcn.0040716f
push eax
mov ecx, esi
call fcn.0040713e
lea ecx, [ebp - 0x40]
call fcn.004080b2
cmp al, bl
je 0x41a517
push dword [0x451b68]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 2
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], eax
call fcn.0040cf2a
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0x3c]
call esi
push 0x21
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push dword [0x451b68]
call fcn.004209fd
mov eax, dword [0x451b68]
lea ecx, [ebp - 0x18]
push ebx
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x3c]
call esi
lea ecx, [ebp - 0x40]
call fcn.00407f7d
push dword [0x451b64]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x40], 0x4465c0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.00407f7d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00402544
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41a830
Capabilities:
Create directory

Disassembly:
mov eax, 0x443f5c
call fcn.00421bd8
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040402d
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00403abe
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00403643
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.004052ee
lea ecx, [ebp - 0x6c]
call fcn.00403643
lea ecx, [ebp + 8]
mov dword [0x451b9c], ebx
call fcn.00404bf4
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x4465a0
mov esi, 0x446598
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], esi
call fcn.00403e51
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 1
push 1
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
push eax
call fcn.004045da
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41a94c
sub eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push dword [ebp - 0x14]
push eax
call fcn.0041b15c
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0041b190
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00403643
mov eax, dword [ebp - 0x1c]
inc eax
cmp dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
jle 0x41a94c
cmp dword [ebp - 0x18], 2
jg 0x41a920
cmp byte [ebp - 0xd], bl
jne 0x41a94c
push ebx
lea ecx, [ebp - 0x44]
call fcn.00404ff5
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41a94c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x451b9c], eax
jne 0x41a986
mov dword [0x451b9c], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41a8bb
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00403643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403643
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403eac
call fcn.0041a9aa
add esp, 0x28
mov byte [ebp - 0xd], bl
jmp 0x41a95d
Function at 0x41b099
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4440cc
call fcn.00421bd8
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00404ff5
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040a0d4
cmp eax, ebx
je 0x41b0ec
cmp dword [ebp - 0x10], ebx
mov dword [0x451b9c], eax
je 0x41b0e7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x5c]
jmp 0x41b12d
lea ecx, [ebp + 0x34]
call fcn.00404ff5
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x41b0d1
cmp dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x18]
je 0x41b12d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00403643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.00403643
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41d2bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0041d4a8
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41d376
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41d363
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x41d327
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x41d350
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x41d35d
cmp byte [ebp - 0x838], bl
je 0x41d363
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x41d376
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41d376
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041cf35
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x41d39b
cmp dword [ebp + 0xc], 4
jne 0x41d3c7
cmp dword [ebp - 0x14], ebx
jne 0x41d3c7
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x41d3b3
mov ecx, edi
call fcn.0041d918
jmp 0x41d3c7
cmp ax, 4
mov ecx, edi
jne 0x41d3c2
call fcn.0041dafe
jmp 0x41d3c7
call fcn.0041ded1
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x41d918
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00420f40
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41dae6
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x41dae6
cmp dword [ebp - 0x14], 1
jne 0x41dae6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41daa9
cmp byte [ebp - 0x148], al
je 0x41daa9
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41da9b
lea eax, [ebp - 0x96c]
push 0x44e22c
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x44ca84
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x44e228
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x41d9ff
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0041d10e
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x41daf9
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41daf9
push dword [ebp - 4]
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ea96
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x41eaf9
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x41eb0b
mov eax, dword [esi + 0xdc]
jmp 0x41eb63
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x41eb61
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x41eb39
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x41eb14
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x41f2bb
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41f322
call esi
cmp eax, 0x3f0
jne 0x41f315
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x41f31e
push 1
jmp 0x41f341
cmp eax, ebx
je 0x41f340
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41f340
call esi
cmp eax, 0x7a
je 0x41f350
push ebx
push dword [ebp - 4]
call fcn.0041f2ac
pop ecx
pop ecx
jmp 0x41f447
push dword [ebp - 8]
call fcn.00420f25
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41f396
push ebx
push dword [ebp - 4]
call fcn.0041f2ac
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41f38e
push esi
call fcn.00420a94
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x41f447
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41f3e0
push ebx
push dword [ebp - 4]
call fcn.0041f2ac
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41f3db
push esi
call fcn.00420a94
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x41f447
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x41f41f
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41f40c
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x41f3ef
jmp 0x41f41f
cmp byte [ebp + 0xc], bl
je 0x41f41b
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x41f41f
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0041f2ac
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41f444
push esi
call fcn.00420a94
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f49d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41f4ef
push eax
call fcn.00420f25
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f4ef
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44caa4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41f4f3
xor al, al
jmp 0x41f554
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41f552
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00420f25
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41f552
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41f540
mov al, 1
pop ebx
leave
ret 4