joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3690
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544cb4
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1b0], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a8], eax
mov dword [esi], 0x574d38
xor edi, edi
push edi
lea ecx, [esi + 0xb0]
call fcn.00498380
mov dword [ebp - 4], edi
push edi
lea ecx, [esi + 0xc4]
call fcn.00498380
mov byte [ebp - 4], 1
push edi
lea ecx, [esi + 0xd8]
call fcn.00498380
mov byte [ebp - 4], 2
push edi
lea ecx, [esi + 0xec]
call fcn.00498380
mov byte [ebp - 4], 3
lea ecx, [esi + 0x104]
call fcn.0052f150
mov byte [ebp - 4], 4
push 4
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [esi + 0x104]
call fcn.0052eed0
mov ebx, 1
add dword [0x5c20c4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x9c], edi
mov edx, dword [ebp - 0x1a8]
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x80], edi
mov eax, 5
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 4], edi
mov dword [esi + 0x84], ebx
mov dword [esi + 0x98], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x100], edi
push 0x64
push edi
lea eax, [esi + 0x18]
push eax
call fcn.004ff6f0
push 0x104
push edi
push 0x5c1fc0
call fcn.004ff6f0
add esp, 0x18
mov ecx, esi
call fcn.004ac5b0
test eax, eax
je 0x4b387c
lea ecx, [ebp - 0x1a4]
push ecx
push 0x101
call dword [0x5c20d0]
test eax, eax
jne 0x4b387c
mov eax, dword [ebp - 0x1a4]
cmp al, bl
jne 0x4b387c
shr eax, 8
cmp al, bl
jne 0x4b387c
mov dword [ebp - 0x1ac], edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xa0], eax
lea edx, [ebp - 0x1ac]
push edx
push edi
push esi
push 0x4b3680
push edi
push edi
call fcn.005008fb
add esp, 0x18
mov dword [esi + 0x9c], eax
cmp eax, edi
je 0x4b386f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov eax, dword [esi + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b386f
mov ecx, esi
call fcn.004b2b90
cmp dword [eax + 0x6c], edi
je 0x4b386f
mov dword [esi + 0x80], ebx
mov ecx, dword [esi + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 3
jmp 0x4b38a9
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x4b8180
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x4b825d
push str.mapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
je 0x4b8265
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIInitialize
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.MAPILogonEx
push eax
call edi
mov ecx, dword [esi]
push str.MAPIUninitialize
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.MAPIAllocateBuffer
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.MAPIAllocateMore
push eax
call edi
mov ecx, dword [esi]
push str.MAPIFreeBuffer
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.MAPIAdminProfiles
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.RTFSync
push eax
call edi
mov ecx, dword [esi]
push str.WrapCompressedRTFStream
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi]
push str.HrGetOneProp_12
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi]
push str.HrSetOneProp_8
push eax
call edi
mov ecx, dword [esi]
push str.HrQueryAllRows_24
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi]
push str.FreeProws_4
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi]
push 0x575b20
push eax
call edi
mov dword [esi + 0x38], eax
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x4ba640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545a22
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [0x5bbfe4]
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
mov ecx, dword [0x5bbfe4]
mov dword [esi + 8], ecx
mov byte [ebp - 4], 1
mov edx, dword [0x5bbfe4]
mov dword [esi + 0xc], edx
mov byte [ebp - 4], 2
mov eax, dword [0x5bbfe4]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 3
mov ecx, dword [0x5bbfe4]
mov dword [esi + 0x24], ecx
mov byte [ebp - 4], 4
push 0
lea ecx, [esi + 0x30]
call fcn.00498380
mov ebx, 5
mov byte [ebp - 4], bl
mov byte [ebp - 4], 6
mov dword [esi], 0
mov ecx, esi
call fcn.004ba030
mov dword [ebp - 4], ebx
jmp 0x4ba6ea
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bcbf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545db6
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
xor ebx, ebx
push ebx
lea ecx, [edi + 0xc]
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], edi
call fcn.00498380
mov dword [ebp - 4], ebx
push ebx
lea ecx, [edi + 0x20]
call fcn.00498380
mov byte [ebp - 4], 1
push ebx
lea ecx, [edi + 0x34]
call fcn.00498380
mov byte [ebp - 4], 2
push ebx
lea ecx, [edi + 0x48]
call fcn.00498380
mov dword [ebp - 4], 4
cmp dword [0x5c24c0], ebx
jne 0x4bcdaf
push str.wsock32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bcdaf
push str.closesocket
mov dword [0x5c24c0], ebx
mov dword [0x5c24bc], ebx
mov dword [0x5c24b8], ebx
mov dword [0x5c24b4], ebx
mov dword [0x5c24b0], ebx
mov dword [0x5c24ac], ebx
mov dword [0x5c24a8], ebx
mov dword [0x5c24a4], ebx
mov dword [0x5c24a0], ebx
mov dword [0x5c249c], ebx
mov dword [0x5c2498], ebx
mov dword [0x5c2494], ebx
mov dword [0x5c2490], ebx
mov dword [0x5c248c], ebx
mov dword [0x5c2488], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call ebx
push str.connect
push edi
mov dword [0x5c24c0], eax
call ebx
push str.gethostbyname
push edi
mov dword [0x5c24bc], eax
call ebx
push str.gethostname
push edi
mov dword [0x5c24b8], eax
call ebx
push str.htons
push edi
mov dword [0x5c24b4], eax
call ebx
push str.inet_addr
push edi
mov dword [0x5c24b0], eax
call ebx
push str.inet_ntoa
push edi
mov dword [0x5c24ac], eax
call ebx
push str.recv
push edi
mov dword [0x5c24a8], eax
call ebx
push str.recvfrom
push edi
mov dword [0x5c24a4], eax
call ebx
push str.select
push edi
mov dword [0x5c24a0], eax
call ebx
push str.send
push edi
mov dword [0x5c249c], eax
call ebx
push str.sendto
push edi
mov dword [0x5c2498], eax
call ebx
push str.socket
push edi
mov dword [0x5c2494], eax
call ebx
push str.WSACleanup
push edi
mov dword [0x5c2490], eax
call ebx
push str.WSAStartup
push edi
mov dword [0x5c248c], eax
call ebx
mov dword [0x5c2488], eax
xor ebx, ebx
jmp 0x4bcdb4
mov eax, dword [0x5c2488]
cmp eax, ebx
je 0x4bcdc6
lea ecx, [ebp - 0x1a0]
push ecx
push 0x101
call eax
mov eax, 3
mov ecx, esi
mov dword [esi + 0x34c4], ebx
mov dword [esi + 0x34c8], ebx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
call fcn.004bc300
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push 1
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], ebx
call fcn.004989b0
push 1
lea ecx, [esi + 0x28]
call fcn.004989b0
push 1
lea ecx, [esi + 0x3c]
call fcn.004989b0
push 1
lea ecx, [esi + 0x50]
call fcn.004989b0
mov ecx, esi
call fcn.004bc440
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4be7e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xc8
lea eax, [ebp - 0xe0]
push eax
push 0x10
push 0x400
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f0], 0x54f15a
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor esi, esi
lea eax, [ebp - 0xe0]
mov cl, byte [eax]
test cl, cl
je 0x4be84d
lea ecx, [ecx]
cmp cl, 0x3b
je 0x4be84d
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4be840
cmp byte [eax], 0
lea edx, [ebp - 0xe0]
sete cl
cmp eax, edx
jbe 0x4be85e
dec eax
lea edx, [esi + esi*4]
movsx esi, byte [eax]
add eax, 2
lea esi, [esi + edx*2 - 0x30]
test cl, cl
je 0x4be837
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov edx, esi
sub edx, ecx
je 0x4be890
lea eax, [esi + esi*4]
add eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x14
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x18]
push eax
push 0xf
push 0x400
call esi
push 4
lea edx, [ebp - 0x1e8]
push edx
push 0x20001010
lea ecx, [ebp - 0x18]
push 0x400
mov dword [ebp - 0x1ec], ecx
call esi
push 0x104
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x1fc]
push ecx
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [ebp - 0x1e4]
mov edx, edi
mov ecx, eax
pop edi
sub edx, ecx
pop esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4be8f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c2490
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
xor eax, eax
jmp 0x4c24c0
movzx ecx, word [eax + 0x550de8]
mov word [ebp + eax - 0x204], cx
add eax, 2
test cx, cx
jne 0x4c24c0
xor eax, eax
xor ecx, ecx
cmp dword [ebp + 0x10], eax
mov dword [esi + 0x20c], eax
sete cl
cmp dword [esi + 0x208], eax
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
push 0xff
lea eax, [ebp - 0x204]
push eax
mov dword [esi + 0x218], ecx
push edx
je 0x4c251d
mov ecx, dword [esi + 0x204]
push ecx
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
jmp 0x4c2523
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea ecx, [ebp - 0x204]
push ecx
mov ecx, esi
call fcn.004c2060
cmp dword [esi + 0x214], ebx
je 0x4c2573
lea edx, [ebp - 0x454]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4c256f
push eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
jmp 0x4c2575
mov eax, ebx
mov ecx, dword [ebp - 4]
mov dword [edi], ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c3830
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x5c2a24], ebx
je 0x4c3868
xor eax, eax
cmp dword [0x5c2a18], ebx
pop ebx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x90
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.004ff6f0
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edx, edx
cmp dword [ebp - 0x88], 2
push str.USER32
sete dl
mov dword [0x5c2a28], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x4c3959
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x576cf0
push esi
call edi
mov dword [0x5c2a08], eax
cmp eax, ebx
je 0x4c3959
push str.MonitorFromWindow
push esi
call edi
mov dword [0x5c2a0c], eax
cmp eax, ebx
je 0x4c3959
push str.MonitorFromRect
push esi
call edi
mov dword [0x5c2a10], eax
cmp eax, ebx
je 0x4c3959
push str.MonitorFromPoint
push esi
call edi
mov dword [0x5c2a14], eax
cmp eax, ebx
je 0x4c3959
push str.EnumDisplayMonitors
push esi
call edi
mov dword [0x5c2a1c], eax
cmp eax, ebx
je 0x4c3959
push str.GetMonitorInfoA
push esi
call edi
mov dword [0x5c2a18], eax
cmp eax, ebx
je 0x4c3959
push str.EnumDisplayDevicesA
push esi
call edi
mov dword [0x5c2a20], eax
cmp eax, ebx
je 0x4c3959
pop edi
mov eax, 1
pop esi
mov dword [0x5c2a24], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x5c2a08], ebx
mov dword [0x5c2a0c], ebx
mov dword [0x5c2a10], ebx
mov dword [0x5c2a14], ebx
mov dword [0x5c2a18], ebx
mov dword [0x5c2a1c], ebx
mov dword [0x5c2a20], ebx
xor ecx, ebp
mov dword [0x5c2a24], 1
xor eax, eax
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c43a0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push eax
push 0x104
mov dword [ebp - 0x318], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea ecx, [ebp - 0x108]
push 0
push ecx
call fcn.004ff6f0
push 0x104
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.004ff6f0
lea edx, [ebp - 0x108]
add esp, 0x18
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4c4404
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.005014d0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 8
mov dword [ebp - 0x314], eax
lea esi, [ebp - 0x108]
test eax, eax
je 0x4c44d8
lea esp, [esp]
mov byte [eax], 0
mov eax, esi
mov ecx, esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c4447
lea edi, [ebp - 0x20c]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c4460
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x20c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c4480
mov cx, word [0x54f3dc]
push 0
lea edx, [ebp - 0x20c]
push edx
mov word [edi], cx
call ebx
lea eax, [ebp - 0x314]
push eax
call fcn.004be650
mov eax, dword [ebp - 0x314]
add esp, 4
cmp byte [eax], 0
mov esi, eax
je 0x4c44d2
push 0x5c
push eax
call fcn.005014d0
add esp, 8
mov dword [ebp - 0x314], eax
test eax, eax
jne 0x4c4440
mov edi, dword [ebp - 0x318]
push 0
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call esi
lea ecx, [ebp - 0x310]
push ecx
mov edi, eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c4580
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x108]
mov dword [ebp - 0x350], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4c45b0
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004ff460
add esp, 8
test eax, eax
je 0x4c45d2
mov byte [eax], 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebp - 0x108]
push edx
call ebx
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c4641
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4c462b
mov dword [ebp - 0x350], 1
lea edx, [ebp - 0x34c]
push edx
push esi
call edi
test eax, eax
jne 0x4c4610
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x350]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret

Function at 0x4c4b90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x102]
push ecx
mov word [ebp - 0x104], ax
call fcn.004ff6f0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
mov byte [esi], 0
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x104]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c5170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546520
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x148], ebx
lea eax, [ebp - 0x148]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5322
mov byte [ebp - 0x140], bl
push 0x103
push ebx
lea ecx, [ebp - 0x13f]
push ecx
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 0x15c], 0x104
mov dword [ebp - 0x154], 1
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x154]
push ecx
push ebx
push str.Version
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c5315
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x3c], bl
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov word [ebp - 0x2b], ax
mov byte [ebp - 0x29], al
lea eax, [ebp - 0x140]
mov dword [ebp - 0x144], eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x150], edx
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x164], esi
mov edi, edi
mov cl, byte [eax]
cmp cl, bl
je 0x4c52e1
cmp cl, 0x2e
je 0x4c52b0
mov byte [edx], cl
inc edx
mov dword [ebp - 0x150], edx
inc eax
mov dword [ebp - 0x144], eax
jmp 0x4c5290
mov cl, byte [eax]
cmp cl, bl
je 0x4c52e1
cmp cl, 0x2e
jne 0x4c52c4
inc eax
mov dword [ebp - 0x144], eax
jmp 0x4c52b0
mov cl, byte [eax]
cmp cl, bl
je 0x4c52e1
cmp cl, 0x2e
je 0x4c52e1
mov byte [esi], cl
inc esi
mov dword [ebp - 0x164], esi
inc eax
mov dword [ebp - 0x144], eax
jmp 0x4c52c4
lea eax, [ebp - 0x28]
push eax
call fcn.004ffc65
mov esi, eax
mov dword [ebp - 0x158], esi
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004ffc65
add esp, 8
mov dword [ebp - 0x160], eax
movzx esi, si
shl esi, 0x10
movzx edx, ax
or esi, edx
mov dword [ebp - 0x14c], esi
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
jmp 0x4c533e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c6060
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x54f15a
mov ecx, esi
call fcn.004bfc00
mov edi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10c], 0
call edi
cmp eax, 0x80000000
jae 0x4c60a3
call edi
cmp al, 6
jae 0x4c60e4
call edi
cmp eax, 0x80000000
jae 0x4c60b2
call edi
cmp al, 4
je 0x4c60e4
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c610a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c6194
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.004ff6f0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push str.ProductID
push eax
mov dword [ebp - 0x110], 0x104
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c6187
lea ecx, [ebp - 0x108]
push ecx
mov ecx, esi
call fcn.004bfc00
push 0x54f15a
push 0x54fb20
mov ecx, esi
call fcn.004c0a50
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret