joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465e50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x465ed5
xor eax, eax
cmp ecx, edi
je 0x465ebd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov ebx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
cmp eax, edi
je 0x465ef9
cmp ecx, edi
je 0x465ee0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x465f5b
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.00465e50
mov ebx, eax
cmp ebx, edi
jne 0x465fa9
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x465f21
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x465f6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
call fcn.00404690
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x465f90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x465fb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 4

Function at 0x46c120
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x46c14d
push esi
push edi
jmp 0x46c130
movzx esi, byte [edx]
movzx esi, byte [esi + 0x53b5e8]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x46c130
pop edi
pop esi
ret
Function at 0x46c1b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi*8]
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x400
jbe 0x46c1d2
mov esi, 0x80
cmp esi, dword [edi]
jne 0x46c1df
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x56ea30]
test eax, eax
je 0x46c1ea
call eax
lea ecx, [esi*8]
push ecx
call fcn.00468c80
mov esi, eax
mov eax, dword [0x56ea34]
add esp, 4
mov dword [ebp - 4], esi
test eax, eax
je 0x46c20a
call eax
test esi, esi
je 0x46c1d6
mov edx, dword [edi + 0xc]
push edx
call fcn.00468f60
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x567f1c]
mov ebx, eax
shr ebx, 3
add esp, 4
lea eax, [ebx*8]
push eax
push 0
push esi
mov dword [ebp + 0xc], ebx
mov dword [edi], ebx
call fcn.004ecd20
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x46c2ef
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x46c283
movzx edi, byte [esi]
movzx edi, byte [edi + 0x53b5e8]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc esi
test edx, edx
jg 0x46c262
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
xor edx, edx
div ebx
mov eax, dword [ebp - 4]
lea eax, [eax + edx*8]
test eax, eax
je 0x46c2cb
mov esi, dword [eax]
test esi, esi
je 0x46c2a1
mov edx, dword [eax + 4]
jmp 0x46c2a3
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x46c2cb
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x46c2c3
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x46c2e4
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x46c2e4
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x46c2da
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x46c256
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d8c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x566148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push edx
mov dword [ebp - 0x118], 0x200
call fcn.0046d760
add esp, 0x10
test eax, eax
jne 0x46d9ad
lea ecx, [ebp - 0x110]
call fcn.0046ceb0
mov esi, eax
test esi, esi
je 0x46d998
call fcn.0046c530
test eax, eax
mov eax, esi
je 0x46d957
cmp word [esi], 0
je 0x46d93c
cmp word [eax], 0x5c
je 0x46d937
add eax, 2
cmp word [eax], 0
jne 0x46d926
jmp 0x46d93c
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x114]
push edx
mov eax, edx
push eax
lea ecx, [ebp - 0x118]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x46d989
cmp byte [esi], 0
je 0x46d970
lea esp, [esp]
cmp byte [eax], 0x5c
je 0x46d96d
inc eax
cmp byte [eax], 0
jne 0x46d960
jmp 0x46d970
mov byte [eax], 0
lea eax, [ebp - 0x114]
push eax
mov ecx, eax
push ecx
lea edx, [ebp - 0x118]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.004e8a92
add esp, 4
test edi, edi
jne 0x46d9ad
mov eax, 0x200
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e8965
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
xor ecx, ebp
pop esi
call fcn.004e8965
mov esp, ebp
pop ebp
ret
Function at 0x48cdc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x48cdda
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, 0x44
call fcn.004691e0
mov edi, eax
test edi, edi
je 0x48cdd1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
push esi
call fcn.0048c900
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.0048ca80
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ecx
push eax
push esi
call fcn.0048c680
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edx
push eax
push esi
call fcn.0048c900
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ecx
push eax
push esi
call fcn.0048c680
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push esi
call fcn.0048c900
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
add esp, 0x1c
mov byte [edi + 4], cl
mov eax, dword [ebx + 0x1c]
push edx
push eax
push esi
call fcn.0048cdc0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ecx
push eax
push esi
call fcn.0048c680
mov edx, dword [ebp + 0x10]
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
push esi
call fcn.0048c680
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
mov edx, 0xfff7
add esp, 0x20
and cx, dx
mov dword [edi + 0x24], eax
or eax, 0xffffffff
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, edi
test edi, edi
jne 0x494c6e
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x494c84
cmp byte [edi], al
je 0x494c77
inc ecx
cmp byte [ecx], al
jne 0x494c72
sub ecx, edi
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x494d85
jmp 0x494ca3
mov edi, dword [ebp + 0xc]
cmp esi, 2
jge 0x494cab
xor esi, 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x494d0b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edi, dword [edx + eax]
mov dl, byte [ecx]
test dl, dl
je 0x494ced
jmp 0x494cd0
movzx eax, byte [edi]
movzx edx, dl
mov dl, byte [edx + 0x53b5e8]
cmp dl, byte [eax + 0x53b5e8]
jne 0x494ced
mov dl, byte [ecx + 1]
inc ecx
inc edi
test dl, dl
jne 0x494cd0
movzx ecx, byte [ecx]
movzx edx, byte [edi]
movzx edx, byte [edx + 0x53b5e8]
movzx ecx, byte [ecx + 0x53b5e8]
sub ecx, edx
mov eax, dword [ebp - 4]
jne 0x494d75
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add esi, esi
mov esi, dword [eax + esi*8 + 0xc]
cmp dword [esi + 0x10], 0
je 0x494d58
xor eax, eax
mov edx, ebx
mov ecx, edi
test ebx, ebx
jle 0x494d4e
jmp 0x494d30
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x53b5e8]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x494d30
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
xor edx, edx
div dword [esi + 4]
jmp 0x494d5a
xor edx, edx
push ebx
push edi
lea eax, [esi + 4]
call fcn.0046c300
add esp, 8
test eax, eax
je 0x494d8c
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x494d85
mov esi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x10]
jl 0x494ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x494d75
Function at 0x494e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov ecx, eax
test eax, eax
jne 0x494e4d
xor ebx, ebx
mov dword [ebp - 0xc], ebx
jmp 0x494e65
cmp byte [eax], 0
je 0x494e58
inc ecx
cmp byte [ecx], 0
jne 0x494e52
sub ecx, eax
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x494f47
mov ecx, dword [edx + 8]
mov dword [ebp - 0x10], ecx
push edi
nop
mov ecx, eax
cmp eax, 2
jge 0x494e8a
xor ecx, 1
mov edx, dword [ebp + 0xc]
shl ecx, 4
add ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0xc]
test edx, edx
je 0x494eda
mov esi, dword [ecx]
mov cl, byte [edx]
test cl, cl
je 0x494ec2
movzx eax, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x53b5e8]
cmp cl, byte [eax + 0x53b5e8]
jne 0x494ebf
mov cl, byte [edx + 1]
inc edx
inc esi
test cl, cl
jne 0x494ea2
mov eax, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x53b5e8]
movzx edx, byte [edx + 0x53b5e8]
sub edx, ecx
jne 0x494f36
cmp dword [edi + 0x20], 0
lea esi, [edi + 0x14]
je 0x494f14
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, ebx
test ebx, ebx
jle 0x494f0e
mov edi, edi
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x53b5e8]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x494ef0
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [esi]
jmp 0x494f16
xor edx, edx
mov eax, dword [ebp + 8]
push ebx
push eax
mov eax, esi
call fcn.0046c300
add esp, 8
test eax, eax
je 0x494f4d
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
jne 0x494f46
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jl 0x494e80
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x494f33
Function at 0x499a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [edx]
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
lea esp, [esp]
test edi, edi
je 0x499ac8
cmp byte [edi], 0
mov eax, edi
je 0x499a46
nop
inc eax
cmp byte [eax], 0
jne 0x499a40
sub eax, edi
and eax, 0x3fffffff
cmp dword [ebx + 0x194], 0
lea ecx, [ebx + 0x188]
mov esi, eax
je 0x499aa1
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
jle 0x499a91
jmp 0x499a70
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x53b5e8]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x499a70
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
xor edx, edx
div dword [ebx + 0x188]
lea ecx, [ebx + 0x188]
jmp 0x499aa3
xor edx, edx
push esi
push edi
mov eax, ecx
call fcn.0046c300
add esp, 8
test eax, eax
je 0x499abe
mov eax, dword [eax + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
jmp 0x499acb
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor eax, eax
jmp 0x499acb
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x499add
movzx ecx, byte [esi + 0x53bd18]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x499afc
inc esi
mov dword [ebp - 4], esi
cmp esi, 3
jl 0x499a30
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f7b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
xor eax, eax
test dword [edx + 0xc], 0x4000000
push esi
push edi
mov dword [ebp - 4], eax
je 0x49f8f6
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x49f816
lea ebx, [ebx]
mov eax, dword [edi + 0x14]
test eax, eax
jle 0x49f80c
lea edx, [edi + 0x24]
mov esi, eax
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x49f7fc
or eax, 0xffffffff
jmp 0x49f803
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 8
dec esi
jne 0x49f7f0
mov edi, dword [edi + 4]
test edi, edi
jne 0x49f7e0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
mov eax, esi
test esi, esi
jne 0x49f826
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x49f842
cmp byte [esi], 0
je 0x49f836
jmp 0x49f830
inc eax
cmp byte [eax], 0
jne 0x49f830
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 8], eax
mov ebx, dword [ecx + 0x44]
add ebx, 0x34
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], ebx
je 0x49f887
xor eax, eax
mov edx, edi
mov ecx, esi
test edi, edi
jle 0x49f881
jmp 0x49f860
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x53b5e8]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x49f860
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [ebx]
jmp 0x49f889
xor edx, edx
push edi
push esi
mov eax, ebx
call fcn.0046c300
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x49f8f3
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x49f8f3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push edx
xor eax, eax
mov dword [ebp - 8], ebx
call fcn.0049dd40
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
je 0x49f8ec
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x49f8ec
mov edx, dword [eax + 8]
mov esi, ecx
nop
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x49f8dc
or eax, 0xffffffff
jmp 0x49f8e3
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 4
dec esi
jne 0x49f8d0
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x49f8a2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2f70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
cmp ecx, dword [ebp + 0xc]
je 0x4c3016
mov dl, byte [ecx]
mov esi, dword [ebp + 0x10]
movzx ecx, dl
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dl, 3
inc ecx
inc esi
shl dl, 4
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], ecx
movzx edx, dl
cmp ecx, dword [ebp + 0xc]
je 0x4c301f
mov cl, byte [ecx]
movzx ebx, cl
shr ebx, 4
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and cl, 0xf
inc edx
inc esi
add cl, cl
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
je 0x4c3040
movzx edx, byte [edx]
add cl, cl
movzx ecx, cl
mov ebx, edx
shr ebx, 6
or ecx, ebx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, dword [ebp + 0x10]
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp + 0x10], ecx
mov byte [ecx], dl
mov ecx, dword [ebp + 8]
inc dword [ebp + 0x10]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp + 0xc]
jne 0x4c2f81
mov edx, dword [ebp + 0x10]
pop esi
mov dword [eax], edx
pop ebx
pop ebp
ret
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, esi
inc esi
mov dword [ebp + 0x10], esi
mov byte [ecx], dl
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x3d
mov byte [ecx + 1], 0x3d
add ecx, 2
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret
mov edx, esi
inc esi
add cl, cl
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp + 0x10], esi
mov byte [edx], cl
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 1]
pop esi
mov byte [ecx], 0x3d
mov dword [eax], edx
pop ebx
pop ebp
ret
Function at 0x4c34f0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d858
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x566148]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4c3542
test eax, eax
je 0x4c3540
push eax
mov eax, dword [esi + 4]
call eax
mov dword [esi], edi
cmp dword [esi], 0
jne 0x4c358f
push 0x20
push str.InternetOpenW___win_inet.cpp53_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00407b20
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x30]
lea esi, [ebp - 0x40]
call fcn.004c5430
push 0x555d34
mov ecx, esi
push ecx
call fcn.004ecd9a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 4

Function at 0x4c35e0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52d1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x566148]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 0
push eax
mov word [esi + 8], ax
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4c364a
test eax, eax
je 0x4c3648
push eax
mov eax, dword [esi + 4]
call eax
mov dword [esi], edi
cmp dword [esi], 0
jne 0x4c369e
push 0x23
push str.InternetConnectW___win_inet.cpp82_
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00407b20
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [esp + 0x1c]
lea esi, [esp + 0xc]
call fcn.004c5430
push 0x555d34
mov ecx, esi
push ecx
call fcn.004ecd9a
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 8
Function at 0x4c4df0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5293a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x566148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 0x40], esi
mov dword [esi + 4], ebx
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
call fcn.004c5170
cmp dword [esi], ebx
jne 0x4c4e9a
push 0x1d
push str.CreateMutexW___mutex.cpp105_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407b20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
jb 0x4c4e73
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x4c4e79
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004e8fea
push 0x555d70
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], vtable.pix::ipc_error.0
call fcn.004ecd9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c4efc
push 0x1d
push str.CreateMutexW___mutex.cpp109_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407b20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x4c4ed5
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
jmp 0x4c4edb
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004e8fea
push 0x555d70
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], vtable.pix::ipc_error.0
call fcn.004ecd9a
mov ecx, dword [esi]
push 0x1f0001
call fcn.004c9550
mov edi, dword [esi]
add esp, 4
call fcn.004c9900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 4