joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4769f9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49c2e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x49c2e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x405b79
xor eax, eax
jmp 0x405cfb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x405ba7
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405ba7
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x405cfb
cmp dword [esi + 0x50], 0
je 0x405cf9
mov ecx, esi
call fcn.00406d3f
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x405bdb
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.0041ed87
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x405cf9
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.004067b5
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x405cf0
cmp eax, 1
jg 0x405cd1
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x405c9e
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0041fb39
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x405cf0
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x405ccc
test edx, edx
jne 0x405c0b
cmp dword [esp + 0x38], 0x20
jae 0x405cf0
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.004066c7
jmp 0x405c07
mov ebx, dword [ebp + 8]
jmp 0x405cf0
cmp eax, 3
jne 0x405cf0
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0041ed87
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00401647
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041dd43
mov esp, ebp
pop ebp
ret 4
Function at 0x406ba7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476981
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x49c2e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x49c2e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x406cf4
cmp byte [esi + 0x45], bl
je 0x406cf4
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406c0b
xor al, al
jmp 0x406cf6
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004067b5
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x406c75
dec eax
jne 0x406cda
mov esi, dword [esp + 0x14]
jmp 0x406c7c
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x406cbb
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0041fb39
add esp, 0x10
cmp edi, eax
jne 0x406ce3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x406ce1
test edi, edi
jne 0x406c3a
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.004066c7
jmp 0x406c32
dec eax
dec eax
jne 0x406ce7
inc eax
jmp 0x406ce5
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00401647
mov al, bl
jmp 0x406cf6
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041dd43
mov esp, ebp
pop ebp
ret

Function at 0x407f92
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x49c2e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.00423360
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x40800a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp + 8]
call fcn.00409b23
test eax, eax
je 0x408010
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407fe9
jmp 0x408012
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 8]
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.0041dd43
leave
ret
Function at 0x40aac7
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49c2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x108], 0
call fcn.00423360
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
mov edi, 0x488504
lea eax, [ebx + 0x14]
push edi
push eax
call fcn.00403011
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423360
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.00403011
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423360
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x1c]
push edi
push eax
call fcn.00403011
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423360
add esp, 0x18
mov ecx, ebx
push 0x486b73
call fcn.00401712
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
lea eax, [ebp - 0x108]
push eax
push str._sfsi
push ebx
call fcn.00403011
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423360
add esp, 0x18
lea esi, [ebx + 0xc]
push 0x486b73
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
push str.4057
lea eax, [ebp - 0x108]
push eax
push str._sfsi_s.exe
push esi
call fcn.00403011
mov esi, str.4057
push esi
lea eax, [ebx + 4]
push str._s.exe
push eax
call fcn.00403011
push esi
lea eax, [ebx + 8]
push 0x488504
push eax
call fcn.00403011
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423360
add esp, 0x34
lea esi, [ebx + 0x10]
push 0x486b73
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
lea eax, [ebp - 0x108]
push eax
push str._sfsiconfig.ini
push esi
call fcn.00403011
add esp, 0xc
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40acce
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, ebx
call fcn.0040b2a8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041dd43
leave
ret
Function at 0x40cf3f
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc
mov eax, 0x477384
call fcn.00469618
mov esi, 0x49d1e8
push esi
lea ecx, [ebp - 0x14]
call fcn.00401743
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.00401743
mov byte [ebp - 4], 1
call fcn.004387b0
mov ebx, eax
test ebx, ebx
je 0x40d02a
push ecx
mov ecx, dword [0x4a1334]
add ecx, 0xfffffff0
mov esi, esp
call fcn.00401f3d
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ced5
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401dc6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401253
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
push 0
call fcn.004386f0
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.004386f0
push eax
push 0x2727
push ebx
call fcn.00438810
mov esi, dword [ebp - 0x10]
add esp, 0x1c
push esi
push 0x2712
push ebx
call fcn.00438810
add esp, 0xc
push ebx
call fcn.004387f0
pop ecx
mov edi, eax
push edi
push edi
call fcn.00438c30
pop ecx
push eax
lea eax, [ebp - 0x14]
push str._s___d_
push eax
call fcn.00403011
add esp, 0x10
test edi, edi
jne 0x40d021
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4a1324
call fcn.00401dc6
push ebx
call fcn.00438790
pop ecx
jmp 0x40d02d
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401253
call fcn.004695e6
ret

Function at 0x40d046
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc
mov eax, 0x4774fb
call fcn.00469618
and dword [ebp - 4], 0
push 3
call fcn.00438840
call fcn.004387b0
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [esp], 0x486b73
call fcn.00401668
mov byte [ebp - 4], 1
test esi, esi
je 0x40d147
push 0x488c54
mov edx, 0x4a1324
lea ecx, [ebp - 0x18]
call fcn.00401e69
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401e14
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401dc6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401253
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
push 0
call fcn.004386f0
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.004386f0
push eax
push 0x2727
push esi
call fcn.00438810
add esp, 0x1c
cmp dword [ebp + 0xc], 0
jne 0x40d107
push dword [ebp - 0x10]
push 0x2712
push esi
call fcn.00438810
add esp, 0xc
jmp 0x40d139
cmp dword [ebp + 0xc], 1
jne 0x40d139
push dword [0x4a1324]
push 0x2712
push esi
call fcn.00438810
push dword [ebp + 8]
push 0x271f
push esi
call fcn.00438810
push 1
push 0x2f
push esi
call fcn.00438810
add esp, 0x24
push esi
call fcn.004387f0
push esi
call fcn.00438790
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401253
xor eax, eax
call fcn.004695e6
ret 0xc
Function at 0x40d9b4
Capabilities:
Persist via run registry key

Disassembly:
push 4
mov eax, 0x477629
call fcn.00469618
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040dea8
and dword [ebp - 4], 0
mov edi, 0x49d1e8
lea ecx, [esi + 0x30]
push edi
call fcn.00401743
lea ecx, [esi + 0x34]
push edi
mov byte [ebp - 4], 1
call fcn.00401743
push edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00401743
lea ecx, [esi + 0x3c]
push edi
mov byte [ebp - 4], 3
call fcn.00401743
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
call fcn.00401743
lea ecx, [esi + 0x44]
push edi
mov byte [ebp - 4], 5
call fcn.00401743
lea ecx, [esi + 0x48]
push edi
mov byte [ebp - 4], 6
call fcn.00401743
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 7
call fcn.00401743
push edi
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 8
call fcn.00401743
mov ecx, esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ecx + 0x30]
mov byte [ebp - 4], 9
call fcn.00401712
mov eax, esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
lea ecx, [eax + 0x34]
mov dword [eax + 0x54], 1
mov dword [eax + 0x28], reloc.WS2_32.dll_accept
mov dword [eax + 0x5c], 0xf003f
mov dword [eax + 0x2c], reloc.WS2_32.dll_bind
call fcn.00401712
mov eax, esi
push str.Control_PanelDesktop_
lea ecx, [esi + 0x38]
mov dword [eax + 0x58], 4
call fcn.00401712
push str.Control_PanelDesktopWallPaper_bak
lea ecx, [esi + 0x4c]
call fcn.00401712
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesActiveDesktopNoChangingWallPaper
lea ecx, [esi + 0x50]
call fcn.00401712
mov ebx, esi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesActiveDesktop
lea ecx, [ebx + 0x3c]
call fcn.00401712
mov eax, ebx
call fcn.004695e6
ret
Function at 0x40db33
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x49c2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xfe
lea eax, [ebp - 0x103]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x308], ebx
mov byte [ebp - 0x104], bl
call fcn.00423360
push 0xfe
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00423360
push 0xfe
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call fcn.00423360
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30c], ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.00420243
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.00420243
mov eax, dword [ebp + 0x14]
add esp, 0x44
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x304]
push 0xff
push eax
call fcn.00420243
add esp, 0x10
lea eax, [ebp - 0x308]
push eax
push dword [esi + 0x5c]
lea eax, [ebp - 0x104]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dc55
mov eax, dword [ebp - 0x30c]
inc eax
push eax
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x204]
push ebx
push eax
push dword [ebp - 0x308]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x308]
test eax, eax
je 0x40dc4d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dc55
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041dd43
leave
ret 0x14
Function at 0x40dc89
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x310
mov eax, 0x477683
call fcn.0046964b
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], eax
push 0xfe
xor ebx, ebx
lea eax, [ebp - 0x30f]
inc ebx
push 0
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x310], 0
call fcn.00423360
push 0xfe
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call fcn.00423360
push 0xfe
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00423360
mov eax, dword [ebp + 0xc]
mov ecx, 0xff
mov dword [ebp - 0x31c], ecx
push dword [eax - 0xc]
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.00420243
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.00420243
add esp, 0x44
lea eax, [ebp - 0x314]
push eax
push dword [esi + 0x5c]
lea eax, [ebp - 0x310]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dd9b
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40dd9b
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x318]
lea eax, [ebp - 0x110]
push eax
call fcn.00401712
jmp 0x40dd9d
xor bl, bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401253
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401253
mov al, bl
call fcn.004695fa
ret 0x14

Function at 0x40e206
Capabilities:
Get session user name

Disassembly:
push 0x10c
mov eax, 0x47785a
call fcn.004696b7
mov esi, ecx
push 0xfe
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00423360
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x118], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x40e26d
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call fcn.00401712
mov al, 1
jmp 0x40e27b
push str.NULL
mov ecx, esi
call fcn.00401712
xor al, al
call fcn.00469609
ret

Function at 0x40e287
Capabilities:
Get hostname

Disassembly:
push 0x10c
mov eax, 0x477817
call fcn.004696b7
mov esi, ecx
push 0xfe
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00423360
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x118], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp eax, 1
jne 0x40e2ef
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [esi + 4]
call fcn.00401712
mov al, 1
jmp 0x40e2fe
push str.NULL
lea ecx, [esi + 4]
call fcn.00401712
xor al, al
call fcn.00469609
ret
Function at 0x40e30a
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x49c2e0]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
push edi
mov edi, 0xfe
xor ebx, ebx
push edi
lea eax, [esp + 0x2a5]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x2ac], bl
call fcn.00423360
push edi
lea eax, [esp + 0x1b1]
push ebx
push eax
mov byte [esp + 0x1b8], bl
call fcn.00423360
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc edi
push edi
lea eax, [esp + 0x2a4]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x2a0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40e395
xor al, al
jmp 0x40e3c6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1a4]
push edi
push eax
call fcn.0041ec20
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esi + 8]
call fcn.00401712
mov al, 1
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041dd43
mov esp, ebp
pop ebp
ret

Function at 0x40e3db
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push 0xc
mov eax, 0x47783f
call fcn.00469681
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, 0x288
push 1
xor edi, edi
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
call fcn.00420f78
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e4fb
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40e441
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420090
mov edi, eax
pop ecx
mov esi, edi
test edi, edi
je 0x40e4fb
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40e4f0
test esi, esi
je 0x40e4c5
push 8
lea eax, [esi + 0x1b0]
push str.0.0.0.0
push eax
call fcn.004330c9
add esp, 0xc
test eax, eax
jne 0x40e478
mov esi, dword [esi]
test esi, esi
jne 0x40e458
test esi, esi
je 0x40e4c5
mov ecx, dword [esi + 0x198]
mov edx, dword [esi + 0x194]
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
mov eax, edx
shr eax, 0x18
push eax
mov eax, edx
shr eax, 0x10
movzx eax, al
push eax
mov eax, edx
shr eax, 8
movzx eax, al
push eax
movzx eax, dl
push eax
push str._0.2X__0.2X__0.2X__0.2X__0.2X__0.2X
push 0x14
push 0x4a1cc8
call fcn.0041ecf7
add esp, 0x24
test edi, edi
je 0x40e4d0
push edi
call fcn.0041f9dd
pop ecx
or dword [ebp - 4], 0xffffffff
push 0x4a1cc8
lea ecx, [ebx + 0xc]
call fcn.00401712
mov al, 1
jmp 0x40e4fd
test esi, esi
je 0x40e4fb
push esi
call fcn.0041f073
pop ecx
xor al, al
call fcn.004695e6
ret
Function at 0x40e5ef
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x40e61a
or eax, 0xffffffff
jmp 0x40e6e2
push edi
push ebx
call fcn.00420090
push ebx
mov edi, eax
push esi
push edi
call fcn.00423360
add esp, 0x10
push edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x40e64e
push edi
call fcn.0041f9dd
or eax, 0xffffffff
jmp 0x40e6e0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x486e78
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x40e671
or esi, 0xffffffff
jmp 0x40e6d8
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040e5ae
test al, al
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x12]
push eax
lea eax, [ebx + 0x18]
push 0x486e84
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
push eax
lea eax, [ebx + 0x20]
push 0x486e84
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x16]
push eax
lea eax, [ebx + 0x1c]
push 0x486e84
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebx + 0x24]
push 0x486e84
push eax
call fcn.00403011
add esp, 0x30
push edi
call fcn.0041f9dd
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4