joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, ecx
cmp eax, 4
jae 0x46ba0e
mov byte [ebp + eax - 0xc], 0
inc eax
cmp eax, 4
jl 0x46b88d
xor eax, eax
cmp eax, 4
jae 0x46ba0e
mov byte [ebp + eax - 8], 0
inc eax
cmp eax, 4
jl 0x46b8a3
mov ecx, dword [ebp + 0xc]
push esi
movzx eax, byte [ecx]
mov byte [esi], al
movzx eax, byte [ecx + 1]
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
mov byte [esi + 7], al
call fcn.0046ba20
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46b95b
mov dword [ebp - 0x10], 0x10
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 4]
mov byte [esi], al
movzx eax, byte [esi + 5]
mov byte [esi + 1], al
movzx eax, byte [esi + 6]
mov byte [esi + 2], al
movzx eax, byte [esi + 7]
mov byte [esi + 3], al
lea eax, [ebp - 8]
push eax
push edi
push esi
call fcn.0046baa0
mov cl, byte [ebp - 0xc]
add edi, 6
mov eax, dword [ebp - 8]
xor cl, al
mov dl, byte [ebp - 6]
mov al, ah
mov bl, byte [ebp - 5]
xor al, byte [ebp - 0xb]
xor dl, byte [ebp - 0xa]
xor bl, byte [ebp - 9]
dec dword [ebp - 0x10]
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov byte [esi + 7], bl
jne 0x46b901
jmp 0x46b9c9
cmp eax, 1
jne 0x46b9f5
lea eax, [edi + 0x5a]
mov edi, 0xf
mov dword [ebp - 0x10], eax
nop
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 4]
mov byte [esi], al
movzx eax, byte [esi + 5]
mov byte [esi + 1], al
movzx eax, byte [esi + 6]
mov byte [esi + 2], al
movzx eax, byte [esi + 7]
mov byte [esi + 3], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push esi
call fcn.0046baa0
mov cl, byte [ebp - 0xc]
mov eax, dword [ebp - 8]
xor cl, al
mov dl, byte [ebp - 6]
mov al, ah
mov bl, byte [ebp - 5]
xor al, byte [ebp - 0xb]
xor dl, byte [ebp - 0xa]
xor bl, byte [ebp - 9]
sub dword [ebp - 0x10], 6
dec edi
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov byte [esi + 7], bl
jns 0x46b970
mov byte [ebp - 0xb], al
movzx eax, byte [esi]
mov byte [esi + 4], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 2]
mov byte [esi + 6], al
movzx eax, byte [esi + 3]
mov byte [esi + 7], al
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xa], dl
mov byte [ebp - 9], bl
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
push esi
call fcn.0046bc80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 0xc
call fcn.004a6885
int3
Function at 0x46baa0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 6
jae 0x46bbf4
mov byte [ebp + eax - 0xc], 0
inc eax
cmp eax, 6
jl 0x46bab9
xor eax, eax
cmp eax, 8
jae 0x46bbf4
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 8
jl 0x46bacf
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0046bc00
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
xor edx, edx
sub esi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 6
jl 0x46baf8
mov edx, dword [ebp - 0xc]
mov al, dl
shr al, 2
mov cl, dl
mov dl, byte [ebp - 0xa]
and cl, 3
mov byte [ebp - 0x14], al
mov al, dh
shl cl, 4
shr al, 4
or cl, al
mov al, dl
mov byte [ebp - 0x13], cl
and dl, 0x3f
shr al, 6
mov cl, dh
and cl, 0xf
mov byte [ebp - 0x11], dl
mov dl, byte [ebp - 8]
shl cl, 2
or cl, al
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 9]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x10], al
mov al, dl
shl cl, 4
and dl, 0xf
shr al, 4
or cl, al
shl dl, 2
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 7]
mov al, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [ebp - 0xd], cl
mov byte [ebp - 0xe], dl
xor ebx, ebx
lea esp, [esp]
mov al, byte [ebp + ebx - 0x14]
movzx edx, al
and al, 1
shl al, 4
movzx ecx, al
mov eax, edx
shr eax, 1
and edx, 0x20
and eax, 0xf
or ecx, eax
movzx eax, bl
shl eax, 6
or ecx, edx
movzx eax, byte [ecx + eax + 0x60e3d0]
and al, 0xf
mov byte [ebp + ebx - 0x14], al
inc ebx
cmp ebx, 8
jl 0x46bb80
pop esi
xor ecx, ecx
pop ebx
jmp 0x46bbc0
mov al, byte [ebp + ecx*2 - 0x14]
shl al, 4
or al, byte [ebp + ecx*2 - 0x13]
mov byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 4
jl 0x46bbc0
lea eax, [ebp - 0xc]
push eax
call fcn.0046b6a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
mov dword [edi], eax
pop edi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 0xc
call fcn.004a6885
int3
Function at 0x46e120
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9380
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x629960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea ebx, [esi + 4]
mov dword [ebp - 4], 0
push ebx
push 0x60bb10
mov edi, 1
push edi
push 0
push 0x60bbe0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esi], eax
cmp eax, 0x80004005
jne 0x46e1a0
push 0x610564
call fcn.004bb1ff
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
test edx, edx
je 0x46e186
mov ecx, dword [edx]
lea eax, [esi + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0xc]
push edx
call dword [ecx + 0xc]
mov dword [esi], eax
cmp eax, 0x80004005
jne 0x46e20f
push 0x610538
call fcn.004bb1ff
mov eax, dword [ebx]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e3f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x46e4b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VariantToUInt16
push eax
call esi
push str.VariantToInt16
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.VariantToBoolean
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.VariantToUInt32
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.VariantToInt32
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.VariantToUInt64
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.VariantToInt64
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.VariantToDouble
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.VariantToString
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.VariantGetStringElem
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.VariantGetInt32Elem
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.VariantGetInt64Elem
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.VariantGetDoubleElem
push dword [edi]
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
pop esi
jmp 0x46e512
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x46e523
push dword [ebp + 8]
call fcn.0048c32c
add esp, 4
mov eax, edi
pop edi
pop ebp
ret 0x18

Function at 0x46f640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x46f67b
test al, 8
jne 0x46f67b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f67b
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x46f67b
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x46f69b
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0046eb00
pop esi
pop ebp
ret 4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x479bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x3c5], 0
je 0x479c98
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 0xc]
push 0
push edx
push 0
mov eax, dword [ecx]
push 0x434
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x3c8], eax
mov dword [esi + 0x3cc], ecx
cmp edi, 8
jne 0x479c1d
cmp ecx, eax
jne 0x479c49
test eax, eax
jle 0x479c49
push 1
dec eax
lea ecx, [esi + 0x3ac]
push eax
call fcn.00437da0
jmp 0x479c98
cmp edi, 0x2e
jne 0x479c5a
cmp ecx, eax
jne 0x479c49
push ecx
lea ecx, [esi - 8]
call fcn.0047ae60
mov ecx, dword [ebp - 8]
cmp ecx, eax
jge 0x479c46
push 1
push ecx
lea ecx, [esi + 0x3ac]
call fcn.00437da0
jmp 0x479c98
mov eax, dword [ebp - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [esi + 0x3ac]
call fcn.00437da0
jmp 0x479c98
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
test ax, ax
je 0x479c6e
cmp edi, 0x5a
je 0x479cdb
push 0x11
call ebx
test ax, ax
je 0x479c7c
cmp edi, 0x56
je 0x479cdb
push 0x11
call ebx
test ax, ax
je 0x479c8a
cmp edi, 0x43
je 0x479cdb
push 0x11
call ebx
test ax, ax
je 0x479c98
cmp edi, 0x58
je 0x479cdb
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push edi
call fcn.0047bd00
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4b0
mov eax, dword [ecx]
push edx
push 0x45f
call dword [eax + 0xc]
cmp dword [ebp - 8], 0
setle al
mov byte [esi + 0x3c4], al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47bbe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 0x68]
push 0x77a
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47bcc8
lea eax, [edi - 9]
mov dword [ebp - 8], 1
cmp eax, 0xd
ja case.0x47bc27.11
movzx eax, byte [eax + 0x47bcec]
jmp dword [eax*4 + 0x47bcdc]
test byte [esi + 0x300], 8
je case.0x47bc27.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47bc27.11
test dword [esi + 0x2f4], 0x1000
jne case.0x47bc27.11
mov dword [ebp - 8], 0
jmp case.0x47bc27.11
test byte [esi + 0x300], 8
je case.0x47bc27.11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne case.0x47bc27.11
mov dword [ebp - 8], 0
jmp case.0x47bc27.11
push 0
push 0x302
push dword [esi + 0x68]
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47bcc8
cmp edi, 8
je 0x47bcc8
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push 0x102
call dword [eax + 0xc]
push edi
push dword [esi + 0x68]
push 0x775
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47bd00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 0x68]
push 0x77b
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x47bded
mov eax, 1
mov dword [ebp - 8], eax
cmp edi, 9
je 0x47bd8a
cmp edi, 0xd
je 0x47bd5a
cmp edi, 0x1b
jne 0x47bd9c
test byte [esi + 0x300], 8
je 0x47bd9c
mov dword [ebp - 8], 0
jmp 0x47bd9c
test byte [esi + 0x300], 8
je 0x47bd9c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x47bd9c
test dword [esi + 0x2f4], 0x1000
jne 0x47bd9c
mov dword [ebp - 8], 0
jmp 0x47bd9c
test byte [esi + 0x300], 8
mov ecx, 0
cmovne eax, ecx
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
push 0x100
call dword [eax + 0xc]
push edi
push dword [esi + 0x68]
push 0x775
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
test dword [esi + 0x2f4], 0x800
jne 0x47bded
cmp edi, 8
jne 0x47bded
mov ecx, dword [esi + 0x2c4]
push 0
push 0
push 7
mov eax, dword [ecx]
push 0x115
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b9ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x629960]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x629960]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, 0x701
jne 0x47d4c1
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
mov eax, dword [ebx + 0x18]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.0047aad0
jmp 0x47d5dd
cmp eax, 0x70b
jne 0x47d5dd
cmp dword [ebx + 0xc], 0x202
jne 0x47d5dd
mov ecx, dword [esi + 0x2cc]
lea edx, [esp + 0x28]
push 0
push edx
push 0
mov eax, dword [ecx]
push 0x434
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2cc]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
mov eax, dword [ecx]
push 0
push 0x437
call dword [eax + 0xc]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0047a990
mov dword [esp + 0x58], 0
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x2cc]
push edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x30]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push 0
push 0x437
call dword [eax + 0xc]
push dword [ebx + 0x18]
lea eax, [esi + 0x34c]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.0047d980
cmp dword [eax], 0
je 0x47d5a5
cmp dword [esp + 0x44], 8
lea edi, [esp + 0x30]
push dword [ebx + 0x18]
mov ecx, dword [esp + 0x18]
cmovae edi, dword [esp + 0x34]
mov esi, dword [ebx + 0xc]
call fcn.0047d980
push edi
push esi
push dword [eax]
mov eax, dword [esp + 0x1c]
push dword [eax + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47d5ca
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push 1
cmovae eax, dword [esp + 0x34]
push 0
push eax
push str.iexplore
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], 8
jb 0x47d5dd
push dword [esp + 0x30]
call fcn.0048c32c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 8
Function at 0x47f300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
movzx eax, dx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x47f3f9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x47f3f9
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x1c]
push esi
push eax
call fcn.004aca30
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x14]
push 0x10
mov dword [ebp - 0x1c], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x47f3de
lea ecx, [esi + 4]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x1c]
movdqu xmmword [esi], xmm0
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x47f3e0
xor esi, esi
mov eax, dword [ebp - 0x20]
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, 1
jmp 0x47f3fb
xor al, al
cmp dword [ebp + 0x1c], 8
mov byte [ebp - 0x15], al
jb 0x47f412
push dword [ebp + 8]
call fcn.0048c32c
mov al, byte [ebp - 0x15]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x48aad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov dword [0x6474f0], 0x61309c
mov dword [0x6474f4], 0
mov dword [0x6474f8], 0
call fcn.0048ae10
push 0x6474fc
mov dword [0x6474f4], eax
mov word [0x647518], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0x6474f0
push 0x48ab60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [0x647514], eax
xor ecx, ebp
mov eax, 0x6474f0
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x48b710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb74b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x629960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ecx], vtable.JSON.0
mov byte [ecx + 0x48], 0
and dword [ecx + 0x48], 0xfffffeff
mov dword [ecx + 0x4c], 0
mov byte [ecx + 0x58], 0
mov eax, ecx
and dword [ecx + 0x58], 0xfffffeff
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x20], 1
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4921cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x492211
call fcn.0048d68d
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x492211
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x49222d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0048bedc
mov ebx, eax
test edi, edi
je 0x49222b
test esi, esi
je 0x49222b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b227c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004a841e
mov dword [ebp - 0x14], eax
cmp dword [0x6448ec], esi
jne 0x4b236f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4b22fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b244f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4b244f
push 0x5c3b50
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b244f
push eax
call ebx
push 0x5c3b5c
push edi
mov dword [0x6448ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c3b6c
push edi
mov dword [0x6448f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c3b80
push edi
mov dword [0x6448f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6448fc], eax
test eax, eax
je 0x4b236c
push 0x5c3b9c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6448f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b2394
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b2387
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4b23a9
push 4
pop eax
jmp 0x4b2451
cmp dword [ebp - 0x14], esi
je 0x4b23a9
push dword [0x6448ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b238e
mov eax, dword [0x6448f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4b2407
cmp dword [0x6448fc], edi
je 0x4b2407
push eax
call ebx
push dword [0x6448fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b2407
test eax, eax
je 0x4b2407
call ecx
test eax, eax
je 0x4b23fc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b23fc
test byte [ebp - 8], 1
jne 0x4b2407
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4b2437
mov eax, dword [0x6448f0]
cmp eax, edi
je 0x4b2434
push eax
call ebx
test eax, eax
je 0x4b2434
call eax
mov esi, eax
test esi, esi
je 0x4b2434
mov eax, dword [0x6448f4]
cmp eax, edi
je 0x4b2434
push eax
call ebx
test eax, eax
je 0x4b2434
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6448ec]
call ebx
test eax, eax
je 0x4b244f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4b2451
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x4e0130
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4e0180
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4e017a
shr eax, 8
cmp al, 2
jne 0x4e017a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret