joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45aec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00494a60
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x8000
lea eax, [ebp - 0x10004]
mov esi, ecx
push eax
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x45af2c
cmp word [ebp - 0x10004], 0
jne 0x45af0a
xor ecx, ecx
lea eax, [ebp - 0x10004]
push ecx
push eax
jmp 0x45af61
lea ecx, [ebp - 0x10004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45af13
sub ecx, edx
lea eax, [ebp - 0x10004]
sar ecx, 1
push ecx
push eax
jmp 0x45af61
cmp dword [edi + 0x14], 8
jb 0x45af36
mov eax, dword [edi]
jmp 0x45af38
mov eax, edi
cmp esi, eax
je 0x45af68
cmp word [esi], 0
jne 0x45af46
xor ecx, ecx
jmp 0x45af5f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45af50
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00415880
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret

Function at 0x45af80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020c
call fcn.00494a60
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x8000
lea eax, [ebp - 0x1020c]
mov esi, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45b06f
cmp byte [ebp + 8], 0
je 0x45aff8
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1020c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x45aff8
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1020e], ax
test ax, ax
jne 0x45afe0
lea eax, [ebp - 0x1020c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b06f
cmp word [ebp - 0x1020c], 0
jne 0x45b036
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x1020c]
push ecx
mov ecx, esi
call fcn.00415880
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1020c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b040
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x1020c]
push ecx
mov ecx, esi
call fcn.00415880
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x45b630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x45b7a1
test eax, eax
je 0x45b7a1
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x45b678
mov ecx, dword [esi]
jmp 0x45b67a
mov ecx, esi
push ebx
push edi
xor edi, edi
mov word [ecx], di
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push ecx
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x45b75c
mov eax, dword [ebp - 0x210]
add eax, 2
push 0x524df8
push eax
mov dword [ebp - 0x214], eax
call fcn.00493c76
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45b744
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x45b728
mov eax, dword [ebp - 0x214]
shr eax, 1
je 0x45b71f
lea edx, [eax - 1]
lea edx, [ebx + edx*2]
cmp word [edx], 0
jne 0x45b71f
sub edx, 2
sub eax, 1
jne 0x45b711
push eax
push ebx
mov ecx, esi
call fcn.00415880
push ebx
call fcn.00493c71
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov edi, 8
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x45b78e
mov eax, dword [ebp - 0x210]
shr eax, 1
je 0x45b77f
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0
jne 0x45b77f
sub ecx, 2
sub eax, 1
jne 0x45b771
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00415880
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret

Function at 0x45bfa0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00494a60
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, edx
test ecx, ecx
je 0x45c015
cmp word [ecx], 0
je 0x45c015
push esi
push 0x8000
lea eax, [ebp - 0x10004]
xor esi, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x45bff5
mov esi, 2
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10004]
mov ecx, edi
push eax
call fcn.004153b0
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop edi
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x45d630
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80000002
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 1
mov edx, str.HardwareDescriptionSystemCentralProcessor0
movlpd qword [ebp - 0x10], xmm0
xor ecx, ecx
call fcn.0045b4b0
add esp, 0xc
test eax, eax
jne 0x45d6c3
mov ebx, dword [ebp - 8]
xor esi, esi
nop
mov eax, dword [esi + 0x4fb7d8]
test ebx, ebx
je 0x45d6b0
test eax, eax
je 0x45d6b0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 8
push ecx
lea ecx, [ebp - 0x10]
xor edi, edi
push ecx
push edi
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45d6a4
cmp eax, 0xea
jne 0x45d6a7
mov edi, dword [ebp - 8]
test eax, eax
jne 0x45d6b0
cmp edi, 4
jae 0x45d6b8
add esi, 4
cmp esi, 0xc
jb 0x45d670
test ebx, ebx
je 0x45d6c3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
mov edx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret

Function at 0x45d8d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.0045d940
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.0045da00
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x467280
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddc74
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x4672c8
push 0x57
lea ecx, [ebp - 0x24]
call fcn.0047e390
push 0x51d3f8
lea eax, [ebp - 0x24]
push eax
call fcn.004acc20
push dword [ebp + 0xc]
push dword [ebp + 8]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
test eax, eax
je 0x4672f5
lock inc dword [eax + 4]
push eax
push edx
call fcn.00419220
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 1
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 4]
mov edx, dword [esi]
test eax, eax
je 0x467322
lock inc dword [eax + 4]
push eax
push edx
call fcn.00419220
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00468630
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
je 0x467384
cmp dword [eax + 0x14], 8
jb 0x467349
mov eax, dword [eax]
push 0x10000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x467384
push str.Unable_to_add_headers_to_the_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047e450
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x51d3f8
push eax
call fcn.004acc20
push dword [esi + 0xc8]
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0x98]
push eax
lea ecx, [esi + 0x10]
call fcn.004689e0
push dword [esi + 0xfc]
lea eax, [esi + 0xe4]
push eax
lea eax, [esi + 0xcc]
push eax
lea ecx, [esi + 0x10]
call fcn.00468b70
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x10], 0
add eax, ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00426510
lea edi, [esi + 0x4c]
lea eax, [ebp - 0x1c]
cmp edi, eax
je 0x467421
mov ecx, edi
call fcn.00417380
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00417380
cmp dword [ebp + 0x1c], 0
je 0x46747e
push 0xc
call fcn.00493c02
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edi, dword [esi + 0x58]
mov dword [esi + 0x58], eax
test edi, edi
je 0x46747e
mov ecx, edi
call fcn.00417380
push 0xc
push edi
call fcn.00493c63
add esp, 8
mov eax, dword [ebp + 0x20]
cmp dword [eax + 0x10], 0
je 0x467498
lea ecx, [esi + 0x68]
cmp ecx, eax
je 0x467498
push 0xffffffffffffffff
push 0
push eax
call fcn.00415530
lea ecx, [esi + 0x10]
call fcn.00468950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x468360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddea1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
lea eax, [esi + 0x58]
mov dword [esi + 0x54], 0x10000
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x468448
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
push ecx
push ecx
mov byte [ebp - 4], 0xb
push ecx
mov dword [esi + 0x70], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46846e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], edi
test edi, edi
jne 0x46849b
push str.Unable_to_create_a_synchronization_event_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0047e450
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x51d3f8
push eax
call fcn.004acc20
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4684b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
test edi, edi
je 0x468475
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4684de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
test edi, edi
je 0x468475
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x468503
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], edi
test edi, edi
je 0x468475
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x46852c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], edi
test edi, edi
je 0x468475
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46b660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de430
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x520078]
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
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x80]
mov edx, dword [edi]
cmp edx, eax
jl 0x46b801
call fcn.0046bb20
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0046ffb0
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004302a0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x46b6dd
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.004176a0
push 2
push 0x4f8bf0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00420c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
push 1
push 0x502fe0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00420c20
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0046d600
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x46b760
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004176a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x46b78b
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004176a0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46b7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x88]
call fcn.0047e390
push 0x51d3f8
lea eax, [ebp - 0x88]
push eax
call fcn.004acc20
mov ecx, dword [edi]
mov eax, dword [esi + 0x84]
cmp ecx, eax
jl 0x46b7ec
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x46b801
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004176a0
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.00493bec
mov esp, ebp
pop ebp
ret 4
Function at 0x46c3f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x520078]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx]
test cl, 3
je 0x46c4eb
mov eax, dword [edi + 0x34]
cmp esi, eax
jge 0x46c44b
mov eax, dword [edi + 0x38]
test eax, eax
je 0x46c4eb
mov eax, dword [edi + 0x3c]
cmp esi, eax
jl 0x46c4eb
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0046ffb0
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004302a0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x46c487
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004176a0
mov eax, dword [edi + 0x34]
cmp esi, eax
jl 0x46c4a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x46c4d3
mov eax, dword [edi + 0x3c]
cmp esi, eax
jl 0x46c4d3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004c272c
push dword [ebp - 0x2c]
call fcn.004c2a61
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x46c4e8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004176a0
mov ecx, dword [ebp + 0xc]
test cl, 4
je 0x46c530
cmp dword [edi + 0x58], 0xffffffff
je 0x46c530
mov eax, dword [edi + 0x30]
cmp esi, eax
jl 0x46c528
lea esi, [edi + 0x10]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 1
call fcn.0046d280
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, edi
call fcn.0046b660
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.00493bec
mov esp, ebp
pop ebp
ret 8
Function at 0x471910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8556
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x30]
mov dword [edi], vtable.asw::mi::ModuleDestructions.0
call fcn.00472080
push dword [edi + 0x30]
call fcn.00493bfd
add esp, 4
lea ecx, [edi + 0x28]
call fcn.00472080
push dword [edi + 0x28]
call fcn.00493bfd
add esp, 4
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [edi + 8]
test edi, edi
je 0x471999
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x471999
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
mov ecx, edi
call esi
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.00493bec
mov esp, ebp
pop ebp
ret

Function at 0x477410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da8a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00493c02
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00490b66
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x477b70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
xor edi, edi
nop dword [eax]
push 2
lea eax, [edi + 1]
mov ecx, esi
push eax
push 0x4f40d8
call fcn.00417480
mov edi, eax
cmp edi, 0xffffffff
je 0x477bd2
lea ecx, [edi + 1]
push ecx
push 0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00417160
cmp dword [eax + 0x14], 8
jb 0x477bb2
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 4]
cmp eax, 8
jb 0x477b80
inc eax
lea ecx, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
call fcn.00415a10
jmp 0x477b80
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
jb 0x477be4
mov eax, dword [esi]
jmp 0x477be6
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x477bf7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x477c0f
test al, 0x10
je 0x477c0f
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x477e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfd03
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x520078]
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 eax, edx
mov dword [ebp - 0x28], eax
mov edi, ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], eax
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x477f09
push 0x5035a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0047e3f0
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x51d3f8
push eax
call fcn.004acc20
push ebx
call fcn.00494103
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push esi
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x477f53
push 0x5035d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0047e3f0
add esp, 0xc
lea eax, [ebp - 0x54]
push 0x51d3f8
push eax
call fcn.004acc20
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4f407c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x477f91
push 0x5035c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0047e3f0
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x51d3f8
push eax
call fcn.004acc20
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0xfeef04bd
je 0x477fc2
push str.VerQueryValueW_signature_is_invalid
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0047e3f0
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x51d3f8
push eax
call fcn.004acc20
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov eax, ecx
shr eax, 0x10
mov word [edi], ax
mov eax, edx
shr eax, 0x10
mov word [edi + 2], cx
mov word [edi + 4], ax
mov word [edi + 6], dx
test esi, esi
je 0x477fee
push esi
call fcn.00493c71
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret