joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499870
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x4999d9
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x4998a9
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4998b6
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4998c3
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4998f7
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x499907
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x499913
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49991f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49992c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x499939
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
mov dword [ebx + 0x1eb4], eax
lea eax, [ebx + 0x1cb2]
push 0x3e
mov dword [ebp], edi
call fcn.00498e90
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x154]
push edx
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x499998
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004889e0
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.00499710
mov edx, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call ebp
test eax, eax
jge 0x4999d6
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004889e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x49a420
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x4e0490]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49a474
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.0048b3d0
add esp, 8
cmp edi, 0xffffffff
jne 0x49a4a8
push str.Error_accept__ing_server_connect
push ebp
call fcn.004889e0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044bc4c
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00488950
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.004a8540
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x49a516
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x49a516
push edi
push esi
call fcn.0048b3d0
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044bc4c
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044bc4c
add esp, 0x18
ret
Function at 0x4a4b30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e0490]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00465182
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a4b95
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a4b95
lea edx, [esp]
push edx
call dword [0x4e219c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044bc4c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0044bc4c
add esp, 0x108
ret
jmp 0x4a4b30

Function at 0x4a4bb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e0490]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00465182
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a4b95
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a4b95
lea edx, [esp]
push edx
call dword [0x4e219c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044bc4c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0044bc4c
add esp, 0x108
ret
jmp 0x4a4b30
Function at 0x4a8570
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x4a8589
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00488530
push edx
push eax
call fcn.00488560
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x4a85d6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.00488530
push edx
push eax
call fcn.00488560
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4a85d8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4b1a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x28]
or edx, 0x20019
push edx
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.00403110
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b1afb
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00403110
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 5], al
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4

Function at 0x4b1d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004b19f0
movzx eax, al
test eax, eax
jne 0x4b1d3a
xor al, al
jmp 0x4b1d73
mov ecx, dword [ebp + 0xc]
call fcn.004015f0
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403110
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00403110
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4b1d71
xor al, al
jmp 0x4b1d73
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4b1df0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4e0490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp - 0x140]
call fcn.004b19f0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4b1e73
jmp 0x4b1f20
mov dword [ebp - 0x118], 0x100
mov dword [ebp - 0x120], 0
jmp 0x4b1e98
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x11c]
jae 0x4b1f20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4b1f11
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x13c]
call fcn.004039f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.004031c0
mov dword [ebp - 0x118], 0x100
jmp 0x4b1e89
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044bc4c
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2080
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8b88
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4e0490]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x24]
call fcn.00407c40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.004b1df0
mov ecx, dword [ebp - 0x90]
call fcn.004b19c0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00407cd0
jmp 0x4b20f0
lea ecx, [ebp - 0x2c]
call fcn.00407da0
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x24]
call fcn.004083e0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409030
movzx eax, al
test eax, eax
je 0x4b2185
mov ecx, dword [ebp - 0x90]
add ecx, 4
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403180
mov byte [ebp - 4], 1
push 0x4cd2c4
lea ecx, [ebp - 0x4c]
call fcn.00402ab0
lea ecx, [ebp - 0x2c]
call fcn.00407d80
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402a90
push 0
push 0
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004b1da0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004b2080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.004b1d80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004031c0
jmp 0x4b20e8
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x28], 0
je 0x4b226c
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00407930
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00401c60
test eax, eax
je 0x4b2260
push str.RegDeleteKeyExA
lea ecx, [ebp - 0x7c]
call fcn.00401c60
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4b2260
push 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.00403110
push eax
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
push eax
call dword [ebp - 0x80]
test eax, eax
je 0x4b2236
mov byte [ebp - 0x89], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00407950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00407cb0
mov al, byte [ebp - 0x89]
jmp 0x4b22c8
mov byte [ebp - 0x8a], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00407950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00407cb0
mov al, byte [ebp - 0x8a]
jmp 0x4b22c8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00407950
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.00403110
push eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4b22ac
mov byte [ebp - 0x8b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00407cb0
mov al, byte [ebp - 0x8b]
jmp 0x4b22c8
mov byte [ebp - 0x8c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00407cb0
mov al, byte [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0044bc4c
mov esp, ebp
pop ebp
ret
Function at 0x4b2420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e0490]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x44]
call fcn.004b19f0
movzx eax, al
test eax, eax
jne 0x4b247a
mov ecx, dword [ebp + 8]
call fcn.00403130
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
jmp 0x4b2578
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403110
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b24b2
cmp dword [ebp - 0x10], 1
je 0x4b24cb
cmp dword [ebp - 0x10], 2
je 0x4b24cb
cmp dword [ebp - 0x10], 6
je 0x4b24cb
mov ecx, dword [ebp + 8]
call fcn.00403130
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
jmp 0x4b2578
cmp dword [ebp - 0x14], 0
jbe 0x4b2564
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004079f0
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401c60
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403110
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407a30
mov byte [eax], 0
lea ecx, [ebp - 0x3c]
call fcn.00401c60
push eax
lea ecx, [ebp - 0x34]
call fcn.004039f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403180
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004031c0
mov eax, dword [ebp + 8]
jmp 0x4b2578
mov ecx, dword [ebp + 8]
call fcn.00403130
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044bc4c
mov esp, ebp
pop ebp
ret 8
Function at 0x4b26b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x4cd41c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b2793
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x20], 0x33
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x20], 0xc0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0x20], 0xc2
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x20], 4
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x20], 0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044bc4c
mov esp, ebp
pop ebp
ret

Function at 0x4b2ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4b2bff
mov ecx, dword [ebp + 0x14]
call fcn.004015f0
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00401400
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x4b2c09
mov al, 1
jmp 0x4b2c0b
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4b2eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8a95
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x2c]
call fcn.00403130
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4b2f54
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401420
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401400
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.00401400
push eax
mov ecx, dword [ebp + 8]
call fcn.004039f0
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004031c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044bc4c
mov esp, ebp
pop ebp
ret

Function at 0x4b3230
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x4b3296
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
cmp ecx, 0x186a0
jl 0x4b327d
push 0
mov ecx, dword [ebp - 4]
call fcn.004b1580
mov ecx, dword [ebp - 4]
call fcn.004b15b0
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004551c0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.004b15e0
mov esp, ebp
pop ebp
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405610
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x477f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046ce6e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405692
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046ad80
mov eax, dword [eax]
push 0x492c28
push eax
call fcn.0045da84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d0f9
test bl, bl
je 0x405692
push 0x492c28
lea ecx, [esp + 0xc]
call fcn.0046d489
push 0x492c34
lea ecx, [esp + 0xc]
call fcn.0046d489
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4056ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d0f9
jmp 0x405799
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405752
lea edx, [esp + 0x7c]
push 0x492c30
push edx
call fcn.0045da84
add esp, 8
test eax, eax
je 0x405752
lea eax, [esp + 0x7c]
push 0x492c2c
push eax
call fcn.0045da84
add esp, 8
test eax, eax
je 0x405752
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046d0f9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x405fa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406002
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc