joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c226
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [eax + 0x332], bl
jne 0x40c247
xor eax, eax
jmp 0x40c353
mov eax, dword [ebp + 0xc]
push edi
push 0x103
mov dword [eax], ebx
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00425710
push 4
push str.http
push esi
mov edi, esi
call fcn.00420170
add esp, 0x18
test eax, eax
jne 0x40c2a0
push 0x2f
push esi
call fcn.0041fb40
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40c29b
push 0x5c
push esi
call fcn.0041fb40
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40c29e
inc edi
jmp 0x40c2a0
mov edi, esi
mov eax, dword [ebp + 8]
add eax, 0x22c
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40c2b0
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c2be
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40c2ce
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push ebx
mov ecx, eax
push 1
and ecx, 3
push SysReAllocStringLen
lea eax, [ebp - 0x108]
rep movsb byte es:[edi], byte [esi]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c344
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0041fb86
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x40c348
push dword [ebp + 8]
call fcn.0041fc06
pop ecx
xor eax, eax
jmp 0x40c352
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40cfb6
Capabilities:
Hash data using rshash

Disassembly:
push esi
mov esi, eax
mov edx, 0xf8c9
xor eax, eax
jmp 0x40cfd1
imul eax, edx
imul edx, edx, 0x5c6b7
movsx ecx, cl
add eax, ecx
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x40cfc2
cmp dword [esp + 8], 0
pop esi
je 0x40cfe7
xor edx, edx
div dword [esp + 4]
mov eax, edx
ret
Function at 0x410570
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410575
sub eax, edx
je 0x4105bb
mov cl, byte [esi + eax - 1]
cmp cl, 0x2e
je 0x41059d
cmp cl, 0x78
je 0x41059d
cmp cl, 0x58
je 0x41059d
cmp cl, 0x30
jl 0x4105a0
cmp cl, 0x39
jg 0x4105a0
dec eax
jne 0x410580
test eax, eax
je 0x4105bb
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4105b7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret
or eax, 0xffffffff
ret
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
ret

Function at 0x4105c3
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and word [ebp - 0x14], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosw word es:[edi], ax
call fcn.00410570
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4105ed
or eax, 0xffffffff
jmp 0x410638
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
push dword [ebp + 8]
mov esi, eax
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x410636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.WSOCK32.dll_closesocket
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4105e8
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x41063e
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, eax
test esi, esi
push edi
mov edi, ecx
jne 0x410666
test edi, edi
je 0x410666
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x410651
sub esi, ecx
jmp 0x410666
cmp eax, esi
jge 0x410679
mov esi, eax
neg esi
add edi, eax
push dword [esp + 0x10]
push esi
push edi
push dword [esp + 0x18]
call sub.WSOCK32.dll_send
test eax, eax
jg 0x41065c
pop edi
pop esi
ret 8

Function at 0x4106ae
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 4]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [ebp - 4], 0
jne 0x41070b
push 0x43639c
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jne 0x410709
push 0x2733
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x41071a
jl 0x41071a
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_recv]
leave
ret 8
Function at 0x41071e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, eax
mov esi, ecx
mov dword [ebp - 8], ebx
push ebx
push edi
call fcn.004106ae
cmp eax, 1
jne 0x41077f
mov al, byte [edi]
cmp al, 0xd
je 0x410754
cmp al, 0xa
je 0x41077a
inc dword [ebp - 8]
inc edi
cmp dword [ebp - 8], 0x400
jl 0x41072f
jmp 0x41077a
push 2
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], bl
call fcn.004106ae
cmp eax, 1
jne 0x41077f
cmp byte [ebp - 1], 0xa
jne 0x41077a
push ebx
push eax
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_recv]
mov eax, dword [ebp - 8]
mov byte [edi], bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41536d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4153a9
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x41540e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x415486
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [edi]
inc eax
push eax
call fcn.0041fa52
pop ecx
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
je 0x41548a
cmp dword [ebp + 8], ebx
je 0x415486
push dword [ebp + 8]
call fcn.0041fc06
pop ecx
xor eax, eax
jmp 0x41548d
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x415496
mov ecx, dword [edi]
mov byte [eax + ecx], bl
pop ebx
leave
ret 0xc
Function at 0x4156a3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, ebx
call fcn.00415657
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00425710
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x41570f
dec eax
je 0x4156fb
dec eax
je 0x4156e6
push 2
pop eax
jmp 0x4157b5
push 6
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEXPIGGY
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x41571f
push 5
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEX
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x41571f
push 6
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEXSB
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xf4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415746
xor eax, eax
jmp 0x4157b5
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41574d
mov esi, str._SEM
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
push 1
movsb byte es:[edi], byte [esi]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push eax
mov dword [ebx + 0xf8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4157b2
push dword [ebx + 0xf4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xf4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xf8]
mov dword [ebx + 0xf4], edi
call esi
mov dword [ebx + 0xf8], edi
jmp 0x415742
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x4157bb
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov dword [ebp - 8], 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4158d4
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4157fe
push ebx
sub eax, edx
push 0x4000000
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x98]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4158c4
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4158b2
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.00425710
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, pe_nt_image_headers32
jmp 0x415898
cmp dword [ebp + 8], ebx
je 0x4158af
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x415878
jmp 0x4158b2
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
jge 0x4158dd
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8

Function at 0x4158e5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x206]
push esi
push eax
mov word [ebp - 0x208], si
call fcn.00425710
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41596d
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, si
jne 0x41593c
mov esi, str..url
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
je 0x41596d
shr eax, 4
not eax
and eax, 1
jmp 0x41596f
xor eax, eax
pop esi
leave
ret 4
Function at 0x415974
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 4], 0x80004005
mov word [ebp - 0x20c], bx
call fcn.00425710
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x415a62
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4159d6
push esi
mov esi, str..url
movsd dword es:[edi], dword [esi]
push 0x3ff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x60c], bl
call fcn.00425710
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415a60
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x60c]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x41813e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 4]
mov esi, 0x4407f0
push 0x431218
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push esi
push esi
push SysReAllocStringLen
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov eax, esi
je 0x418198
mov eax, 0x440804
pop esi
leave
ret

Function at 0x418aae
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x431af8
mov dword [esi + 8], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
lea eax, [esi + 4]
push eax
push edi
push ebx
push 0x418b3c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop ebx
ret
Function at 0x418c07
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.0042beb0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x40300
push ebx
push ebx
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
mov esi, 0x3ff
jne 0x418c73
push esi
lea eax, [ebp - 0x40b]
push ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], esi
mov byte [ebp - 0x40c], bl
call fcn.00425710
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x418d51
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418c81
sub eax, edx
je 0x418d51
push esi
lea eax, [ebp - 0x40b]
push ebx
push eax
mov byte [ebp - 0x40c], bl
call fcn.00425710
add esp, 0xc
xor esi, esi
mov dword [ebp + 8], ebx
mov byte [ebp + 0xf], bl
lea eax, [ebp + 8]
push eax
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp + esi - 0x40c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418cd8
add esi, dword [ebp + 8]
cmp dword [ebp + 8], ebx
jne 0x418ce4
jmp 0x418ce0
mov byte [ebp - 0x40c], bl
xor esi, esi
mov byte [ebp + 0xf], 1
cmp byte [ebp + 0xf], bl
je 0x418caf
mov eax, dword [str.NEWGUID]
mov dword [ebp - 0xc], eax
mov eax, dword [0x431b18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418cff
sub eax, edx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00420170
add esp, 0xc
test eax, eax
jne 0x418d51
mov ecx, dword [ebp + 0x10]
push SysReAllocStringLen
lea eax, [ebp - 0x1814]
mov byte [ebp - 0x3e0], bl
call fcn.00409617
lea eax, [ebp - 0x404]
push eax
push str.PCMUID
lea eax, [ebp - 0x1814]
push eax
call fcn.00409813
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x418dd7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov byte [ebp - 0x14], 0
push esi
push edi
lea edi, [ebp - 0x13]
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
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418df5
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004191c9
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x418e19
add ecx, 4
dec edi
jne 0x418e14
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0xc]
call fcn.00418e4d
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x418e86
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
ret

Function at 0x419137
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x1c]
mov byte [ecx + eax + 0x20], 0x80
inc dword [eax + 0x1c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x1c]
jle 0x419181
jmp 0x419157
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x40
jl 0x41914c
call fcn.00418f82
jmp 0x41916e
mov ecx, dword [eax + 0x1c]
mov byte [eax + ecx + 0x20], 0
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 0x38
jl 0x419163
jmp 0x419186
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x38
jl 0x419176
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x58], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5b], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x59], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5c], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x5e], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5d], dl
mov byte [eax + 0x5f], cl
jmp fcn.00418f82

Function at 0x4191f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
push edi
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
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
mov ecx, 0x431b20
stosb byte es:[edi], al
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41921a
sub eax, esi
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.004191c9
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x41923c
add ecx, 4
dec edi
jne 0x419237
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 8]
call fcn.00418e4d
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x419270
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 8], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x84]
call fcn.00418e86
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.00418f17
lea eax, [ebp - 0x184]
push eax
call edi
push eax
lea eax, [ebp - 0x184]
call fcn.00418f17
lea eax, [ebp - 0x1c]
push eax
call fcn.00418eba
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.00418e4d
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x4192ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, eax
xor eax, eax
inc esi
cmp dword [ebp + 0x14], eax
push edi
mov edi, dword [ebp + 0x10]
je 0x419362
lea esi, [ebx + 1]
lea ebx, [esi + esi]
mov eax, ebx
call fcn.0042b470
mov edi, esp
push ebx
push 0
push edi
call fcn.00425710
add esp, 0xc
push esi
push dword [ebp + 0x10]
push edi
call fcn.004253a0
add esp, 0xc
push esi
push edi
call fcn.004191f8
test esi, esi
pop ecx
pop ecx
je 0x41935d
push esi
push dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
mov dword [ebp - 8], eax
call fcn.004253a0
add esp, 0xc
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.00419270
add esp, 0xc
push 3
pop esi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41939e
push ebx
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret