joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d830
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5cc260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x64aa84]
push ebx
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov ebx, ecx
mov ecx, dword [esi + 0x24]
mov edx, eax
sub edx, ecx
cmp edx, 0x10
jae 0x46d88a
movzx eax, byte [esi + 0x31]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
push 0x434a
push 3
push 0x661308
call fcn.004e72e0
add esp, 0x14
jmp 0x46da51
add ecx, 0x10
cmp ecx, eax
jbe 0x46d896
call fcn.005b3b11
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x14]
add edx, eax
mov ecx, dword [edx]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x14], ecx
mov edx, dword [edx + 0xc]
push ebp
add eax, 0x10
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.00401b20
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov ecx, dword [0x661404]
push ebp
push 1
push 1
lea eax, [esp + 0x20]
push eax
call fcn.00488010
mov esi, eax
cmp esi, ebp
je 0x46d917
lea ecx, [esi + 0x30]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405540
mov ecx, esi
call fcn.004bbe50
mov ecx, dword [0x6613e8]
push ebp
mov edi, eax
mov dword [esp + 0x14], 1
call fcn.00484c90
jmp 0x46d955
mov ecx, dword [0x6613c0]
push 1
lea edx, [esp + 0x18]
push edx
call fcn.00441df0
mov esi, eax
cmp esi, ebp
je 0x46d9d6
mov ecx, esi
call fcn.00463be0
mov edi, eax
cmp edi, ebp
je 0x46d9d6
add esi, 0x14
push esi
lea ecx, [esp + 0x3c]
call fcn.00405540
mov dword [esp + 0x10], ebp
cmp edi, ebp
je 0x46d9d6
push 0xe3
push 0x52
call fcn.00472810
add esp, 8
mov ebp, eax
push 0x10
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00406f10
mov esi, dword [edi + 0x18]
cmp esi, 1
jg 0x46d982
xor esi, esi
push esi
mov ecx, ebp
call fcn.00407030
mov edx, dword [edi]
shl esi, 4
push esi
mov ecx, edi
call dword [edx + 0x2c]
push eax
mov ecx, ebp
call fcn.00406f10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46d9ad
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push 1
push ebp
mov ecx, ebx
call fcn.0046aa20
mov ebx, dword [ebx + 0x20]
mov ecx, dword [esp + 0x38]
push ebx
push ecx
push 0x434c
push 3
push 0x661308
call fcn.004e72e0
add esp, 0x14
jmp 0x46da3e
push 0xe3
push 0x48
call fcn.00472810
add esp, 8
mov esi, eax
push 0x10
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00406f10
push 1
push esi
mov ecx, ebx
call fcn.0046aa20
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0046a750
mov byte [esp + 0x3c], 1
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
push 0x3fc5
push 3
push 0x661308
call fcn.004e72e0
add esp, 0x20
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x10]
call fcn.00401b70
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00401b70
pop edi
pop ebp
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x18]
mov eax, 1
pop ebx
call fcn.0057981f
add esp, 0x24
ret 4
Function at 0x473410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4734f8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov al, byte [ebp + 0x101]
push ebx
mov bl, byte [ebp + 0x100]
jbe 0x4734eb
mov edx, dword [esp + 0x18]
push esi
push edi
movzx edi, al
mov eax, dword [esp + 0x24]
sub edx, eax
movzx esi, bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jmp 0x473460
lea ebx, [esi + 1]
and ebx, 0x800000ff
jns 0x473473
dec ebx
or ebx, 0xffffff00
inc ebx
movzx esi, bl
movzx eax, byte [esi + ebp]
lea ecx, [esi + ebp]
add eax, edi
and eax, 0x800000ff
jns 0x47348d
dec eax
or eax, 0xffffff00
inc eax
movzx edi, al
mov byte [esp + 0x2c], al
lea eax, [edi + ebp]
call fcn.00473400
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4734cd
movzx eax, byte [eax]
movzx ecx, byte [ecx]
add eax, ecx
and eax, 0x800000ff
jns 0x4734ba
dec eax
or eax, 0xffffff00
inc eax
movzx edx, al
mov cl, byte [edx + ebp]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor cl, byte [edx + eax]
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x473460
mov al, byte [esp + 0x2c]
pop edi
pop esi
mov byte [ebp + 0x100], bl
mov byte [ebp + 0x101], al
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x473970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x473988
push 0x102
call fcn.005abebb
add esp, 4
mov ebp, eax
xor eax, eax
lea ebx, [ebx]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x473990
push ebx
push esi
push edi
xor dl, dl
xor edi, edi
mov byte [ebp + 0x100], 0
mov byte [ebp + 0x101], 0
xor esi, esi
mov eax, dword [esp + 0x14]
movzx ebx, dl
movzx edx, byte [ebx + eax]
movzx eax, byte [edi + ebp]
lea ecx, [edi + ebp]
add edx, esi
add eax, edx
and eax, 0x800000ff
jns 0x4739d6
dec eax
or eax, 0xffffff00
inc eax
movzx esi, al
lea eax, [esi + ebp]
call fcn.00473400
xor edx, edx
lea eax, [ebx + 1]
div dword [esp + 0x18]
inc edi
cmp edi, 0x100
jl 0x4739b2
mov al, byte [esp + 0x20]
test al, al
pop edi
pop esi
pop ebx
jne 0x473a10
push ebp
push 0x400
push 0
push 0
call fcn.00473410
add esp, 0x10
mov eax, ebp
pop ebp
ret
Function at 0x475fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ccb78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push 1
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0xc]
call fcn.005789d4
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 4]
call fcn.0057897a
mov eax, dword [esi + 4]
test eax, eax
jne 0x476019
mov ecx, esi
call fcn.00475ea0
cmp dword [esi], 0
jne 0x47602c
mov ecx, esi
mov dword [esi + 4], 0
call fcn.00475ea0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov dword [esi], ecx
dec dword [esi + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], 0
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
Function at 0x47ac30
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5cd020
push eax
mov eax, dword [0x658508]
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, ecx
je 0x47ac79
push eax
call fcn.005abee6
mov eax, dword [0x65850c]
push eax
mov dword [0x658508], ebx
call fcn.005abee6
add esp, 8
mov dword [0x65850c], ebx
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
or ebp, 0xffffffff
cmp eax, ebp
je 0x47ac8f
push eax
call edi
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x47ac9c
push eax
call edi
mov dword [esi + 0x10], ebp
push ebx
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esi + 0x18], ebx
je 0x47ad47
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xa
jmp 0x47acd0
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
je 0x47acf2
cmp dword [esp + 0x10], 0x103
jne 0x47acf2
push 0x64
call ebx
dec edi
test edi, edi
jg 0x47acd0
xor ebp, ebp
cmp edi, ebp
jne 0x47ad3f
push 1
lea edx, [esi + 0x40]
push edx
lea ecx, [esp + 0x1c]
call fcn.005789d4
mov dword [esp + 0x34], ebp
mov eax, dword [esi + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.WARNING:_Terminating_CHandshakes_thread.
push 3
push 0x661308
call fcn.0046abf0
add esp, 0xc
push 0x64
call ebx
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0057897a
mov dword [esi + 0x18], ebp
or ebp, 0xffffffff
xor ebx, ebx
push 1
lea ecx, [esi + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.005789d4
mov dword [esp + 0x34], 1
mov edi, dword [esi + 0x28]
cmp edi, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
je 0x47ad89
jmp 0x47ad70
cmp edi, ebx
mov eax, edi
je 0x47adb1
mov ecx, dword [eax + 8]
cmp ecx, ebx
mov edi, dword [edi]
je 0x47ad85
mov edx, dword [ecx]
push 1
call dword [edx]
cmp edi, ebx
jne 0x47ad70
lea ecx, [esi + 0x24]
call fcn.005a9ec0
mov dword [esp + 0x34], ebp
lea ecx, [esp + 0x20]
call fcn.0057897a
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
jmp fcn.005a8539
Function at 0x47b2d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x30
mov eax, dword [0x64aa84]
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAAccept]
push 7
push 0x47b010
mov dword [esp + 0x3c], eax
mov esi, ecx
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x20], 0x10
call edi
cmp eax, 0xffffffff
je 0x47b31b
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.0047af40
mov byte [eax + 0x3c], 1
mov ecx, dword [esi + 0x10]
push 0
push 0x47b010
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x24], 0x10
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x47b352
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
call fcn.0057981f
add esp, 0x30
ret
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0x314]
test eax, eax
je 0x47b382
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push edi
mov dword [esp + 0x1c], 0x80000
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esp + 0x24]
push edx
push edi
mov ecx, esi
call fcn.0047af40
mov ecx, dword [esp + 0x34]
pop edi
mov eax, 1
pop esi
call fcn.0057981f
add esp, 0x30
ret
Function at 0x47c6f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5cd208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x24], eax
push 1
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.005789d4
mov dword [esp + 0x30], 0
mov ecx, ebx
call fcn.0047bee0
push 0x5eeb9c
lea ecx, [esp + 0x20]
push 0x6615ec
push ecx
call fcn.0040dc60
add esp, 0xc
mov byte [esp + 0x30], 1
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.00405540
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c77f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov edx, dword [ebx + 0x28]
push 0
lea ebp, [ebx + 0x28]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x20]
test eax, eax
je 0x47c855
mov eax, dword [ebp]
push 8
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call dword [eax + 0x34]
mov ecx, 2
mov edi, str.04270830
lea esi, [esp + 0x1c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov ecx, ebp
je 0x47c7dc
mov eax, dword [ebp]
call dword [eax + 0x4c]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0057897a
xor eax, eax
jmp 0x47c8bd
mov edx, dword [ebp]
push 4
lea esi, [ebx + 0x3c]
push esi
call dword [edx + 0x34]
mov eax, dword [ebp]
push 4
lea edi, [ebx + 0x44]
push edi
mov ecx, ebp
call dword [eax + 0x34]
mov eax, dword [esi]
mov edx, dword [ebp]
push 0
push 0
push eax
mov ecx, ebp
call dword [edx + 0x28]
mov eax, dword [edi]
mov cl, 0x3f
test cl, al
mov dword [ebx + 0x48], eax
je 0x47c81d
mov edx, dword [ebx + 0x48]
inc edx
mov al, dl
test cl, al
mov dword [ebx + 0x48], edx
jne 0x47c810
mov ecx, dword [ebx + 0x48]
shl ecx, 4
push ecx
call fcn.005abeeb
add esp, 4
mov ecx, 2
mov edi, str.04270830
lea esi, [esp + 0x1c]
xor edx, edx
mov dword [ebx + 0x40], eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x47c8a0
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebp]
shl ecx, 4
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x34]
jmp 0x47c8a0
mov esi, dword [esi]
mov edx, dword [ebp]
push 0
push 0x1002
push esi
mov ecx, ebp
call dword [edx + 0x20]
test eax, eax
je 0x47c7c4
mov eax, dword [ebp]
push 8
lea esi, [ebx + 0x3c]
push str.04270830
mov ecx, ebp
mov dword [esi], 0x10
call dword [eax + 0x38]
mov edx, dword [ebp]
push 4
push esi
mov ecx, ebp
call dword [edx + 0x38]
mov eax, dword [ebp]
push 4
lea ecx, [ebx + 0x44]
push ecx
mov ecx, ebp
call dword [eax + 0x38]
mov dword [ebx + 0x38], 1
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0057897a
mov eax, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x18]
pop ebx
call fcn.0057981f
add esp, 0x24
ret
Function at 0x47eb30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x18]
not eax
test al, 1
push esi
push edi
mov ebx, ecx
je 0x47eb78
mov ecx, dword [ebx + 8]
push ecx
mov ecx, ebp
call fcn.005b4e39
mov ebx, dword [ebx + 0x14]
xor edi, edi
cmp ebx, edi
je 0x47ec6a
mov esi, dword [esp + 0x1c]
push esi
push ebp
mov ecx, ebx
call fcn.0047e3c0
mov ebx, dword [ebx + 8]
cmp ebx, edi
jne 0x47eb60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, ebp
call fcn.005b4e65
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
jle 0x47ec6a
mov esi, dword [ebx + 0x20]
cmp esi, edi
je 0x47ec6a
mov eax, dword [ebx + 8]
mov edx, dword [esi]
mov dword [ebx + 0x20], edx
inc eax
mov dword [ebx + 8], eax
lea ecx, [esi + 0x30]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
call fcn.00404fe0
lea ecx, [esi + 0x34]
call fcn.00404fe0
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x1c]
push eax
push ebp
mov ecx, esi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov word [esi + 0x44], di
mov word [esi + 0x46], di
mov dword [esi + 0x48], edi
call fcn.0047e3c0
cmp dword [ebx + 0x14], edi
jne 0x47ec21
mov dword [ebx + 0x14], esi
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x47ec31
mov dword [eax + 8], esi
mov ecx, dword [ebx + 0x10]
mov dword [esi + 4], ecx
mov dword [ebx + 0x10], esi
mov al, byte [esi + 0x16]
mov dl, byte [esi + 0x17]
mov cl, byte [esi + 0x15]
add dl, al
mov al, byte [esi + 0x14]
add dl, cl
add dl, al
movzx eax, dl
mov ecx, dword [ebx + eax*4 + 0x24]
lea eax, [ebx + eax*4 + 0x24]
mov dword [esi], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x47eb91
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47f390
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5cd518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push str.Data_vg.htm
lea eax, [esp + 0x10]
push 0x6615ec
push eax
call fcn.0040dc60
add esp, 0xc
mov dword [esp + 0x1c], 0
mov eax, dword [eax]
push eax
lea ecx, [esp + 8]
call fcn.00401f30
mov byte [esp + 0x1c], 2
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f3f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExtV
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47f440
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 4]
call fcn.00401b70
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 4]
push esi
mov esi, dword [ecx - 0xc]
mov edx, 1
sub edx, eax
mov eax, dword [ecx - 8]
push edi
lea edi, [esi + 1]
sub eax, edi
or eax, edx
jge 0x47f46d
push edi
lea ecx, [esp + 0x10]
call fcn.00401ad0
mov ecx, dword [esp + 0xc]
inc esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0x5e418a
push ecx
call esi
test eax, eax
je 0x47f4b6
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0xc]
call fcn.00401b70
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.contexts
push ecx
mov dword [esp + 0x30], 0x22
call esi
test eax, eax
jne 0x47f48a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0xc]
call fcn.00401b70
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x47f5b0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x47f629
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 1
mov edi, edi
mov ecx, dword [ebx]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
test eax, eax
je 0x47f5f1
cmp dword [esp + 0x14], 0x103
jne 0x47f5f1
push 0x64
call edi
dec esi
test esi, esi
jg 0x47f5d0
test esi, esi
jne 0x47f620
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47f61c
push eax
push str.WARNING:_Terminating__s_thread.
push 3
push 0x661308
call fcn.0046abf0
add esp, 0x10
push 0x64
call edi
pop edi
pop esi
mov dword [ebx], 0
pop ebp
pop ebx
ret
Function at 0x47f7b0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov ecx, edi
mov dword [esi + 0x4c], 1
call fcn.0040c8e0
mov ebx, dword [esi + 0x48]
mov eax, dword [edi]
xor ebp, ebp
mov ecx, edi
mov dword [esi + 0x48], ebp
call dword [eax + 0x14]
cmp ebx, ebp
je 0x47f7e2
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esi + 0x44], ebp
je 0x47f82f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x64
mov edx, dword [esi + 0x44]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47f81c
cmp dword [esp + 0x10], 0x103
jne 0x47f81c
push 0x64
call ebx
dec edi
cmp edi, ebp
jg 0x47f7f2
cmp edi, ebp
jne 0x47f82f
mov eax, dword [esi + 0x44]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
call ebx
pop edi
mov dword [esi + 0x44], ebp
mov dword [esi + 0x4c], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x480e00
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x5cd538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push 0
lea eax, [esi + 0x24]
push eax
lea ecx, [esp + 0xc]
call fcn.005789d4
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0x58]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x480e8b
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00480d30
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00578965
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x480e6b
mov dword [esi + 0x64], 0
push edi
mov edi, dword [esi + 0x48]
lea ecx, [esp + 8]
mov dword [esi + 0x48], 0
call fcn.0057897a
test edi, edi
je 0x480e8a
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00578965
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x480eb6
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push esi
push ecx
push edx
push eax
call dword [0x652d40]
lea ecx, [esp + 4]
call fcn.0057897a
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 4]
call fcn.0057897a
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x4827c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5cdb00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004a5400
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov ecx, esi
call fcn.00482670
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
call fcn.005b0991
mov byte [esp + 0x2c], 1
push str.DataCoralWry.dat
lea eax, [esp + 0x10]
push 0x6615ec
push eax
call fcn.0040dc60
add esp, 0xc
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.005b0c2d
mov edi, eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482856
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebx
je 0x48289d
lea ecx, [esp + 0x14]
call fcn.005b0889
push eax
mov dword [esi + 0x30], eax
call fcn.005abeeb
mov ecx, dword [esi + 0x30]
add esp, 4
push ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x28], eax
call fcn.005b06a4
cmp eax, dword [esi + 0x30]
je 0x482894
mov eax, dword [esi + 0x28]
push eax
call fcn.005abee6
add esp, 4
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0x14]
call fcn.005b092f
mov byte [esp + 0x2c], bl
lea ecx, [esp + 0x14]
call fcn.005b09d0
mov dword [esp + 0x2c], 0xffffffff
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4840b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
mov cl, 0xaa
jbe 0x4840d2
mov edx, dword [esp + 8]
push ebx
mov bl, byte [eax + edx]
xor bl, cl
inc cl
mov byte [eax + edx], bl
inc eax
cmp eax, esi
jb 0x4840c2
pop ebx
pop esi
ret