joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d1c
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push 0x1c
mov eax, 0x446af1
call fcn.0042d104
mov ebx, ecx
mov ecx, dword [ebx + 4]
call fcn.0041a1b7
xor edi, edi
push edi
push edi
push edi
push edi
push str.MyAgent
mov dword [ebp - 0x18], 0x7d0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x413e67
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call esi
test eax, eax
je 0x413e5e
movzx eax, word [ebx + 0x10]
push 1
push edi
push 3
push edi
push edi
push eax
push str.127.0.0.1
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x20], ebx
je 0x413e50
push 4
lea eax, [ebp - 0x18]
push eax
push 2
push ebx
call esi
test eax, eax
je 0x413e50
push 4
lea eax, [ebp - 0x18]
push eax
push 5
push ebx
call esi
cmp eax, edi
je 0x413e50
push str.Show_404
lea ecx, [ebp - 0x14]
call fcn.00402c7d
push 1
push 0x84400000
push edi
push edi
push str.HTTP_1.0
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
cmp ebx, edi
jne 0x413df8
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x413e45
push 4
lea eax, [ebp - 0x18]
push eax
push 5
push ebx
call esi
test eax, eax
je 0x413ded
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x413e32
cmp dword [ebp - 0x1c], 0x2eff
jne 0x413e45
mov dword [0x45dd80], 1
cmp ebx, edi
je 0x413e50
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x413e5e
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
call fcn.0042d1a9
ret

Function at 0x41496f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x414823
push eax
push eax
mov dword [0x45dd80], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
xor eax, eax
pop esi
leave
ret

Function at 0x41499b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
or dword [ecx], 0xffffffff
xor eax, eax
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x414823
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc
Function at 0x414a25
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x604]
sub esp, 0x684
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x600], eax
mov eax, dword [ebp + 0x618]
push ebx
mov ebx, dword [ebp + 0x614]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x61c]
push esi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x620]
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
jne 0x414a7a
cmp eax, esi
jne 0x414a7a
mov eax, 0x80004005
jmp 0x414ba9
push edi
mov edi, 0x206
push edi
lea eax, [ebp + 0x3fa]
push esi
push eax
mov word [ebp + 0x3f8], si
call fcn.0042c350
add esp, 0xc
cmp ebx, esi
je 0x414af9
push edi
lea eax, [ebp + 0x1f2]
push esi
push eax
mov word [ebp + 0x1f0], si
call fcn.0042c350
push edi
lea eax, [ebp - 0x16]
push esi
push eax
mov word [ebp - 0x18], si
call fcn.0042c350
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1f0]
push eax
push ebx
call fcn.0042f16f
lea eax, [ebp + 0x1f0]
push eax
lea eax, [ebp + 0x3f8]
push eax
call fcn.0042df93
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x3f8]
push eax
call fcn.0042df69
add esp, 0x3c
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x74]
call fcn.0041a1b7
mov ecx, dword [edi + 0x74]
call fcn.0041a1db
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x414ba6
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0042c350
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0042c350
add esp, 0x18
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x3f8]
push eax
call fcn.0042d1db
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
lea ecx, [ebp + 0x3f8]
and eax, ecx
push eax
push dword [ebp - 0x20]
push 0x430
push 1
push esi
push esi
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x20]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x414b9a
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x414ba6
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x600]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c3ca
add ebp, 0x604
leave
ret 0x18
Function at 0x414cd8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x234], eax
jne 0x414d02
xor eax, eax
jmp 0x414e23
cmp dword [ebp + 0xc], esi
je 0x414cfb
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0042c350
add esp, 0xc
push esi
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414d3d
xor eax, eax
jmp 0x414e22
push edi
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
xor edi, edi
inc edi
lea eax, [ebp - 0x20c]
push str.iexplore.exe
push eax
call fcn.0042e1fa
test eax, eax
pop ecx
pop ecx
jne 0x414d67
mov esi, edi
lea eax, [ebp - 0x20c]
push str.maxthon.exe
push eax
call fcn.0042e1fa
test eax, eax
pop ecx
pop ecx
jne 0x414d80
mov esi, edi
lea eax, [ebp - 0x20c]
push str.GreenBrowser.exe
push eax
call fcn.0042e1fa
test eax, eax
pop ecx
pop ecx
jne 0x414d99
mov esi, edi
lea eax, [ebp - 0x20c]
push str.TTraveler.exe
push eax
call fcn.0042e1fa
test eax, eax
pop ecx
pop ecx
jne 0x414db2
mov esi, edi
lea eax, [ebp - 0x20c]
push str.MyIE.exe
push eax
call fcn.0042e1fa
test eax, eax
pop ecx
pop ecx
jne 0x414dcb
mov esi, edi
lea eax, [ebp - 0x20c]
push str.TheWorld.exe
push eax
call fcn.0042e1fa
test eax, eax
pop ecx
pop ecx
jne 0x414de4
mov esi, edi
test esi, esi
jne 0x414dff
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414d4e
jmp 0x414e18
push dword [ebp + 0xc]
push dword [ebp - 0x234]
push dword [ebp - 0x228]
call fcn.00414ca8
add esp, 0xc
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042c3ca
leave
ret

