joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4614f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x544545
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
mov eax, dword [0x550434]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x21c]
push 0x104
push ecx
mov dword [esp + 0x63c], 1
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4615f1
lea edx, [esp + 0x21c]
push 0x5c
push edx
call fcn.00423caf
add esp, 8
cmp eax, ebx
je 0x4615a0
mov word [eax], bx
lea eax, [esp + 0x14]
test eax, eax
je 0x4615ea
lea ecx, [esp + 0x21c]
test ecx, ecx
je 0x4615ea
lea edx, [esp + 0x21c]
mov esi, 0x7a
push edx
call fcn.00422fc1
add esp, 4
cmp eax, 0x104
jae 0x4615e6
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00423c8a
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x4615f7
mov eax, 0x57
jmp 0x4615f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, ebx
mov dword [0x597e10], eax
je 0x461625
push eax
call edi
mov esi, dword [0x597e10]
cmp esi, ebx
mov dword [0x597e10], esi
je 0x4616c1
push esi
call edi
jmp 0x4616d2
push 0x103
lea edx, [esp + 0x18]
push 0x574194
push edx
call fcn.0051a553
lea eax, [esp + 0x430]
add esp, 0xc
test eax, eax
je 0x4616b7
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x4616b7
mov eax, dword [esp + 0x640]
mov esi, 0x7a
cmp eax, ebx
je 0x461683
lea edx, [esp + 0x14]
push eax
push edx
push 0x5722b0
lea eax, [esp + 0x430]
push 0x104
push eax
call fcn.00424003
add esp, 0x14
xor esi, esi
jmp 0x46160f
lea ecx, [esp + 0x14]
push ecx
call fcn.00422fc1
add esp, 4
cmp eax, 0x104
jae 0x46160f
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call fcn.00423c8a
add esp, 8
xor esi, esi
jmp 0x46160f
mov esi, 0x57
jmp 0x46160f
lea ecx, [esp + 0x424]
push ecx
lea ecx, [esp + 0x10]
call fcn.0043c200
mov esi, dword [esp + 0x63c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0043b580
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x634], bl
call fcn.0043bf80
mov ecx, dword [esp + 0x62c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x468130
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x46814c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.0042f020
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0042ed20
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x4681d0
cmp byte [esp + 0x10], 0x5c
jne 0x4681d0
cmp byte [esp + 0x11], 0x5c
jne 0x4681d0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.0042ed20
add esp, 8
test eax, eax
je 0x46824e
inc eax
push 0x5c
push eax
call fcn.0042ed20
add esp, 8
mov esi, eax
test esi, esi
je 0x46824e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x468212
test bl, 1
je 0x468201
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x468284
cmp ebx, 0xffffffff
je 0x46821b
test edi, edi
jne 0x46822a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x468284
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0042ed20
mov esi, eax
add esp, 8
test esi, esi
jne 0x4681d4
test ebp, ebp
je 0x468284
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x468279
test al, 0x10
jne 0x468284
test al, 1
je 0x46826c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x468284
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4682a0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x4682bc
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00422f84
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004248e5
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00422fc1
add esp, 0x18
cmp eax, 2
jbe 0x468341
cmp word [esp + 0x10], di
jne 0x468341
cmp word [esp + 0x12], di
jne 0x468341
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004248e5
add esp, 8
test eax, eax
je 0x4683c9
add eax, 2
push edi
push eax
call fcn.004248e5
add esp, 8
mov esi, eax
test esi, esi
je 0x4683c9
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x468389
test bl, 1
je 0x468378
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x4683ff
cmp ebx, 0xffffffff
je 0x468392
test edi, edi
jne 0x4683a1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x4683ff
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.004248e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x468349
test ebp, ebp
je 0x4683ff
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4683f4
test al, 0x10
jne 0x4683ff
test al, 1
je 0x4683e7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x4683ff
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x46cc40
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x544a38
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x46cc72
call fcn.005072a0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x46cc83
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x46ccd8
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x46ccbe
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x46ce04
cmp dword [esp + 0x18], ebx
jne 0x46ccd8
cmp dword [esp + 0x14], ebx
je 0x46ce04
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x46cce9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.0043b580
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x46cd2f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x46cd2f
call fcn.0044d870
test eax, eax
je 0x46cd2f
push 0x572754
lea ecx, [esp + 0x14]
call fcn.0043c200
push ebx
lea ecx, [esp + 0x14]
call fcn.0043cc30
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x46cdde
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x46cd6b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x46cdde
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x46cdb9
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x46cdbc
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x46cdb4
mov dword [esi + 0x10], ebx
jmp 0x46cdbc
mov dword [esi + 0x10], ecx
jmp 0x46cdbc
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.0043bf80
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043bf80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x46d2d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0xc]
lea edi, [esi + 0x14]
cmp eax, 0xffffffff
mov dword [esi + 8], ebx
mov dword [ecx], ebx
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebx
je 0x46d370
cmp eax, ebx
je 0x46d370
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 1
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x46d342
cmp dword [edi], ebx
je 0x46d34f
mov ecx, dword [esi + 4]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 4]
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46d370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46d382
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push SysReAllocStringLen
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x46d412
cmp eax, ebx
je 0x46d412
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46d41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x46d5c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x46d717
xor edx, edx
cmp eax, edx
je 0x46d717
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x46d5fa
cmp eax, ecx
jb 0x46d5fa
xor ecx, ecx
jmp 0x46d5ff
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x46d619
jg 0x46d717
cmp eax, dword [esi + 8]
ja 0x46d717
cmp ecx, edx
jne 0x46d633
cmp eax, dword [esi + 0x42c]
ja 0x46d633
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x46d678
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x46d653
cmp edi, edx
jb 0x46d653
xor edx, edx
jmp 0x46d658
mov edx, 1
cmp ecx, ebx
ja 0x46d678
cmp dword [esp + 0x14], edx
jg 0x46d678
jl 0x46d668
cmp eax, edi
ja 0x46d678
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.0046d730
test eax, eax
je 0x46d717
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x46d6c6
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push bind
push ecx
call edi
cmp eax, 0xffffffff
je 0x46d707
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x46d707
jmp 0x46d6d6
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46d707
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d707
cmp dword [edi], ebp
jne 0x46d707
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x46f6d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x5722b0
push ecx
call fcn.00423eab
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46f7aa
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x46f790
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.0052644a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46f790
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x46f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x5722b0
push ecx
call fcn.00423eab
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46f859
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x46fa80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46fb1a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x46fb04
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.0052644a
mov esi, eax
add esp, 4
test esi, esi
je 0x46fb04
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x472160
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x598998], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x5989a0], eax
cmp ebx, 0xffffffff
je 0x472359
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x472359
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
push esi
call fcn.004c0ec0
add esp, 0xc
test eax, eax
je 0x47232e
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push ebp
push ebx
call esi
mov edx, dword [esp + 0x58]
push ebp
push ebp
push ebp
push edx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x4721f1
cmp edi, ebp
je 0x4722d9
cmp eax, ebp
mov ebx, 0x1000
jne 0x472200
cmp edi, ebx
jae 0x472200
mov ebx, edi
push ebx
call fcn.0052644a
add esp, 4
mov esi, eax
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x34], ebp
call fcn.004bf5a0
add esp, 0x18
test eax, eax
je 0x472276
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x472251
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x4722b3
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov dword [esp + 0x38], ebp
call fcn.004bf6a0
add esp, 0x14
test eax, eax
je 0x47228c
cmp dword [esp + 0x14], ebp
je 0x47220b
jmp 0x4722b3
mov dword [0x598998], 0xd
mov dword [0x59899c], 0x54c
jmp 0x4722a0
mov dword [0x598998], 0xe
mov dword [0x59899c], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5989a0], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.00526473
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x472322
cmp dword [esp + 0x18], ebp
jne 0x472322
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x472322
lea edx, [esp + 0x28]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
push 0x28
mov dword [esp + 0x2c], ebp
push edx
push ebx
rep stosd dword es:[edi], eax
call fcn.004bf120
add esp, 0xc
test eax, eax
je 0x472322
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.004bf160
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x598998], 0x25
mov dword [0x59899c], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x5989a0], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x598998], 1
mov dword [0x59899c], 0x51d
call edi
pop edi
pop esi
mov dword [0x5989a0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x473540
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 1
mov dword [esp + 0x30], 0
call fcn.00474060
add esp, 0x2c
test eax, eax
je 0x473628
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x4735b4
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0049ec30
mov edx, dword [0x5991d0]
mov ecx, dword [0x5991d4]
add esp, 8
mov dword [0x598998], edx
mov edx, dword [0x5991d8]
mov dword [0x59899c], ecx
mov dword [0x5989a0], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x4735ee
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00484f00
mov ecx, dword [0x598a40]
mov edx, dword [0x598a44]
add esp, 8
mov dword [0x598998], ecx
mov ecx, dword [0x598a48]
mov dword [0x59899c], edx
mov dword [0x5989a0], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x47362e
call fcn.004bb0e0
mov ecx, dword [0x5997e0]
mov edx, dword [0x5997e4]
add esp, 8
mov dword [0x598998], ecx
mov ecx, dword [0x5997e8]
mov dword [0x59899c], edx
mov dword [0x5989a0], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret

Function at 0x473ab0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x598a4c]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x473ad2
mov eax, dword [0x5991dc]
test eax, eax
jne 0x473ad2
mov eax, dword [0x5997ec]
test eax, eax
je 0x473ad6
test ebx, ebx
je 0x473b10
mov eax, dword [0x57b300]
or esi, 0xffffffff
cmp eax, esi
jne 0x473b10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x57b300], eax
je 0x473b10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x473b10
mov eax, dword [0x57b300]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x57b300], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.00485900
add esp, 0xc
test eax, eax
je 0x473b53
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.004a21b0
add esp, 0x10
test eax, eax
je 0x473b53
push ebx
push esi
push edi
call fcn.004b14e0
add esp, 0xc
test eax, eax
je 0x473b53
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret