joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437ddf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4df568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x437e40
push esi
push dword [0x4df564]
push 8
push dword [0x4ddd30]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4df568]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4df560]
jmp 0x437e30
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x437e2e
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x437e1e
push edi
push 0x437d7d
call fcn.00403323
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x437e4a
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x437e60
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x4df564]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x437e99
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x4ddd30]
mov dword [0x4df568], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4df568]
call ebx
mov esi, dword [0x4df564]
lea eax, [edi + esi]
push eax
push dword [0x4df568]
mov dword [0x4df564], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4ddd30]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4df568]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x437ed8
test ebx, ebx
je 0x437ef9
push 0x14
push 0x4df560
call fcn.00438750
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x437ef9
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x438820
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4d8e70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x438a50
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x4d8e70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x438a6e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x438a92
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x438aad
cmp edx, 0x100000
jle 0x438ac0
cmp ecx, 0x100000
jge 0x438aa7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x4e2f18]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8
Function at 0x438ae0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4d8e70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

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

Disassembly:
sub esp, 8
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x43d781
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43d680
test ebx, ebx
jle 0x43d680
push esi
lea eax, [esp + 0x10]
push eax
push ebx
push dword [0x4e3710]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43d680
cmp dword [esp + 0xc], ebx
mov eax, 1
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x43d780
mov ecx, dword [0x4e3710]
mov edx, ecx
cmp dword [ecx], 0x50555245
jne 0x43d780
mov eax, dword [ecx + 8]
add ecx, 0xc
add eax, 0xadbaaccf
mov dword [esp + 0x10], eax
cmp eax, 8
ja 0x43d780
lea eax, [edx - 8]
add eax, ebx
cmp ecx, eax
jae 0x43d780
push ebp
nop dword [eax]
cmp dword [ecx], 0x434e5354
lea ebp, [ecx + 8]
mov edi, dword [ecx + 4]
jne 0x43d76a
test edi, edi
jle 0x43d76a
lea eax, [edi + 0x18]
push eax
push 0
push dword [0x4ddd30]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x43d76a
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x18]
push edi
push ebp
push ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
call fcn.0041ce20
mov eax, dword [esp + 0x20]
add esp, 0xc
movzx eax, byte [eax + 0x43d794]
jmp dword [eax*4 + 0x43d788]
mov eax, dword [0x4e3710]
lea ecx, [edi + ebp]
add eax, 0xfffffff8
add eax, ebx
cmp ecx, eax
jb 0x43d6d0
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x440710
Capabilities:
Resume thread

Disassembly:
push edi
push dword [0x4e2f1c]
call fcn.00437ddf
cmp dword [0x4cb018], 0
mov edi, dword [eax]
je 0x440778
cmp dword [0x4e2f20], edi
jne 0x440778
cmp dword [0x4dfda8], 0
je 0x440778
push esi
mov esi, dword [0x4dfdc8]
test esi, esi
je 0x44076d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop word [eax + eax]
cmp esi, edi
je 0x44075f
cmp dword [esi + 0x2c], 0
jne 0x44075f
push dword [esi + 0x28]
call ebx
mov dword [esi + 0x2c], 0
mov esi, dword [esi]
test esi, esi
jne 0x440750
pop ebx
mov dword [0x4dfda8], 0
pop esi
pop edi
ret

Function at 0x440780
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x4e2f1c]
call fcn.00437ddf
cmp dword [0x4cb018], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x440883
cmp dword [0x4dfda8], 0
jne 0x440883
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4dfdb0
call esi
cmp dword [0x4df5a8], 0
je 0x4407d9
push 0x4e371c
call esi
push 0x4ef778
call esi
push 0x4e2f28
call esi
push ebp
push 0
push 0
push 0
push dword [0x4ef774]
mov dword [0x4e2f20], ebx
mov dword [0x4dfda8], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x4dfdc8]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x440856
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
cmp esi, dword [esp + 0x10]
je 0x44084f
cmp dword [esi + 0x2c], 0
jne 0x44084f
nop dword [eax]
call ebp
cmp eax, ebx
jae 0x440840
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x440830
cmp dword [esi + 0x2c], 0
jne 0x44084f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x440820
pop edi
cmp dword [0x4df5a8], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x44087b
push 0x4e2f28
call esi
push 0x4ef778
call esi
push 0x4e371c
call esi
push 0x4dfdb0
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4447e0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
call fcn.00444660
call fcn.00440780
nop dword [eax]
push 0
call fcn.00444a40
test eax, eax
jne 0x4447f0
mov ecx, dword [0x4df5c0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
je 0x4448c7
cmp dword [0x4df5c4], eax
je 0x4448c7
mov eax, dword [0x4df5bc]
shl eax, 2
cmp dword [0x4dfdd0], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x4448bc
push eax
push ecx
push dword [0x4e3710]
call fcn.0041ce20
xor esi, esi
add esp, 0xc
cmp dword [0x4df5bc], esi
jle 0x44488a
nop dword [eax + eax]
mov eax, dword [0x4e3710]
mov cl, byte [eax + esi*4]
lea edx, [eax + esi*4]
movzx eax, byte [edx + 3]
inc esi
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 3], cl
mov cl, byte [edx + 1]
mov byte [edx + 1], al
mov byte [edx + 2], cl
cmp esi, dword [0x4df5bc]
jl 0x444860
mov esi, dword [0x4e3710]
call fcn.004542b0
push 0x4ef778
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x4dfdec]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x4ef778
call ebx
jmp 0x4448c7
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00444ff0
mov dword [esp + 0xc], 1
call fcn.004542b0
push 0x4ef778
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x4dfdec]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x4ef778
call ebx
mov eax, dword [0x4dfdec]
mov eax, dword [eax + 0x14]
call eax
push 0x4e2f28
call edi
push 0x4ef778
call edi
push 0x4e371c
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x4dfde4]
call edi
push dword [0x4dfde4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x4dfde8]
call edi
push dword [0x4dfde8]
call esi
push 0x4e2f28
call ebx
push 0x4ef778
call ebx
push 0x4e371c
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4e2f28
call esi
push 0x4ef778
call esi
push 0x4e371c
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x449110
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp - 0x244]
sub esp, 0x244
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x449123
push ebp
push esi
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x449138
mov ax, word [0x4a9e88]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449152
sub ecx, edx
lea esi, [esp + 0xc]
add esi, ecx
mov eax, 0x2a
mov word [esi], ax
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x449295
mov edi, dword [esp + 0x25c]
lea eax, [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x25c]
sub esi, eax
nop
lea eax, [esp + 0x140]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x4491a7
test byte [esp + 0x114], 0x10
je 0x44923c
mov ecx, 0x4af4d0
lea eax, [esp + 0x140]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4491f0
test dl, dl
je 0x4491ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4491f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4491d0
xor eax, eax
jmp 0x4491f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x44924f
mov ecx, 0x4af134
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x449225
test dl, dl
je 0x449221
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x449225
add eax, 2
add ecx, 2
test dl, dl
jne 0x449205
xor eax, eax
jmp 0x44922a
sbb eax, eax
or eax, 1
test eax, eax
je 0x44924f
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00449110
jmp 0x449248
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00448780
add esp, 0xc
test eax, eax
jne 0x44927c
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4491a0
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
Function at 0x44ee20
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 4]
push eax
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov word [esp + 6], ax
push dword [esp + 4]
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0x4af4a4
push 0x4000
push 0xfffffffffffffff6
call esi
push eax
call fcn.0040af6d
add esp, 8
push eax
call fcn.004858c5
push 0
push 4
push 0
push eax
mov dword [0x4e020c], eax
call fcn.00485b18
add esp, 0x18
push 0x4b1f10
push 0x4000
push 0xfffffffffffffff5
call esi
push eax
call fcn.0040af6d
add esp, 8
push eax
call fcn.004858c5
push 0
push 4
push 0
push eax
mov dword [0x4e0210], eax
call fcn.00485b18
add esp, 0x18
push 0x4b1f10
push 0x4000
push 0xfffffffffffffff4
call esi
push eax
call fcn.0040af6d
add esp, 8
push eax
call fcn.004858c5
push 0
push 4
push 0
push eax
mov dword [0x4e0214], eax
call fcn.00485b18
mov eax, dword [0x4e0210]
add esp, 0x18
mov dword [0x4ef2b8], eax
call fcn.0044bbb0
pop esi
add esp, 0x18
ret
Function at 0x456160
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push 0xf0000040
mov esi, 1
push esi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4561ab
lea eax, [esp + 8]
push eax
push 0x20
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor ecx, ecx
test eax, eax
push ecx
push dword [esp + 8]
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x456220
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
call fcn.004542b0
movups xmm0, xmmword [0x4d97b0]
mov dword [esp + 0xc], eax
xor edx, edx
mov eax, dword [0x4e2654]
mov dword [esp + 0x10], eax
movups xmmword [esp + 0x18], xmm0
nop word [eax + eax]
mov al, byte [esp + edx + 8]
xor al, byte [esp + edx + 9]
mov cl, byte [esp + edx + 0xa]
xor cl, al
mov byte [esp + edx + 9], al
mov al, byte [esp + edx + 0xb]
xor al, cl
mov byte [esp + edx + 0xa], cl
mov cl, byte [esp + edx + 0xc]
xor cl, al
mov byte [esp + edx + 0xb], al
mov al, byte [esp + edx + 0xd]
xor al, cl
mov byte [esp + edx + 0xc], cl
xor byte [esp + edx + 0xe], al
mov byte [esp + edx + 0xd], al
add edx, 6
cmp edx, 0x1e
jl 0x4561e0
lea eax, [esp + 0x38]
push eax
call fcn.00496510
push 0x20
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00496c54
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004964ab
add esp, 0x18
xor edx, edx
pop esi
movzx ecx, byte [esp + edx + 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4e2840], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x25]
mov byte [edx*2 + 0x4e2841], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4e2842], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x26]
mov byte [edx*2 + 0x4e2843], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4e2844], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x27]
mov byte [edx*2 + 0x4e2845], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4e2846], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x4e2847], al
add edx, 4
cmp edx, 0x10
jl 0x456250
push 0x20
push 0x4e28cc
lea eax, [esp + 0xc]
push eax
push 0x4e2658
call fcn.004984c0
add esp, 0x9c
ret
Function at 0x456ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x456b09
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x4e2624]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x456b03
call ebp
cmp eax, 0x2745
je 0x456b13
cmp eax, 0x2746
je 0x456b13
cmp eax, 0x2749
je 0x456b13
cmp eax, 0x274a
je 0x456b13
add esi, ebx
cmp esi, edi
jl 0x456ac4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x456bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x456c49
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x4e2624]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x456c43
call ebp
cmp eax, 0x2745
je 0x456c53
cmp eax, 0x2746
je 0x456c53
cmp eax, 0x2749
je 0x456c53
cmp eax, 0x274a
je 0x456c53
add esi, ebx
cmp esi, edi
jl 0x456c04
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x458786
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4587b6
cmp eax, 0xea
jne 0x4587e8
mov eax, dword [esp + 0xc]
mov ecx, esi
push ebp
shr eax, 1
push eax
call fcn.0045c3ab
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4587cf
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push eax
push ebp
push ebp
push dword [esp + 0x24]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4587f1
push ebp
push ebp
mov ecx, esi
call fcn.0045c3ab
pop edi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4587f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebp
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x458835
cmp eax, 0xea
je 0x458835
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004582b6
jmp 0x458872
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xf]
push eax
push dword [esp + 0x14]
mov ecx, esi
call fcn.004582b6
lea eax, [esp + 0x10]
push eax
push dword [esi]
push ebp
push ebp
push dword [esp + 0x28]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x458871
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebp
call fcn.004582b6
pop esi
pop edi
pop ebp
pop ecx
pop ecx
ret 8
Function at 0x45b46d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a41fd
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x45b497
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x45b4c8
mov ecx, dword [ebp + 8]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ecx + 0x10], ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, ecx
jmp 0x45b5cc
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.0045c388
cmp dword [edi + 0x14], 8
jb 0x45b4e2
mov edi, dword [edi]
push esi
mov esi, dword [ebp - 0x28]
push esi
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x45b541
mov ebx, dword [ebp + 8]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x45b5c9
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x45b5c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00459ccc
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x45b5be
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push str.StringFileInfo040904B0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45b57a
cmp dword [ebp - 0x10], ebx
je 0x45b57a
cmp dword [ebp + 0xc], ebx
je 0x45b57a
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.00458bbe
jmp 0x45b595
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x45b5c9
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp eax, 0x1000
jb 0x45b5c0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00459ccc
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.0045d685
pop ecx
pop ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45d590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45d5bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45d5bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret