joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x484be8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x484bc9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x484bd8
or bl, 4
test esi, 0x20000000
je 0x484be3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x484c38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00484bec
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x48b2b0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x48b2c2
add esp, 0xfffffff0
call fcn.00403e1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423200
mov eax, dword [0x4da778]
mov dword [eax + 4], ebx
mov dword [eax], 0x48b654
mov eax, dword [0x4da788]
mov dword [eax + 4], ebx
mov dword [eax], 0x48b660
mov eax, ebx
call fcn.0048b66c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x487a88
push eax
push 0
push 0
mov eax, dword [0x4daa18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424ccc]
call fcn.004264e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424ccc]
call fcn.004264e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424ccc]
call fcn.004264e0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0048bad4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b9b0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b9b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b9b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48b3ff
call fcn.00403e74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48b794
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48b93f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48b920
mov dl, 1
mov eax, dword [0x417d88]
call fcn.00403a88
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48b90f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00478844
test al, al
je 0x48b902
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x48b950
lea eax, [ebp - 0x254]
call fcn.00409f60
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48b902
xor eax, eax
push ebp
push 0x48b8fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x48b988
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48b8e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b3c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x48b8e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b902
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48b805
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041cac8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b946
lea eax, [ebp - 0x260]
call fcn.004048cc
ret

Function at 0x48c274
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4dbc18]
cmp byte [eax + 0xa5], 0
jne 0x48c2e5
cmp dword [0x4dbc30], 0
jne 0x48c2a6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48c230
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dbc30], eax
cmp dword [0x4dbc2c], 0
jne 0x48c2c1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4dbc2c], eax
cmp dword [0x4dbc34], 0
jne 0x48c2e5
push esp
push 0
push 0
push 0x48c1d4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4dbc34], eax
pop edx
ret
Function at 0x48c40c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48c423
add esp, 0xfffffff0
call fcn.00403e1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423200
mov eax, dword [0x4da9e8]
cmp word [eax + 2], 0
jne 0x48c44b
mov eax, dword [0x4da9e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048db5c
mov eax, dword [0x4dab64]
cmp word [eax + 2], 0
jne 0x48c465
mov eax, dword [0x4dab64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048dd54
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.00403a88
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42584c]
call fcn.0042d5f4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x48c5ec
mov eax, dword [0x4da848]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d9c4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48e304
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4da848]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d94c
test eax, eax
je 0x48c55a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409940
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d974
test eax, eax
je 0x48c56e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b3c
mov eax, dword [0x4da5a0]
cmp byte [eax], 0
jne 0x48c5a2
mov eax, ebx
call fcn.0048c714
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0048e4e0
mov eax, ebx
call fcn.0048eea4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48c5e2
call fcn.00403e74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c994
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dbc18]
cmp dword [eax + 0x30], 0
je 0x48ca3e
cmp dword [ebx + 0x94], 0
jne 0x48ca38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48c924
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48ca38
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x48c9fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48ca38
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a07c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48ca0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48d5a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x48d5d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004049bc
jmp 0x48d5e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404920
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48e6bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48e6fd
mov eax, esi
call fcn.00473dc8
test al, al
je 0x48e6fd
mov eax, dword [ebx + 0x84]
call fcn.00473ac4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48e6fd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00473ac4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x490c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x114], ebx
test dl, dl
je 0x490c8e
add esp, 0xfffffff0
call fcn.00403e1c
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x490e06
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.00409740
cmp dword [ebp - 0x114], 0
jne 0x490d84
lea eax, [ebp - 0x10d]
mov edx, 0x104
call fcn.00407850
push 0x104
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404b3c
push dword [ebp - 0x11c]
push 0x490e38
push dword [ebp - 8]
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.00404c4c
mov eax, dword [ebp - 0x118]
call fcn.00409674
test al, al
je 0x490d7c
lea eax, [ebp - 0x120]
call fcn.00495068
mov eax, dword [ebp - 0x120]
call fcn.00409674
test al, al
jne 0x490d7c
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404b3c
push dword [ebp - 0x124]
push 0x490e38
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404c4c
mov bl, 1
jmp 0x490d84
lea eax, [ebp - 8]
call fcn.00495068
lea eax, [esi + 4]
mov edx, dword [ebp - 8]
call fcn.00404920
mov dl, 1
mov eax, dword [0x48f6b0]
call fcn.0048fdb0
mov edi, eax
mov dword [esi + 8], edi
mov eax, edi
mov edx, 0x490e44
call fcn.0048fa04
mov eax, dword [esi + 4]
call fcn.00409674
test al, al
je 0x490dc3
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
call fcn.0048fe44
test bl, bl
je 0x490de0
lea eax, [ebp - 0x128]
call fcn.00495068
mov edx, dword [ebp - 0x128]
lea eax, [esi + 4]
call fcn.00404920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490e0d
lea eax, [ebp - 0x128]
mov edx, 6
call fcn.004048f0
lea eax, [ebp - 8]
call fcn.004048cc
ret

Function at 0x4929b8
Capabilities:
Send icmp echo request

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov ebp, edx
mov edi, 0x270f
call fcn.0049293c
mov esi, eax
test esi, esi
je 0x492a03
call sub.Icmp.Dll_IcmpCreateFile
mov ebx, eax
cmp ebx, 0xffffffff
je 0x492a03
push ebp
push 0x1c
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push esi
push ebx
call sub.Icmp.Dll_IcmpSendEcho
cmp dword [esp + 4], 0
jne 0x4929fd
mov edi, dword [esp + 8]
push ebx
call sub.Icmp.Dll_IcmpCloseHandle
mov eax, edi
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x492c1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x492d10
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x110]
mov eax, dword [ebp - 4]
call fcn.00409740
cmp dword [ebp - 0x110], 0
jne 0x492ce0
lea eax, [ebp - 0x109]
mov edx, 0x104
call fcn.00407850
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x114]
call fcn.00495068
mov eax, dword [ebp - 0x114]
call fcn.00409674
test al, al
jne 0x492cd8
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404b3c
push dword [ebp - 0x118]
push 0x492d28
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404c4c
jmp 0x492ce0
lea eax, [ebp - 4]
call fcn.00495068
mov eax, dword [ebp - 4]
call fcn.00409674
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492d17
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.004048f0
lea eax, [ebp - 4]
call fcn.004048cc
ret
Function at 0x492ea4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor eax, eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
xor eax, eax
push ebp
push 0x4930c0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4930cc
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x4dbe64], eax
push 0x4930e0
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x4dbe68], eax
push 0x4930fc
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x4dbe6c], eax
push 0x49310c
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x4dbe70], eax
push 0x493120
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x4dbe74], eax
mov eax, 0x493144
call fcn.00492c1c
test al, al
je 0x492f3b
mov eax, 0x493158
call fcn.00492c1c
test al, al
jne 0x492f3b
call fcn.00492d2c
jmp 0x4930a2
push 0x105
lea eax, [ebp - 0x105]
push eax
push 0x493164
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x492f81
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b3c
mov ecx, dword [ebp - 0x10c]
mov dl, 1
mov eax, dword [0x490be4]
call fcn.00490c50
mov ebx, eax
jmp 0x492f94
mov ecx, 0x493158
mov dl, 1
mov eax, dword [0x490be4]
call fcn.00490c50
mov ebx, eax
lea eax, [ebp - 0x105]
mov edx, 0x105
call fcn.00407850
mov byte [0x4dbe78], 0
mov byte [0x4dbe84], 0
push 0x493180
push 1
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491bcc
mov byte [0x4dbe85], al
push 0x4931a4
push 0
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491bcc
mov byte [0x4dbe86], al
push 0x4931b8
push 0
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491bcc
mov byte [0x4dbe87], al
push 0x4931c8
push 1
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491bcc
mov byte [0x4dbe88], al
push 0x4931e0
push 0
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491b40
mov dword [0x4dbe94], eax
push 0x4931f4
push 0
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491b40
mov dword [0x4dbe8c], eax
mov byte [0x4dbe90], 0
push 0x493208
push 0
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.00491bcc
mov byte [0x4dbe91], al
push 0x493220
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, 0x493194
xor edx, edx
mov eax, ebx
call fcn.004918fc
mov edx, dword [ebp - 0x110]
mov eax, 0x4dbe98
call fcn.00404920
mov eax, ebx
call fcn.00403ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4930c7
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.004048f0
ret
Function at 0x494dd8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor eax, eax
mov dword [ebp - 0x10c], eax
xor eax, eax
push ebp
push 0x494e7c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
mov edx, 0x105
call fcn.00407850
push 0x105
lea eax, [ebp - 0x105]
push eax
push 0x494e88
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x494e50
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b3c
mov ecx, dword [ebp - 0x10c]
mov dl, 1
mov eax, dword [0x493ac8]
call fcn.00493c34
mov dword [0x4dbea8], eax
jmp 0x494e63
xor ecx, ecx
mov dl, 1
mov eax, dword [0x493ac8]
call fcn.00493c34
mov dword [0x4dbea8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494e83
lea eax, [ebp - 0x10c]
call fcn.004048cc
ret

Function at 0x495068
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x495123
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
push 0x495130
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4950be
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b3c
jmp 0x495105
lea edx, [ebp - 0x110]
mov eax, dword [0x4dab14]
mov eax, dword [eax]
call fcn.0048e06c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00409740
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x49514c
call fcn.00404bd8
mov eax, dword [ebx]
call fcn.00404d8c
push eax
push 0x495130
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49512a
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.004048f0
ret
Function at 0x496728
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416c48]
call fcn.004052ac
xor eax, eax
push ebp
push 0x49686c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d935c], 0
jne 0x49677b
mov ecx, dword [0x4da5e4]
mov dl, 1
mov eax, dword [0x407e5c]
call fcn.0040cb38
call fcn.00404284
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031dc
mov eax, ebx
call fcn.0040515c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x49687c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406344
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040516c
test eax, eax
jle 0x496813
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x49680c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b54
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404b3c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408d2c
test eax, eax
jne 0x49680c
mov ebx, 0x15
jmp 0x496818
mov ebx, 0x10
jmp 0x496818
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4d935c]
call fcn.00496680
mov eax, dword [ebp - 8]
call fcn.00496680
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040635c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496873
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004048f0
lea eax, [ebp - 0x10]
mov edx, dword [0x416c48]
call fcn.0040537c
ret
Function at 0x4987e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
xor ebx, ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d7c
mov eax, dword [ebp - 8]
call fcn.00404d7c
mov eax, dword [ebp + 0x14]
call fcn.00404d7c
mov eax, dword [ebp + 0x10]
call fcn.00404d7c
mov eax, dword [ebp + 0xc]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x4989bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4da698]
call fcn.004966f0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x4989cc
call fcn.00406388
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x4989dc
call fcn.00406388
mov eax, dword [ebp - 4]
call fcn.00404d8c
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.00404d8c
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
call fcn.00404d8c
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push 0
mov eax, dword [ebp + 0x10]
call fcn.00404d8c
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
mov eax, dword [ebp + 0xc]
call fcn.00404d8c
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0x4989ec
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x498959
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x11d]
mov ecx, 0x105
call fcn.00404b3c
push dword [ebp - 0x128]
push 0x4989fc
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.004097c8
push dword [ebp - 0x12c]
push 0x498a08
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.00404c4c
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x18]
call fcn.0040514c
push 0
mov eax, dword [ebp - 0x18]
call fcn.0040515c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00404b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4989c3
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.004048f0
lea eax, [ebp - 0x18]
call fcn.00405000
lea eax, [ebp - 0x14]
call fcn.00406344
lea eax, [ebp - 0x10]
call fcn.00406344
lea eax, [ebp - 0xc]
call fcn.00406344
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.004048f0
ret