joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d9e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040629a
mov edi, eax
cmp edi, esi
je 0x408dde
cmp dword [ebp - 4], esi
je 0x408dd7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x408e7b
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408e4f
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.00408d9e
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x408e3c
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x408e01
cmp dword [ebp - 4], esi
je 0x408e4a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x408e7b
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x408e62
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x408e79
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408e82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
push edi
mov eax, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
shr eax, 4
inc eax
and ecx, 0xf
movzx edi, ax
mov ax, word [esi + 0xc]
mov ebp, ecx
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x408ed6
mov ax, word [esi + 0xc]
and ax, 0x3ff
or ah, 4
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x408ed6
push 6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x408f05
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408f05
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x408efd
inc edi
inc edi
cmp ecx, ebp
movzx eax, ax
je 0x408f0e
lea edi, [edi + eax*2]
jmp 0x408eff
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x408ee7
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
lea esi, [edi + eax*2]
movzx ebx, word [esi]
and word [esi], 0
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 0x10], eax
mov word [esi], bx
mov al, 1
jmp 0x408f07
Function at 0x40913a
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x70]
call fcn.004012b2
push 0
lea ecx, [esi + 0x18]
sub esp, 0x1c
mov eax, esp
push str.setup.boot
push ecx
push eax
call fcn.004036da
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.004012e9
test al, al
jne 0x40917e
mov esi, 0xfffffed3
jmp 0x40926b
push 0
lea ecx, [ebp - 0x70]
push dword [esi + 0xcc]
call fcn.00407d27
lea ebx, [esi + 0x88]
lea eax, [ebp - 0x48]
push ebx
push dword [ebp + 8]
push eax
call fcn.0040b16c
add esp, 0xc
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x48]
push eax
call fcn.00402f6a
lea ecx, [ebp - 0x2c]
call fcn.004012b2
push 2
lea eax, [ebp - 0x48]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.004027d7
lea ecx, [ebp - 0x2c]
call fcn.004018cf
test al, al
jne 0x4091dd
mov esi, 0xfffffed2
jmp 0x40924c
push dword [esi + 0xc8]
lea ecx, [ebp - 4]
call fcn.004093dc
push dword [esi + 0xc8]
push 0
push dword [ebp - 4]
call fcn.0040e7e0
add esp, 0xc
lea ecx, [ebp - 0x70]
push dword [esi + 0xc8]
push dword [ebp - 4]
call fcn.004019bd
cmp eax, 0xffffffff
jne 0x40921b
mov esi, 0xfffffed1
jmp 0x409244
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409237
mov eax, dword [ebp + 8]
jmp 0x40923a
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x409287
mov esi, 0xfffffed0
lea ecx, [ebp - 4]
call fcn.0040d97c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x24]
call fcn.00402172
lea ecx, [ebp - 0x48]
call fcn.00402172
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x68]
call fcn.00402172
jmp 0x40931f
lea ecx, [ebp - 0x2c]
call fcn.0040933f
cmp dword [esi + 0xc8], eax
lea ecx, [ebp - 0x2c]
je 0x4092d6
call fcn.004017e2
lea ecx, [ebp - 0x48]
call fcn.00402639
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 4]
call fcn.0040d97c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x24]
call fcn.00402172
mov esi, 0xfffffecf
jmp 0x40930f
call fcn.004017e2
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x48]
push eax
call fcn.0040af63
push eax
mov ecx, ebx
call fcn.0040a895
lea ecx, [ebp - 0x98]
call fcn.00402172
lea ecx, [ebp - 4]
call fcn.0040d97c
lea ecx, [ebp - 0x2c]
call fcn.00409327
xor esi, esi
lea ecx, [ebp - 0x48]
call fcn.00402172
lea ecx, [ebp - 0x70]
call fcn.00409327
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x409486
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
and byte [ebp - 0x188], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x187]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
call fcn.00403133
mov ebx, 0x4102f8
mov edi, 0x4102f0
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00402808
mov esi, 0x4102ec
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], esi
call fcn.00402172
lea ecx, [ebp - 0x20]
call fcn.00402639
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0x104
call fcn.00402639
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], eax
call fcn.00402639
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00403133
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.00402639
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x84]
push eax
call fcn.00403279
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00402639
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403279
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00402639
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x188]
push ecx
mov eax, dword [eax + 4]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x24]
push eax
push 0
call sub.VERSION.dll_VerInstallFileA
lea ecx, [ebp - 0x4c]
mov dword [ebp + 0xc], eax
call fcn.00402172
lea ecx, [ebp - 0x84]
call fcn.00402172
lea ecx, [ebp - 0x68]
call fcn.00402172
mov eax, dword [ebp + 0xc]
test al, 1
je 0x40960a
lea eax, [ebp - 0x188]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], edi
call fcn.00402a82
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040b16c
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x68]
call fcn.00402172
lea ecx, [ebp - 0x4c]
call fcn.00402172
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409652
test al, 4
jne 0x409652
test al, 0x80
mov esi, eax
jne 0x40961d
test ah, 4
je 0x409620
push 0x20
pop esi
test ah, 2
je 0x409628
push 5
pop esi
test ah, 1
je 0x409630
push 0x70
pop esi
lea ecx, [ebp - 0x20]
call fcn.00402639
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x20]
call fcn.00402172
mov eax, 0xfffff830
sub eax, esi
jmp 0x40966f
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00402172
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409802
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
and byte [ebx], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402639
push dword [esi + 4]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 8], eax
jne 0x409860
mov al, 1
jmp 0x4098d6
push eax
lea ecx, [ebp + 0x10]
call fcn.004093dc
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x409886
mov bl, 1
jmp 0x4098cc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x412590
push dword [ebp + 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409882
mov edx, dword [ebp - 4]
xor ecx, ecx
xor esi, esi
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
or ecx, edx
mov edx, dword [ebp + 0xc]
or eax, esi
cmp ecx, dword [edx]
jne 0x4098bf
cmp eax, dword [edx + 4]
jne 0x4098c2
mov byte [ebx], 1
cmp eax, dword [edx + 4]
ja 0x4098ca
jb 0x409882
cmp ecx, dword [edx]
jb 0x409882
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.0040d97c
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4098dd
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], ecx
push esi
push 0x8003
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0040dfde
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00402639
push dword [edi + 4]
call fcn.0040e5b3
pop ecx
mov dword [ebp + 8], eax
mov ecx, edi
call fcn.00402639
mov edi, dword [edi + 4]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp dword [ebp - 0xc], edi
je 0x40994c
lea ecx, [ebp - 0xc]
call fcn.0040a700
mov dword [ebp - 0xc], edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 8]
ja 0x409980
lea ecx, [ebp - 0x6c]
call fcn.0040e06f
lea ecx, [ebp - 8]
call fcn.0040a716
lea ecx, [ebp - 4]
call fcn.0040502f
lea ecx, [ebp - 0xc]
call fcn.0040a700
jmp 0x409a3e
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp dword [ebp - 4], edi
je 0x4099a9
cmp dword [ebp - 4], esi
je 0x4099a6
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], edi
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x4099d5
cmp eax, esi
je 0x4099cf
push eax
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push 1
add eax, ecx
push esi
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040e2d5
test al, al
je 0x4099fc
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push dword [ebp - 8]
call fcn.0040e40f
test al, al
jne 0x409a01
lea ecx, [ebp - 0x6c]
jmp 0x409a14
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x6c]
push eax
call fcn.00409bd1
test eax, eax
lea ecx, [ebp - 0x6c]
jne 0x409a45
call fcn.0040e06f
cmp dword [ebp - 8], esi
je 0x409a26
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x409a33
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x409a3e
push dword [ebp - 0xc]
call ebx
mov eax, 0x80090006
jmp 0x409a71
call fcn.0040e06f
cmp dword [ebp - 8], esi
je 0x409a57
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x409a64
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x409a6f
push dword [ebp - 0xc]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409bd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.PUBLICKEY
push 0x74
push dword [0x41306c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [0x41306c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [0x41306c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
push 0
push edi
push eax
call fcn.0040e2af
pop edi
pop esi
test al, al
jne 0x409c22
xor eax, eax
jmp 0x409c31
mov ecx, dword [esp + 4]
call fcn.0040e3dc
neg al
sbb eax, eax
neg eax
ret 4

Function at 0x409dd3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.0040225b
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004032bc
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x409e09
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00402172
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.00402d2e
cmp dword [0x4103a4], eax
je 0x409e74
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x4102f8
mov dword [ebp - 8], 0x4102f0
call fcn.00404f11
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4102ec
call fcn.00402639
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00402172
mov dword [ebp + 8], edi
jmp 0x409e18
lea ecx, [ebp - 0x38]
call fcn.00402399
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b9d1
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.0040bb6d
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40ba85
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40ba77
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 0x40ba3b
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 0x40ba64
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x40ba71
cmp byte [ebp - 0x838], bl
je 0x40ba77
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x40ba85
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040b67d
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x40baaa
cmp dword [ebp + 0xc], 4
jne 0x40bad6
cmp dword [ebp - 0x14], ebx
jne 0x40bad6
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x40bac2
mov ecx, edi
call fcn.0040c088
jmp 0x40bad6
cmp ax, 4
mov ecx, edi
jne 0x40bad1
call fcn.0040c269
jmp 0x40bad6
call fcn.0040c63d
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x40c088
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0040e890
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c256
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 0x40c256
cmp dword [ebp - 0x14], 1
jne 0x40c256
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], 0x100
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 0x40c219
cmp byte [ebp - 0x148], al
je 0x40c219
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 0x40c20b
lea eax, [ebp - 0x96c]
push 0x412ad4
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x4125b4
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 0x412ad0
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x40c16f
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.0040b856
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40c264
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d1dd
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 0x40d240
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 0x40d252
mov eax, dword [esi + 0xdc]
jmp 0x40d2aa
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x40d2a8
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x40d280
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 0x40d25b
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x40da17
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 8]
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 0x40da81
call esi
cmp eax, 0x3f0
jne 0x40da71
lea eax, [ebp - 8]
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 0x40da7d
mov al, 1
jmp 0x40db46
cmp eax, ebx
je 0x40dafa
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40dafa
call esi
cmp eax, 0x7a
jne 0x40dafa
push dword [ebp - 4]
call fcn.0040b334
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x40daee
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 0x40dafe
cmp byte [ebp - 0x20], bl
je 0x40dafa
push esi
call fcn.0040b33f
pop ecx
xor al, al
jmp 0x40db46
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp + 0xb], bl
jbe 0x40db2e
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40db2a
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x40db0d
jmp 0x40db2e
mov byte [ebp + 0xb], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x20], bl
je 0x40db43
push esi
call fcn.0040b33f
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e5b3
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40e5f5
lea ecx, [ebp - 4]
call fcn.0040a700
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x40e616
lea ecx, [ebp - 8]
call fcn.0040502f
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x40e63a
cmp dword [ebp - 4], ebx
je 0x40e6e9
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x40e6e2
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40e667
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40e6de
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x40e6de
cmp word [edi], 0x5a4d
jne 0x40e697
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40e6c4
cmp dword [esi], 0x4550
jne 0x40e6c4
push esi
push edi
call fcn.0040e56d
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40e6aa
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x40e6bc
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40e6d7
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x40e6e9
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x40e6bf