joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ddc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x49dded
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x49de3c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49de9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x49de5d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x49de9d
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x49de97
cmp dword [esi + 0x558], 0
je 0x49de9d
cmp byte [esi + 0x578], 0
je 0x49de9d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49de9d
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.0043d740
pop edi
pop esi
pop ebp
ret 4

Function at 0x49deb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x49deff
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49def8
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x49df20
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x49def9
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x49df52
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49df52
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x49def9
cmp byte [esi + 0x564], 0
je 0x49def9
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.0043d740
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a52d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520d68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x562494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4a5317
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
cmp dword [esi + 0x18], 1
jbe 0x4a5353
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4a5a20
push 0
push 0
call fcn.004ebc40
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0043e290
mov ecx, esi
call fcn.004a56e0
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
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 0x4a9470
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520f73
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x562494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x4a9515
cmp word [esi], di
je 0x4a9515
test eax, eax
je 0x4a94d1
cmp word [eax], di
je 0x4a94d1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x4a9515
jmp 0x4a9510
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dcf80
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x4a9515
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4a957b
lea esi, [ebx + 0x38]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x4a953b
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x4a959b
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x4a9563
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4a957b
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004affa8
mov esp, ebp
pop ebp
ret 0x30
call fcn.0043001f
int3
Function at 0x4b28e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004b2a10
add esp, 8
test al, al
je 0x4b2905
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4b2905
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4b2a10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4b2d90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b2dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b2dbb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4d67e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d6490
Function at 0x4d7ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5238e3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x562494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004aa7e0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4d7ce3
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4d7ce3
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4d7ce3
push eax
call esi
test eax, eax
je 0x4d7ce3
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d7a20
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4d7cd4
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004dcf80
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d7cd4
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4d7bfb
cmp eax, 2
jne 0x4d7cd4
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4d7c1c
test cl, 1
jne 0x4d7cd4
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4d7c22
jmp 0x4d7cd4
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4d7cd4
lea ecx, [ebp - 0x78]
call fcn.0041b740
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004d5fd0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x53bfcc
push eax
call fcn.004d80e0
push 0x2a
push dword [ebp - 0x78]
call fcn.004d6490
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4d7ccc
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d7c82
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004d5d90
push dword [0x5625a4]
lea eax, [ebp - 0x74]
push dword [0x5625a0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4d7cbd
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.0041bb70
mov edi, 1
jmp 0x4d7cd6
lea ecx, [ebp - 0x78]
call fcn.0041bb70
xor edi, edi
test esi, esi
je 0x4d7ce5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d7ce5
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004affa8
mov esp, ebp
pop ebp
ret
Function at 0x4d7d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4d7d35
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d7d40
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4daf60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dafd1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4daf9f
cmp eax, 2
jne 0x4dafbb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4dafcb
test ecx, ecx
je 0x4dafc6
test cl, 1
jne 0x4dafbb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4dafcb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4fd848
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x5714f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4fd889
cmp byte [edx], 0xa
jne 0x4fd889
or byte [eax + edi + 0x28], 4
jmp 0x4fd88e
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4fd97f
mov al, byte [ebx]
cmp al, 0x1a
je 0x4fd960
cmp al, 0xd
je 0x4fd8b7
mov byte [esi], al
inc esi
inc ebx
jmp 0x4fd955
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4fd8d7
cmp byte [eax], 0xa
jne 0x4fd8cc
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4fd8d2
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4fd955
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fd94e
cmp dword [ebp - 0x14], 0
je 0x4fd94e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5714f0]
test byte [eax + edi + 0x28], 0x48
je 0x4fd925
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4fd915
mov byte [esi], dl
jmp 0x4fd951
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5714f0]
mov byte [eax + edi + 0x2a], dl
jmp 0x4fd951
cmp byte [ebp - 1], 0xa
jne 0x4fd937
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4fd937
mov byte [esi], 0xa
jmp 0x4fd8d4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f26d1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fd952
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4fd8a0
jmp 0x4fd97f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5714f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4fd97a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4fd97f
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fd98a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x5714f0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4fd9ce
cmp word [edx], bx
jne 0x4fd9ce
or byte [edi + eax + 0x28], 4
jmp 0x4fd9d3
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4fdb27
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4fdb07
cmp ax, word [ebp - 0x10]
je 0x4fda0c
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4fdafc
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4fda32
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4fda22
push ecx
pop eax
push 4
jmp 0x4fda27
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4fdaf6
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fdaed
cmp dword [ebp - 0x18], 0
je 0x4fdaed
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x5714f0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4fdab9
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4fda7d
mov word [esi], ax
jmp 0x4fdab1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x5714f0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x5714f0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x5714f0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4fdafc
cmp word [ebp - 4], ax
jne 0x4fdace
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4fdace
mov word [esi], ax
add esi, 2
jmp 0x4fdafc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f26d1
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fdaf9
jmp 0x4fdaf0
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4fd9ec
jmp 0x4fdb27
mov ecx, dword [ecx*4 + 0x5714f0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4fdb1e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4fdb27
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff24e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004feef0

Function at 0x5068bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x411e31
Capabilities:
Check os version
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x411e69
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x411e57
mov al, 1
jmp 0x411eb3
cmp dword [ebx + 0x54], ecx
jne 0x411e60
mov al, 2
jmp 0x411eb3
cmp dword [ebx + 0x7c], ecx
jne 0x411eb3
mov al, 3
jmp 0x411eb3
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x411e7e
mov al, 4
jmp 0x411eb3
cmp ecx, 5
jne 0x411e9e
cmp ebx, 0
jne 0x411e8c
mov al, 5
jmp 0x411eb3
cmp ebx, 1
jne 0x411e95
mov al, 6
jmp 0x411eb3
cmp ebx, 2
jne 0x411e9e
mov al, 7
jmp 0x411eb3
cmp ecx, 6
jne 0x411eaa
cmp ebx, 0
jne 0x411eac
mov al, 8
jmp 0x411eb3
cmp ebx, 1
jne 0x411eb3
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442840
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51a27b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0050e3e5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4428c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0050bffd
mov eax, dword [eax]
push 0x5d5ed0
push eax
call fcn.004cabb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050e670
test bl, bl
je 0x4428c2
push 0x5d5ed0
lea ecx, [esp + 0xc]
call fcn.0050ea00
push 0x5d5edc
lea ecx, [esp + 0xc]
call fcn.0050ea00
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4428fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050e670
jmp 0x4429c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x442982
lea edx, [esp + 0x7c]
push 0x5d5ed8
push edx
call fcn.004cabb4
add esp, 8
test eax, eax
je 0x442982
lea eax, [esp + 0x7c]
push 0x5d5ed4
push eax
call fcn.004cabb4
add esp, 8
test eax, eax
je 0x442982
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x442912
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0050e670
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4431d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x443232
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x443240
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x51a2fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5e9e9c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x443378
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4432a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050e670
xor eax, eax
jmp 0x4433ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0050e7ad
push esi
lea ecx, [esp + 0xc]
call fcn.0050ea3c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5d5f10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4433cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004431d0
test eax, eax
jne 0x4433cd
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004431d0
test eax, eax
jne 0x4433cd
lea eax, [esp + 0x14]
push 0x5d5eec
push eax
call fcn.004cbd80
mov esi, eax
add esp, 8
test esi, esi
jne 0x4433ac
lea ecx, [esp + 0x14]
push 0x5d5ee8
push ecx
call fcn.004cbd00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4433ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4433af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0050e75d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4432be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050e670
xor eax, eax
jmp 0x4433ef
mov byte [esi], 0
push 0x5d5ee4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0050e670
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x44d426
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x44d44e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret