joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b990
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x433b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f85d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x646274]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
cmp dword [esi], 0
je 0x433b80
lea ecx, [esp + 0xc]
call fcn.004ad466
push 0
lea eax, [esp + 0x68]
push eax
push 9
push 2
push 0x1ee
push esi
mov dword [esp + 0x74], 0
call fcn.004adf71
mov ecx, dword [esp + 0x7c]
add esp, 0x18
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004ad7d2
cmp dword [esp + 0xc], 0
jne 0x433b94
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004ad514
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov word [esp + 0x28], dx
call fcn.004ae50d
lea ecx, [esp + 0x24]
push ecx
push 0x643de4
lea edx, [esp + 0x6c]
push edx
push 9
push 2
lea eax, [esp + 0x20]
push 0xaa
push eax
mov byte [esp + 0x78], 1
call fcn.004adf71
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 0x1c
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x60], 0
call esi
mov edi, dword [esp + 0x64]
test edi, edi
je 0x433b6f
lea ecx, [esp + 0x1c]
call fcn.004ad466
push 1
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 2
call fcn.004ad7d2
lea ecx, [esp + 0x14]
call fcn.004ad466
push 0
lea edx, [esp + 0x68]
push edx
push 9
push 2
lea eax, [esp + 0x2c]
push 0xee
push eax
mov byte [esp + 0x74], 3
call fcn.004adf71
mov ecx, dword [esp + 0x7c]
add esp, 0x18
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.004ad7d2
mov eax, dword [esp + 0x74]
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov word [esp + 0x28], dx
call fcn.004ae50d
mov ecx, dword [esp + 0x70]
push 3
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 4
call fcn.004ae07f
mov edi, eax
mov edx, dword [esp + 0x6c]
push 3
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 5
call fcn.004ae07f
lea ecx, [esp + 0x24]
push ecx
push edi
push eax
push 0x643da8
push 0
push 0
push 4
lea edx, [esp + 0x30]
push 0xaa
push edx
mov byte [esp + 0x80], 6
call fcn.004adf71
add esp, 0x24
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x44]
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.004ad514
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0
call fcn.004ad514
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004ad514
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x54
ret
Function at 0x4350b0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4f8840
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x646274]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0x506d0c
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
test esi, esi
je 0x435236
lea ecx, [esp + 0x14]
call fcn.004a79b2
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.004a7d77
lea ecx, [esp + 0x24]
call fcn.004a79b2
mov edi, dword [esp + 0x58]
mov byte [esp + 0x3c], 1
test edi, edi
jne 0x435127
lea edi, [esp + 0x24]
cmp dword [edi + 4], 0
jne 0x435217
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004a7d77
test eax, eax
je 0x435217
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x76
push ecx
call esi
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x48]
push 0x75
push edx
mov dword [ebp], eax
call esi
mov ebx, dword [esp + 0x4c]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
push 8
push eax
call esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
push 0xa
push edx
mov dword [ecx], eax
call esi
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov edx, dword [ebx]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
je 0x435217
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edi, dword [edi + 4]
push 0x40cc0020
push 0
push 0
push edx
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x44]
push esi
call fcn.004a8033
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.004a7de0
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004a7de0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.004a7de0
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004a7de0
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x436770
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.004366a0
add esp, 4
test eax, eax
je 0x436787
or dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
push 0
push eax
movzx ecx, bl
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
pop ebx
ret

Function at 0x4367b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, ebp
push edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4365e0
sub eax, edx
sar eax, 1
mov esi, eax
xor edi, edi
mov dword [esp + 0xc], esi
test esi, esi
jle 0x436698
push ebx
movzx eax, word [ebp + edi*2]
mov ecx, pe_nt_image_headers32
cmp ax, cx
jae 0x436685
cmp ax, 0xd
je 0x43668e
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx ebx, ax
cmp bx, 0xffff
jne 0x43662d
movzx edx, word [ebp + edi*2]
push edx
jmp 0x436686
test bx, bx
jge 0x436638
not ebx
inc ebx
movzx ebx, bx
mov esi, ebx
sar esi, 8
push 0x14
and esi, 1
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x436672
movzx eax, word [ebp + edi*2]
cmp ax, 0x61
jb 0x43665d
cmp ax, 0x7a
jbe 0x436669
cmp ax, 0x41
jb 0x436672
cmp ax, 0x5a
ja 0x436672
xor eax, eax
test esi, esi
sete al
mov esi, eax
movzx ecx, bl
push esi
push ecx
call fcn.00436490
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x43668e
push eax
call fcn.00436390
add esp, 4
inc edi
cmp edi, esi
jl 0x436600
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push ecx
mov eax, dword [0x648430]
mov edx, dword [esp + 8]
test eax, eax
jne 0x436831
movzx eax, word [edx]
mov ecx, edx
test ax, ax
je 0x4367e2
movzx eax, ax
jmp 0x4367d0
cmp ax, 0x7f
ja 0x436831
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4367d0
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call fcn.004041b0
mov esi, dword [esp + 0xc]
add esp, 8
cmp byte [esi], 0
je 0x436878
push ebx
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
mov al, byte [esi]
cmp al, 0x7f
jae 0x43685e
cmp al, 0xa
je 0x43683d
cmp al, 0xd
je 0x43685b
movsx cx, al
movzx edx, cx
push edx
call fcn.00405510
add esp, 4
inc esi
jmp 0x43686d
add esp, 4
mov dword [esp + 4], edx
jmp 0x4365d0
push 0
push 0
push 0
push 0xd
call ebx
push eax
push 0xd
call edi
push 0
push 2
push 0
push 0xd
call ebx
push eax
push 0xd
call edi
inc esi
jmp 0x43686d
movzx eax, word [esi]
push eax
call fcn.00405510
add esp, 4
add esi, 2
cmp byte [esi], 0
jne 0x436810
mov esi, dword [esp + 0xc]
pop edi
pop ebx
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
pop ecx
ret
Function at 0x4370ff
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x60bd4c
push eax
call fcn.004c11aa
mov esi, eax
add esp, 8
test esi, esi
jne 0x4370fb
pop esi
ret
push edi
push esi
push 1
push 2
push 0x60bd54
call fcn.004c1804
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
add eax, eax
push 1
push eax
push edi
call fcn.004c1804
push esi
call fcn.004c1238
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
Function at 0x4744f3
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0xffffffff
jne 0x47457a
mov eax, dword [esi + 0x10]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1c]
mov ebp, eax
mov eax, dword [esi + 0x10]
push edx
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x474550
cmp eax, 2
jne 0x47456b
cmp byte [esp + 0x10], 0xff
jne 0x47456b
cmp byte [esp + 0x11], 0xfe
jne 0x47456b
mov ecx, dword [esi + 0x10]
push ebx
push ebx
push ebp
push ecx
mov dword [esi + 0x14], 1
call edi
mov eax, dword [esi + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0x10]
push ebx
push ebx
push ebp
push ecx
mov dword [esi + 0x14], ebx
call edi
pop edi
pop ebp
pop ebx
mov eax, dword [esi + 0x14]
pop esi
add esp, 8
ret
Function at 0x47dda0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4fe809
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x646274]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
cmp ebp, ebx
jne 0x47ddff
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x14]
push ecx
call dword [0x643e3c]
mov esi, dword [eax]
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x47de1a
inc dword [esi + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 1
cmp eax, ebx
je 0x47de42
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x47de3e
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x14], ebx
xor edi, edi
cmp dword [esp + 0x1c], ebx
jle 0x47debe
lea ebx, [ebx]
mov ecx, dword [ebp + edi*4]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [0x643e28]
mov eax, dword [eax]
add esp, 4
mov ecx, esp
mov byte [esp + 0x38], 2
mov dword [esp + 0x2c], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x47de79
inc dword [eax + 4]
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], esi
cmp esi, ebx
je 0x47de89
inc dword [esi + 4]
call dword [0x643e58]
mov eax, dword [esp + 0x20]
add esp, 8
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x47deb7
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x47deb3
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x18], ebx
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x47de50
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x3c]
mov dword [edi], esi
cmp esi, ebx
je 0x47ded2
inc dword [esi + 4]
mov dword [esp + 0x20], 1
mov byte [esp + 0x34], bl
cmp esi, ebx
je 0x47def4
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x47def4
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x489fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x48a00e
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea esi, [edi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x40
mov eax, 0x489ec0
mov dword [edi + 4], ebx
sub eax, esi
push 0xd
sub eax, 0xd
push esi
mov dword [esi], 0x42444c7
mov dword [esi + 4], edi
mov byte [esi + 8], 0xe9
mov dword [esi + 9], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop esi
mov dword [edi + 8], eax
pop ebx
pop edi
ret 4
Function at 0x49abb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x501248
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x646274]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
cmp dword [edi], 0
je 0x49abf5
lea edi, [esi + 0x44]
mov ecx, 6
mov esi, str.the_buffer_must_be_empty
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x49ac78
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.0049e620
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0049e680
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0049a7b0
lea ecx, [esp + 0xc]
test al, al
je 0x49ac6b
push 1
call fcn.0049e6c0
lea ecx, [esp + 0xc]
mov dword [edi], eax
call fcn.0049e7a0
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [edx], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0049e8c0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
mov dword [esp + 0x30], 0xffffffff
call fcn.0049e8c0
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc

Function at 0x4a0313
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4a0337
cmp dword [edi + 0x54], 0
jne 0x4a0337
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004a8d8e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004a02d4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4a5fde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a6025
call fcn.004a8d8e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a6025
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a6041
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a5b56
mov esi, eax
test edi, edi
je 0x4a603f
test ebx, ebx
je 0x4a603f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a6e64
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50166a
call fcn.004c40da
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4a6e89
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4a6ecf
lea ecx, [ebp - 0x10]
call fcn.00401980
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a03e0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.004c41b2
ret 8

Function at 0x4aae2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4aae75
call fcn.004a8d8e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4aae75
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4aaeb8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4aaea1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4aaea1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4aaeb5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4ac8d7
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4ac902
call fcn.004a8d8e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4ac925
push eax
push dword [esi + 4]
call fcn.004ac85d
push esi
push eax
mov ecx, 0x6769c4
call fcn.004ac50a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4be710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x646274]
jne 0x4be71a
repz ret
jmp fcn.004cabdc
Function at 0x4da112
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c7f02
and dword [ebp - 4], 0
cmp dword [0x677830], 0
mov ebx, eax
jne 0x4da1c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4da274
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4da274
push eax
call fcn.004c7e90
mov dword [esp], 0x623a68
push edi
mov dword [0x677830], eax
call esi
push eax
call fcn.004c7e90
mov dword [esp], 0x623a54
push edi
mov dword [0x677834], eax
call esi
push eax
call fcn.004c7e90
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x677838], eax
call esi
push eax
call fcn.004c7e90
pop ecx
mov dword [0x677840], eax
test eax, eax
je 0x4da1c3
push 0x623a20
push edi
call esi
push eax
call fcn.004c7e90
pop ecx
mov dword [0x67783c], eax
mov eax, dword [0x67783c]
cmp eax, ebx
je 0x4da21b
cmp dword [0x677840], ebx
je 0x4da21b
push eax
call fcn.004c7f0b
push dword [0x677840]
mov esi, eax
call fcn.004c7f0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4da21b
test edi, edi
je 0x4da21b
call esi
test eax, eax
je 0x4da212
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4da212
test byte [ebp - 0xc], 1
jne 0x4da21b
or dword [ebp + 0x10], 0x200000
jmp 0x4da254
mov eax, dword [0x677834]
cmp eax, ebx
je 0x4da254
push eax
call fcn.004c7f0b
pop ecx
test eax, eax
je 0x4da254
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4da254
mov eax, dword [0x677838]
cmp eax, ebx
je 0x4da254
push eax
call fcn.004c7f0b
pop ecx
test eax, eax
je 0x4da254
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x677830]
call fcn.004c7f0b
pop ecx
test eax, eax
je 0x4da274
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4da276
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e8190
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x4e833a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x4e81e8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x4e81fb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x4e820f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x4e8256.3
jmp 0x4e8220
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x4e822c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x4e8231
mov esi, 1
inc eax
cmp eax, edi
jl 0x4e8220
cmp si, cx
je case.0x4e8256.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4e8256.3
movzx eax, byte [eax + 0x4e8354]
jmp dword [eax*4 + 0x4e8340]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x4e8256.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4e8270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x4e8256.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x4e82b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4e8256.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4e82d6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4e8256.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x4e8300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4f3400
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x4f341a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x4f352a
push ebp
jmp 0x4f3430
mov eax, ebx
cmp ebx, 0x15b0
jb 0x4f343f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x4f34eb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x4f3460
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x4f3460
test eax, eax
je 0x4f34fd
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x4f34f0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x4f3430
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret