joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c3d0
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 0x43c421
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x43c3f0
cmp dword [esi + 0x40], ecx
je 0x43c421
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0
test ecx, ecx
jne 0x43c3fe
mov ecx, dword [esi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0xc]
push 0x43c3b0
call fcn.00444620
add esp, 4
cmp byte [ebp - 8], 0
jne 0x43c42a
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 0x43c451
cmp esi, 0xffffffff
je 0x43c451
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x43c421
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43d150
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 [0x4aa76c]
mov edi, eax
add esp, 8
mov dword [esi + 0x498], edi
mov ebx, 8
test edi, edi
je 0x43d212
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.0043cee0
add esp, 8
test eax, eax
je 0x43d212
push dword [esi + 0x484]
call dword [0x4aa774]
push dword [ebp - 4]
call dword [0x4aa70c]
add esp, 8
mov dword [esi + 0x484], eax
test eax, eax
je 0x43d212
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x43cfa0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x43d202
cmp eax, 0xffffffff
jne 0x43d204
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x43d22d
call dword [sym.imp.MSVCR120.dll__errno]
mov ebx, dword [eax]
lea ecx, [esi + 0x484]
call fcn.0043d090
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 0x43d9e0
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, 0x44af20
mov dword [ebp - 0xc], esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0x4000
call fcn.0044a540
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x43da32
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x43da2f
mov byte [eax - 1], 0
jmp 0x43da32
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
test eax, eax
je 0x43da60
cmp byte [ebx + 0x85d0], 0
jne 0x43da60
push esi
push 0x493c88
push 0x100
push eax
call fcn.0044af50
add esp, 0x10
mov byte [ebx + 0x85d0], 1
cmp byte [ebx + 0x310], 0
je 0x43dade
mov edi, esi
lea ecx, [edi + 1]
mov edi, edi
mov al, byte [edi]
inc edi
test al, al
jne 0x43da70
sub edi, ecx
cmp edi, 0x3fff
jae 0x43da91
mov byte [ebx + edi + 0x5a4], 0xa
inc edi
mov byte [ebx + edi + 0x5a4], al
mov eax, dword [ebx + 0x1d0]
test eax, eax
je 0x43dab2
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 0x49341c
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 0x43daf0
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 0x43db6e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x43db3e
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.0044e730
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0043d9e0
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 0x43dfd0
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 0x43dff6
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 0x43e02c
push dword [edi + 0x158]
lea eax, [edx*2 + 0x49341c]
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 0x43e040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4aa0cc]
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.0x43e084
test eax, eax
je case.default.0x43e084
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x43e084
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x43e084
jmp dword [ecx*4 + 0x43e158]
mov eax, str.Header
mov ecx, str.from
jmp 0x43e0a1
mov eax, str.Header
mov ecx, 0x496ff8
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.0044af50
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e0c6
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.0043dfd0
add esp, 8
test eax, eax
jne 0x43e147
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x43e113
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.0047db8e
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x43e145
push dword [edi + 0x158]
lea eax, [esi*2 + 0x49341c]
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.0047db8e
mov esp, ebp
pop ebp
ret

Function at 0x43e500
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 0x43e550
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 0x43e5bc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [0x4ae911], 0
jne 0x43e5cc
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.0043d920
mov eax, dword [0x4af2b8]
add esp, 8
add eax, esi
mov byte [0x4ae911], 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 0x43e5d1
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 [0x4af2b8]
imul eax, eax, 0x41c64e6d
pop edi
pop esi
pop ebx
add eax, 0x3039
mov dword [0x4af2b8], eax
rol eax, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x44b370
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 0x44b3b2
or eax, 2
dec eax
je 0x44b3c8
dec eax
je 0x44b3c4
dec eax
jne 0x44b3ca
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x44b3ca
mov ebx, ecx
jmp 0x44b3ca
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 0x44b4a9
test ebx, ebx
js 0x44b4a9
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push 0xffffffffffffffff
call fcn.0043d620
add esp, 8
test eax, eax
jle 0x44b49f
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 0x44b465
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44b482
mov ecx, dword [ebp - 8]
jmp 0x44b389
cmp ebx, eax
je 0x44b48e
test eax, eax
je 0x44b49f
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 0x44b389
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 0x44cd80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4aa0cc]
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 0x44cde2
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x44cde2
lea eax, [ebp - 0x108]
push eax
call dword [0x4aa70c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x44efd0
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 0x44f170
push ebx
mov ebx, dword [ebp - 8]
push edi
test ebx, ebx
je 0x44f15b
jmp 0x44f010
cmp dword [ebx + 4], 2
jne 0x44f0ca
cmp dword [ebx + 0x18], 0
je 0x44f0ca
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x44f0ca
cmp eax, 0x10
jb 0x44f0ca
push 0x20
call dword [0x4aa654]
mov edi, eax
add esp, 4
test edi, edi
je 0x44f150
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 [0x4aa654]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x44f13f
mov ecx, dword [ebx + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x44f0b8
push eax
call dword [0x4aa70c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x44f125
mov eax, dword [ebp - 4]
test esi, esi
cmove esi, edi
test eax, eax
je 0x44f0c7
mov dword [eax + 0x1c], edi
mov dword [ebp - 4], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x44f010
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x44f0e6
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x44f157
test esi, esi
je 0x44f115
mov edi, edi
push dword [esi + 0x18]
call dword [0x4aa774]
push dword [esi + 0x14]
call dword [0x4aa774]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x4aa774]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x44f0f0
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 [0x4aa774]
push edi
call dword [0x4aa774]
add esp, 8
jmp 0x44f0d8
push edi
mov ebx, 8
call dword [0x4aa774]
add esp, 4
jmp 0x44f0d8
mov ebx, 8
jmp 0x44f0d8
test esi, esi
jne 0x44f167
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 0x454660
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4858e6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4aa0cc]
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.00403380
mov dword [ebp - 4], 0
test esi, esi
je 0x45484b
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 0x45482f
push eax
call fcn.0047d9f8
mov edi, eax
add esp, 4
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x45482f
push edi
push dword [ebp - 0x248]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x454825
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 0x493d88
push edi
mov dword [ebp - 0x23c], 0
call esi
test eax, eax
je 0x454825
cmp dword [ebp - 0x23c], 4
jb 0x454825
mov ecx, dword [ebp - 0x244]
push 0x49c1e0
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.00455140
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 0x454825
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x248], ecx
test ecx, ecx
je 0x454825
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x454825
cmp word [ecx + eax*2 - 2], 0
jne 0x4547e1
dec eax
mov dword [ebp - 0x23c], eax
lea ebx, [ecx + eax*2]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040c980
lea ecx, [ebp - 0x234]
mov esi, dword [eax]
lea eax, [ebp - 0x254]
push eax
call fcn.0040c950
push ebx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x234]
push esi
push dword [eax]
call fcn.00423930
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.004058f0
jmp 0x454857
push 0x493b50
mov ecx, ebx
call fcn.004058b0
lea ecx, [ebp - 0x234]
call fcn.004033b0
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.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x455470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4aa0cc]
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 0x455634
test edi, edi
je 0x455634
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 0x455616
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 0x45561b
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.0047d9f8
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 0x45560a
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x455591
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.004035a0
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x45561b
cmp eax, 1
je 0x455600
cmp eax, 2
je 0x455600
cmp eax, 7
je 0x455600
cmp dword [ebp - 0x70], 0
jbe 0x45560a
push 0x49c360
mov ecx, ebx
call fcn.00403450
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x455608
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.00455660
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00405940
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x4555c0
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x45561b
push edi
mov ecx, ebx
call fcn.00403450
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x45561b
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x455630
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x455639
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.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x4565c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4aa0cc]
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 0x45678a
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.00403380
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 0x456740
jmp 0x456680
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], edi
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x49c4d8
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4566fb
cmp eax, 0xea
jne 0x456740
lea eax, [ebp - 0x21c]
add edi, edi
cmp esi, eax
je 0x4566cd
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [edi + 2]
push eax
call fcn.0047d9f8
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 0x456680
jmp 0x456740
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 0x456734
cmp eax, 2
jne 0x456740
push edi
push esi
lea ecx, [ebp - 0x234]
call fcn.00403470
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea ecx, [ebp - 0x234]
call fcn.00403450
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x456751
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
cmp esi, eax
je 0x456765
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.004058f0
lea ecx, [ebp - 0x234]
call fcn.004033b0
mov eax, dword [ebp - 0x244]
jmp 0x456796
push 0x493b50
call fcn.004058b0
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.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x4567c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485cb6
mov eax, dword fs:[0]
push eax
sub esp, 0xa34
mov eax, dword [0x4aa0cc]
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
sub esp, 8
mov dword [ebp - 0xa3c], 0
mov ecx, edx
call fcn.00403470
push eax
lea ecx, [ebp - 0xa30]
call fcn.004565c0
add esp, 0xc
lea ecx, [ebp - 0xa30]
mov dword [ebp - 4], 0
call fcn.00403490
test al, al
jne 0x45683c
lea eax, [ebp - 0xa30]
mov ecx, edi
push eax
call fcn.004058f0
jmp 0x4568fb
lea ecx, [ebp - 0x218]
call fcn.00420510
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0047d9f8
mov ebx, eax
add esp, 4
mov dword [ebp - 0xa40], ebx
push ebx
push esi
push 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4568e5
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xa34], 0
push eax
lea eax, [ebp - 0xa34]
push eax
push 0x493b4c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4568e5
mov ecx, dword [ebp - 0xa34]
test ecx, ecx
je 0x4568e5
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, [ebp - 0xa18]
push 0x493dbc
push eax
call fcn.00456930
add esp, 0x18
lea eax, [ebp - 0xa18]
push eax
jmp 0x4568ea
push str.0.0.0.0
mov ecx, edi
call fcn.004058b0
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [ebp - 0xa30]
call fcn.004033b0
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 - 0x10]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret