joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x442a48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x455638]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x41b9af
mov eax, dword [edi]
jmp 0x41b9b1
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x41b9d1
push esi
push edi
push ebx
call fcn.0041b840
add esp, 0xc
jmp 0x41bb10
test eax, 0x400
je 0x41bade
cmp dword [edi + 0x14], 8
jb 0x41b9e6
mov esi, dword [edi]
jmp 0x41b9e8
mov esi, edi
mov ebx, 7
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x48], eax
call fcn.0041aba0
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ba10
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00405db0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 1
jae 0x41ba41
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 3
jb 0x41ba75
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041d921
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x41baa6
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.0041b840
add esp, 0xc
mov eax, esi
jmp 0x41bb12
push edi
call fcn.0041aed0
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x41bacc
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x41bb12
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x41baf4
mov dword [esi], 0
call fcn.0041c240
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x41bb0c
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041d92c
add esp, 0x3c
ret
Function at 0x41d570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x442d40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4584f4]
test eax, eax
jne 0x41d5a4
xor esi, esi
jmp 0x41d5ad
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x41d5f7
cmp dword [esi + 0x14], 0
jne 0x41d639
cmp dword [esi + 0x10], 0
jne 0x41d640
push 0x41d090
push 0x4584ec
call fcn.0041d290
mov eax, dword [0x4584f4]
add esp, 8
test eax, eax
je 0x41d6ed
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x41d625
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41d625
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x41d680
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x41d66e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x41d640
cmp dword [esi + 0x14], 0
je 0x41d5c9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41d6a5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x41d6d6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41d6d6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41d6d6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x41d68a
jmp 0x41d5c3
lea ecx, [esp + 0x18]
call fcn.0041de60
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.004149c0
int3
Function at 0x41d7e0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x442d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x41d720
push 0
push 0
call fcn.00422287
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x41d84b
lea ecx, [esp + 0x10]
call fcn.0041de60
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.004149c0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x41d86e
cmp eax, 0xffffffff
je 0x41d86e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x41d92c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455638]
jne 0x41d936
repz ret
jmp fcn.00422327
Function at 0x42a16c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00423971
and dword [ebp - 0x14], 0
cmp dword [0x4592bc], 0
mov dword [ebp - 0x18], eax
jne 0x42a21f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42a2c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42a2c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4592bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4592c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4592c4], eax
call edi
push eax
call esi
mov dword [0x4592cc], eax
test eax, eax
je 0x42a21f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4592c8], eax
mov eax, dword [0x4592c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42a278
cmp dword [0x4592cc], ecx
je 0x42a278
push eax
call esi
push dword [0x4592cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42a278
test ebx, ebx
je 0x42a278
call edi
test eax, eax
je 0x42a26f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42a26f
test byte [ebp - 8], 1
jne 0x42a278
or dword [ebp + 0x10], 0x200000
jmp 0x42a2ab
mov eax, dword [0x4592c0]
cmp eax, dword [ebp - 0x18]
je 0x42a2ab
push eax
call esi
test eax, eax
je 0x42a2ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42a2ab
mov eax, dword [0x4592c4]
cmp eax, dword [ebp - 0x18]
je 0x42a2ab
push eax
call esi
test eax, eax
je 0x42a2ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4592bc]
call esi
test eax, eax
je 0x42a2c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42a2c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d92c
leave
ret
Function at 0x4a0528
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
push dword [esp + 4]
lea esp, [esp + 0x50]
jne 0x4a05d9
pushal
mov ecx, edi
test bp, di
bsr esi, ecx
neg si
cmp bh, dl
sub ecx, ebx
jmp 0x46a772

Function at 0x4a5c4c
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0xc]
je 0x4937b1
stc
cmp ebx, 3
pushal
lea esp, [esp + 0x20]
je 0x495837
pushfd
lea esp, [esp + 4]
jmp 0x49585c
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x798b72d7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x276008f3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40108b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
jbe 0x401180
mov dword [ebp - 8], 1
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 2
sub dword [ebp - 0xc], ecx
push ebx
jmp 0x4010bf
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, dword [ebp + 0xc]
jae 0x401156
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea edx, [ebx + edx + 1]
mov bl, byte [edx]
shr bl, 4
add bl, cl
movzx ecx, bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov cl, byte [edx]
mov edx, dword [ebp - 0xc]
and cl, 0xf
add edx, edi
shl cl, 2
cmp edx, dword [ebp + 0xc]
jae 0x401142
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
and bl, 0x3f
shr dl, 6
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
movzx ecx, bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
jmp 0x40116a
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x40116a
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edi, dword [ebp - 4]
add edi, 3
add eax, 4
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0xc]
jb 0x4010bc
pop ebx
pop edi
leave
ret
Function at 0x401698
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp + 0x10], 0x2d
and dword [ebp + 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4016bc
mov eax, dword [ebp - 4]
jmp 0x401797
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x401772
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x422d40]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x422d40]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x422d40]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x422d40]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x422d40]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x422d40]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x422d40]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x422d40]
dec ebp
jne 0x4016dc
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x40178e
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x422d40]
dec ecx
jne 0x40177c
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40179c
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40209e
Capabilities:
Read file on windows

Disassembly:
push 0x4d8
mov eax, 0x41f529
call fcn.0040e3fe
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], ebx
mov word [ebp - 0x470], cx
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x4020e7
mov esi, eax
jmp 0x4021d1
push 0x3ff
lea eax, [ebp - 0x453]
push ebx
push eax
mov byte [ebp - 0x454], bl
call fcn.00411bc0
push 0x42314c
push esi
call fcn.0040ba7b
add esp, 0x14
mov dword [ebp - 0x4e0], eax
cmp eax, ebx
je 0x4021cb
lea eax, [ebp - 0x4dc]
call fcn.0040179c
mov edi, 0x400
jmp 0x40213f
lea ecx, [ebp - 0x454]
push ecx
lea esi, [ebp - 0x4dc]
call fcn.004017c3
push dword [ebp - 0x4e0]
lea eax, [ebp - 0x454]
push edi
push 1
push eax
call fcn.0040bcdc
add esp, 0x10
cmp eax, ebx
jne 0x40212d
push dword [ebp - 0x4e0]
call fcn.0040bd66
pop ecx
cmp byte [ebp - 0x474], bl
jne 0x402181
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 0x474], 1
call fcn.0040185c
xor eax, eax
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call fcn.00411bc0
add esp, 0xc
lea esi, [ebp - 0x54]
movzx eax, byte [ebp + ebx - 0x484]
push eax
push str._02x
push 3
push esi
call fcn.0040b8ed
add esp, 0x10
inc ebx
add esi, 4
cmp ebx, 0x10
jl 0x402199
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.00401329
mov esi, dword [ebp - 0x4e4]
lea ebx, [ebp - 0x470]
call fcn.004011a5
push 1
xor edi, edi
mov esi, ebx
call fcn.004013ee
mov eax, dword [ebp - 0x4e4]
call fcn.0040e481
ret
Function at 0x403e73
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, eax
cmp esi, ebx
jne 0x403e98
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.004057c3
xor al, al
jmp 0x403f3d
call fcn.004038e8
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.0040ccef
push esi
call fcn.0040cc00
push ebx
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.0040ccef
mov eax, dword [ebp - 4]
add esp, 0x1c
cmp eax, ebx
jg 0x403ecf
push ebx
push ebx
push 0xc
jmp 0x403e89
inc eax
push eax
call fcn.0040b0f0
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.0040bcdc
add esp, 0x14
cmp eax, 1
je 0x403ef9
push esi
call fcn.0040b811
pop ecx
jmp 0x403e85
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x403f22
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x403f1a
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x403f1e
jmp 0x403f1d
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x403f07
push ebx
push ebx
mov byte [eax], bl
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.0040b811
xor eax, eax
cmp byte [edi + 0x44], bl
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406f7f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x41f902
call fcn.0040e3fe
xor ebx, ebx
xor edi, edi
inc ebx
mov esi, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], esi
test byte [0x4298ac], bl
jne 0x406fd2
or dword [0x4298ac], ebx
xor eax, eax
push 0x41fe57
mov dword [0x4298a4], 7
mov dword [0x4298a0], edi
mov word [0x429890], ax
call fcn.0040befd
pop ecx
cmp dword [0x4298a0], edi
jne 0x40708e
call fcn.00406f34
mov esi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00411bc0
add esp, 0xc
cmp esi, edi
je 0x407051
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push edi
push str.infoGUID
push esi
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x240], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
push 0x429890
call fcn.004026b1
cmp dword [0x4298a0], edi
jne 0x407088
lea eax, [ebp - 0x234]
push eax
call fcn.00406d88
pop ecx
mov ebx, eax
mov eax, 0x429890
mov dword [ebp - 4], edi
call fcn.0040123c
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x234]
call fcn.004013ee
mov esi, dword [ebp - 0x23c]
push 0x429890
call fcn.00402dfa
mov eax, esi
call fcn.0040e481
ret
Function at 0x4070a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x214], esi
test byte [0x42982c], 1
mov dword [ebp - 0x218], edi
jne 0x4070f8
or dword [0x42982c], 1
xor eax, eax
push 0x41fe6a
mov dword [0x429824], 7
mov dword [0x429820], esi
mov word [0x429810], ax
call fcn.0040befd
pop ecx
cmp dword [0x429820], esi
je 0x407113
push 0x429810
mov esi, edi
call fcn.00402dfa
mov eax, edi
jmp 0x4071ab
call fcn.00406f34
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00411bc0
add esp, 0xc
mov edi, 0x429810
cmp dword [ebp - 0x210], esi
je 0x40719d
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push str.version
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004026b1
mov esi, dword [ebp - 0x218]
push edi
call fcn.00402dfa
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b365
leave
ret

Function at 0x4071b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x214], esi
test byte [0x42980c], 1
mov dword [ebp - 0x218], edi
jne 0x407211
or dword [0x42980c], 1
xor eax, eax
push 0x41fe7d
mov dword [0x429804], 7
mov dword [0x429800], esi
mov word [0x4297f0], ax
call fcn.0040befd
pop ecx
cmp dword [0x429800], esi
je 0x40722c
push 0x4297f0
mov esi, edi
call fcn.00402dfa
mov eax, edi
jmp 0x4072c4
call fcn.00406f34
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00411bc0
add esp, 0xc
mov edi, 0x4297f0
cmp dword [ebp - 0x210], esi
je 0x4072b6
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push str.DistSrc
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004026b1
mov esi, dword [ebp - 0x218]
push edi
call fcn.00402dfa
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b365
leave
ret
Function at 0x407623
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push 0x214
mov eax, 0x41f6cd
call fcn.0040e3fe
mov edi, ecx
mov dword [ebp - 0x220], edi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, esi
je 0x407723
mov dword [ebp - 0x21c], esi
jle 0x4076c9
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.00411bc0
mov eax, dword [edi]
add eax, ebx
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x407686
mov eax, dword [eax]
push esi
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
push esi
call dword [sym.imp.urlmon.dll_URLDownloadToCacheFileW]
test eax, eax
js 0x4076ad
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x21c]
add ebx, 0x1c
cmp dword [ebp - 0x21c], eax
jl 0x40765c
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
je 0x407723
mov dword [ebp - 0x21c], eax
mov ebx, esi
cmp esi, esi
je 0x4076f7
mov eax, dword [ebp - 0x21c]
call fcn.0040123c
add dword [ebp - 0x21c], 0x1c
add ebx, 0x1c
cmp ebx, esi
jne 0x4076de
mov ebx, dword [edi + 4]
mov esi, dword [ebp - 0x21c]
cmp esi, ebx
je 0x40771a
push 1
xor edi, edi
call fcn.004013ee
add esi, 0x1c
cmp esi, ebx
jne 0x407704
mov edi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
mov dword [edi + 4], eax
mov ebx, edi
call fcn.00409409
call fcn.0040e481
ret

Function at 0x4077ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
test byte [0x4297ec], 1
mov esi, ecx
mov dword [ebp - 0x210], edi
jne 0x4077ff
or dword [0x4297ec], 1
xor eax, eax
push 0x41fe90
mov dword [0x4297e4], 7
mov dword [0x4297e0], edi
mov word [0x4297d0], ax
call fcn.0040befd
pop ecx
mov ebx, 0x4297d0
cmp dword [0x4297e0], edi
jne 0x407862
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00411bc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TypeEasyDataconfig.xml
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040d6a5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00401329
push ebx
call fcn.00402dfa
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b365
leave
ret