joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0c6
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x40d0fa
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 8], ecx
jae 0x40d12b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0xc]
jb 0x40d129
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
add edx, dword [eax + 8]
cmp dword [ebp + 8], edx
jae 0x40d129
mov eax, dword [ebp - 4]
jmp 0x40d12d
jmp 0x40d0e8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d972
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push str.Usage:__s__n
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str._c_license_file
push 0x527474
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str._vendor___vendor_name_
push 0x527498
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str._command_
push str._____s__n
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str.D___Debug_logging_on
push 0x5274d4
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str.d___Debug_logging_off
push 0x5274fc
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str.F___dump_feature_database_to_log_file__vendor_daemon_only_
push 0x527548
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push str.daemons___dump_daemon_info_from_lmgrd_to_the_log_file
push str._________s__n
push 0x53d460
call fcn.0050c6ac
add esp, 0xc
push 1
call fcn.0050cf49
pop ebp
ret

Function at 0x41bf9a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x41bfd2
jmp 0x41c016
mov eax, dword [ebp + 8]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41c016
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0041bba7
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c016
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041c036
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x41c02f
mov edx, dword [ebp - 4]
push edx
call fcn.00412654
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x41c447
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41c488
cmp dword [ebp + 0xc], 0
je 0x41c488
cmp dword [ebp + 0x10], 0
je 0x41c488
cmp dword [ebp + 0x14], 0
jne 0x41c48d
jmp 0x41c560
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041b843
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41c560
cmp dword [ebp - 0xc], 0
je 0x41c560
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c560
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call fcn.0050c859
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41c560
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c560
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x41c536
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x41c54b
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041bcf7
add esp, 8
mov dword [ebp - 8], eax
jmp 0x41c560
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x10], 0
je 0x41c579
mov eax, dword [ebp - 0x10]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x41c592
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41c599
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41c5da
cmp dword [ebp + 0xc], 0
je 0x41c5da
cmp dword [ebp + 0x10], 0
je 0x41c5da
cmp dword [ebp + 0x14], 0
jne 0x41c5df
jmp 0x41c6b2
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041bb02
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41c6b2
cmp dword [ebp - 0xc], 0
je 0x41c6b2
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c6b2
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call fcn.0050c859
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41c6b2
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c6b2
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x41c688
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x41c69d
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041bba7
add esp, 8
mov dword [ebp - 8], eax
jmp 0x41c6b2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x14], 0
je 0x41c6cb
mov eax, dword [ebp - 0x14]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x41c6e4
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41c747
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41c781
cmp dword [ebp + 0xc], 0
je 0x41c781
cmp dword [ebp + 0x14], 0
je 0x41c781
cmp dword [ebp + 0x18], 0
jne 0x41c786
jmp 0x41c808
cmp dword [ebp + 0x10], 1
je 0x41c792
cmp dword [ebp + 0x10], 2
jne 0x41c7e9
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041b843
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41c7ad
jmp 0x41c808
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041b843
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41c7c8
jmp 0x41c808
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
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
jmp 0x41c808
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x41c821
mov edx, dword [ebp - 0x10]
push edx
call fcn.00412654
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x41c83a
mov eax, dword [ebp - 8]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41c841
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41c87b
cmp dword [ebp + 0xc], 0
je 0x41c87b
cmp dword [ebp + 0x14], 0
je 0x41c87b
cmp dword [ebp + 0x18], 0
jne 0x41c880
jmp 0x41c90a
cmp dword [ebp + 0x10], 1
je 0x41c88c
cmp dword [ebp + 0x10], 2
jne 0x41c8eb
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041bb02
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41c8a7
jmp 0x41c90a
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041bb02
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41c8c2
jmp 0x41c90a
mov ecx, dword [ebp - 0xc]
shl ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
jmp 0x41c90a
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x41c923
mov eax, dword [ebp - 0x10]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x41c93c
mov ecx, dword [ebp - 8]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41c987
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x41c9c1
cmp dword [ebp + 8], 0
jne 0x41c9c1
jmp 0x41ca61
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp dword [ebp - 0x10], 0
je 0x41ca61
mov edx, dword [ebp - 0x10]
push edx
call fcn.0050c859
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41ca61
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41ca61
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041bcf7
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ca61
cmp dword [ebp + 0xc], 0
je 0x41ca5b
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jle 0x41ca35
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050c620
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050d2a0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], 0
je 0x41ca7a
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x41ca93
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41ca9a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x41cad4
cmp dword [ebp + 8], 0
jne 0x41cad4
jmp 0x41cb76
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 0x10], 0
je 0x41cb76
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
call fcn.0050c859
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41cb76
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41cb76
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0041bba7
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41cb76
cmp dword [ebp + 0xc], 0
je 0x41cb70
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jle 0x41cb4a
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050c620
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050d2a0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x41cb8f
mov eax, dword [ebp - 8]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x41cba8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41ccac
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b843
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41cda2
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41cda2
cmp dword [ebp + 0x10], 0
je 0x41cda2
mov eax, dword [ebp - 0x10]
push eax
call fcn.0050c859
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41cda2
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41cda2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0041bcf7
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41cd89
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jle 0x41cd6a
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0050d040
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x41cda2
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0050c620
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x41cdbb
mov edx, dword [ebp - 8]
push edx
call fcn.00412654
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x41cdd4
mov eax, dword [ebp - 4]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x41cded
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41cdf4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041bb02
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ceec
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41ceec
cmp dword [ebp + 0x10], 0
je 0x41ceec
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.0050c859
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41ceec
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41ceec
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0041bba7
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41ced3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jle 0x41ceb4
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0050d040
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x41ceec
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0050c620
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x41cf05
mov edx, dword [ebp - 8]
push edx
call fcn.00412654
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x41cf1e
mov eax, dword [ebp - 4]
push eax
call fcn.00412654
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x41cf37
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412654
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x42bbe3
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov dword [ebp - 0x404], 0
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x42bc20
lea ecx, [ebp - 0x400]
push ecx
call fcn.0042c005
add esp, 4
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x42c005
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x408], 0
push 1
call fcn.0042cbbc
add esp, 4
test eax, eax
jne 0x42c04f
mov eax, dword [ebp - 0x40c]
jmp 0x42c16a
mov dword [ebp - 0x410], 0
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b843
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x42c089
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x418], edx
jmp 0x42c092
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x414], 0
je 0x42c0c6
mov edx, dword [ebp - 0x414]
push edx
call fcn.0050e6aa
add esp, 4
mov dword [ebp - 0x414], 0
cmp dword [ebp - 0x404], 0
jne 0x42c0da
mov eax, dword [ebp - 0x40c]
jmp 0x42c16a
push 0x400
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x404]
movsx edx, word [ecx + 8]
push edx
call fcn.0042c2e4
add esp, 0x10
test eax, eax
jne 0x42c111
mov eax, dword [ebp - 0x40c]
jmp 0x42c16a
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x404]
movsx edx, word [ecx + 8]
push edx
call fcn.0042ca85
add esp, 0x10
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x404]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x404]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x40c]
push edx
call fcn.0042cb76
add esp, 0xc
mov eax, dword [ebp - 0x40c]
mov esp, ebp
pop ebp
ret
Function at 0x42cbbc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x544920], 0
je 0x42cbd5
mov eax, 1
jmp 0x42cc13
mov word [ebp - 0x194], 0x101
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x194]
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x42cc04
call sub.WSOCK32.dll_WSAGetLastError
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x42cc13
mov dword [0x544920], 1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4335b2
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 0x80000002
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00434b41
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4336ae
push 0
call fcn.0043373c
add esp, 4
push 1
call fcn.0043373c
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4336ae
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412654
add esp, 4
cmp dword [ebp + 8], 0
je 0x4336a4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x433673
xor edx, edx
test edx, edx
je 0x433673
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
jmp 0x43367a
mov dword [ebp - 0x14], 0xffffffc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x1de
push 0xffffffffffffffc1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417d90
add esp, 0x1c
mov eax, 1
jmp 0x433738
mov edx, dword [ebp - 0xc]
push edx
call fcn.00412654
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4336d6
cmp dword [ebp + 0x14], 0
jne 0x4336e6
mov eax, dword [ebp + 0x10]
push eax
call fcn.0050c510
add esp, 4
test eax, eax
jne 0x4336e6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x43372c
cmp dword [ebp + 0x14], 0
je 0x4336f4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x433706
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0050c510
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0041c6eb
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret