joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d5c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bb0]
cmp dword [eax + 0x30], 0
je 0x44d672
cmp dword [ebx + 0x94], 0
jne 0x44d66c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d558
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d66c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44d632
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d66c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413ae4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d641
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e1d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e209
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040a4
jmp 0x44e216
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404008
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f278
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f2b9
mov eax, esi
call fcn.00435aec
test al, al
je 0x44f2b9
mov eax, dword [ebx + 0x84]
call fcn.0043588c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f2b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043588c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452980
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4529ae
mov eax, ebx
call fcn.00453434
cmp dword [ebx + 0x40], 0
je 0x4529a7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x452a1f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x452a11
cmp dword [ebx + 8], 0
je 0x4529d0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4529e2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x452a11
cmp dword [ebx + 8], 0
je 0x4529c3
cmp eax, 3
je 0x4529f5
dec eax
jne 0x4529c3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4529c3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4529c3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x452a3d
cmp dword [ebx + 0x14], 0xcc
je 0x452a3d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00452a48
pop ebx
ret
Function at 0x401057
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x475b3c
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x401078
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401074
xor eax, eax
ret

Function at 0x401086
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4010a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4010a3
xor eax, eax
ret

Function at 0x4010f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40112a
push 0xd
pop esi
cmp esi, 0xe8
jne 0x40114f
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
invalid

Function at 0x401155
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
pop esi
push esi
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x401198
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x40122c
push 0xd
pop edi
jmp 0x40122c
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4011bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x401223
push 0xd
pop edi
jmp 0x401223
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x4011ac
cmp dword [ebp + 0x10], ebx
je 0x401223
xor eax, eax
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004010f7
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x401223
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
inc ecx
sub eax, ecx
neg eax
sbb eax, eax
and eax, 0xd
push ebx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012ba
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x497fa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x475bd8
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, 0x104
test eax, eax
je 0x40136b
push esi
push edi
push dword [ebp - 0x420]
call fcn.004010b5
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x401394
call fcn.00401057
cmp eax, 1
jne 0x401388
push str.thsnYaVieBoda
jmp 0x40138d
push str.TsnIorcAeBoda
push esi
push edi
call fcn.00401266
cmp dword [ebp + 0xc], ebx
je 0x4013a3
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401266
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439878
leave
ret

Function at 0x40759c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x49c680], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x4075e0
call ebx
test eax, eax
jns 0x4075d6
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x49c67c], eax
mov dword [0x49c680], 1
mov eax, dword [0x49c67c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4075fc
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x40762c
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x407622
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x407617
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x40761c
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x40762b
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4079eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x497fa4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x244
push edi
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x407a3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00439878
leave
ret
push str.kernel32.dll
lea eax, [ebp - 0x248]
push 0x122
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call fcn.00407963
mov edi, eax
cmp edi, esi
je 0x407a2a
push 0x477c1c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x407a81
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x407a2c
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x407a76

Function at 0x40a483
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, ecx
push dword [esi + 4]
call edi
xor ecx, ecx
cmp eax, ecx
je 0x40a4a6
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x40a4a9
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], ecx
jne 0x40a4d3
push ecx
push 0xffffffffffffffff
push str.must_own_monitor_prior_to_calling_wait__
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.RSException.0
call fcn.00409030
push 0x485a4c
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 4]
call edi
push eax
mov ecx, esi
call fcn.0040a2b7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040a1b7
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040a3be
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a552
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x40a567
mov dword [eax], ecx
jmp 0x40a569
xor eax, eax
push ecx
push ecx
push esi
push 0x40a540
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
pop esi
ret
Function at 0x40a65c
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.0040852a
cmp dword [esi + 4], 1
jne 0x40a689
push edi
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
je 0x40a689
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.0040852a
cmp dword [esi + 4], 3
jne 0x40a6ee
push edi
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x40a6ee
push 1
mov ecx, esi
call fcn.004096c7
cmp ax, 0x3a
jne 0x40a6ee
push 2
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
je 0x40a6ee
mov ecx, esi
call fcn.0040852a
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
push 0
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
je 0x40a81b
push 1
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
je 0x40a81b
push 2
pop edi
mov ecx, esi
call fcn.0040852a
cmp dword [esi + 4], edi
je 0x40a81f
push edi
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
jne 0x40a81f
mov ecx, esi
inc edi
call fcn.0040852a
cmp edi, dword [esi + 4]
jae 0x40a77c
push edi
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
je 0x40a757
mov ecx, esi
call fcn.0040852a
cmp dword [esi + 4], edi
je 0x40a81f
mov ecx, esi
inc edi
call fcn.0040852a
cmp dword [esi + 4], edi
je 0x40a81f
push edi
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
jne 0x40a81f
mov ecx, esi
inc edi
call fcn.0040852a
cmp edi, dword [esi + 4]
jae 0x40a7da
push edi
mov ecx, esi
call fcn.004096c7
movzx eax, ax
push eax
call fcn.0040a642
add esp, 4
test al, al
je 0x40a7b5
mov ecx, esi
call fcn.0040852a
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x40a81f
mov ecx, esi
call fcn.0040852a
cmp dword [esi + 4], edi
jne 0x40a804
movzx eax, word [0x4969cc]
push eax
mov ecx, esi
call fcn.00408a6e
mov ecx, esi
call fcn.0040852a
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x40ab58
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x4677c5
call fcn.00439973
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040852a
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x40ab85
mov eax, 0xffffe89d
jmp 0x40adb2
push ebx
push 0xffffffffffffffff
push 0x477eb0
lea ecx, [ebp - 0x488]
call fcn.00409030
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409ca4
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403754
lea ecx, [ebp - 0x480]
call fcn.00403754
test bl, bl
je 0x40abd8
mov eax, 0xffffe8c2
jmp 0x40adb2
mov ecx, esi
call fcn.0040852a
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x40ad12
mov ecx, esi
call fcn.0040852a
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x40ac2f
inc eax
jmp 0x40adb2
cmp eax, 0x20a
jbe 0x40ac40
mov eax, 0xffffe8c1
jmp 0x40adb2
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.004089e6
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.0040a65c
test eax, eax
je 0x40ac9f
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.00403754
lea ecx, [ebp - 0x480]
call fcn.00403754
mov eax, esi
jmp 0x40adb2
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.0040a642
add esp, 4
test al, al
jne 0x40acd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40acd1
cmp eax, 3
je 0x40acd1
xor esi, esi
inc esi
jmp 0x40ac82
mov esi, 0xffffe8c2
jmp 0x40ac82
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x40acbc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403754
lea ecx, [ebp - 0x480]
call fcn.00403754
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x40ad66
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00409030
push 0x485a4c
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.0040a823
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x40ad9e
cmp dword [ebp - 0x464], ebx
jne 0x40ad9e
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x40adb0
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.0040a823
pop ecx
pop ecx
xor eax, eax
call fcn.004399f6
ret
Function at 0x40b46d
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push 0x1a0
mov eax, 0x46785c
call fcn.00439973
mov esi, ecx
mov dword [ebp - 0x1a8], esi
call fcn.0040af1b
lea eax, [esi + 0x18]
xor edi, edi
mov dword [esi], vtable.CNetWatcher.0
push eax
mov dword [ebp - 4], edi
mov dword [eax], vtable.RSMonitor.0
mov dword [eax + 4], edi
call fcn.0040a341
push 8
mov byte [ebp - 4], 1
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [esi + 0x20], eax
or dword [eax], 0xffffffff
mov eax, dword [esi + 0x20]
or dword [eax + 4], 0xffffffff
lea eax, [ebp - 0x1a0]
push eax
push 0x202
mov byte [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b531
cmp byte [ebp - 0x1a0], 2
jne 0x40b537
mov eax, dword [ebp - 0x1a0]
shr eax, 8
cmp al, 2
jne 0x40b537
push 1
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push edi
push edi
lea ecx, [ebp - 0x1ac]
push ecx
push edi
push edi
push 4
lea ecx, [ebp - 0x1a4]
push ecx
push 0x8004667e
push eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0x1a4], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x40b537
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, esi
call fcn.004399f6
ret
Function at 0x40c159
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x467afe
call fcn.0043990a
mov esi, ecx
push 4
pop ebx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x478040
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], ebx
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.0041b98b
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00403754
lea ecx, [ebp - 0x48]
call fcn.00403754
push esi
lea ecx, [ebp - 0x20]
call fcn.00403419
mov byte [ebp - 4], 3
cmp dword [esi + 8], edi
je 0x40c263
push 1
mov ecx, esi
call fcn.0040bea8
test eax, eax
je 0x40c23b
cmp dword [esi + 0xc], edi
je 0x40c263
lea ecx, [ebp - 0x38]
call fcn.0040852a
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x10]
push edx
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x80]
push ebx
test eax, eax
jne 0x40c233
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40c219
mov ecx, dword [ebp - 0x20]
call fcn.0040a517
lea ecx, [ebp - 0x28]
call fcn.00403754
lea ecx, [ebp - 0x30]
call fcn.00403754
mov eax, esi
call fcn.004399e2
ret 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40c263
lea ecx, [ebp - 0x38]
call fcn.0040852a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c263
cmp dword [ebp - 0x18], ebx
je 0x40c205
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40c274
mov ecx, dword [ebp - 0x20]
call fcn.0040a517
mov esi, dword [ebp + 0xc]
jmp 0x40c219
Function at 0x40c6b4
Capabilities:
Set registry value

Disassembly:
push 0x88
mov eax, 0x467ac8
call fcn.0043990a
mov esi, ecx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x478080
lea ecx, [ebp - 0x2c]
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], edi
call fcn.0041b98b
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00403754
lea ecx, [ebp - 0x24]
call fcn.00403754
push esi
lea ecx, [ebp - 0x14]
call fcn.00403419
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040bea8
test eax, eax
je 0x40c7c8
cmp dword [esi + 0xc], edi
je 0x40c79f
lea ecx, [ebp - 0x44]
call fcn.0040852a
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x78]
push ebx
test eax, eax
je 0x40c799
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x2c]
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 4
call fcn.0041b98b
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x60], vtable.RSException.0
call fcn.00403cbd
push 0x485a4c
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR100.dll__CxxThrowException
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], edi
je 0x40c7b0
mov ecx, dword [ebp - 0x14]
call fcn.0040a517
lea ecx, [ebp - 0x34]
call fcn.00403754
lea ecx, [ebp - 0x3c]
call fcn.00403754
call fcn.004399e2
ret 8
lea ecx, [ebp - 0x44]
call fcn.0040852a
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c79f
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x78]
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 6
call fcn.0041b98b
add esp, 0xc
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
mov dword [ebp - 0x94], vtable.RSException.0
call fcn.00403cbd
push 0x485a4c
lea eax, [ebp - 0x94]
jmp 0x40c793
Function at 0x40c838
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x467afe
call fcn.0043990a
mov esi, ecx
push 4
pop ebx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x478080
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], ebx
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.0041b98b
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00403754
lea ecx, [ebp - 0x48]
call fcn.00403754
push esi
lea ecx, [ebp - 0x20]
call fcn.00403419
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040bea8
test eax, eax
je 0x40c918
cmp dword [esi + 0xc], edi
je 0x40c940
lea ecx, [ebp - 0x38]
call fcn.0040852a
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x10]
push edx
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x80]
push ebx
test eax, eax
jne 0x40c910
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
setne al
mov esi, eax
cmp dword [ebp - 0x1c], edi
je 0x40c8f6
mov ecx, dword [ebp - 0x20]
call fcn.0040a517
lea ecx, [ebp - 0x28]
call fcn.00403754
lea ecx, [ebp - 0x30]
call fcn.00403754
mov eax, esi
call fcn.004399e2
ret 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40c940
lea ecx, [ebp - 0x38]
call fcn.0040852a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c940
cmp dword [ebp - 0x18], ebx
je 0x40c8db
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40c951
mov ecx, dword [ebp - 0x20]
call fcn.0040a517
mov esi, dword [ebp + 0xc]
jmp 0x40c8f6