joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bed0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
mov edi, ecx
push 6
push edx
mov esi, dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43bf1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.0044e8d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043dac0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043dac0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43bf30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4aefd8]
mov dword [ebp - 0x12c], 0x4020
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x43bffe
push 0x11c
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov dword [ebp - 0x124], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x43bff2
mov dword [0x4aefd8], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
mov dword [0x4aefd8], 1
jmp 0x43c003
cmp eax, 2
je 0x43c04e
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43c034
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x12c]
jg 0x43c04e
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
Function at 0x43c570
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 0x43c5c1
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x43c590
cmp dword [esi + 0x40], ecx
je 0x43c5c1
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0
test ecx, ecx
jne 0x43c59e
mov ecx, dword [esi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0xc]
push 0x43c550
call fcn.004447c0
add esp, 4
cmp byte [ebp - 8], 0
jne 0x43c5ca
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 0x43c5f1
cmp esi, 0xffffffff
je 0x43c5f1
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x43c5c1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43d2f0
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 0x43d3b2
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.0043d080
add esp, 8
test eax, eax
je 0x43d3b2
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 0x43d3b2
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x43d140
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x43d3a2
cmp eax, 0xffffffff
jne 0x43d3a4
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x43d3cd
call dword [sym.imp.MSVCR120.dll__errno]
mov ebx, dword [eax]
lea ecx, [esi + 0x484]
call fcn.0043d230
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 0x43db80
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, 0x44b0c0
mov dword [ebp - 0xc], esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0x4000
call fcn.0044a6e0
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x43dbd2
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x43dbcf
mov byte [eax - 1], 0
jmp 0x43dbd2
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
test eax, eax
je 0x43dc00
cmp byte [ebx + 0x85d0], 0
jne 0x43dc00
push esi
push 0x493c88
push 0x100
push eax
call fcn.0044b0f0
add esp, 0x10
mov byte [ebx + 0x85d0], 1
cmp byte [ebx + 0x310], 0
je 0x43dc7e
mov edi, esi
lea ecx, [edi + 1]
mov edi, edi
mov al, byte [edi]
inc edi
test al, al
jne 0x43dc10
sub edi, ecx
cmp edi, 0x3fff
jae 0x43dc31
mov byte [ebx + edi + 0x5a4], 0xa
inc edi
mov byte [ebx + edi + 0x5a4], al
mov eax, dword [ebx + 0x1d0]
test eax, eax
je 0x43dc52
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 0x43dc90
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 0x43dd0e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x43dcde
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.0044e8d0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0043db80
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 0x43e170
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 0x43e196
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 0x43e1cc
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 0x43e1e0
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.0x43e224
test eax, eax
je case.default.0x43e224
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x43e224
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x43e224
jmp dword [ecx*4 + 0x43e2f8]
mov eax, str.Header
mov ecx, str.from
jmp 0x43e241
mov eax, str.Header
mov ecx, 0x497008
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.0044b0f0
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e266
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.0043e170
add esp, 8
test eax, eax
jne 0x43e2e7
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x43e2b3
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.0047dbfe
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x43e2e5
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.0047dbfe
mov esp, ebp
pop ebp
ret

Function at 0x43e6a0
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 0x43e6f0
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 0x43e75c
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [0x4ae911], 0
jne 0x43e76c
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.0043dac0
mov eax, dword [0x4af2bc]
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 0x43e771
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 [0x4af2bc]
imul eax, eax, 0x41c64e6d
pop edi
pop esi
pop ebx
add eax, 0x3039
mov dword [0x4af2bc], eax
rol eax, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x44b510
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 0x44b552
or eax, 2
dec eax
je 0x44b568
dec eax
je 0x44b564
dec eax
jne 0x44b56a
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x44b56a
mov ebx, ecx
jmp 0x44b56a
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 0x44b649
test ebx, ebx
js 0x44b649
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push 0xffffffffffffffff
call fcn.0043d7c0
add esp, 8
test eax, eax
jle 0x44b63f
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 0x44b605
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44b622
mov ecx, dword [ebp - 8]
jmp 0x44b529
cmp ebx, eax
je 0x44b62e
test eax, eax
je 0x44b63f
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 0x44b529
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 0x44cf20
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 0x44cf82
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x44cf82
lea eax, [ebp - 0x108]
push eax
call dword [0x4aa70c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
Function at 0x44f170
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 0x44f310
push ebx
mov ebx, dword [ebp - 8]
push edi
test ebx, ebx
je 0x44f2fb
jmp 0x44f1b0
cmp dword [ebx + 4], 2
jne 0x44f26a
cmp dword [ebx + 0x18], 0
je 0x44f26a
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x44f26a
cmp eax, 0x10
jb 0x44f26a
push 0x20
call dword [0x4aa654]
mov edi, eax
add esp, 4
test edi, edi
je 0x44f2f0
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 0x44f2df
mov ecx, dword [ebx + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x44f258
push eax
call dword [0x4aa70c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x44f2c5
mov eax, dword [ebp - 4]
test esi, esi
cmove esi, edi
test eax, eax
je 0x44f267
mov dword [eax + 0x1c], edi
mov dword [ebp - 4], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x44f1b0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x44f286
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x44f2f7
test esi, esi
je 0x44f2b5
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 0x44f290
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 0x44f278
push edi
mov ebx, 8
call dword [0x4aa774]
add esp, 4
jmp 0x44f278
mov ebx, 8
jmp 0x44f278
test esi, esi
jne 0x44f307
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 0x4547e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485966
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.00403390
mov dword [ebp - 4], 0
test esi, esi
je 0x4549cb
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 0x4549af
push eax
call fcn.0047da68
mov edi, eax
add esp, 4
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4549af
push edi
push dword [ebp - 0x248]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4549a5
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 0x4549a5
cmp dword [ebp - 0x23c], 4
jb 0x4549a5
mov ecx, dword [ebp - 0x244]
push 0x49c1f8
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.004552a0
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 0x4549a5
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x248], ecx
test ecx, ecx
je 0x4549a5
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4549a5
cmp word [ecx + eax*2 - 2], 0
jne 0x454961
dec eax
mov dword [ebp - 0x23c], eax
lea ebx, [ecx + eax*2]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040c990
lea ecx, [ebp - 0x234]
mov esi, dword [eax]
lea eax, [ebp - 0x254]
push eax
call fcn.0040c960
push ebx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x234]
push esi
push dword [eax]
call fcn.004239c0
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.00405900
jmp 0x4549d7
push 0x493b50
mov ecx, ebx
call fcn.004058c0
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.0047dbfe
mov esp, ebp
pop ebp
ret
Function at 0x4555d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485b38
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 0x455794
test edi, edi
je 0x455794
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 0x455776
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 0x45577b
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.0047da68
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 0x45576a
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x4556f1
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 0x45577b
cmp eax, 1
je 0x455760
cmp eax, 2
je 0x455760
cmp eax, 7
je 0x455760
cmp dword [ebp - 0x70], 0
jbe 0x45576a
push 0x49c374
mov ecx, ebx
call fcn.00403460
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x455768
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.004557c0
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00405950
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x455720
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x45577b
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 0x45577b
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x455790
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x455799
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.0047dbfe
mov esp, ebp
pop ebp
ret
Function at 0x456720
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485ceb
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 0x4568ea
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 0x4568a0
jmp 0x4567e0
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], edi
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x49c4e4
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45685b
cmp eax, 0xea
jne 0x4568a0
lea eax, [ebp - 0x21c]
add edi, edi
cmp esi, eax
je 0x45682d
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [edi + 2]
push eax
call fcn.0047da68
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 0x4567e0
jmp 0x4568a0
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 0x456894
cmp eax, 2
jne 0x4568a0
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 0x4568b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
cmp esi, eax
je 0x4568c5
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.00405900
lea ecx, [ebp - 0x234]
call fcn.004033c0
mov eax, dword [ebp - 0x244]
jmp 0x4568f6
push 0x493b50
call fcn.004058c0
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.0047dbfe
mov esp, ebp
pop ebp
ret