Function at 0x414e30
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x74]
push esi
call fcn.0041a1db
test eax, eax
mov esi, dword [ebp + 8]
mov dword [esi], eax
je 0x414e8a
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, reloc.WS2_32.dll_accept
push ebx
call edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov eax, dword [ebp + 0xc]
push eax
mov dword [eax], 0x20
push dword [esi]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push str.Software
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push dword [ebp + 8]
call edi
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x41548e
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x604]
sub esp, 0x684
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x600], eax
mov ecx, dword [ebp + 0x61c]
mov eax, dword [ebp + 0x618]
push ebx
mov ebx, dword [ebp + 0x614]
push esi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x620]
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
jne 0x4154e0
cmp eax, esi
jne 0x4154e0
mov eax, 0x80004005
jmp 0x4155c1
push edi
mov edi, 0x206
push edi
lea eax, [ebp + 0x3fa]
push esi
push eax
mov word [ebp + 0x3f8], si
call fcn.0042c350
add esp, 0xc
cmp ebx, esi
je 0x41555f
push edi
lea eax, [ebp - 0x16]
push esi
push eax
mov word [ebp - 0x18], si
call fcn.0042c350
push edi
lea eax, [ebp + 0x1f2]
push esi
push eax
mov word [ebp + 0x1f0], si
call fcn.0042c350
push esi
push esi
lea eax, [ebp + 0x1f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0042f16f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x3f8]
push eax
call fcn.0042df93
lea eax, [ebp + 0x1f0]
push eax
lea eax, [ebp + 0x3f8]
push eax
call fcn.0042df69
add esp, 0x3c
call fcn.0040a716
mov edi, eax
cmp edi, esi
je 0x4155bb
push 0x44eb2c
lea ecx, [ebp - 0x20]
call fcn.00402c7d
push 0x44
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0042c350
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0042c350
mov eax, dword [ebp - 0x20]
add esp, 0x18
push esi
mov dword [ebp - 0x78], eax
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4155da
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 0x80004005
pop edi
mov ecx, dword [ebp + 0x600]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c3ca
add ebp, 0x604
leave
ret 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x3f8]
push eax
call fcn.0042d1db
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
lea ecx, [ebp + 0x3f8]
and eax, ecx
push eax
push dword [ebp - 0x1c]
push 0x430
push esi
push esi
push esi
push dword [ebp - 0x2c]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x41563c
mov esi, 0x80004005
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x4155c0
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x415648
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x41562f
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x41562f

Function at 0x41a03a
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0x20
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
leave
ret
Function at 0x41a053
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0042c350
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x41a0a9
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x41a106
mov eax, dword [ebp - 0x70]
dec eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
je 0x41a0e8
dec eax
jne 0x41a104
cmp edx, 6
jne 0x41a0c4
test ecx, ecx
jne 0x41a104
push 8
pop edi
cmp edx, 5
jne 0x41a0e0
cmp ecx, 2
jne 0x41a0d1
push 7
pop edi
cmp ecx, 1
jne 0x41a0d9
push 6
pop edi
test ecx, ecx
jne 0x41a104
push 5
pop edi
cmp edx, 4
ja 0x41a104
push 4
pop edi
cmp edx, 4
jne 0x41a104
test ecx, ecx
jne 0x41a0f4
xor edi, edi
inc edi
cmp ecx, 0xa
jne 0x41a0fc
push 2
pop edi
cmp ecx, 0x5a
jne 0x41a104
push 3
pop edi
mov eax, edi
mov ecx, dword [ebp + 0x9c]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c3ca
add ebp, 0xa0
leave
ret

Function at 0x41a11d
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
inc eax
cmp dword [ecx + 0x24], eax
mov dword [ebp - 0x10], ecx
je 0x41a1b5
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
call fcn.0040a44c
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41a1b2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, reloc.WS2_32.dll_accept
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebx, eax
test ebx, ebx
je 0x41a1a7
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.Software
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push dword [ebp - 4]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0x20
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, eax
test ebx, ebx
je 0x41a1a7
mov eax, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
mov dword [eax + 0x24], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41af9b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
call fcn.0040a716
push 1
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
mov dword [ebp - 8], esi
call fcn.0040a44c
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x41b02a
push edi
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0042c350
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x54], 0x44eb2c
mov dword [ebp - 4], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, esi
pop edi
je 0x41b02a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
push 0x430
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
je 0x41b02a
xor eax, eax
jmp 0x41b02f
call fcn.00401491
pop esi
pop ebx
leave
ret 0x10

Function at 0x420bd4
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 0x20000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 4], ebx
jne 0x420c03
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00403bca
xor eax, eax
jmp 0x420c70
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x420c0f
lea eax, [ebp + 0xc]
push edi
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x420c2a
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
jmp 0x420c63
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x420c55
xor eax, eax
cmp dword [ebp + 0x24], eax
je 0x420c74
cmp dword [ebp - 0x1c], 1
jne 0x420c8b
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x420c8b
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00403bca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0x1c], 4
jne 0x420c8b
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x420cc0
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 4]
call esi
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00403bca
mov eax, ebx
jmp 0x420c6f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x28], 0
je 0x420cce
cmp dword [ebp - 0x1c], 1
je 0x420cce
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp eax, 1
je 0x420cab
jmp 0x420c8b
xor ebx, ebx
inc ebx
jmp 0x420c8d
Function at 0x420cd3
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 2
push esi
push esi
mov dword [ebp - 0x808], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x810], eax
jne 0x420d13
call fcn.00401491
mov dword [ebp - 0x808], eax
jmp 0x420de6
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x420d1f
lea eax, [ebp + 0xc]
push ebx
push edi
push 2
push eax
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x420dd1
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x420d4c
lea eax, [ebp + 0x28]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x420dc1
push 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0042c350
push 4
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.0042c350
mov eax, dword [ebp + 0x44]
add esp, 0x18
cmp dword [ebp + 0x58], 8
jae 0x420d95
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
jmp 0x420dcc
call fcn.00401491
mov dword [ebp - 0x808], eax
push edi
call ebx
jmp 0x420ddc
call fcn.00401491
mov dword [ebp - 0x808], eax
push dword [ebp - 0x810]
call ebx
pop edi
pop ebx
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00403bca
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.00403bca
push esi
push 1
lea ecx, [ebp + 0x40]
call fcn.00403bca
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
xor ecx, ebp
pop esi
call fcn.0042c3ca
leave
ret

Function at 0x421384
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4213d6
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4213d6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4213b6
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4213c1
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4213c1
push 1
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x3c], 0
and dword [esi + 0x38], 0
and dword [esi + 4], 0
xor eax, eax
inc eax
pop esi
ret
Function at 0x4213db
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ecx
push ecx
push ebp
xor ebp, ebp
cmp dword [esp + 0x10], ebp
mov dword [esp + 4], ebp
je 0x4214ef
cmp dword [esp + 0x18], ebp
je 0x4214ef
cmp word [esp + 0x14], bp
je 0x4214ef
push ebx
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0xc], ebx
je 0x4214e8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push edi
push 4
mov edi, 0x7d0
push edi
push 2
push ebx
call esi
push 4
push edi
push 5
push ebx
call esi
push 4
push edi
push 6
push ebx
call esi
push ebp
push ebp
push 3
mov eax, 0x44c6f4
push eax
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
push 4
push edi
mov ebx, eax
push 2
push ebx
call esi
push 4
push edi
push 5
push ebx
call esi
push 4
push edi
push 6
push ebx
call esi
push ebp
push 0x4000000
push ebp
push ebp
push ebp
push dword [esp + 0x38]
push 0x44f558
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, eax
test ebp, ebp
je 0x4214d1
push 4
push edi
push 2
push ebp
call esi
push 4
push edi
push 5
push ebp
call esi
push 4
push edi
push 6
push ebp
call esi
xor esi, esi
push esi
push esi
push esi
push esi
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x4214ca
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
pop edi
pop esi
je 0x4214de
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 8]
pop ebx
jmp 0x4214f1
xor eax, eax
pop ebp
pop ecx
pop ecx
ret

Function at 0x42171d
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x38], edi
jne 0x421773
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x42173e
xor eax, eax
jmp 0x421776
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x42161f
push edi
push edi
mov dword [esi + 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x38], eax
jne 0x42176d
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], edi
jmp 0x42173a
inc dword [0x45decc]
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x421c13
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x421ce7
cmp dword [ebp + 0xc], 0
jbe 0x421ce7
push esi
mov esi, 0x288
push esi
call fcn.0042c1f0
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x421c65
push dword [ebp + 8]
call fcn.0042c2b3
push dword [ebp - 4]
call fcn.0042c1f0
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x421ccd
and dword [ebp - 8], eax
test esi, esi
je 0x421cd8
push edi
xor edi, edi
cmp dword [esi + 0x190], edi
jbe 0x421cc4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
cmp dword [ebp - 8], eax
jae 0x421cc4
movzx eax, byte [edi + esi + 0x194]
push eax
push str._02x
push ebx
call fcn.0042e6e3
push ebx
call fcn.0042d200
add dword [ebp - 8], eax
push ebx
call fcn.0042d200
add esp, 0x14
add ebx, eax
inc edi
cmp edi, dword [esi + 0x190]
jb 0x421c88
mov esi, dword [esi]
test esi, esi
jne 0x421c7e
pop edi
jmp 0x421cd8
push str.Call_to_GetAdaptersInfo_failed._n
call fcn.0042f26a
pop ecx
push dword [ebp + 8]
call fcn.0042c2b3
pop ecx
xor eax, eax
inc eax
pop esi
jmp 0x421ce9
xor eax, eax
pop ebx
leave
ret 8

Function at 0x421d15
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
mov esi, dword [ebp + 0xa8]
xor ebx, ebx
cmp esi, ebx
jne 0x421d48
mov eax, 0x80070057
jmp 0x421e05
cmp dword [ebp + 0xac], 0xa
jb 0x421d3e
push 0x100
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x2f3a63
call fcn.0042c350
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x421dcb
push edi
xor eax, eax
mov byte [ebp + 0x88], bl
lea edi, [ebp + 0x89]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
push ebx
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0042f51f
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0042e7f0
lea eax, [ebp - 0x7c]
push 0x44e7a0
push eax
call fcn.0042e800
add esp, 0x24
pop edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
je 0x421df7
push dword [ebp - 0x80]
push 0x44f5e0
push esi
call fcn.0042e6e3
xor eax, eax
add esp, 0xc
inc eax
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp + 0x9c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c3ca
add ebp, 0xa0
leave
ret 8