joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47de20
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57decb
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x130], esi
call fcn.0047e710
test al, al
je 0x47de9f
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x154]
cmp ax, 9
je 0x47de7d
cmp ax, 6
jne 0x47de8e
push str.win10_64
mov ecx, edi
call fcn.00404090
jmp 0x47dfb2
push str.win10_32
mov ecx, edi
call fcn.00404090
jmp 0x47dfb2
push 0x11c
lea ecx, [ebp - 0x12c]
push esi
push ecx
call fcn.00557f00
add esp, 0xc
push str.error
lea ecx, [ebp - 0x130]
call fcn.00404090
lea edx, [ebp - 0x12c]
mov dword [ebp - 4], esi
push edx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47df8f
mov eax, dword [ebp - 0x128]
sub eax, 5
je 0x47df6f
dec eax
jne case.default.0x47df03
mov eax, dword [ebp - 0x124]
cmp eax, 3
ja case.default.0x47df03
jmp dword [eax*4 + 0x47dfdc]
cmp byte [ebp - 0x12], 1
lea ecx, [ebp - 0x130]
jne 0x47df85
push str.Vista
jmp 0x47df8a
cmp byte [ebp - 0x12], 1
jne case.default.0x47df03
call fcn.0047e270
lea ecx, [ebp - 0x130]
test eax, eax
je 0x47df4a
push str.win7_64
call fcn.00404070
push eax
lea esi, [ebp - 0x130]
call fcn.00478ed0
jmp 0x47df8f
push str.win7_32
call fcn.00404070
push eax
lea esi, [ebp - 0x130]
call fcn.00478ed0
jmp 0x47df8f
push str.Win8
lea ecx, [ebp - 0x130]
jmp 0x47df8a
mov eax, dword [ebp - 0x124]
sub eax, esi
je case.default.0x47df03
dec eax
je 0x47dfce
dec eax
jne 0x47df8f
lea ecx, [ebp - 0x130]
push str.other
call fcn.00404070
lea ecx, [ebp - 0x130]
call fcn.00404110
call fcn.00469370
push eax
mov ecx, edi
call fcn.00403c40
lea ecx, [ebp - 0x130]
call fcn.00404190
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
push 0x5e4964
lea ecx, [ebp - 0x130]
jmp 0x47df8a

Function at 0x47e270
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x47e296
cmp ax, 6
je 0x47e296
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x47e2a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00557f00
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47e309
cmp dword [ebp - 0x11c], 6
jb 0x47e309
cmp dword [ebp - 0x118], 2
jb 0x47e309
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x47e540
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
mov esi, 0x100
push ecx
mov dword [ebp - 0x60c], esi
mov word [ebp - 0x204], ax
call fcn.00557f00
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.00557f00
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov word [ebp - 0x604], cx
call fcn.00557f00
add esp, 0x24
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x608], esi
mov dword [ebp - 0x614], esi
mov dword [ebp - 0x610], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop esi
test eax, eax
jne 0x47e5fb
push str.Fail_To_Get_UserName_n
call fcn.0055504b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47e604
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x608], eax
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x47e5eb
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e5eb
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x404]
push edi
push ecx
call fcn.0047e410
add esp, 0xc
test eax, eax
je 0x47e5eb
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.005521f1
mov esp, ebp
pop ebp
ret

Function at 0x47e7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.00557f00
add esp, 0xc
push 0
push 0x25
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, esi
test eax, eax
je 0x47e80d
lea eax, [ebp - 0x20c]
push eax
jmp 0x47e812
push 0x5ddd40
call fcn.00404090
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x47ee70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ddf2
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
push 0x258
mov dword [ebp - 0x270], eax
push eax
mov edi, edx
lea eax, [ebp - 0x26a]
xor edx, edx
push eax
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], ecx
mov word [ebp - 0x26c], dx
call fcn.00557f00
add esp, 0xc
mov ecx, edi
call fcn.0041c150
push eax
push 0x12c
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, dword [ebp - 0x274]
push 0x5ddd40
call fcn.0041c150
push eax
mov ecx, ebx
call fcn.0041c150
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x26c]
push edx
mov ecx, esi
call fcn.00404090
push 0x5e4a30
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x270], 1
call fcn.0047e8e0
mov edi, eax
call fcn.0047e830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret 4
Function at 0x47f210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd2b
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.00559730
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2020]
push eax
push 0x20019
mov dword [ebp - 0x201c], 0
push 0
mov dword [ebp - 0x2024], 0x20019
call fcn.0041c150
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f330
xor ecx, ecx
push 0x2000
push ecx
lea edx, [ebp - 0x2012]
push edx
mov word [ebp - 0x2014], cx
call fcn.00557f00
add esp, 0xc
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2014]
push ecx
lea edx, [ebp - 0x2024]
push edx
push 0
mov ecx, edi
mov dword [ebp - 0x201c], 0x1000
call fcn.0041c150
push eax
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f330
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2018]
call fcn.004035b0
lea edx, [ebp - 0x2014]
push edx
push 0x5e4c9c
lea edx, [ebp - 0x2018]
mov dword [ebp - 4], 0
call fcn.0047e970
add esp, 8
lea ecx, [ebp - 0x2018]
call fcn.00404110
call fcn.00469370
push eax
mov ecx, esi
call fcn.00403c40
lea ecx, [ebp - 0x2018]
call fcn.00404190
jmp 0x47f33c
push 0x5ddd40
mov ecx, esi
call fcn.00404090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x47f650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dc7b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xffffff00
lea eax, [ebp - 0x81c]
add edx, 0x200
push eax
or edx, 0x20019
push edx
push 0
mov dword [ebp - 0x820], 0
call fcn.0041c150
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47f6ce
push 0x5ddd40
mov ecx, esi
call fcn.00404090
jmp 0x47f77d
xor eax, eax
push 0x800
push eax
lea ecx, [ebp - 0x812]
push ecx
mov word [ebp - 0x814], ax
call fcn.00557f00
add esp, 0xc
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x820], 0x400
call fcn.004035b0
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0x814]
push eax
push 0
push 0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0041c150
mov ecx, dword [ebp - 0x81c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f74d
lea edx, [ebp - 0x814]
push edx
push 0x5e4c9c
lea edx, [ebp - 0x818]
call fcn.0047e970
add esp, 8
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x818]
call fcn.00404110
call fcn.00469370
push eax
mov ecx, esi
call fcn.00403c40
lea ecx, [ebp - 0x818]
call fcn.00404190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret

Function at 0x47f7a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x47f7c8
cmp ax, 6
jne 0x47f809
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47f83a
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47f833
mov ecx, dword [ebp + 8]
push 0
push 0x100
push ebx
push ecx
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47f83a
push str.RegDeleteKeyW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47f833
mov edx, dword [ebp + 8]
push ebx
push edx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fa80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dc48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x600f84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
xor eax, eax
mov dword [ebp + 0xc], eax
mov edx, dword [esi + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [esi + 8]
mov dword [ebp + 0xc], eax
call fcn.0041c150
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x2000
push esi
call fcn.005554d5
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x10], esi
call fcn.00557f00
mov edx, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x47fb38
add esi, 0x1000
push esi
push edi
call fcn.00554c08
mov ecx, dword [ebp + 0xc]
add esp, 8
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push ebx
push ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x47fb08
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47fb40
sub eax, edx
jne 0x47fb66
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push 0x5ddd40
mov ecx, esi
call fcn.00404090
jmp 0x47fba4
mov esi, dword [ebp - 0x10]
shr esi, 1
push edi
dec esi
lea edi, [ebp - 0x14]
call fcn.0047fbc0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.00404110
call fcn.00469370
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00403c40
mov ecx, edi
call fcn.00404190
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 8
Function at 0x47ff50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58021a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x600f84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call fcn.00480170
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0041c150
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48007e
mov ecx, esi
call fcn.00404110
call fcn.00469370
push eax
lea ecx, [ebp - 0x58]
call fcn.00403c40
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x58]
call fcn.00481140
push str.sres
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00404090
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004812a0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00404190
lea ecx, [ebp - 0x14]
call fcn.00403b10
lea ecx, [ebp - 0x14]
test eax, eax
je 0x48004f
call fcn.00404110
call fcn.00469370
push eax
mov ecx, edi
call fcn.00403c40
lea ecx, [ebp - 0x14]
call fcn.00404190
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x48003d
push 1
call fcn.004076e0
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x58]
jmp 0x48014d
call fcn.00404190
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x480069
push 1
call fcn.004076e0
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00404190
push str.SoftwareSystemSres
lea ecx, [ebp - 0x1c]
call fcn.00404090
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.0041c150
push eax
lea edx, [ebp - 0x38]
push edx
call fcn.0047f9d0
mov byte [ebp - 4], 9
cmp byte [0x6079c0], bl
je 0x48010c
lea eax, [ebp - 0x28]
push eax
call fcn.00480360
add esp, 4
push 0x5e1dc0
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 0xa
call fcn.00478490
add esp, 0xc
push eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.004783a0
add esp, 8
push eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00478ed0
lea ecx, [ebp - 0x20]
call fcn.00404190
lea ecx, [ebp - 0x14]
call fcn.00404190
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404190
mov ecx, dword [ebp + 8]
call fcn.0041c150
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.0047fa80
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.00404110
call fcn.00469370
push eax
mov ecx, edi
call fcn.00403c40
lea ecx, [ebp - 0x24]
call fcn.00404190
lea ecx, [ebp - 0x30]
call fcn.00404190
lea ecx, [ebp - 0x1c]
call fcn.00404190
lea ecx, [ebp - 0x18]
call fcn.00404190
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4806b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x600f84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], edi
push eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.0041c150
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
cmp eax, edi
jbe 0x4807ec
push eax
call fcn.00551776
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x14]
push esi
push ecx
push edi
mov ecx, ebx
call fcn.0041c150
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4807dc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.004035b0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push str.VarFileInfoTranslation
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
call edi
test eax, eax
jne 0x480793
push 0x5ddd40
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00404090
lea ecx, [ebp - 0x10]
call fcn.00404190
push esi
call fcn.005521e6
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00402f40
add esp, 0x14
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0041c150
push eax
push esi
call edi
test eax, eax
je 0x4807d4
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x480764
lea ecx, [ebp - 0x10]
call fcn.00404190
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.005521e6
add esp, 4
mov esi, dword [ebp + 8]
push 0x5ddd40
mov ecx, esi
call fcn.00404090
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 0x481030
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00557f00
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4810a4
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4810a4
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x4810a4
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x481140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58018b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a860
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041c150
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4811b2
call fcn.004075a0
lea edi, [ebp - 0x48]
call fcn.00468fe0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407f50
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040a980
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4811d1
push 1
call fcn.004076e0
mov dword [esi + 0x1c], 0
push 0x50
call fcn.00552482
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4811f3
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00410310
jmp 0x4811f5
xor eax, eax
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
call fcn.0040a980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x4818f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bb47
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x600f84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x5e3870
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
lea esi, [ebx + 0x10]
push esi
add edi, ebx
mov dword [ebp - 0x10], 1
call fcn.004607f0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004608d0
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov edx, dword [0x609230]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4