joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab0a4b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5b1a4cf
call fcn.05ad126c
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Poco::XML::WhitespaceFilter.5.0
mov dword [esi + 4], vtable.Poco::XML::WhitespaceFilter.4.0
mov dword [esi + 8], vtable.Poco::XML::WhitespaceFilter.3.0
mov dword [esi + 0xc], vtable.Poco::XML::WhitespaceFilter.2.0
mov dword [esi + 0x10], vtable.Poco::XML::WhitespaceFilter.1.0
mov dword [esi + 0x28], vtable.Poco::XML::WhitespaceFilter.0
and dword [ebp - 4], 0
push 0
push 1
lea ecx, [esi + 0x30]
call fcn.05a02020
lea ecx, [esi + 0x28]
call fcn.05abefe9
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.05abf00c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x5ab2a36
Capabilities:
Connect socket

Disassembly:
mov eax, 0x5b1a882
call fcn.05ad126c
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
jne 0x5ab2a59
mov ecx, dword [ebp + 8]
mov edi, dword [esi]
call fcn.05ab3d39
push eax
mov ecx, esi
call dword [edi + 0x80]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 0x78]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.05a99c2a
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.05ab3d32
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
je 0x5ab2b1a
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2734
je 0x5ab2ab9
call edi
cmp eax, 0x2733
je 0x5ab2ab9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
call fcn.05ab3f50
push eax
mov byte [ebp - 4], 1
call fcn.05ab28b5
mov eax, dword [esi]
push 3
push dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 0x44]
cmp al, bl
jne 0x5ab2b09
push str.connect_timed_out
lea ecx, [ebp - 0x30]
call fcn.05a05e90
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 2
call fcn.05ab3f50
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.05a85c04
push 0x5b763a4
lea eax, [ebp - 0x60]
push eax
call fcn.05aca87a
mov ecx, esi
call fcn.05ab1ded
cmp eax, ebx
je 0x5ab2b1a
push eax
call fcn.05ab28c6
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
push 1
mov ecx, esi
call dword [eax + 0x78]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x5ab2b59
Capabilities:
Connect socket

Disassembly:
mov eax, 0x5b1a4bd
call fcn.05ad126c
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x5ab2b76
push edi
mov edi, dword [esi]
mov ecx, ebx
call fcn.05ab3d39
push eax
mov ecx, esi
call dword [edi + 0x80]
pop edi
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x78]
mov ecx, ebx
call fcn.05a99c2a
push eax
mov ecx, ebx
call fcn.05ab3d32
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x5ab2bc9
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2734
je 0x5ab2bc9
call esi
cmp eax, 0x2733
je 0x5ab2bc9
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.05ab3f50
and dword [ebp - 4], 0
push eax
call fcn.05ab28b5
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x5ab2d83
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x5ab2da9
push 0xf7
push str.srcSocketImpl.cpp
push str._sockfd___POCO_INVALID_SOCKET
call fcn.05a96fa8
add esp, 0xc
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x5ab2dfe
call edi
cmp eax, 0x2714
je 0x5ab2db0
call edi
cmp eax, 0x2733
je 0x5ab2de6
call edi
cmp eax, 0x274c
je 0x5ab2de6
call fcn.05ab2885
push 0
lea ecx, [ebp - 0x30]
call fcn.05a84e81
push 0x5b763a4
lea eax, [ebp - 0x30]
push eax
call fcn.05aca87a
pop edi
pop esi
leave
ret 0xc

Function at 0x5ab30ec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x5ab3116
push 0x1db
push str.srcSocketImpl.cpp
push str._sockfd___POCO_INVALID_SOCKET
call fcn.05a96fa8
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
pop esi
test eax, eax
jne 0x5ab3149
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.05ab3d62
mov eax, dword [ebp + 8]
leave
ret 4
call fcn.05ab2885
int3
Function at 0x5ab71ea
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x5b1af4f
call fcn.05ad126c
sub esp, 0x58
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.05ab0373
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
jae 0x5ab7230
lea eax, [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x5ab725b
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
call fcn.05a85aee
push 0x5b76324
lea eax, [ebp - 0x64]
push eax
call fcn.05aca87a
push edi
lea ecx, [ebp - 0x18]
call fcn.05aaf487
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
jae 0x5ab7274
lea eax, [ebp - 0x34]
push edi
push dword [ebp - 0x14]
push eax
call esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push esi
dec edi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 1
call fcn.05ab02dc
push dword [ebp - 0x14]
call fcn.05ac8aac
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.05a017f0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5aba1c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x74], 0xffffffff
je 0x5aba218
mov eax, dword [esi + 0x50]
test al, 1
je 0x5aba218
test al, 2
je 0x5aba1e5
mov eax, dword [esi]
call dword [eax + 0x34]
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5aba20c
lea eax, [esi + 0x58]
push eax
call fcn.05a907df
pop ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x78], eax
adc dword [esi + 0x7c], 0
jmp 0x5aba21b
or eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x5aba220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x74]
cmp ecx, 0xffffffff
je 0x5aba2ac
mov eax, dword [esi + 0x50]
test al, 2
je 0x5aba2ac
push edi
xor edi, edi
test al, 8
je 0x5aba27b
push 2
lea eax, [ebp - 8]
push eax
push edi
push ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x5aba26f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5aba26f
lea eax, [esi + 0x58]
push eax
call fcn.05a907df
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x7c], eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5aba2a0
lea eax, [esi + 0x58]
push eax
call fcn.05a907df
pop ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x78], eax
adc dword [esi + 0x7c], edi
pop edi
jmp 0x5aba2af
or eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x5abd91a
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x5abd92f
push eax
call fcn.05a8b9f4
pop ecx
cmp dword [esi + 8], ebx
jne 0x5abd942
push 0x1000
call fcn.05ac8aa1
pop ecx
mov dword [esi + 8], eax
push ebx
push 0x5b913ac
mov edi, 0x5b91380
push edi
push ebx
push dword [esi + 0x30]
call fcn.05ad15a0
add esp, 0x14
test eax, eax
je 0x5abd992
cmp byte [esi + 0xc], bl
je 0x5abd970
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x5abd972
mov eax, dword [eax]
jmp 0x5abd972
xor eax, eax
push 9
push eax
call fcn.05a9027f
push 0x5abce90
push 0x5abcd6b
push eax
mov dword [esi + 4], eax
call fcn.05a8a113
add esp, 0x14
jmp 0x5abda05
push ebx
push 0x5b9134c
push edi
push ebx
push dword [esi + 0x30]
call fcn.05ad15a0
add esp, 0x14
test eax, eax
je 0x5abd9e7
cmp byte [esi + 0xc], bl
je 0x5abd9bb
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x5abd9bd
mov eax, dword [eax]
jmp 0x5abd9bd
xor eax, eax
push 9
push eax
call fcn.05a9027f
push 1
push eax
mov dword [esi + 4], eax
call fcn.05a8a035
push 0x5abce90
push 0x5abcd6b
push dword [esi + 4]
call fcn.05a8a113
add esp, 0x1c
jmp 0x5abda05
cmp byte [esi + 0xc], bl
je 0x5abd9f9
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x5abd9fb
mov eax, dword [eax]
jmp 0x5abd9fb
xor eax, eax
push eax
call fcn.05a9026e
pop ecx
mov dword [esi + 4], eax
push esi
push dword [esi + 4]
call fcn.05a8a058
push 0x5abbbe5
push 0x5abbb66
push dword [esi + 4]
call fcn.05a8a078
push 0x5abb897
push dword [esi + 4]
call fcn.05a8a08b
push 0x5abcabe
push dword [esi + 4]
call fcn.05a8a097
add esp, 0x24
push fcn.05ababd8
push dword [esi + 4]
cmp byte [esi + 0x2c], bl
je 0x5abda51
call fcn.05a8a0d5
jmp 0x5abda56
call fcn.05a8a0c2
pop ecx
pop ecx
push 0x5abcb28
push dword [esi + 4]
call fcn.05a8a0fb
push 0x5abcbf0
push dword [esi + 4]
call fcn.05a8a107
push 0x5abd6cd
push dword [esi + 4]
call fcn.05a8a126
push 0x5abb8b4
push dword [esi + 4]
call fcn.05a8a0a3
push 0x5abb8f2
push 0x5abb8df
push dword [esi + 4]
call fcn.05a8a0af
push 0x5abb905
push 0x5abcf31
push dword [esi + 4]
call fcn.05a8a0e8
push 0x5abd36e
push dword [esi + 4]
call fcn.05a8a154
add esp, 0x40
push 0x5abd1c4
push dword [esi + 4]
call fcn.05a8a132
movzx eax, byte [esi + 0x2e]
neg eax
sbb eax, eax
and eax, 2
push eax
push dword [esi + 4]
call fcn.05a8a163
push esi
push 0x5abccb7
push dword [esi + 4]
call fcn.05a8a13e
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x5abecc2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5b1ba4f
call fcn.05ad126c
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
mov edi, ecx
lea ecx, [ebp - 0x68]
push ecx
mov ecx, esi
mov dword [ebp - 0x14], edi
call dword [eax + 4]
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0xc]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push dword [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.05abebbe
add esp, 0x18
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.05abe87d
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.05a02020
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.05a02020
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.05a02020
lea ecx, [edi + 0x30]
mov dword [edi], vtable.Poco::XML::SAXParseException.0
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
lea ecx, [edi + 0x4c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 7
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 8
call dword [eax + 8]
mov dword [edi + 0x68], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x6c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5ac59b5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x5ac5a3c
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.05ac9880
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5ac59fd
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5ac5a20
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x5ac5a94
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.05ac577a
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
pop ecx
pop ecx
cmp esi, 3
jb 0x5ac5a80
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [edx]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x5ac5a94
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x5ac59be
pop esi
pop ebx
leave
ret
Function at 0x5ac7ec0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b920e8]
jne 0x5ac7eca
repz ret
jmp fcn.05ad196e

Function at 0x5ae6a9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b920e8]
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.05ad279f
and dword [ebp - 0x14], 0
cmp dword [0x5b9ce94], 0
mov dword [ebp - 0x18], eax
jne 0x5ae6b50
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5ae6bf8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b5d9b0
push ebx
call edi
test eax, eax
je 0x5ae6bf8
mov esi, dword [0x5b98ac0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5b9ce94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5b9ce98], eax
call edi
push eax
call esi
push 0x5b5d970
push ebx
mov dword [0x5b9ce9c], eax
call edi
push eax
call esi
mov dword [0x5b9cea4], eax
test eax, eax
je 0x5ae6b50
push 0x5b5d958
push ebx
call edi
push eax
call esi
mov dword [0x5b9cea0], eax
mov eax, dword [0x5b9cea0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x5b98adf]
cmp eax, ecx
je 0x5ae6ba9
cmp dword [0x5b9cea4], ecx
je 0x5ae6ba9
push eax
call esi
push dword [0x5b9cea4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5ae6ba9
test ebx, ebx
je 0x5ae6ba9
call edi
test eax, eax
je 0x5ae6ba0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5ae6ba0
test byte [ebp - 8], 1
jne 0x5ae6ba9
or dword [ebp + 0x10], 0x200000
jmp 0x5ae6bdc
mov eax, dword [0x5b9ce98]
cmp eax, dword [ebp - 0x18]
je 0x5ae6bdc
push eax
call esi
test eax, eax
je 0x5ae6bdc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5ae6bdc
mov eax, dword [0x5b9ce9c]
cmp eax, dword [ebp - 0x18]
je 0x5ae6bdc
push eax
call esi
test eax, eax
je 0x5ae6bdc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5b9ce94]
call esi
test eax, eax
je 0x5ae6bf8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5ae6bfa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05ac7ec0
leave
ret
Function at 0x5b0bcb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x5b6b8b0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5b0bd00
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x5b0bcff
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop esi
cmp dword [ebp - 0x11c], 0
push ebx
push 0x110
lea ecx, [ebp - 0x114]
push 0
push ecx
setne bl
call fcn.05acaa80
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x5b0bd5a
xor eax, eax
test bl, bl
setne al
pop ebx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x5b0bd97
xor eax, eax
cmp dword [ebp - 0x110], eax
jne 0x5b0bd80
test bl, bl
setne al
pop ebx
add eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
test bl, bl
setne al
pop ebx
add eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
Function at 0x5b0dbb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
mov edi, eax
mov dword [ebp - 4], esi
cmp edi, esi
je 0x5b0dbca
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
jmp 0x5b0dbcd
mov dword [ebp - 0xc], esi
mov edx, dword [ebp + 8]
push edi
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push str.PackageCode
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x5b0dc89
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov esi, dword [ebp - 4]
je 0x5b0dbf7
mov dword [eax], esi
mov ecx, edi
mov eax, ebx
mov edx, esi
call fcn.05b0db00
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x5b0dc6b
test edi, edi
je 0x5b0dc6b
cmp dword [edi], 2
jne 0x5b0dc59
cmp esi, 1
je 0x5b0dc21
cmp esi, 2
je 0x5b0dc21
cmp esi, 7
jne 0x5b0dc59
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.PackageCode
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5b0dc56
cmp word [ebp - 0x18], ax
je 0x5b0dc68
mov esi, dword [ebp - 4]
test esi, esi
je 0x5b0dc6b
mov ecx, esi
mov eax, edi
call fcn.05b0dac0
jmp 0x5b0dc6b
mov esi, dword [ebp - 4]
cmp dword [ebp - 8], 0xd
jne 0x5b0dc86
test ebx, ebx
je 0x5b0dc86
mov ecx, edi
mov edi, dword [ebp - 0xc]
mov eax, ebx
mov edx, esi
call fcn.05b0da30
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b0dd10
Capabilities:
Check if file exists
Get file attributes
Get file version info
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push esi
mov dword [ebp - 0x814], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b0deb6
push edi
lea ecx, [ebp - 0x810]
push ecx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x5b0dd71
push str.GetFileVersionInfoSize_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
push edi
call fcn.05ac9465
add esp, 4
mov dword [ebp - 0x808], eax
test eax, eax
jne 0x5b0dd8b
push str.malloc_failed.
jmp 0x5b0dd59
mov edx, dword [ebp - 0x810]
push eax
push edi
push edx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
mov eax, dword [ebp - 0x808]
jne 0x5b0ddc0
push eax
call fcn.05ac8e2e
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x80c]
push edx
push 0x5b6b8ac
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x5b0de92
mov esi, dword [ebp - 0x80c]
movzx eax, word [esi + 0xa]
push eax
mov word [ebx], ax
push str.Major_Version___d
mov eax, 0x400
lea ecx, [ebp - 0x804]
call fcn.05a05f30
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 8
lea edx, [ebp - 0x804]
push edx
call edi
movzx eax, word [esi + 8]
mov ecx, dword [ebp - 0x814]
push eax
mov word [ecx], ax
push str.Minor_Version___d
mov eax, 0x400
lea ecx, [ebp - 0x804]
call fcn.05a05f30
add esp, 8
lea eax, [ebp - 0x804]
push eax
call edi
movzx ecx, word [esi + 0xe]
push ecx
push str.Build_Number___d
mov eax, 0x400
lea ecx, [ebp - 0x804]
call fcn.05a05f30
add esp, 8
lea edx, [ebp - 0x804]
push edx
call edi
movzx eax, word [esi + 0xc]
push eax
push str.Revision_Number___d
mov eax, 0x400
lea ecx, [ebp - 0x804]
call fcn.05a05f30
add esp, 8
lea ecx, [ebp - 0x804]
push ecx
call edi
mov edx, dword [ebp - 0x808]
push edx
call fcn.05ac8e2e
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
Function at 0x5b0ded0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x5b0df07
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.05acaa80
add esp, 0xc
push 0x208
mov eax, 0x103
mov ecx, esi
lea edx, [ebp - 0x41c]
call fcn.05a01a00
add esp, 4
push 1
push 0x5b6b960
push 0x5b6b8ac
push 0x5b6c9ac
mov ebx, 0x208
lea edi, [ebp - 0x41c]
call fcn.05a057c0
xor eax, eax
push 0x24c
push eax
lea edx, [ebp - 0x668]
push edx
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x66c], eax
call fcn.05acaa80
add esp, 0x1c
lea eax, [ebp - 0x66c]
push eax
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x5b0e0c9
lea edx, [ebp - 0x640]
push 0x5b6c9b4
push edx
call fcn.05ac8bdb
add esp, 8
test eax, eax
je 0x5b0e0a0
lea eax, [ebp - 0x640]
push 0x5b6c9b8
push eax
call fcn.05ac8bdb
add esp, 8
test eax, eax
je 0x5b0e0a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
mov word [ebp - 0x214], cx
call fcn.05acaa80
add esp, 0xc
push 0x208
mov eax, 0x103
mov ecx, esi
lea edx, [ebp - 0x214]
call fcn.05a01a00
add esp, 4
push 1
push 0x5b6b960
lea eax, [ebp - 0x640]
push 0x5b6b8ac
push eax
mov ebx, 0x208
lea edi, [ebp - 0x214]
call fcn.05a057c0
mov eax, dword [ebp - 0x66c]
add esp, 0x10
test al, 0x10
je 0x5b0e059
mov ecx, edi
push ecx
call fcn.05b0ded0
add esp, 4
mov dword [ebp - 0x670], eax
test eax, eax
jne 0x5b0e0bc
jmp 0x5b0e0a0
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5b0e07f
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5b0e0a0
push 4
push 0
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x5b0e0a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x670], eax
mov eax, dword [ebp - 0x674]
lea edx, [ebp - 0x66c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5b0dfa2
mov ecx, dword [ebp - 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x5b0e0ee
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x5b0e0ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x670]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret