joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e396
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49e8b8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
jne 0x42e3bc
xor eax, eax
jmp 0x42e4a9
or dword [ebp - 0x48], 0xffffffff
push esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 4
call dword [0x49e84c]
mov esi, eax
test esi, esi
je 0x42e40b
cmp dword [ebp - 0x48], 0xffffffff
je 0x42e3eb
push dword [ebp - 0x48]
call dword [0x467350]
push esi
call dword [0x49e854]
push 3
push 1
push 0x20
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e412
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x42e4a8
push edi
push 0x1e
pop edi
push edi
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00436a20
add esp, 0xc
push edi
lea eax, [ebp - 0x44]
push eax
push esi
mov word [ebp - 0x44], 0x20
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x42e448
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.MSReadLocalBDA:_bind_failed._n
jmp 0x42e478
push edi
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00436a20
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x54], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42e489
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.MSReadLocalBDA:_getsockname_failed._n
call dword [0x467360]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x42e4a7
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x4c], 0
je 0x42e4a4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x4c]
call fcn.0042c2db
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004369c2
leave
ret
Function at 0x42eb5b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 6
push esi
push esi
push esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x42ec2a
push edi
push 0x1c
pop edi
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00436a20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov dword [ebp - 0x2c], esi
call edi
test eax, eax
je 0x42ec20
push ebx
push 0x20019
push 1
push esi
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42ebfb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push str.SecureCapable
push ebx
mov dword [ebp - 0x30], 4
call dword [0x467040]
test eax, eax
je 0x42ec10
push ebx
call dword [0x467004]
inc dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x42ebb5
jmp 0x42ec1f
push dword [ebp - 0x28]
push str.RegQueryValueEx_SecureCapable__d
call fcn.0041b266
pop ecx
pop ecx
pop ebx
push dword [ebp - 0x24]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
push dword [ebp - 0x28]
push str.IsDeviceSecureCapable__d
call fcn.0041b266
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004369c2
leave
ret

Function at 0x42f1b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREWidcommBTConfigDebug
push reloc.WS2_32.dll_bind
call dword [0x46700c]
test eax, eax
je 0x42f1df
push 0xa
pop eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.MaxLogFileSize
push dword [ebp - 4]
mov dword [ebp - 8], 0xa
mov dword [ebp - 0xc], 4
call dword [0x467040]
push dword [ebp - 4]
call dword [0x467004]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x42f2c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x46e890
mov esi, 0x4a2e58
push esi
call fcn.0043ad55
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREWidcommInstall
push reloc.WS2_32.dll_bind
call dword [0x46700c]
test eax, eax
jne 0x42f341
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push str.VERSION
push dword [ebp - 4]
mov dword [ebp - 8], 0xc8
call dword [0x467040]
push dword [ebp - 4]
and word [0x4a2f1e], 0
call dword [0x467004]
push 0x2e
push esi
jmp 0x42f336
push 0x2e
mov word [eax], 0x5f
push eax
call fcn.0043e34b
test eax, eax
pop ecx
pop ecx
jne 0x42f32e
mov eax, esi
pop esi
leave
ret
Function at 0x431bc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0x200
lea esi, [ebp - 0x70]
mov ecx, esi
push ecx
xor ebx, ebx
push ebx
push 0x12
push eax
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x431c2b
mov byte [ebp - 0x70], bl
call dword [0x467358]
push eax
push str.IsDevSecured:_SetupDiGetDeviceRegistryProperty_failed._err_d_n
push 4
jmp 0x431cbd
cmp byte [ebp - 0x70], bl
je 0x431d18
push str.btwsecfl
push esi
call fcn.0043b135
test eax, eax
pop ecx
pop ecx
je 0x431c6a
push str.bcbtums
push esi
call fcn.0043b135
test eax, eax
pop ecx
pop ecx
je 0x431c84
push esi
call fcn.00439690
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x431c34
jmp 0x431d18
push str.IsDevSecured:_found_btwsecfl_n
push 4
call fcn.004295b9
pop ecx
pop ecx
mov dword [ebp - 0x74], 1
jmp 0x431d18
push str.IsDevSecured:_found_bcbtums_n
push 4
pop esi
push esi
call fcn.004295b9
pop ecx
pop ecx
push 0x20019
push 1
push ebx
push 1
push dword [ebp - 0x80]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
jne 0x431cc7
call dword [0x467358]
push eax
push str.IsDevSecured:_SetupDiOpenDevRegKey_failed._err_d_n
push 1
call fcn.004295b9
add esp, 0xc
jmp 0x431d18
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.AuthStartup
push edi
mov dword [ebp - 0x7c], esi
call dword [0x467050]
cmp eax, ebx
je 0x431cf5
push eax
push str.IsDevSecured:_RegQueryValueEx_AuthStartup__failed._err_d_n
push esi
call fcn.004295b9
add esp, 0xc
jmp 0x431d11
push dword [ebp - 0x78]
push str.IsDevSecured:_AuthStartup_d_n
push esi
call fcn.004295b9
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x78], ebx
setne al
mov dword [ebp - 0x74], eax
push edi
call dword [0x467004]
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004369c2
add ebp, 0x194
leave
ret
Function at 0x4335c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push dword [ebp + 0x10]
xor edi, edi
cmp dword [ebp + 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x114]
push str.SYSTEMCurrentControlSetServicesBTHPORTParameters
je 0x433608
push str._sKeys_012I64x
jmp 0x43360d
push str._sPerDevices_012I64x
push 0x100
push eax
call fcn.0043ce7f
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
push 1
push edi
lea eax, [ebp - 0x114]
push eax
push reloc.WS2_32.dll_bind
call dword [0x4670bc]
cmp eax, edi
je 0x43367b
cmp eax, 2
jne 0x43365d
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.IsHidInstalledInRegistry:_no_key._dongle_012I64x_paired_d_n
push 4
call fcn.004295b9
add esp, 0x14
jmp 0x433730
push eax
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.IsHidInstalledInRegistry:_RegOpenKeyEx_failed._dongle_012I64x__paired_d_err_d_n
push 1
call fcn.004295b9
add esp, 0x18
jmp 0x433730
mov edi, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
push ebx
push str._012I64x
lea eax, [ebp - 0x114]
push 0x100
push eax
call fcn.0043ce7f
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x120], 0x10
call dword [0x467050]
test eax, eax
je 0x4336ff
cmp eax, 2
jne 0x4336e8
push dword [ebp + 8]
push edi
push ebx
push str.IsHidInstalledInRegistry:_no_HID_installed._HID_012I64x_paired_d_n
push 4
call fcn.004295b9
add esp, 0x14
jmp 0x433723
push eax
push dword [ebp + 8]
push edi
push ebx
push str.IsHidInstalledInRegistry:_RegQueryValueEx_failed._HID_012I64x_paired_d_err_d_n
push 1
call fcn.004295b9
add esp, 0x18
jmp 0x433723
push dword [ebp + 8]
mov dword [ebp - 0x11c], 1
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.IsHidInstalledInRegistry:_HID_is_installed._dongle_012I64x_HID_012I64x_paired_d_n
push 4
call fcn.004295b9
add esp, 0x1c
push dword [ebp - 0x118]
call dword [0x467004]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
pop edi
call fcn.004369c2
leave
ret
Function at 0x434654
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x43466b
mov dword [eax], 1
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4670a4]
mov esi, eax
cmp esi, ebx
je 0x4346a3
push dword [ebp + 0xc]
push esi
push str.SetRegValue:_RegCreateKeyEx_failed._err_d_SubKey_hs_n
push 1
call fcn.004295b9
add esp, 0x10
jmp 0x434734
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [0x467050]
mov esi, eax
cmp esi, ebx
je 0x434706
push esi
push dword [ebp + 0x10]
push str.SetRegValue:_no_value__hs._RegQueryValueEx_returned__d_n
push edi
call fcn.004295b9
add esp, 0x10
push edi
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [0x467054]
mov esi, eax
cmp esi, ebx
je 0x434721
push dword [ebp + 0xc]
push esi
push str.SetRegValue:_RegSetValueEx_failed._err_d_SubKey_hs_n
push 1
call fcn.004295b9
add esp, 0x10
jmp 0x43472a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jne 0x4346d8
push dword [ebp + 0x10]
push str.SetRegValue:_value__hs_exists_already_n
push edi
call fcn.004295b9
add esp, 0xc
jmp 0x434733
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x43472a
mov dword [eax], ebx
push dword [ebp - 4]
call dword [0x467004]
pop edi
xor eax, eax
cmp esi, ebx
pop esi
sete al
pop ebx
leave
ret
Function at 0x435589
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
lea eax, [ebp - 0x74]
push eax
push 0x2000e
xor esi, esi
push esi
push dword [0x498a8c]
push reloc.WS2_32.dll_bind
call dword [0x4670bc]
test eax, eax
jne 0x435617
push edi
mov edi, dword [0x467044]
jmp 0x4355dc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [section..rdata]
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
call edi
test eax, eax
je 0x4355cf
push dword [ebp - 0x74]
call dword [0x467004]
push dword [0x498a8c]
push reloc.WS2_32.dll_bind
call dword [0x46709c]
pop edi
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop esi
call fcn.004369c2
add ebp, 0x19c
leave
ret
Function at 0x40115e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41239c]
push esi
mov dword [ebp + 0x194], eax
push 0x104
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call dword [0x40e064]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x4011f7
push eax
call fcn.0040ca40
pop ecx
mov esi, eax
push esi
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push dword [ebp - 0x7c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011eb
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x40e3cc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011eb
push 0x34
push dword [ebp - 0x80]
push dword [ebp + 0x1a0]
call fcn.0040cab6
add esp, 0xc
push esi
call fcn.0040cab0
xor eax, eax
pop ecx
inc eax
jmp 0x4011f9
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop esi
call fcn.0040caa1
add ebp, 0x198
leave
ret

Function at 0x402037
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [0x40e018]
ret 8

Function at 0x402051
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [0x40e0c0]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [0x40e018]
pop esi
ret 0xc

Function at 0x40207a
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [0x40e0c0]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402085
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [0x40e018]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4029b3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x41239c]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00402002
cmp eax, esi
jne 0x402a3b
push edi
mov edi, dword [0x40e028]
jmp 0x402a04
lea eax, [ebp - 0x70]
push eax
call fcn.004029b3
cmp eax, esi
jne 0x402a3a
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x4029f7
call fcn.00401f9d
push dword [ebp + 0x9c]
push dword [ebx]
call dword [0x40e008]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401f9d
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0040caa1
add ebp, 0x94
leave
ret 4
Function at 0x4056b7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea eax, [esi + 4]
push eax
call dword [0x40e1ac]
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x405723
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405717
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x40efcc
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405717
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or edi, eax
or esi, ecx
jmp 0x405719
xor esi, esi
push ebx
call dword [0x40e19c]
pop ecx
jmp 0x405725
xor esi, esi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret
Function at 0x408e92
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x40d57a
call fcn.0040cad0
sub esp, 0x7c
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xe], bl
call dword [0x40e180]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408ef5
mov ecx, edi
call dword [0x40e180]
push eax
call dword [0x40e11c]
test al, 0x10
jne 0x408ef5
push 0x80
mov ecx, edi
call dword [0x40e180]
push eax
call dword [0x40e118]
mov ecx, edi
call dword [0x40e180]
push eax
call dword [0x40e0d0]
push ebx
push 0x5c
mov ecx, edi
call dword [0x40e144]
mov ecx, dword [0x40e188]
cmp dword [ecx], eax
je 0x40903c
push esi
inc eax
push eax
jmp 0x409022
push esi
push ebx
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call dword [0x40e184]
mov ecx, eax
mov dword [ebp - 4], ebx
call dword [0x40e180]
push eax
call dword [0x40e11c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call dword [0x40e16c]
cmp dword [ebp - 0x18], 0xffffffff
je 0x408f56
test byte [ebp - 0x18], 0x10
jne 0x409020
push esi
push ebx
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call dword [0x40e184]
push 0x80
mov ecx, eax
mov dword [ebp - 4], 1
call dword [0x40e180]
push eax
call dword [0x40e118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call dword [0x40e16c]
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call dword [0x40e184]
mov ecx, eax
mov dword [ebp - 4], 2
call dword [0x40e180]
push eax
call dword [0x40e0d0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call dword [0x40e16c]
push esi
push ebx
lea eax, [ebp - 0x88]
push eax
mov ecx, edi
call dword [0x40e184]
or dword [ebp - 0x14], 1
push ebx
mov ecx, eax
mov dword [ebp - 4], 3
call dword [0x40e180]
push eax
call dword [0x40e050]
test eax, eax
jne 0x408ffe
call dword [0x40e098]
cmp eax, 0xb7
mov byte [ebp - 0xd], 1
jne 0x409001
mov byte [ebp - 0xd], bl
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x14], 1
je 0x40901b
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x88]
call dword [0x40e16c]
cmp byte [ebp - 0xd], bl
jne 0x40903b
inc esi
push esi
mov ecx, edi
push 0x5c
call dword [0x40e144]
mov esi, eax
mov eax, dword [0x40e188]
cmp dword [eax], esi
jne 0x408f16
pop esi
push ebx
mov ecx, edi
call dword [0x40e180]
push eax
call dword [0x40e050]
test eax, eax
pop edi
pop ebx
jne 0x40905f
call dword [0x40e098]
cmp eax, 0xb7
jne 0x409063
mov byte [ebp - 0xe], 1
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xe]
mov dword fs:[0], ecx
leave
ret

Function at 0x409bbb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40d616
call fcn.0040cad0
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x40f364
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.0040ba4b
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404680
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x418807
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [str.5i]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x41cf6c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00405550
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00405e50
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x42212c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x405e50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41830b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [str.5i]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004146f9
push 4
mov dword [esp + 0x20], 0
call fcn.0040663d
mov edi, eax
add esp, 4
test edi, edi
je 0x405ed0
call fcn.004142f1
mov dword [edi], eax
call fcn.00414125
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00414097
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405ec5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004140b8
jmp 0x405ed2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x630aba
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 4], ah
mov dword [esp + 4], 0x1c
jmp 0x654aab
pushfd
mov dword [esi + 0x38], ebx
mov byte [esp + 4], ah
lea esp, [esp + 8]
call fcn.005f177d
rcr di, cl
mov di, cx
movsx edi, dl
cmp bl, bh
mov edi, eax
pushfd
cmp eax, 0x7ec8d8b9
add esp, 8
push 0x6f07abcb
test dx, ax
clc
cmp edi, ebx
mov word [esp], 0xd5f8
pushal
mov word [esp + 0x18], di
lea esp, [esp + 0x24]
je 0x7acce6
cwde
pushal
mov dword [edi], 0x423fc4
pop eax
pop eax
jmp 0x686c38
lea eax, [ebp - 0x24]
pushfd
pushal
pushfd
mov dword [esp + 0x3c], eax
pushfd
mov dword [edi + 0x10], ebx
mov byte [esp], ch
push eax
jmp 0x6d8084

Function at 0x63c608
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 4]
je 0x7acce6
call fcn.00711ea1
call fcn.0071c5f7

Function at 0x6415cb
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x44]
jl 0x6e6c95

Function at 0x646065
Capabilities:
Encode data using xor

Disassembly:
call fcn.0072f987
cwde
not di
nop
xchg di, ax
jae 0x6c4861
pop eax
movzx di, bl
pushfd
xchg dword [esp + 4], eax
pop edi
jmp 0x63ea79

Function at 0x64ff53
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
test edx, edx
pushfd
pushal
jmp 0x7349b2
lea esp, [esp + 0x34]
jle 0x6415de
pushal
mov dword [esp + 4], eax
push 0xa887b104
mov dword [esp + 0x20], edi
push 0x20393f2b
pushfd
pushfd
lea esp, [esp + 0x2c]
jmp fcn.006e6ca7
xor ebx, ebx
mov byte [esp], ch
cmp bh, 0xb6
stc
add edx, eax
pushfd
mov byte [esp], 0xe6
mov dword [ebp - 8], esi
cmc
jmp 0x68f8fc
mov dword [ebp - 4], ebx
jmp 0x5e8fc0
jmp 0x63fa32

Function at 0x69ce20
Capabilities:
Execute anti-debugging instructions

Disassembly:
movzx si, bl
lahf
setns bh
pop edi
push 0xbdf44de7
jmp 0x6ff775
lea esp, [esp + 0xc]
je 0x6415d5
movsx ecx, bl
movzx eax, word [esi]
call fcn.006e168a