joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514b99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x440eda
mov eax, 0x528928
lea ecx, [ebp - 0x54]
call fcn.0040fae0
mov byte [ebp - 4], 1
mov eax, 0x528928
lea ecx, [ebp - 0x38]
call fcn.0040fae0
mov byte [ebp - 4], 2
mov eax, 0x528928
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 3
mov eax, 0x528928
lea ecx, [ebp - 0x8c]
call fcn.0040fae0
mov byte [ebp - 4], 4
mov eax, 0x5345c8
lea ecx, [ebp - 0xa8]
call fcn.0040fae0
mov byte [ebp - 4], 5
push esi
lea eax, [ebp - 0xe0]
push eax
call fcn.004efe70
mov esi, eax
mov bl, 6
mov byte [ebp - 4], bl
push str.FileUtil::CreateFileWithNewTimes
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, 0x345
call fcn.00451470
mov byte [ebp - 4], 7
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x8c]
push ecx
push eax
mov edx, esi
lea ecx, [ebp - 0xa8]
call fcn.0044f9c0
add esp, 0x24
mov byte [ebp - 4], bl
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov byte [ebp - 4], 4
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x70]
call fcn.004150b0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x38]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x54]
call fcn.004150b0
or eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
push 0x5345e0
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x440f19
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442a90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51467b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x918
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov edi, 1
mov dword [ebp - 4], edi
push 0
push esi
mov edx, 0x533c1c
call fcn.0040fba0
cmp eax, 0xffffffff
jne 0x442afa
mov ecx, esi
mov esi, ebx
call fcn.0040fab0
mov dword [ebp - 0x14], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x442b02
mov esi, dword [esi]
push 0x400
lea eax, [ebp - 0x924]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x442b3b
mov eax, 0x528928
mov ecx, ebx
call fcn.0040fae0
mov dword [ebp - 0x14], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x924]
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov byte [ebp - 4], 2
lea edi, [ebp - 0x34]
mov eax, ebx
call fcn.0040fb20
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
mov esi, edi
call fcn.004150b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442d20
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
push ebx
call fcn.00442210
add esp, 4
test al, al
jne 0x442dcf
push ebx
push str.File
lea eax, [ebp - 0x4c]
push eax
call fcn.00414000
add esp, 0xc
mov bl, 1
mov byte [ebp - 4], bl
push str._does_not_exist
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 2
push 0
push 0x10000000
push eax
push 0x63c
push str.FileUtil::Rename
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x4c]
call fcn.004150b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x442ddd
mov ecx, dword [edi]
jmp 0x442ddf
mov ecx, edi
cmp dword [ebx + 0x14], eax
jb 0x442de8
mov eax, dword [ebx]
jmp 0x442dea
mov eax, ebx
push ecx
push eax
mov esi, dword [sym.imp.MSVCR100.dll__wrename]
call esi
add esp, 8
test eax, eax
je 0x442f35
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x14], 8
jb 0x442e11
mov eax, dword [edi]
jmp 0x442e13
mov eax, edi
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x442e2b
mov ecx, dword [edi]
jmp 0x442e2d
mov ecx, edi
cmp dword [ebx + 0x14], eax
jb 0x442e36
mov eax, dword [ebx]
jmp 0x442e38
mov eax, ebx
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x442f35
lea edx, [ebp - 0x84]
push edx
xor ecx, ecx
call fcn.004f0ed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
push ebx
push str._wrename_file
lea eax, [ebp - 0xa0]
push eax
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 4
push str._to
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 5
push edi
lea edx, [ebp - 0xbc]
push edx
mov ecx, eax
call fcn.00413df0
mov byte [ebp - 4], 6
push str._failed_:
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004139a0
add esp, 0x14
mov bl, 7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00413a30
add esp, 4
mov byte [ebp - 4], 8
push 0
push 0x10000000
push eax
push 0x646
push str.FileUtil::Rename
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xbc]
call fcn.004150b0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0xa0]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x84]
jmp 0x442db7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4430a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x5728f8
call fcn.00442210
add esp, 4
test al, al
je 0x44318c
mov edi, 8
cmp dword [0x572928], edi
mov ecx, dword [0x572914]
jae 0x4430f5
mov ecx, 0x572914
cmp dword [0x57290c], edi
mov eax, dword [0x5728f8]
jae 0x443107
mov eax, 0x5728f8
push ecx
push eax
mov esi, dword [sym.imp.MSVCR100.dll__wrename]
call esi
add esp, 8
test eax, eax
je 0x44316c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x572928], edi
mov eax, dword [0x572914]
jae 0x443132
mov eax, 0x572914
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp dword [0x572928], edi
mov ecx, dword [0x572914]
jae 0x44314f
mov ecx, 0x572914
cmp dword [0x57290c], edi
mov eax, dword [0x5728f8]
jae 0x443161
mov eax, 0x5728f8
push ecx
push eax
call esi
add esp, 8
test eax, eax
jne 0x44318c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443470
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518b1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x914
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4434a6
mov eax, dword [edi]
jmp 0x4434a8
mov eax, edi
push eax
push 0x400
lea eax, [ebp - 0x91c]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x91c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4434c7
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, dword [ebp - 0x1c]
jae 0x443539
movzx eax, word [ebp + esi*2 - 0x91c]
cmp eax, 0x2f
je 0x4434f9
cmp eax, 0x5c
jne 0x443533
mov edi, eax
xor ecx, ecx
mov word [ebp + esi*2 - 0x91c], cx
push ecx
lea edx, [ebp - 0x91c]
push edx
call ebx
test eax, eax
je 0x443528
push 0x180
lea eax, [ebp - 0x91c]
push eax
call dword [sym.imp.MSVCR100.dll__wchmod]
add esp, 8
mov word [ebp + esi*2 - 0x91c], di
mov edi, dword [ebp + 8]
inc esi
mov dword [ebp - 0x18], esi
jmp 0x4434e2
push 0
lea ecx, [ebp - 0x91c]
push ecx
call ebx
push 0x180
lea edx, [ebp - 0x91c]
push edx
call dword [sym.imp.MSVCR100.dll__wchmod]
push edi
call fcn.00442640
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f070
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ae17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], edi
xor eax, eax
mov word [ebp - 0x50], ax
push edi
mov eax, 0x528928
lea esi, [ebp - 0x50]
call fcn.00412b10
mov dword [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004ee870
add esp, 8
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push ebx
call fcn.0045e530
add esp, 4
test al, al
je 0x45f12f
mov edx, 2
mov word [ebp - 0x60], dx
cmp dword [ebx + 0x14], 8
jb 0x45f0f8
mov eax, dword [ebx]
jmp 0x45f0fa
mov eax, ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_InetPtonW]
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x5e], ax
push 0x50
mov edx, dword [ebp - 0x5c]
push edx
push 2
lea eax, [ebp - 0x80]
push eax
xor ecx, ecx
call fcn.00460970
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x45f1a5
cmp dword [0x1579c3c], edi
je 0x45f1bb
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x88], 0x10
mov eax, dword [ebp - 0x9c]
jae 0x45f167
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x45f1bb
mov edx, 0x17
mov word [ebp - 0x34], dx
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x32], ax
push 0x50
push edi
push 0x17
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00460970
add esp, 0x10
mov byte [ebp - 4], 5
mov edi, eax
lea esi, [ebp - 0x50]
call fcn.00411aa0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x80]
call fcn.004150b0
push 0
lea ecx, [ebp - 0x50]
push ecx
mov eax, ebx
call fcn.004191b0
cmp eax, 0xffffffff
je 0x45f1db
lea edx, [ebp - 0x50]
push edx
mov eax, 0x528928
call fcn.0040fb40
lea edi, [ebp - 0x50]
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.0040fb20
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x9c]
call fcn.004150e0
mov byte [ebp - 4], 0
mov esi, edi
call fcn.004150b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f600
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ad41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
xor eax, eax
mov word [ebx], ax
push edi
mov eax, 0x528928
mov esi, ebx
call fcn.00412b10
mov dword [ebp - 4], edi
mov ecx, 1
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], ecx
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x38], 2
jne 0x45f689
mov dword [ebp - 0x38], 0x17
mov dword [ebp - 4], ecx
call fcn.0045e1a0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x45f69c
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x3c]
push edx
push edi
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, edi
jne 0x45f74f
mov edi, dword [ebp - 0x18]
mov ecx, dword [0x1579c40]
lea ecx, [ecx]
test edi, edi
je 0x45f74d
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x45f71e
cmp byte [ebp + 0x10], 0
je 0x45f719
xor eax, eax
mov word [ebp - 0x1bc], ax
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x45f6f7
push 0x2e
lea edx, [ebp - 0x1bc]
push edx
add eax, 4
push eax
push 2
call ecx
push ebx
lea eax, [ebp - 0x1bc]
call fcn.0040fb40
mov esi, 0x5382e8
mov ecx, ebx
call fcn.00447fc0
test al, al
jne 0x45f74d
mov ecx, dword [0x1579c40]
mov edi, dword [edi + 0x1c]
jmp 0x45f6c0
cmp eax, 0x17
jne 0x45f719
cmp byte [ebp + 0x10], 0
jne 0x45f719
test ecx, ecx
je 0x45f719
mov edi, dword [edi + 0x18]
push 0x2e
lea eax, [ebp - 0x1bc]
push eax
add edi, 8
push edi
push 0x17
call ecx
push ebx
lea eax, [ebp - 0x1bc]
call fcn.0040fb40
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x45f907
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x45f915
push eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4605f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ac19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
xor eax, eax
mov word [edi], ax
push 0xf
mov eax, str._::1_127.0.0.1_
mov esi, edi
call fcn.00412b10
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
push ebx
mov eax, 0x528928
lea esi, [ebp - 0x34]
call fcn.00412b10
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
call fcn.0045e1a0
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push 0x528928
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, ebx
jne 0x46075b
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x46075b
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4606c3
mov eax, dword [esi + 0x18]
mov ecx, dword [0x1579c40]
cmp ecx, ebx
je 0x4606e8
push 0x2e
lea edx, [ebp - 0x1d4]
push edx
add eax, 4
push eax
push 2
call ecx
jmp 0x4606e8
cmp eax, 0x17
jne 0x4606e8
cmp dword [0x1579c40], ebx
je 0x4606e8
mov eax, dword [esi + 0x18]
push 0x2e
lea ecx, [ebp - 0x1d4]
push ecx
add eax, 8
push eax
push 0x17
call dword [0x1579c40]
lea eax, [ebp - 0x1d4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4606f1
sub eax, edx
sar eax, 1
je 0x460753
lea edx, [ebp - 0x34]
push edx
mov eax, 0x528e5c
call fcn.0040fb40
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1d4]
call fcn.0040fb70
lea ecx, [ebp - 0x34]
push ecx
mov eax, 0x528e5c
call fcn.0040fb70
push ebx
push edi
lea eax, [ebp - 0x34]
call fcn.004191b0
cmp eax, 0xffffffff
jne 0x460753
push edi
lea eax, [ebp - 0x1d4]
call fcn.0040fb70
push edi
mov eax, 0x528e5c
call fcn.0040fb70
mov esi, dword [esi + 0x1c]
jmp 0x460693
mov dword [ebp - 4], 1
jmp 0x460917
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x460925
push eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
push ebx
push edi
or eax, 0xffffffff
mov ecx, 0x5729a0
call fcn.00411b10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x20], 8
jb 0x46094a
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4669a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4669cc
jle 0x466a27
and eax, 0xffff
or eax, 0x80070000
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
test eax, eax
jne 0x4669e9
mov edx, eax
push edx
mov esi, 0x80070057
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x52c314
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x466a18
jle 0x466a05
and eax, 0xffff
or eax, 0x80070000
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x466a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20014
call fcn.0050f9a0
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x20010], ax
push eax
mov esi, ecx
mov eax, 0x528928
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x10000
call fcn.00412b10
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystem
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x466a9a
jle 0x466bea
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x20010]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.SystemBiosVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x466adf
jle 0x466aca
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
dec eax
cmp eax, 0xa
ja case.0x466af3.5
movzx eax, byte [eax + 0x466c0c]
jmp dword [eax*4 + 0x466bf4]
movsx eax, byte [ebp - 0x20010]
cdq
push edx
push eax
push str._i64
lea edx, [ebp - 0x20010]
call fcn.00467440
add esp, 0xc
push esi
lea eax, [ebp - 0x20010]
call fcn.0040fb40
jmp case.0x466af3.5
movsx ecx, byte [ebp - 0x20010]
push ecx
push 0x543538
lea edx, [ebp - 0x20010]
call fcn.00467440
add esp, 8
push esi
lea eax, [ebp - 0x20010]
call fcn.0040fb40
jmp case.0x466af3.5
push esi
mov eax, 0x528928
call fcn.0040fb40
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle case.0x466af3.5
movzx eax, word [ebp + ebx*2 - 0x20010]
test ax, ax
je 0x466b80
push eax
mov eax, 1
mov edi, esi
call fcn.00412a60
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x466b66
jmp case.0x466af3.5
mov ecx, dword [ebp - 4]
xor eax, eax
shr ecx, 1
je 0x466bae
cmp word [ebp + eax*2 - 0x20010], 0
jne 0x466ba9
mov edx, 0xa
mov word [ebp + eax*2 - 0x20010], dx
inc eax
cmp eax, ecx
jb 0x466b91
xor eax, eax
mov word [ebp + ecx*2 - 0x20010], ax
lea eax, [ebp - 0x20010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466bc1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20010]
call fcn.00412b10
mov ecx, dword [ebp - 0xc]
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20009
push 0
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x466c63
jle 0x466cd9
and eax, 0xffff
or eax, 0x80070000
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push esi
test eax, eax
jne 0x466c80
mov edx, eax
push edx
mov esi, 0x80070057
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push edx
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x466cbc
jle 0x466ca9
and eax, 0xffff
or eax, 0x80070000
mov edx, dword [ebp - 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
sub esi, 4
neg esi
sbb esi, esi
push edx
and esi, 0x80020005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x466ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000c
call fcn.0050f9a0
push esi
xor eax, eax
push 0x1fffe
mov esi, ecx
push eax
lea ecx, [ebp - 0x2000a]
push ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x10000
mov word [ebp - 0x2000c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
mov eax, 0x528928
call fcn.00412b10
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x20009
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x466d5b
jle 0x466dd8
and eax, 0xffff
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x2000c]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x466d9f
jle 0x466d8b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2000c]
xor edi, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466db0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2000c]
call fcn.00412b10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret