joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call sub.iphlpapi.dll_GetIpForwardTable
cmp dword [ebp - 4], ebx
je 0x4010d4
push dword [ebp - 4]
call fcn.00467263
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4010d4
push dword [ebp - 4]
push ebx
push edi
call fcn.00466400
add esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
je 0x401079
cmp dword [0x4c0560], 2
jne 0x401071
push str.GetIpForwardTable_fail_n
call fcn.004756e0
add eax, 0x40
push eax
call fcn.0046a3bf
pop ecx
pop ecx
push edi
call fcn.0046647f
jmp 0x4010f1
cmp dword [edi], ebx
mov dword [ebp - 8], ebx
jbe 0x4010bd
lea esi, [edi + 4]
cmp dword [0x4c0560], 2
jne 0x4010a7
push dword [esi + 4]
push dword [esi]
push str.MIB_IPFORWARDROW__lu__lu_n
call fcn.004756e0
add eax, 0x40
push eax
call fcn.0046a3bf
add esp, 0x10
cmp dword [esi], ebx
jne 0x4010b0
cmp dword [esi + 4], ebx
je 0x4010c8
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 0x38
cmp eax, dword [edi]
jb 0x401083
push edi
call fcn.0046647f
pop ecx
xor eax, eax
jmp 0x4010f4
push edi
call fcn.0046647f
xor eax, eax
pop ecx
inc eax
jmp 0x4010f4
cmp dword [0x4c0560], 2
jne 0x4010f2
push str.size__0__malloc_fail_n
call fcn.004756e0
add eax, 0x40
push eax
call fcn.0046a3bf
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4010f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x7fe
lea eax, [ebp - 0x802]
push edi
push eax
mov word [ebp - 0x804], di
call fcn.00466400
push 0xffffffffffffffff
push str.SOFTWARETencent_bugReport_
mov esi, 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.00467326
push 0x4c0588
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0046837e
add esp, 0x28
lea eax, [ebp - 0x810]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x804]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011d8
push 4
pop esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
push str.lcdbg
push dword [ebp - 0x810]
mov dword [ebp - 0x808], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x80c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80c], esi
je 0x4011d0
mov dword [ebp - 0x808], edi
mov eax, dword [ebp - 0x808]
jmp 0x4011da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004648e8
leave
ret
Function at 0x4017e1
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp byte [0x4c05d0], bl
push esi
jne 0x4018c5
cmp eax, ebx
mov byte [0x4c05d0], 1
je 0x4018c5
cmp word [eax], bx
je 0x4018c5
push 0xffffffffffffffff
push eax
push 0x21
mov esi, 0x4c0588
push esi
call fcn.00467326
push 0x63
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.00466400
add esp, 0x1c
push ebx
push ebx
push 0x63
lea eax, [ebp - 0x68]
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push eax
push 0x21
push 0x4c0564
call fcn.00467d54
add esp, 0x10
cmp byte [0x4c0564], bl
je 0x4018c5
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 0x10]
imul eax, eax, 0x64
add eax, ecx
imul eax, eax, 0x2710
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], ebx
mov dword [0x4c05cc], eax
lea eax, [ebp - 0x6c]
push eax
push 4
push ebx
push 0x4011e8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x4018c5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4018c8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004648e8
leave
ret

Function at 0x401b33
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
push str..PhysicalDrive0
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401c0d
push edi
push 0xc
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00466400
mov edi, 0x400
push edi
lea eax, [ebp - 0x404]
push esi
push eax
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x418], esi
call fcn.00466400
add esp, 0x18
push esi
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
pop edi
je 0x401c06
mov esi, dword [ebp - 0x3f4]
lea esi, [ebp + esi - 0x404]
movsx eax, byte [esi]
push eax
call fcn.00468e0b
test eax, eax
pop ecx
je 0x401c06
mov ecx, dword [ebp - 0x414]
push esi
call fcn.00402083
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x401c0f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004648e8
leave
ret 4
Function at 0x402805
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.00466400
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x403611
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push 2
call sub.iphlpapi.dll_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x40365c
test esi, esi
je 0x403644
push esi
call fcn.0046647a
pop ecx
push dword [ebp - 8]
call fcn.004667bd
mov esi, eax
test esi, esi
pop ecx
je 0x403694
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x403622
test edi, edi
jne 0x403689
test esi, esi
je 0x403694
push dword [ebp + 8]
mov ecx, esi
call fcn.0040369c
mov edi, eax
test edi, edi
je 0x40367e
push dword [ebp + 8]
call fcn.00403fba
mov edi, eax
push esi
call fcn.0046647a
pop ecx
mov eax, edi
jmp 0x403696
test esi, esi
je 0x403694
push esi
call fcn.0046647a
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x404b9d
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40650e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x406579
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x406570
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.004648e8
leave
ret
Function at 0x40bb6a
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x40bb9c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x40bb99
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x40bbbd
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret

Function at 0x40bc10
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x40bc42
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x40bc3f
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x40bc66
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x40d04c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40cc
call fcn.00467020
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x2004], 0
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
push 0x1ffe
lea eax, [ebp - 0x2002]
push 0
push eax
call fcn.00466400
push ebx
lea eax, [ebp - 0x2004]
push edi
push eax
call fcn.00466fff
and word [ebp - 0x40cc], 0
push 0x20c6
lea eax, [ebp - 0x40ca]
push 0
push eax
call fcn.00466400
lea eax, [ebp - 0x2004]
push eax
push esi
lea eax, [ebp - 0x40cc]
push 0x4a0038
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
lea eax, [ebp - 0x40cc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004648e8
leave
ret

Function at 0x40d0ec
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.00467020
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
push 0xfff
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call fcn.00466400
push ebx
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.004670c7
push 0x1063
lea eax, [ebp - 0x2067]
push 0
push eax
mov byte [ebp - 0x2068], 0
call fcn.00466400
lea eax, [ebp - 0x1004]
push eax
push esi
lea eax, [ebp - 0x2068]
push str.__s_:___s_
push eax
call fcn.004668c6
add esp, 0x34
lea eax, [ebp - 0x2068]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004648e8
leave
ret

Function at 0x40d4de
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x4937a1
call fcn.004648f7
mov edi, dword [ebp + 0x230]
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x18], 7
call fcn.004024b4
push 1
push 0x1a
lea eax, [ebp + 0x1c]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d559
lea eax, [ebp + 0x1c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40d54b
cmp eax, ebx
jne 0x40d559
push 0x4a89c8
mov ecx, edi
call fcn.004041c2
jmp 0x40d59d
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00402180
mov eax, dword [ebp + 0x14]
dec eax
push eax
lea ecx, [ebp]
call fcn.0041b75b
cmp word [eax], 0x5c
je 0x40d585
push 0x49fa70
lea ecx, [ebp]
call fcn.0040ae4d
push 0x4a0098
lea ecx, [ebp]
call fcn.0040ae4d
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00401fbe
push ebx
push 1
lea ecx, [ebp]
call fcn.004021c5
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.004648e8
add ebp, 0x228
leave
ret
Function at 0x40d5cd
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push 0x3c
mov eax, 0x493809
call fcn.00464960
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.0040d4de
mov dword [esp], 0x4a00f4
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040ae6a
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004021c5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40d615
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d65d
test al, 0x10
jne 0x40d65d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40d631
lea eax, [ebp - 0x28]
push eax
push edi
push 0x4a00e0
push 0x4a00cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
push edi
neg eax
push 1
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.004021c5
xor eax, eax
inc eax
jmp 0x40d66a
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004021c5
xor eax, eax
call fcn.004649e3
ret

Function at 0x40d670
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x1c
mov eax, 0x4937d9
call fcn.004648f7
mov edi, dword [ebp + 0x230]
lea eax, [ebp - 0x28]
push eax
call fcn.0040d4de
mov dword [esp], 0x4a00f4
push eax
lea eax, [ebp]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040ae6a
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004021c5
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40d6d7
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d746
test al, 0x10
jne 0x40d746
push 0x204
lea eax, [ebp + 0x20]
push esi
push eax
mov dword [ebp + 0x1c], 0x30
call fcn.00466400
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
jae 0x40d70c
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
push 0x4a0114
push 0x4a010c
push 0x4a00cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x1c]
push eax
mov ecx, edi
call fcn.00402180
push esi
push 1
lea ecx, [ebp]
call fcn.004021c5
xor eax, eax
inc eax
jmp 0x40d753
push esi
push 1
lea ecx, [ebp]
call fcn.004021c5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.004648e8
add ebp, 0x228
leave
ret
Function at 0x40d7f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x74
mov eax, 0x49384e
call fcn.00464960
mov edi, dword [ebp + 8]
xor esi, esi
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.004024b4
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], esi
call fcn.0040d670
test eax, eax
pop ecx
jne 0x40d82d
push esi
push 1
jmp 0x40d8e3
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d4de
lea eax, [ebp - 0x48]
push eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push str.dlcore_
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0040d493
push str..dll
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.0040ae6a
add esp, 0x1c
push esi
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.004021c5
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a9ca
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40d88d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d8cd
test al, 0x10
jne 0x40d8cd
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.004020ed
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.004021c5
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021c5
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004021c5
mov eax, ebx
jmp 0x40d8ed
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.004021c5
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021c5
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004021c5
xor eax, eax
call fcn.004649e3
ret

Function at 0x40db24
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 [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40db7a
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x40db90
push 0x80004005
call fcn.0040a136
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40db93
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40e17f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40e1c3
lea eax, [ebp - 0x194]
push eax
xor eax, eax
mov ah, byte [ebp + 0x10]
mov al, byte [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004648e8
leave
ret
Function at 0x40ec3b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040daef
mov edi, eax
cmp edi, esi
je 0x40eca3
lea ecx, [ebp - 0x70]
call fcn.0040da8a
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004648e8
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40ecbb
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040ec3b
cmp eax, esi
jne 0x40ecee
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x40ecab
lea ecx, [ebp - 0x70]
call fcn.0040da8a
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040da8a
mov eax, esi
jmp 0x40ec89
Function at 0x412e56
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x412e7b
cmp word [eax], 0
je 0x412e7b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412e7b
and al, 0x10
cmp al, 0x10
setne al
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x419a65
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00419a51
test al, al
push 0
push dword [esi + 4]
je 0x419aa8
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x419abe
push method.std::messages_wchar_t_.virtual_12
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
leave
ret

Function at 0x42617e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor eax, eax
push eax
push eax
push 1
push eax
mov edi, ecx
call ebx
test eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
jne 0x4261d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.004914c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push str.thread.entry_event
push eax
call fcn.00412c47
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov dword [edi + 8], eax
mov dword [esi + 8], eax
cmp dword [edi + 8], 0
jne 0x426214
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov dword [ebp - 0x10], ebx
call fcn.004914c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push str.thread.exit_event
push eax
call fcn.00412c47
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push ebx
push esi
push 0x41d069
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push ebx
call fcn.00466e8b
add esp, 0x18
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], eax
jne 0x426281
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [ebp - 4], 0
je 0x426259
push dword [ebp - 4]
call ebx
mov edi, dword [edi + 8]
test edi, edi
je 0x426263
push edi
call ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.004914c0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push str.thread
push eax
call fcn.00412c47
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x426297
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret 8