joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bf16
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
test edi, edi
jne 0x1004bf3e
xor eax, eax
jmp 0x1004c074
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004bf37
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10056120
add esp, 0xc
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004c062
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004c03c
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.10056120
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004c030
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.10057fab
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x1004c06a
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x20c]
push 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1004bfa7
push dword [ebp - 0x418]
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret 4
Function at 0x1004cb62
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jne 0x1004cb87
xor eax, eax
jmp 0x1004cc1a
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push esi
push str.SYSTEMCurrentControlSetServices_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004cc18
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, esi
push eax
push esi
jmp 0x1004cbf6
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10065456
pop ecx
pop ecx
test eax, eax
je 0x1004cc08
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1004cbd5
jmp 0x1004cc0b
xor esi, esi
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10032035
mov esp, ebp
pop ebp
ret 4
Function at 0x1004d0a4
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x1017e68b
call fcn.10077939
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x1004d10f
lea eax, [ebp - 0x218]
push eax
call fcn.100649fb
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.1001fe10
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.100649fb
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.10021a60
xor ebx, ebx
cmp word [esi], bx
jne 0x1004d149
mov eax, ebx
jmp 0x1004d150
push esi
call fcn.100649fb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.10021a60
mov esi, str..lnk
push esi
call fcn.100649fb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.10021a60
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x1004d25e
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.10056120
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.10056120
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.10064b58
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.1004b723
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.100649fb
pop ecx
test eax, eax
jne 0x1004d24c
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10064b58
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x1004d25e
xor esi, esi
inc esi
jmp 0x1004d260
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.1001fd50
mov eax, esi
call fcn.100778f4
ret 4
Function at 0x1004d278
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x101eab80]
test al, al
jne 0x1004d311
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004d308
lea eax, [ebp - 0x20c]
push eax
call fcn.10064d23
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.10057fab
pop ecx
pop ecx
test eax, eax
jne 0x1004d300
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.10057fab
pop ecx
pop ecx
test eax, eax
je 0x1004d308
mov byte [0x101eab80], bl
jmp 0x1004d30e
mov bl, byte [0x101eab80]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10032035
mov esp, ebp
pop ebp
ret
Function at 0x1004de64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004decf
lea eax, [ebp - 0x20c]
push 0x101d749c
push eax
call fcn.10065400
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1004d31f
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret 4
Function at 0x1004eafd
Capabilities:
Enumerate processes

Disassembly:
push 0x284
mov eax, 0x1017e84e
call fcn.10077939
mov eax, dword [ebp + 8]
and dword [ebp - 0x290], 0
test eax, eax
je 0x1004ecf7
push eax
lea ecx, [ebp - 0x40]
call fcn.1001fcb0
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.10040b49
mov dword [esp], 0x22c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.10056120
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
je 0x1004ece7
call fcn.1003cb1d
test al, al
je 0x1004eb8d
pop eax
pop edi
pop edx
push eax
pop edi
pop esi
push edx
push esi
push ecx
push ecx
push ebp
pop edi
pop edx
push ebx
push esi
push edx
pop ebp
push esp
push eax
push ebx
push edx
push esp
push ecx
push edx
pop edx
pop ebx
push edx
pop edi
pop eax
push eax
push eax
pop edi
call fcn.1003c7e1
test al, al
je 0x1004eba8
push edx
push edx
push ecx
push ebx
push eax
push eax
push ecx
pop edx
push ecx
pop ebp
pop edx
pop ebp
push ecx
push eax
pop esp
push esi
push esp
pop edx
call fcn.1003cba7
test al, al
je 0x1004ebc7
pop eax
pop eax
pop ebp
push ecx
push ebx
push ecx
push edi
push eax
pop esp
pop ebx
pop esp
pop esi
push ebp
pop ebp
pop ebp
pop edx
pop edi
push edi
push edi
pop esp
push ebx
push esi
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x284]
push eax
push esi
mov dword [ebp - 0x284], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1004ecb6
mov ebx, dword [ebp - 0x290]
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x1004ec19
lea eax, [ebp - 0x260]
push eax
call fcn.100649fb
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.1001fe10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.10040b49
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1003e630
test eax, eax
je 0x1004ec6d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003fb40
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.1003e630
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x1004ec74
mov byte [ebp - 0x285], 1
test bl, 1
je 0x1004ec88
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.1001fd50
cmp byte [ebp - 0x285], 0
jne 0x1004ecfd
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1001fd50
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004ebf2
call fcn.1003c4ea
test al, al
je 0x1004ece0
pop ebx
pop edi
pop eax
push esi
push ebx
pop ecx
pop ecx
push ecx
push ebx
push edx
push esi
pop esi
push esi
pop ebx
pop ebp
push esp
push edx
push ecx
push esi
push edi
push eax
push edi
push edx
push edi
pop ecx
pop ebp
push eax
mov esi, dword [ebp - 0x28c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.1001fd50
mov eax, esi
call fcn.100778f4
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.1001fd50
jmp 0x1004ece9
Function at 0x1004f513
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x1004fda5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x1004fe5c
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x10181bc4
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x10181bc4
call ebx
push dword [ebp - 0xc]
call ebx
push 0x10181bc4
call ebx
push dword [ebp - 8]
call ebx
push 0x10181bc4
call ebx
push edi
push dword [ebp - 0x10]
call fcn.100659c0
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x1004fe3c
push edi
push dword [ebp - 0xc]
call fcn.100659c0
pop ecx
pop ecx
test eax, eax
je 0x1004fe58
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x1004fe5c
mov ecx, dword [ebp - 0x10]
jmp 0x1004fdec
mov byte [ebp - 1], 1
call fcn.1003c757
test al, al
je 0x1004fe7f
push ebx
pop edx
push ebp
push ecx
push esp
push esp
pop esi
pop ebx
pop edx
pop edx
pop ebx
push esi
push eax
push esp
push esp
pop eax
pop ebx
pop eax
pop esi
pop eax
pop ebp
pop edi
push ebx
push edi
pop ebx
pop edx
call fcn.1003c8f5
test al, al
je 0x1004fea4
push esi
pop esp
push eax
push esi
push ebx
push esi
pop esp
push edi
pop ebp
push edi
push edx
pop edi
pop esp
push ecx
push ecx
pop eax
push ecx
pop ebp
push ebp
push ebx
pop esi
pop edi
pop ebx
push eax
pop ebp
push esp
push esi
push ebx
cmp byte [ebp - 1], 0
jne 0x1004fecb
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.10064970
pop ecx
test eax, eax
je 0x1004fecb
mov ecx, dword [ebp - 0x18]
push esi
call fcn.10050c04
mov al, 1
jmp 0x1004fecd
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10050af1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov eax, dword [edi + 0x210]
mov dword [edi + 0x214], eax
call fcn.1003c7e1
test al, al
je 0x10050b41
push ebp
push ecx
push edi
pop esi
pop ecx
pop eax
pop esp
push ebx
push edi
pop ecx
push ecx
pop esp
push ecx
push eax
push ebx
push edi
push ebp
push esp
push eax
push ebx
pop esp
push eax
pop ebx
pop esi
pop eax
push ebp
push esi
push ecx
push edx
call fcn.1003ca4e
test al, al
je 0x10050b6b
push esp
pop edx
push ebx
pop ebp
pop eax
pop ebp
push ecx
pop eax
push eax
push ecx
pop ebx
push edx
pop esi
push edx
pop esp
pop esp
push ebp
pop edx
pop ecx
push ebp
push eax
push edi
push esp
pop edi
push esi
push ecx
pop edi
mov edi, dword [ebp - 0x11c]
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.10056120
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x10050ba8
mov ecx, edi
call fcn.10050370
jmp 0x10050bbd
mov esi, ebx
test ebx, ebx
jne 0x10050bbd
mov ecx, edi
call fcn.100501ed
inc esi
mov ebx, eax
cmp esi, 0xa
jl 0x10050baa
mov eax, dword [edi + 0x214]
mov ecx, 0x1b0
sub eax, dword [edi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret
Function at 0x10054057
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
call fcn.1003cad8
test al, al
je 0x1005408b
push esp
pop esi
push esp
pop ecx
push ebp
push ecx
pop eax
pop edi
push ecx
push esi
push edx
push ecx
pop esp
push ebp
push eax
pop esp
push esp
pop esp
call fcn.1003c574
test al, al
je 0x100540b0
pop ebp
push eax
push esp
push ecx
push edi
push esp
push ebx
pop edi
push esp
push ecx
pop esp
push esp
pop ebx
pop ebx
pop edi
pop edx
push esi
pop ebp
push eax
push ecx
pop esp
push esp
pop esi
pop ecx
pop ebp
pop ebx
pop edx
push edx
call fcn.1003c5b9
test al, al
je 0x100540d5
push eax
push esi
pop edx
push edx
pop edx
pop ebp
push edi
pop edi
pop esp
push ebx
push esp
pop eax
pop esi
pop eax
push ecx
push esp
push edi
push edi
push edx
push edi
push ebx
pop ebx
push edx
push ebp
push edx
push edi
push esi
push esi
call fcn.1003c757
test al, al
je 0x100540f8
pop edx
push esi
pop edi
pop esi
pop edi
push esp
pop esp
pop ebp
push ebp
pop eax
push ebx
push edx
push esi
pop ebx
push edx
push edi
push eax
push ecx
pop edi
push ebp
push ebp
pop ecx
push edx
pop edi
pop esi
push ebx
call fcn.1003c5fe
test al, al
je 0x10054117
push edi
push edi
push ebx
push eax
pop ebp
pop esi
pop edi
pop esp
pop ebp
push edx
pop edx
push edx
pop edi
pop ebp
push ebx
push esi
push edi
push eax
pop ebx
pop esp
pop ecx
pop ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10054126
xor eax, eax
jmp 0x100541c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101829e4
push dword [ebx]
call esi
push 0x10183fe0
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
mov edi, str.Wow64RevertWow64FsRedirection
mov dword [ebx + 0x18], eax
push edi
push dword [ebx]
call esi
push str.GetSystemWow64DirectoryW
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
call fcn.1003c712
test al, al
je 0x100541a5
pop eax
push edx
pop esp
pop ebx
push ecx
push eax
pop edx
pop edi
push ebx
pop esp
pop edx
pop edi
push edi
pop esi
push edi
pop ecx
push esp
push eax
push esi
push esi
push ebp
pop esp
push edx
mov ebx, dword [ebp - 4]
mov edi, str.Wow64RevertWow64FsRedirection
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebx + 4], 0
je 0x1005411f
push edi
push dword [ebx + 4]
call esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x20], eax
call esi
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100541e8
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x1017edf0
call fcn.10077939
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x24c], 0
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x250], ebx
call fcn.10056120
add esp, 0xc
call fcn.1003c574
test al, al
je 0x10054245
push ebp
push ebp
pop esi
push ecx
pop edi
push edi
push eax
push edi
pop ebx
pop ebx
push esi
push ebp
push esi
push edx
push ebx
push esp
mov ebx, dword [ebp - 0x250]
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
jmp 0x100543a3
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10054395
call fcn.1003cb1d
test al, al
je 0x1005429f
pop eax
pop edi
pop edx
push eax
pop edi
pop esi
push edx
push esi
push ecx
push ecx
push ebp
pop edi
pop edx
push ebx
push esi
push edx
pop ebp
push esp
push eax
push ebx
push edx
push esp
push ecx
push edx
pop edx
pop ebx
push edx
pop edi
pop eax
push eax
push eax
pop edi
call fcn.1003c7e1
test al, al
je 0x100542ba
push edx
push edx
push ecx
push ebx
push eax
push eax
push ecx
pop edx
push ecx
pop ebp
pop edx
pop ebp
push ecx
push eax
pop esp
push esi
push esp
pop edx
call fcn.1003cba7
test al, al
je 0x100542d9
pop eax
pop eax
pop ebp
push ecx
push ebx
push ecx
push edi
push eax
pop esp
pop ebx
pop esp
pop esi
push ebp
pop ebp
pop ebp
pop edx
pop edi
push edi
push edi
pop esp
push ebx
push esi
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x10054309
lea eax, [ebp - 0x218]
push eax
call fcn.100649fb
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1001fe10
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10040ef8
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.1001fd50
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.1004f096
pop ecx
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.1003cca1
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x254]
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x10054259
call fcn.100778f4
ret

Function at 0x1006ac37
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006a8f7

Function at 0x1006ca47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006c8c6
Function at 0x10081b80
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x10081bc9
mov al, byte [esi]
push eax
call fcn.1008dcc0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x10081ba7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x10082f70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10082f91
cmp dword [esi + 0x8c], 0
je 0x10082f91
push 2
push 3
push esi
call fcn.1008e290
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1008fe60
add esp, 4
test esi, esi
je 0x10082fb4
cmp dword [esi + 0x8c], 0
je 0x10082fb4
push 3
push esi
call fcn.1008e2d0
add esp, 8
pop esi
pop ebp
ret

Function at 0x10083c40
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x10083c55
pop ebp
jmp fcn.10083bf0
mov al, 1
pop ebp
ret
Function at 0x1008b050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x1008b094
push esi
push 1
push edi
call fcn.1007e2e0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.1007e2e0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1008b0ca
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x1018c828
push 2
push eax
call fcn.1006502b
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1006502b
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.1008ba50
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x1008b5ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x1008b58c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10032035
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.100b4a50
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.1008b0d0
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret