joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x598]
test edi, edi
je 0x43f0b1
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x43f080
cmp dword [esi + 0x40], ecx
je 0x43f0b1
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0
test ecx, ecx
jne 0x43f08e
mov ecx, dword [esi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0xc]
push 0x43f040
call fcn.004472b0
add esp, 4
cmp byte [ebp - 8], 0
jne 0x43f0ba
mov dword [esi + 0x598], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x178], 0
mov esi, dword [edi + 0x154]
jne 0x43f0e1
cmp esi, 0xffffffff
je 0x43f0e1
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x43f0b1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43fde0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x4ad76c]
mov edi, eax
add esp, 8
mov dword [esi + 0x498], edi
mov ebx, 8
test edi, edi
je 0x43fea2
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x488], ecx
push ecx
mov byte [esi + 0x490], 0
mov ecx, edi
mov dword [esi + 0x494], 0
mov dword [esi + 0x48c], 0
mov dword [edi], 0
call fcn.0043fb70
add esp, 8
test eax, eax
je 0x43fea2
push dword [esi + 0x484]
call dword [0x4ad774]
push dword [ebp - 4]
call dword [0x4ad70c]
add esp, 8
mov dword [esi + 0x484], eax
test eax, eax
je 0x43fea2
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x43fc30
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x43fe92
cmp eax, 0xffffffff
jne 0x43fe94
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x43febd
call dword [sym.imp.MSVCR120.dll__errno]
mov ebx, dword [eax]
lea ecx, [esi + 0x484]
call fcn.0043fd20
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push esi
push edi
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x5a4]
mov dword [ebp - 8], 0
mov edx, 0x44dbb0
mov dword [ebp - 0xc], esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0x4000
call fcn.0044d1d0
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x4406c2
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x4406bf
mov byte [eax - 1], 0
jmp 0x4406c2
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
test eax, eax
je 0x4406f0
cmp byte [ebx + 0x85d0], 0
jne 0x4406f0
push esi
push 0x496db8
push 0x100
push eax
call fcn.0044dbe0
add esp, 0x10
mov byte [ebx + 0x85d0], 1
cmp byte [ebx + 0x310], 0
je 0x44076e
mov edi, esi
lea ecx, [edi + 1]
mov edi, edi
mov al, byte [edi]
inc edi
test al, al
jne 0x440700
sub edi, ecx
cmp edi, 0x3fff
jae 0x440721
mov byte [ebx + edi + 0x5a4], 0xa
inc edi
mov byte [ebx + edi + 0x5a4], al
mov eax, dword [ebx + 0x1d0]
test eax, eax
je 0x440742
push dword [ebx + 0x15c]
push edi
push esi
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x158]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 1
push 2
push 0x49652c
call esi
push dword [ebx + 0x158]
lea eax, [ebx + 0x5a4]
push 1
push edi
push eax
call esi
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x4407fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4407ce
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.004513c0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00440670
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x85d4], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x440c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x440c86
push dword [edi + 0x15c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
call eax
add esp, 0x14
pop edi
pop ebp
ret
cmp edx, 2
ja 0x440cbc
push dword [edi + 0x158]
lea eax, [edx*2 + 0x49652c]
push 1
add eax, edx
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 0x158]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x440cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
cmp byte [edi + 0x2f8], 0
je case.default.0x440d14
test eax, eax
je case.default.0x440d14
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x440d14
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x440d14
jmp dword [ecx*4 + 0x440de8]
mov eax, str.Header
mov ecx, str.from
jmp 0x440d31
mov eax, str.Header
mov ecx, 0x49a0f4
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.0044dbe0
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x440d56
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.00440c60
add esp, 8
test eax, eax
jne 0x440dd7
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x440da3
push dword [edi + 0x15c]
push dword [ebp + 0xc]
push ebx
push esi
push edi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x440dd5
push dword [edi + 0x158]
lea eax, [esi*2 + 0x49652c]
push 1
add eax, esi
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 2
push eax
call esi
push dword [edi + 0x158]
push 1
push dword [ebp + 0xc]
push ebx
call esi
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048079e
mov esp, ebp
pop ebp
ret

Function at 0x441190
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov ebx, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4411e0
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x44124c
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [0x4b1b31], 0
jne 0x44125c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
push str.WARNING:_Using_weak_random_seed_n
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
push ebx
sub esi, ecx
imul esi, esi, 0x3e8
call fcn.004405b0
mov eax, dword [0x4b24dc]
add esp, 8
add eax, esi
mov byte [0x4b1b31], 1
add eax, edi
imul eax, eax, 0x41c64e6d
add eax, 0x3039
imul eax, eax, 0x41c64e6d
add eax, 0x3039
imul eax, eax, 0x41c64e6d
add eax, 0x3039
jmp 0x441261
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b24dc]
imul eax, eax, 0x41c64e6d
pop edi
pop esi
pop ebx
add eax, 0x3039
mov dword [0x4b24dc], eax
rol eax, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x44e000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ecx, dword [ecx]
xor eax, eax
mov esi, 1
mov dword [ebp - 0xc], ecx
mov ebx, 0x493e0
mov edx, dword [ecx + 0x208]
test edx, edx
mov ecx, dword [ecx + 0x20c]
cmovg eax, esi
test ecx, ecx
jle 0x44e042
or eax, 2
dec eax
je 0x44e058
dec eax
je 0x44e054
dec eax
jne 0x44e05a
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x44e05a
mov ebx, ecx
jmp 0x44e05a
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0xc]
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [eax + 0x508]
sub esi, edi
sub ecx, dword [eax + 0x50c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add ebx, eax
je 0x44e139
test ebx, ebx
js 0x44e139
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push 0xffffffffffffffff
call fcn.004402b0
add esp, 8
test eax, eax
jle 0x44e12f
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x44e0f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44e112
mov ecx, dword [ebp - 8]
jmp 0x44e019
cmp ebx, eax
je 0x44e11e
test eax, eax
je 0x44e12f
mov ecx, dword [ebp - 8]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 4], eax
mov dword [ebp + 8], esi
jmp 0x44e019
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fa10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x44fa72
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x44fa72
lea eax, [ebp - 0x108]
push eax
call dword [0x4ad70c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x451c60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [eax], esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x451e00
push ebx
mov ebx, dword [ebp - 8]
push edi
test ebx, ebx
je 0x451deb
jmp 0x451ca0
cmp dword [ebx + 4], 2
jne 0x451d5a
cmp dword [ebx + 0x18], 0
je 0x451d5a
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x451d5a
cmp eax, 0x10
jb 0x451d5a
push 0x20
call dword [0x4ad654]
mov edi, eax
add esp, 4
test edi, edi
je 0x451de0
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push 0x10
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x4ad654]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x451dcf
mov ecx, dword [ebx + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x451d48
push eax
call dword [0x4ad70c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x451db5
mov eax, dword [ebp - 4]
test esi, esi
cmove esi, edi
test eax, eax
je 0x451d57
mov dword [eax + 0x1c], edi
mov dword [ebp - 4], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x451ca0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x451d76
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x451de7
test esi, esi
je 0x451da5
mov edi, edi
push dword [esi + 0x18]
call dword [0x4ad774]
push dword [esi + 0x14]
call dword [0x4ad774]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x4ad774]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x451d80
mov eax, dword [ebp + 0xc]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x4ad774]
push edi
call dword [0x4ad774]
add esp, 8
jmp 0x451d68
push edi
mov ebx, 8
call dword [0x4ad774]
add esp, 4
jmp 0x451d68
mov ebx, 8
jmp 0x451d68
test esi, esi
jne 0x451df7
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4572d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488946
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4ad0cc]
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, edx
mov ebx, ecx
mov dword [ebp - 0x250], ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x258], 0
call fcn.00403390
mov dword [ebp - 4], 0
test esi, esi
je 0x4574bb
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x21c]
push eax
push esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x45749f
push eax
call fcn.00480608
mov edi, eax
add esp, 4
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x45749f
push edi
push dword [ebp - 0x248]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x457495
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0x496eb8
push edi
mov dword [ebp - 0x23c], 0
call esi
test eax, eax
je 0x457495
cmp dword [ebp - 0x23c], 4
jb 0x457495
mov ecx, dword [ebp - 0x244]
push 0x49f2f0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00457e10
add esp, 0x14
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call esi
test eax, eax
je 0x457495
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x248], ecx
test ecx, ecx
je 0x457495
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x457495
cmp word [ecx + eax*2 - 2], 0
jne 0x457451
dec eax
mov dword [ebp - 0x23c], eax
lea ebx, [ecx + eax*2]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040dea0
lea ecx, [ebp - 0x234]
mov esi, dword [eax]
lea eax, [ebp - 0x254]
push eax
call fcn.0040de70
push ebx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x234]
push esi
push dword [eax]
call fcn.00425f60
mov ebx, dword [ebp - 0x250]
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
call fcn.00405990
jmp 0x4574c7
push 0x496c80
mov ecx, ebx
call fcn.00405950
lea ecx, [ebp - 0x234]
call fcn.004033c0
mov eax, ebx
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.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x458140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488b18
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ad0cc]
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, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x74], eax
test edx, edx
je 0x458304
test edi, edi
je 0x458304
mov esi, 0x8000ffff
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4582e6
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
push dword [ebp - 0x74]
push 0
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4582eb
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.00480608
mov edi, eax
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x74]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4582da
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x458261
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call sub.MSVCR120.dll_memset
push 0xa
push 0x28
lea eax, [ebp - 0x68]
push eax
push dword [edi]
call dword [sym.imp.MSVCR120.dll__ultow_s]
add esp, 0x1c
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.004035b0
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4582eb
cmp eax, 1
je 0x4582d0
cmp eax, 2
je 0x4582d0
cmp eax, 7
je 0x4582d0
cmp dword [ebp - 0x70], 0
jbe 0x4582da
push 0x49f46c
mov ecx, ebx
call fcn.00403460
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x4582d8
lea esp, [esp]
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
movzx eax, byte [esi + edi]
push eax
push str._02x
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00458330
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004059e0
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x458290
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4582eb
push edi
mov ecx, ebx
call fcn.00403460
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4582eb
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x458300
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x458309
mov eax, 0x80004003
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.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x459290
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4ad0cc]
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 esi, ecx
mov dword [ebp - 0x244], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x248], 0
test ebx, ebx
je 0x45945a
push 0x207
lea eax, [ebp - 0x21b]
mov byte [ebp - 0x21c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x238], 0
mov edi, 0x206
lea esi, [ebp - 0x21c]
call fcn.00403390
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push eax
push 0x20219
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x459410
jmp 0x459350
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], edi
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x49f5e8
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4593cb
cmp eax, 0xea
jne 0x459410
lea eax, [ebp - 0x21c]
add edi, edi
cmp esi, eax
je 0x45939d
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [edi + 2]
push eax
call fcn.00480608
add esp, 4
mov esi, eax
lea eax, [ebp - 0x238]
push eax
push 0x20219
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x459350
jmp 0x459410
mov eax, dword [ebp - 0x23c]
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x23c]
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x240]
cmp eax, 1
je 0x459404
cmp eax, 2
jne 0x459410
push edi
push esi
lea ecx, [ebp - 0x234]
call fcn.00403480
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea ecx, [ebp - 0x234]
call fcn.00403460
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x459421
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
cmp esi, eax
je 0x459435
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
push eax
call fcn.00405990
lea ecx, [ebp - 0x234]
call fcn.004033c0
mov eax, dword [ebp - 0x244]
jmp 0x459466
push 0x496c80
call fcn.00405950
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.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x459490
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x488d16
mov eax, dword fs:[0]
push eax
sub esp, 0xa40
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0xa38], eax
push ebx
push esi
push edi
mov eax, dword [0x4ad0cc]
xor eax, esp
push eax
lea eax, [esp + 0xa50]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 8
mov dword [esp + 0x28], 0
mov ecx, edx
call fcn.00403480
push eax
lea ecx, [esp + 0x30]
call fcn.00459290
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [esp + 0xa58], 0
call fcn.004034a0
test al, al
jne 0x45951a
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.00405990
jmp 0x4595cf
lea ecx, [esp + 0x3c]
call fcn.00422b40
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.00480608
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
push ebx
push esi
push 0
lea eax, [esp + 0x48]
mov byte [esp + 0xa64], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4595b9
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
push eax
push 0x496c7c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4595b9
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4595b9
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [esp + 0x254]
push 0x496eec
push eax
call fcn.00459600
add esp, 0x18
lea eax, [esp + 0x244]
push eax
jmp 0x4595be
push str.0.0.0.0
mov ecx, edi
call fcn.00405950
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004033c0
mov eax, edi
mov ecx, dword [esp + 0xa50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa38]
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret