joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e7c
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x408279
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
call fcn.004081a8
cmp dword [0x40c9a4], 0
mov esi, dword [ebp + 0xc]
je 0x4082bb
call fcn.00402dff
test eax, eax
je 0x4082a8
push esi
call fcn.004081d7
test eax, eax
pop ecx
jne 0x4082bb
push 0
push esi
push dword [ebp + 8]
push 0
call dword [0x40c9a4]
jmp 0x408350
mov al, byte [0x40bc00]
push edi
push 0x40
mov byte [ebp - 0x124], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004081d7
pop ecx
pop edi
test eax, eax
lea eax, [ebp + 0xc]
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x4082f8
push CreateStatusWindowA
jmp 0x4082fd
push 0x80000001
call fcn.00407d8b
add esp, 0x10
test eax, eax
jne 0x408337
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004081f1
lea eax, [ebp - 0x124]
push 0x104
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.00407df1
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
push esi
call sub.MSVCRT.dll_strcpy
xor eax, eax
pop ecx
cmp byte [esi], al
pop ecx
setne al
pop esi
leave
ret

Function at 0x408353
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], str.properties
mov dword [ebp - 0x28], 0x40bc00
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
leave
ret
Function at 0x4085e3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
lea eax, [ebp - 0x20]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x408798
mov esi, dword [ebp + 0xc]
push 0x810
push ebx
push esi
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x40b234
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408679
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 8], eax
je 0x408681
push 1
push edi
call fcn.004085b6
pop ecx
pop ecx
jmp 0x40879a
cmp dword [ebp + 0x10], ebx
je 0x408681
push ebx
jmp 0x40866c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4086d0
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push str._4.4X_4.4X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push 0x40bc00
push eax
push edi
call fcn.00408520
add esp, 0x20
test eax, eax
jne 0x4086e0
lea eax, [ebp - 0x18]
push str.040904E4
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x40b504
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x110]
push eax
lea eax, [ebp - 0x18]
push 0x40b4f4
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x210]
push eax
lea eax, [ebp - 0x18]
push 0x40b4e8
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x310]
push eax
lea eax, [ebp - 0x18]
push 0x40baa0
push eax
push edi
call fcn.00408520
add esp, 0x40
lea eax, [esi + 0x410]
push eax
lea eax, [ebp - 0x18]
push 0x40b4dc
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x510]
push eax
lea eax, [ebp - 0x18]
push 0x40ba90
push eax
push edi
call fcn.00408520
lea eax, [esi + 0x610]
push eax
lea eax, [ebp - 0x18]
push 0x40ba80
push eax
push edi
call fcn.00408520
add esi, 0x710
lea eax, [ebp - 0x18]
push esi
push str.OriginalFileName
push eax
push edi
call fcn.00408520
add esp, 0x40
jmp 0x40866a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402050
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401e50
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402362
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403170
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
push 0x4296dc
push 0x4296dc
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x30d54], eax
jne 0x4031a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d64], eax
xor eax, eax
pop esi
ret 0x14
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0x4400000
push 3
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x30d58], eax
jne 0x4031f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d64], eax
mov eax, dword [esi + 0x30d54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 0x14
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40322d
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x30d58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [esi + 0x30d64], eax
call edi
mov edx, dword [esi + 0x30d54]
push edx
call edi
pop edi
xor eax, eax
pop esi
ret 0x14
mov eax, 1
pop esi
ret 0x14

Function at 0x403240
Capabilities:
Send data
Send http request

Disassembly:
push ecx
push esi
push 0
push 0x4400000
lea eax, [esp + 0xc]
push eax
push 0x4296dc
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x30d58]
push str.HTTP_1.0
push ecx
push 0x429710
push edx
mov dword [esp + 0x24], 0x42970c
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x30d5c], eax
je 0x4032b3
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x4032b3
mov eax, dword [esi + 0x30d5c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4032c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d64], eax
xor eax, eax
pop esi
pop ecx
ret 4
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x4032d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x30d5c]
test eax, eax
mov dword [esp + 0xc], esi
je 0x4033d6
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx], 0
jmp 0x403330
mov edx, dword [esi + 0x30d5c]
test edx, edx
je 0x403397
xor eax, eax
push 0x43654c
mov ecx, 0x100
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push 0x400
lea eax, [esp + 0x18]
push eax
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403397
mov ecx, dword [0x43654c]
test ecx, ecx
mov edx, ecx
je 0x4033a3
mov eax, dword [ebx]
cmp eax, dword [ebp + 0x14]
jae 0x4033a3
mov edi, dword [ebp + 0x10]
add edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov esi, dword [esp + 0xc]
add eax, edx
mov dword [ebx], eax
jmp 0x403330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d64], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x30d5c]
push 0
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x16
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4033ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d64], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403420
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [esp + 8], 0x400
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403434
sub eax, edx
mov esi, eax
je 0x40345b
push 1
lea eax, [esi + edi]
push 0x42974c
push eax
call fcn.0040a7fa
add esp, 0xc
test eax, eax
je 0x40345b
dec esi
jne 0x403441
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
add esi, edi
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
pop esi
jne 0x4034bf
lea edx, [esp]
push edx
push 0x436550
push eax
push eax
mov eax, dword [esp + 0x18]
push str.Content_Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4034ab
push 0x18
push str.application_octet_stream
push 0x436550
call fcn.0040a767
add esp, 0xc
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x436550
pop ecx
ret 4
push 0x18
push str.application_octet_stream
push 0x436550
call fcn.0040a767
add esp, 0xc
mov eax, 0x436550
pop ecx
ret 4
Function at 0x403ae0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0xc]
push ebx
mov ebx, dword [ecx + 8]
push edi
xor edi, edi
cmp ebx, eax
mov dword [esp + 8], ecx
jae 0x403b5b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
jmp 0x403b00
mov eax, dword [ebx + 0x500]
dec eax
je 0x403b46
dec eax
jne 0x403b4c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebx + 0x100]
push eax
call ebp
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea edi, [edi + eax + 0x1800]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
jmp 0x403b4c
add edi, 0x2000
mov eax, dword [ecx + 0xc]
add ebx, 0x504
cmp ebx, eax
jb 0x403b00
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x404180
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
push ebx
push esi
push edi
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
lea eax, [esp + 0x14]
push eax
mov esi, ecx
mov dword [esp + 0x24], 0x42970c
mov dword [esp + 0x18], 0
call fcn.00403ca0
mov edx, dword [ebp + 8]
push 0
push 0x4400040
lea ecx, [esp + 0x24]
push ecx
push 0x4296dc
push str.HTTP_1.0
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x30d58]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x30d5c], eax
je 0x40430b
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call ebx
test eax, eax
je 0x40430b
mov eax, str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404213
mov ecx, dword [esi + 0x30d5c]
push 0x10000000
sub eax, edx
push eax
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push ecx
call ebx
test eax, eax
je 0x40430b
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
push edi
lea edx, [esp + 0x4c]
push str.Content_Length:__d_r_n
push edx
call fcn.0040aa2b
lea eax, [esp + 0x54]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404263
mov ecx, dword [esi + 0x30d5c]
push 0x10000000
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call ebx
test eax, eax
je 0x40430b
mov ecx, dword [esi + 0x30d5c]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
xor ebx, ebx
push ebx
mov dword [esp + 0x38], edx
push 8
mov dword [esp + 0x40], edx
push ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], edx
push eax
mov dword [esp + 0x50], edx
push ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x40430b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x30d5c]
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40430b
mov edx, dword [esi + 0x30d5c]
push ebx
push 8
push ebx
push edx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x404322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d64], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00403400
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404c1d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404c3e
cmp esi, eax
jae 0x404c17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404c30
cmp esi, eax
jae 0x404c17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4053b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push 0x10
call fcn.0040968d
mov ebx, eax
xor eax, eax
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 0x104
mov dword [esp + 0x18], ebx
mov dword [ecx + 0xc], eax
call fcn.00419720
add esp, 8
mov esi, eax
mov edi, 0xb
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
push ebp
nop
xor ebp, ebp
cmp dword [ebx + ebp], 0
jne 0x4054c6
mov edx, dword [ebp + 0x434be4]
push edx
push edi
push str.SoftwareMicrosoftOffice_d.0_sInstallRoot_
push esi
call fcn.0040aa2b
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4054c6
push 0x104
call fcn.0040968d
mov ebx, eax
add esp, 4
xor eax, eax
mov ecx, 0x41
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x20]
push str.Path
push eax
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4054b3
mov eax, dword [ebp + 0x434bf4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405484
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405490
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov dword [ecx + ebp], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add ebp, 4
cmp ebp, 0x10
jl 0x4053f2
dec edi
cmp edi, 7
mov dword [esp + 0x18], edi
jg 0x4053f0
mov edi, dword [esp + 0x2c]
xor esi, esi
pop ebp
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x4054fc
push edi
push eax
call fcn.0040ace4
add esp, 8
test eax, eax
je 0x405528
inc esi
cmp esi, 4
jl 0x4054e7
xor edi, edi
mov ecx, dword [ebx + edi*4]
push ecx
call fcn.00409575
add esp, 4
inc edi
cmp edi, 4
jl 0x405504
push ebx
call fcn.00409575
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebx + edi*4]
push eax
call fcn.00409575
add esp, 4
inc edi
cmp edi, 4
jl 0x405530
push ebx
call fcn.00409575
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret
Function at 0x406f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 1
push 0
push 0x429c20
push 0x80000002
mov dword [esp + 0x18], 0x186a0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406f3d
xor eax, eax
add esp, 0x14
ret
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.InfoSent
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406f73
xor eax, eax
pop esi
add esp, 0x14
ret
push edi
xor edx, edx
mov edi, 0x429c1c
lea esi, [esp + 0x10]
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
mov eax, edx
pop edi
setne al
pop esi
add esp, 0x14
ret

Function at 0x407020
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x429c20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407063
mov ecx, dword [esp]
push 1
push 0x429c0c
push 1
push eax
push str.InfoSent
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x407070
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x429c20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4070b3
mov ecx, dword [esp + 8]
mov edx, dword [esp]
push 1
push 0x429c0c
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x407580
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x427d66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push esi
push edi
xor ebx, ebx
push str.Unknown
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
call fcn.00404f60
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x2ac], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4076b4
mov edx, dword [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4076c1
push ebp
lea eax, [esp + 0x1c]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x407699
lea ecx, [esp + 0x10]
call fcn.00401c40
mov eax, dword [edi + 0x190]
xor ebp, ebp
cmp eax, ebx
jbe 0x4076a2
call fcn.004197bc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
movzx eax, byte [edi + ebp + 0x194]
push eax
lea ecx, [esp + 0x1c]
push str._02X
push ecx
mov byte [esp + 0x2b4], 1
call fcn.00407540
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402180
lea eax, [esi - 0x10]
mov byte [esp + 0x2a8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40768c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi + 0x190]
inc ebp
cmp ebp, eax
jb 0x407623
jmp 0x4076a2
add eax, 0xf0000000
mov dword [esp + 0x14], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
jmp 0x4076bd
add eax, 0xe0000000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00401e50
mov esi, dword [esp + 0x2b0]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x2a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x29c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret