joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48cca7
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48cd15
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x7bf284
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48cd0c
cmp dword [ebp - 0xc], 4
jne 0x48cd0c
cmp dword [ebp - 0x10], edi
je 0x48cd0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x7e5278], edi
xor eax, eax
jmp 0x48cd54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x7e5278], edi
jge 0x48cd4f
lea eax, [ebp - 0x34]
push eax
mov dword [0x7e5278], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x48cd4f
cmp word [ebp - 0x14], 5
jb 0x48cd4f
call fcn.0048cc82
test eax, eax
je 0x48cd4f
emms
mov dword [0x7e5278], 1
mov eax, dword [0x7e5278]
pop edi
leave
ret

Function at 0x4afb3c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4afb74
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004adbb6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004adb8e
jmp 0x4afb80
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b122a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b126c
call fcn.004b7271
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b126c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b1263
xor eax, eax
jmp 0x4b1274
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b127a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b77a1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b77cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b77ed
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b7707
jmp 0x4b77ed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b77ed
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b7707
test edi, edi
mov eax, edi
jne 0x4b77d7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40118e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4011e7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4011d4
cmp esi, ecx
jae 0x4011d8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4011c4
cmp esi, ecx
jb 0x4011dc
xor eax, eax
jmp 0x4011e6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40126f
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x498710
push 0x422820
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x49e2e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], ecx
and dword [ebp - 0x24], 0
and dword [ebp - 0x50], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4012ed
xor al, al
jmp 0x40136d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov byte [eax], 0xc3
lea eax, [ebp - 0x28]
push eax
push 0x140
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401316
xor al, al
jmp 0x40136d
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push 0x40135b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40144f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x49e2e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x128
mov dword [ebp - 0x138], ebx
mov ecx, edi
lea eax, [ebp - 0x134]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40147b
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014fd
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4014f6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebx
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x4014cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x12c]
jmp 0x4014ff
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x4014e8
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x4014be
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x4014d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041de53
leave
ret 4
Function at 0x405b3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476b7a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49e2e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x49e2e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x405b8a
xor eax, eax
jmp 0x405d0c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x405bb8
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405bb8
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x405d0c
cmp dword [esi + 0x50], 0
je 0x405d0a
mov ecx, esi
call fcn.00406d50
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x405bec
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.0041ee97
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x405d0a
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.004067c6
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x405d01
cmp eax, 1
jg 0x405ce2
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x405caf
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0041fc49
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x405d01
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x405cdd
test edx, edx
jne 0x405c1c
cmp dword [esp + 0x38], 0x20
jae 0x405d01
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.004066d8
jmp 0x405c18
mov ebx, dword [ebp + 8]
jmp 0x405d01
cmp eax, 3
jne 0x405d01
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0041ee97
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00401647
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041de53
mov esp, ebp
pop ebp
ret 4
Function at 0x406bb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476b02
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x49e2e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x49e2e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x406d05
cmp byte [esi + 0x45], bl
je 0x406d05
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406c1c
xor al, al
jmp 0x406d07
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004067c6
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x406c86
dec eax
jne 0x406ceb
mov esi, dword [esp + 0x14]
jmp 0x406c8d
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x406ccc
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0041fc49
add esp, 0x10
cmp edi, eax
jne 0x406cf4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x406cf2
test edi, edi
jne 0x406c4b
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.004066d8
jmp 0x406c43
dec eax
dec eax
jne 0x406cf8
inc eax
jmp 0x406cf6
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00401647
mov al, bl
jmp 0x406d07
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041de53
mov esp, ebp
pop ebp
ret

Function at 0x407fa3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x49e2e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.00423470
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x40801b
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp + 8]
call fcn.00409b5a
test eax, eax
je 0x408021
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407ffa
jmp 0x408023
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 8]
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.0041de53
leave
ret
Function at 0x40aba2
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49e2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x108], 0
call fcn.00423470
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
mov edi, 0x489554
lea eax, [ebx + 0x14]
push edi
push eax
call fcn.00403022
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423470
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.00403022
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423470
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x1c]
push edi
push eax
call fcn.00403022
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423470
add esp, 0x18
mov ecx, ebx
push 0x487b73
call fcn.00401712
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
lea eax, [ebp - 0x108]
push eax
push str._sfsi
push ebx
call fcn.00403022
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423470
add esp, 0x18
lea esi, [ebx + 0xc]
push 0x487b73
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
push str.3370
lea eax, [ebp - 0x108]
push eax
push str._sfsi_s.exe
push esi
call fcn.00403022
mov esi, str.3370
push esi
lea eax, [ebx + 4]
push str._s.exe
push eax
call fcn.00403022
push esi
lea eax, [ebx + 8]
push 0x489554
push eax
call fcn.00403022
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423470
add esp, 0x34
lea esi, [ebx + 0x10]
push 0x487b73
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
lea eax, [ebp - 0x108]
push eax
push str._sfsiconfig.ini
push esi
call fcn.00403022
add esp, 0xc
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40ada9
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, ebx
call fcn.0040b381
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041de53
leave
ret
Function at 0x40d018
Capabilities:
Reference http user-agent string

Disassembly:
push 0x14
mov eax, 0x4776e0
call fcn.00469728
mov esi, 0x49f1e8
push esi
lea ecx, [ebp - 0x18]
call fcn.00401743
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.00401743
mov byte [ebp - 4], 1
call fcn.004388c0
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40d125
xor ebx, ebx
push ecx
mov ecx, dword [ebx + 0x4a3378]
sub ecx, 0x10
mov esi, esp
call fcn.00401f3d
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040cfae
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401dc6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401253
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
push 0
call fcn.00438800
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.00438800
push eax
push 0x2727
push edi
call fcn.00438920
mov esi, dword [ebp - 0x10]
add esp, 0x1c
push esi
push 0x2712
push edi
call fcn.00438920
add esp, 0xc
push 7
push 0x4e
push edi
call fcn.00438920
add esp, 0xc
push edi
call fcn.00438900
pop ecx
mov edi, eax
push edi
push edi
call fcn.00438d40
pop ecx
push eax
lea eax, [ebp - 0x18]
push str._s___d_
push eax
call fcn.00403022
add esp, 0x10
test edi, edi
jne 0x40d10d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x4a3364]
call fcn.00401dc6
mov edi, dword [ebp - 0x14]
add ebx, 4
cmp ebx, 8
jb 0x40d057
push edi
call fcn.004388a0
pop ecx
jmp 0x40d128
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401253
call fcn.004696f6
ret
Function at 0x40d141
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc
mov eax, 0x477857
call fcn.00469728
and dword [ebp - 4], 0
push 3
call fcn.00438950
call fcn.004388c0
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [esp], 0x487b73
call fcn.00401668
mov byte [ebp - 4], 1
test esi, esi
je 0x40d251
push 2
mov edi, 0x4a3364
pop ebx
push 0x489ca4
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00401e69
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401e14
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401dc6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401253
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
push 0
call fcn.00438800
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.00438800
push eax
push 0x2727
push esi
call fcn.00438920
add esp, 0x1c
cmp dword [ebp + 0xc], 0
jne 0x40d20b
push dword [ebp - 0x10]
push 0x2712
push esi
call fcn.00438920
add esp, 0xc
jmp 0x40d239
cmp dword [ebp + 0xc], 1
jne 0x40d239
push dword [edi]
push 0x2712
push esi
call fcn.00438920
push dword [ebp + 8]
push 0x271f
push esi
call fcn.00438920
push 1
push 0x2f
push esi
call fcn.00438920
add esp, 0x24
push esi
call fcn.00438900
add edi, 4
pop ecx
dec ebx
jne 0x40d182
push esi
call fcn.004388a0
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401253
xor eax, eax
call fcn.004696f6
ret 0xc
Function at 0x40dabe
Capabilities:
Persist via run registry key

Disassembly:
push 4
mov eax, 0x4779cf
call fcn.00469728
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040dfb2
and dword [ebp - 4], 0
mov edi, 0x49f1e8
lea ecx, [esi + 0x30]
push edi
call fcn.00401743
lea ecx, [esi + 0x34]
push edi
mov byte [ebp - 4], 1
call fcn.00401743
push edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00401743
lea ecx, [esi + 0x3c]
push edi
mov byte [ebp - 4], 3
call fcn.00401743
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
call fcn.00401743
lea ecx, [esi + 0x44]
push edi
mov byte [ebp - 4], 5
call fcn.00401743
lea ecx, [esi + 0x48]
push edi
mov byte [ebp - 4], 6
call fcn.00401743
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 7
call fcn.00401743
push edi
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 8
call fcn.00401743
mov ecx, esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ecx + 0x30]
mov byte [ebp - 4], 9
call fcn.00401712
mov eax, esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
lea ecx, [eax + 0x34]
mov dword [eax + 0x54], 1
mov dword [eax + 0x28], reloc.WS2_32.dll_accept
mov dword [eax + 0x5c], 0xf003f
mov dword [eax + 0x2c], reloc.WS2_32.dll_bind
call fcn.00401712
mov eax, esi
push str.Control_PanelDesktop_
lea ecx, [esi + 0x38]
mov dword [eax + 0x58], 4
call fcn.00401712
push str.Control_PanelDesktopWallPaper_bak
lea ecx, [esi + 0x4c]
call fcn.00401712
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesActiveDesktopNoChangingWallPaper
lea ecx, [esi + 0x50]
call fcn.00401712
mov ebx, esi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesActiveDesktop
lea ecx, [ebx + 0x3c]
call fcn.00401712
mov eax, ebx
call fcn.004696f6
ret
Function at 0x40dc3d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x49e2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xfe
lea eax, [ebp - 0x103]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x308], ebx
mov byte [ebp - 0x104], bl
call fcn.00423470
push 0xfe
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00423470
push 0xfe
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call fcn.00423470
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30c], ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.00420353
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.00420353
mov eax, dword [ebp + 0x14]
add esp, 0x44
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x304]
push 0xff
push eax
call fcn.00420353
add esp, 0x10
lea eax, [ebp - 0x308]
push eax
push dword [esi + 0x5c]
lea eax, [ebp - 0x104]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dd5f
mov eax, dword [ebp - 0x30c]
inc eax
push eax
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x204]
push ebx
push eax
push dword [ebp - 0x308]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x308]
test eax, eax
je 0x40dd57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dd5f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041de53
leave
ret 0x14