joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
je 0x4b9966
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b9966
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
push edi
shr edx, 1
lea ecx, [ebp - 0x1c]
push 0
shl edx, 2
push edx
call fcn.004b95a0
mov eax, dword [ebp - 8]
lea ebx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
cmp eax, 0x10
mov ecx, dword [ebp + 0xc]
cmovae ebx, edi
xor esi, esi
test ecx, ecx
je 0x4b98b9
mov eax, dword [ebp + 8]
mov edx, 1
sub edx, eax
mov dword [ebp - 0x24], 1
dec ecx
mov dword [ebp - 0x2c], edx
lea edi, [eax + 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x28], eax
jmp 0x4b9800
movzx eax, byte [edi - 1]
lea ecx, [esi + 2]
shr eax, 2
mov al, byte [eax + 0x688aa0]
mov byte [esi + ebx], al
mov dl, byte [edi - 1]
mov eax, dword [ebp + 0xc]
and dl, 3
shl dl, 4
cmp dword [ebp - 0x24], eax
jae 0x4b9889
movzx eax, byte [edi]
shr al, 4
add al, dl
movzx eax, al
movzx eax, byte [eax + 0x688aa0]
mov byte [esi + ebx + 1], al
lea eax, [ecx + ebx]
mov dh, byte [edi]
inc ecx
mov dword [ebp - 0x30], eax
and dh, 0xf
mov eax, dword [ebp - 0x2c]
add eax, edi
shl dh, 2
cmp eax, dword [ebp + 0xc]
jae 0x4b986c
mov dl, byte [edi + 1]
movzx eax, dl
and eax, 0x3f
shr dl, 6
add dl, dh
mov al, byte [eax + 0x688aa0]
mov byte [ebp - 0x1d], al
jmp 0x4b9872
mov byte [ebp - 0x1d], 0x3d
mov dl, dh
movzx eax, dl
mov edx, dword [ebp - 0x30]
movzx eax, byte [eax + 0x688aa0]
mov byte [edx], al
mov al, byte [ebp - 0x1d]
mov byte [ecx + ebx], al
jmp 0x4b989f
movzx eax, dl
mov al, byte [eax + 0x688aa0]
mov byte [esi + ebx + 1], al
mov byte [ecx + ebx], 0x3d
inc ecx
mov byte [ecx + ebx], 0x3d
add dword [ebp - 0x24], 3
lea esi, [ecx + 1]
add edi, 3
sub dword [ebp - 0x28], 1
jne 0x4b9800
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
cmp ebx, ecx
je 0x4b9922
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x4b98f6
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x4b98ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9976
mov eax, edx
push ecx
push eax
call fcn.004cb4db
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14], eax
mov eax, 0xf
mov byte [ebp - 0x1c], 0
mov edi, dword [ebp - 0x1c]
test esi, esi
setne bl
cmp eax, 0x10
jb 0x4b9953
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4b9949
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9976
push ecx
push edi
call fcn.004cb4db
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x4bdde0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x4bdf66
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4bdf66
lea ecx, [edi + 2]
mov byte [ebp - 1], 0
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, edx
shr esi, 1
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 8], edx
sub edx, eax
shl esi, 2
cmp esi, edx
jae 0x4bde2c
add eax, esi
mov dword [ecx + 4], eax
jmp 0x4bde64
jbe 0x4bde64
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x4bde46
lea eax, [ebp - 1]
push eax
push esi
call fcn.004766e0
mov ecx, dword [ebp + 0x10]
jmp 0x4bde64
sub esi, edx
push esi
push 0
push dword [ebp - 8]
call fcn.004e30c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
mov dword [edx + 4], ecx
mov ecx, edx
mov ecx, dword [ecx]
cmp edi, 3
jb 0x4bdefa
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x4bde80
mov edx, dword [ebp + 8]
sub edi, 3
mov al, byte [edx + 2]
mov bl, byte [edx]
mov bh, byte [edx + 1]
add edx, 3
mov dword [ebp + 8], edx
movzx edx, bl
and bl, 3
shr edx, 2
mov byte [ebp - 1], al
mov eax, ecx
shl bl, 4
movzx esi, bl
mov dl, byte [edx + 0x688e48]
mov byte [eax], dl
lea eax, [ecx + 3]
movzx edx, bh
and bh, 0xf
shr edx, 4
or esi, edx
shl bh, 2
mov dl, byte [esi + 0x688e48]
mov byte [ecx + 1], dl
movzx edx, byte [ebp - 1]
shr edx, 6
movzx esi, bh
or esi, edx
mov dl, byte [esi + 0x688e48]
mov byte [ecx + 2], dl
add ecx, 4
movzx edx, byte [ebp - 1]
and edx, 0x3f
sub dword [ebp - 8], 1
mov dl, byte [edx + 0x688e48]
mov byte [eax], dl
jne 0x4bde80
mov ebx, dword [ebp + 8]
pop esi
test edi, edi
je 0x4bdf5e
mov dh, byte [ebx]
xor ah, ah
cmp edi, 1
jbe 0x4bdf0b
mov ah, byte [ebx + 1]
mov dl, dh
mov al, ah
shr al, 4
and dh, 3
shl dh, 4
and ah, 0xf
or al, dh
shr dl, 2
mov byte [ebp + 0xb], al
mov ebx, 0x40
shl ah, 2
cmp edi, 1
movzx eax, ah
movzx edx, dl
cmova ebx, eax
mov eax, ecx
mov dl, byte [edx + 0x688e48]
mov byte [eax], dl
movzx edx, byte [ebp + 0xb]
movzx eax, bl
mov dl, byte [edx + 0x688e48]
mov al, byte [eax + 0x688e48]
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5170
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671592
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x718924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x4c51cc
mov dword [ebx], 0x687d0c
mov dword [ebx + 0x10], 0x687d14
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 0x18]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.004c4f90
lea edx, [ebx + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], esi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004cb4ab
mov esi, eax
add esp, 4
test esi, esi
je 0x4c525f
push 1
mov byte [ebp - 4], 5
call fcn.004c925f
add esp, 4
mov dword [esi + 4], eax
jmp 0x4c5261
xor esi, esi
lea eax, [ebx + 0x18]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp + 0xc]
not ecx
and ecx, 1
mov dword [edi], 0
shl ecx, 2
mov eax, ebx
mov dword [edx], 0
mov edx, ecx
or edx, 2
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
and al, 2
mov dword [esi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7d60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], ebx
push esi
test ecx, ecx
jne 0x4c7d99
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c7d90
sub ecx, esi
push edi
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x54], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.004c87e0
cmp byte [ebp - 0x54], 0
jne 0x4c7f19
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xc]
mov edi, dword [ebp - 0xac]
lea esi, [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x54], 1
mov dword [ebp - 0xc0], eax
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 4]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4c7e40
mov edx, edi
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0xbc]
push eax
push 0x6893e8
call fcn.004c87e0
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004c87e0
lea edx, [ebp - 0x64]
lea esi, [ebp - 0xbc]
mov edi, edi
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 0x54]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4c7eb0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
push 0x42
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
lea edi, [ebp - 0x50]
xor esi, esi
mov edi, edi
movzx eax, byte [ebp + esi - 0x64]
push eax
push 0x683a20
push 3
push 3
push edi
call fcn.0048f9b0
inc esi
add esp, 0x14
add edi, 4
cmp esi, 0x10
jl 0x4c7f30
xor eax, eax
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x50]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea edx, [ecx + 2]
pop edi
jmp 0x4c7f70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7f70
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0044e920
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x524510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6db], 0
je 0x524597
cmp dword [esi + 0x1a4], 0
je 0x524561
push esi
call fcn.005126e0
push 1
push esi
mov byte [ebp + 8], al
call fcn.00512990
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00512990
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x524597
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x6974d0
push 2
push eax
call fcn.00504cc0
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00504cc0
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x526420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005018a3

Function at 0x5266c0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x526719
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x526706
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x526700
shr eax, 8
cmp al, 2
je 0x526719
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x526739
mov dword [0x723298], esi
jmp 0x526875
push ebx
push 0x6977f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x697800
push str.iphlpapi.dll
mov ebx, eax
call fcn.00662743
add esp, 8
test eax, eax
je 0x526786
test ebx, ebx
je 0x526774
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x52684d
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x52684d
test ebx, ebx
je 0x5267af
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5267af
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x52684d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x52684d
lea ecx, [eax + 0xd]
push ecx
call dword [0x7192f0]
mov edi, eax
add esp, 4
test edi, edi
je 0x526843
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x526843
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5267f0
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x526807
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x526820
test ebx, ebx
je 0x52683a
push 8
push 0
push edi
call ebx
jmp 0x526841
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x7192f4]
add esp, 4
mov dword [0x723298], esi
pop ebx
test esi, esi
je 0x526875
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x723294]
test eax, eax
cmovne ecx, eax
mov dword [0x723294], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.00559910
add esp, 0x14
xorps xmm0, xmm0
test al, al
movlpd qword [0x7260a8], xmm0
setne byte [0x7260a0]
push 0x7260a8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x538610
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, ecx
and eax, 0xfffffffe
mov dword [ebp - 0x94], edx
cmp eax, 0x100
jae 0x5387bf
test cl, 1
je 0x5387bf
dec ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp + 0x10], ecx
shr esi, 1
mov ecx, 0x2b
push edi
lea edi, [ebp - 0x84]
je 0x538761
nop dword [eax]
mov ebx, 4
lea eax, [ebp - 0x88]
push 4
push eax
cmp esi, ebx
push edx
cmovb ebx, esi
call fcn.0051e210
add esp, 0xc
cmp eax, 4
jne 0x538707
cmp byte [0x7232a0], 0
jne 0x538719
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x88], 0
push eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x5386d1
mov eax, 2
jmp 0x538707
lea eax, [ebp - 0x88]
push eax
push 4
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0x8c]
test eax, eax
jne 0x5386ff
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x538707
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov ecx, eax
test eax, eax
jne 0x5387ae
mov eax, dword [ebp - 0x88]
jmp 0x538738
imul eax, dword [0x72329c], 0x41c64e6d
add eax, 0x3039
mov dword [0x72329c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x538752
nop dword [eax]
mov byte [edi], al
dec esi
inc edi
shr eax, 8
sub ebx, 1
jne 0x538740
mov dword [ebp - 0x88], eax
test esi, esi
je 0x538761
mov edx, dword [ebp - 0x94]
jmp 0x538670
mov eax, ecx
test eax, eax
jne 0x5387ae
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x90]
test ebx, ebx
je 0x5387a9
lea esi, [ebp - 0x84]
nop word [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x69b084]
mov byte [edx], al
movzx eax, byte [ecx + 0x69b084]
mov byte [edx + 1], al
add edx, 2
sub ebx, 2
jne 0x538780
mov byte [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x2b
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x53b0b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
je 0x53b14d
mov ebx, dword [0x7232a8]
test ebx, ebx
je 0x53b130
nop word [eax + eax]
mov edi, dword [ebx + 8]
push dword [ebx]
mov dword [ebp - 0x110], edi
call dword [0x7192f4]
mov esi, dword [ebx + 4]
add esp, 4
test esi, esi
je 0x53b120
nop dword [eax + eax]
push dword [esi]
mov edi, dword [esi + 4]
call fcn.00570cd0
push esi
call dword [0x7192f4]
add esp, 8
mov esi, edi
test edi, edi
jne 0x53b100
mov edi, dword [ebp - 0x110]
push ebx
call dword [0x7192f4]
add esp, 4
mov ebx, edi
test edi, edi
jne 0x53b0e0
pop edi
pop esi
mov dword [0x7232a8], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
cmp dword [0x7232a8], 0
jne 0x53b2cf
mov eax, 1
lock xadd dword [0x7232a4], eax
inc eax
cmp eax, 1
jne 0x53b2cf
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftSystemCertificates
push 0x80000002
mov dword [ebp - 0x110], 0
call esi
test eax, eax
jne 0x53b2ad
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 0x20019
push 0
push 0x67cae8
push dword [ebp - 0x110]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x53b2a5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
xor edi, edi
lea eax, [ebp - 0x10c]
xor ebx, ebx
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x53b29d
nop dword [eax]
push 0xc
push 1
call dword [0x719300]
mov ecx, dword [ebp - 0x10c]
mov esi, eax
inc ecx
push 1
push ecx
call dword [0x719300]
mov dword [esi], eax
lea ecx, [ebp - 0x108]
push dword [ebp - 0x10c]
push ecx
push eax
call fcn.004e25c0
add esp, 0x1c
test edi, edi
jne 0x53b260
mov dword [0x7232a8], esi
jmp 0x53b263
mov dword [edi + 8], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
inc ebx
push eax
push ebx
push dword [ebp - 0x114]
mov edi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x53b220
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x114]
call esi
push dword [ebp - 0x110]
call esi
mov esi, dword [0x7232a8]
test esi, esi
je 0x53b2cf
push dword [esi]
call fcn.0053b2f0
add esp, 4
test eax, eax
je 0x53b2c8
mov dword [esi + 4], eax
mov esi, dword [esi + 8]
test esi, esi
jne 0x53b2b7
mov ecx, dword [ebp - 4]
mov eax, dword [0x7232a8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x5459b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x5459e5
push str.Couldnt_set_desired_mode
push esi
call fcn.005245a0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xc8
je 0x5459fc
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00524660
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x545a16
push ebx
push esi
call fcn.005458b0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x14
jne 0x545b23
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4d8], 2
mov dword [ebp + 0xc], eax
jne 0x545a89
mov eax, dword [esi + 0x124]
mov eax, dword [eax]
test eax, eax
je 0x545a89
push 3
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
push ebx
push eax
call fcn.00551760
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x545b3e
push 0x2f
push dword [ebp + 8]
call fcn.006623a0
add esp, 8
test eax, eax
je 0x545a7d
mov ebx, dword [ebp + 8]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x545a89
push dword [ebp + 8]
call dword [0x7192f4]
add esp, 4
mov ecx, dword [esi + 0x50c]
test ecx, ecx
jne 0x545aa7
cmp byte [esi + 0xd97], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x67cae8
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x684004
cmove eax, edx
push eax
push ecx
push 0x688df8
call sym.updateself.exe_curl_maprintf
mov edi, eax
push ebx
mov dword [ebp - 4], edi
call dword [0x7192f4]
add esp, 0x14
test edi, edi
jne 0x545ae9
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push edi
push 0x684060
add eax, 0x260
push eax
push esi
call fcn.0055f070
push dword [ebp - 4]
mov edi, eax
call dword [0x7192f4]
add esp, 0x14
test edi, edi
jne 0x545b3e
mov eax, dword [esi + 0x18]
mov byte [eax + 0x2fe], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x15
jne 0x545b2b
push 0xd
jmp 0x545b31
cmp al, 0x16
jne 0x545b3e
push 0xe
push 1
push esi
call fcn.00545430
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret