joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465a14
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x465bc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00438c90
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x465bdc
call fcn.004388f4
mov eax, ebx
call fcn.00422724
mov edi, eax
dec edi
test edi, edi
jl 0x465acc
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004226f8
mov edx, dword [0x4410ac]
call fcn.00437a4c
test al, al
je 0x465ac8
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.004226f8
lea edx, [ebp - 0x14]
call fcn.0046b70c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00438c90
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00438968
inc esi
dec edi
jne 0x465a7a
mov al, byte [0x465be0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x465bec
mov eax, dword [ebp - 0xc]
call fcn.0042b6e0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00438688
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0046b70c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x465bdc
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.0046b70c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x465bdc
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x465bdc
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x465bf8
call fcn.00427c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465bcc
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00438614
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00438614
lea eax, [ebp - 0x14]
call fcn.004385f0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00438614
ret
Function at 0x469274
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x48dd40], 0
je 0x4693c3
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48bc08]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4693c3
mov eax, dword [0x48dd44]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48dd40]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x469392
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x48dd40]
call fcn.00419ed4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x46938a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x46938a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x46938a
mov eax, dword [ebp - 0x14]
call fcn.00471e1c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x46938a
push ebp
call fcn.00469230
pop ecx
test al, al
jne 0x46938a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x469346
mov eax, dword [ebp - 0x14]
call fcn.00470978
dec eax
jle 0x46938a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00437abc
cmp byte [ebp - 1], 0
je 0x46938a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x46938a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48dd44]
call fcn.004689f8
inc edi
dec ebx
jne 0x4692d9
mov eax, dword [0x48dd44]
cmp dword [eax + 8], 0
jle 0x4693aa
mov eax, dword [0x48dd44]
call fcn.00468a88
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4693c3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00469098
pop ecx
test al, al
jne 0x4693c3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c98c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x46c9d8
mov eax, esi
call fcn.0045a068
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46c9d8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x46c9d8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x46cb17
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x46ca18
cmp eax, 0x108
ja 0x46ca18
mov eax, esi
call fcn.0045a068
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46cb0e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x46cb17
jmp 0x46cb0e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x46caf7
cmp eax, 0x20a
ja 0x46caf7
test byte [esi + 0x50], 0x80
jne 0x46ca4a
sub eax, 0x203
je 0x46ca47
sub eax, 3
je 0x46ca47
sub eax, 3
jne 0x46ca4a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x46ca5e
dec eax
je 0x46ca73
dec eax
je 0x46ca90
dec eax
je 0x46ca73
jmp 0x46ca97
mov ecx, ebx
mov eax, dword [0x48bc08]
mov eax, dword [eax]
mov edx, esi
call fcn.004639d4
jmp 0x46cb0e
cmp byte [esi + 0x5d], 1
jne 0x46ca89
mov eax, esi
mov si, 0xffed
call fcn.00437abc
jmp 0x46cb17
or word [esi + 0x54], 1
jmp 0x46cb0e
and word [esi + 0x54], 0xfffe
jmp 0x46cb0e
mov eax, dword [0x48dcfc]
cmp byte [eax + 0x20], 0
je 0x46cb0e
mov eax, dword [0x48dcfc]
cmp dword [eax + 0x1c], 0
je 0x46cb0e
mov eax, dword [ebx]
mov edx, dword [0x48dcfc]
cmp eax, dword [edx + 0x1c]
jne 0x46cb0e
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00459fac
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00437abc
jmp 0x46cb17
cmp eax, 0xb00b
jne 0x46cb0e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0046b2ac
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470014
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x470030
cmp dword [esi + 4], 0
je 0x47005d
test byte [ebx + 0x55], 1
jne 0x47004f
mov eax, ebx
call fcn.0046ec6c
test eax, eax
jne 0x47004f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x47016d
mov edx, esi
mov eax, ebx
call fcn.0046fb34
jmp 0x47016d
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x470166
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00471e1c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0046c8c0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00470014
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00471e1c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47016d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476640
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48bbdc]
cmp byte [eax + 0xc], 0
je 0x4767ad
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4767a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48dd50], 0
jne 0x476694
push 0x4767b4
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4767bc
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd50], eax
cmp dword [0x4882bc], 0
jne 0x47678f
push 0x4767cc
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4882bc], eax
cmp dword [0x4882bc], 0
je 0x47678f
push 0x4767d8
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd54], eax
push 0x4767e8
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd58], eax
push 0x4767fc
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd5c], eax
push 0x476814
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd60], eax
push 0x47682c
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd64], eax
push 0x476840
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd68], eax
push 0x476858
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd6c], eax
push 0x476870
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd70], eax
push 0x47688c
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd74], eax
push 0x476898
mov eax, dword [0x4882bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48dd78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4767ad
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x47b938
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47b99a
call fcn.0047b8e8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00477c38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00477c38
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47ba18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x489ed4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x47baf2
cmp dword [0x489ed0], 0
jne 0x47baf2
cmp dword [0x48a0b4], 0
je 0x47baac
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0047b7e8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47ba92
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0047b7e8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47ba92
lea ebx, [ebp - 0x84]
jmp 0x47ba93
inc ebx
call fcn.0047b9d4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x47bb2d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x489ed8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00477c38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x489edb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x47bb2d
cmp dword [0x489ed0], 0
je 0x47bb0c
cmp dword [0x489ed0], 0xffffffff
je 0x47bb2d
push esi
call dword [0x489ed0]
pop ecx
mov eax, dword [0x489ed4]
test eax, eax
je 0x47bb2d
cmp dword [0x489ed4], 0xffffffff
je 0x47bb2d
cmp byte [eax], 0
je 0x47bb2d
push esi
push eax
call fcn.0047b938
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c2c4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48e5dc], 0
jne 0x47c345
cmp dword [0x48e5fc], 0
jne 0x47c2f4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48e5fc], eax
test eax, eax
jne 0x47c2f4
push str.GetEnvironmentStrings_failed
call fcn.0047bb44
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48e5fc]
jmp 0x47c308
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00477c38
pop ecx
mov edi, eax
test eax, eax
jne 0x47c300
lea edi, [ebp + 1]
push edi
call fcn.0047753c
pop ecx
mov ebx, eax
mov dword [0x48e5e0], ebx
test ebx, ebx
jne 0x47c332
xor eax, eax
jmp 0x47c408
push edi
mov edx, dword [0x48e5fc]
push edx
push ebx
call fcn.00477ae8
add esp, 0xc
jmp 0x47c365
xor esi, esi
mov ebx, dword [0x48e5dc]
jmp 0x47c35f
push eax
call fcn.00477c38
pop ecx
test eax, eax
jne 0x47c35b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47c34f
lea ebx, [esi + 4]
push 4
mov dword [0x48e5e4], ebx
inc ebx
push ebx
call fcn.00477014
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x47c388
xor eax, eax
jmp 0x47c408
cmp dword [0x48e5dc], 0
jne 0x47c3b9
xor esi, esi
mov ebx, dword [0x48e5e0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x47c3aa
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00477c38
pop ecx
mov edi, eax
test eax, eax
jne 0x47c3a0
jmp 0x47c3ea
xor esi, esi
mov ebx, dword [0x48e5dc]
mov eax, dword [esp]
mov edi, eax
jmp 0x47c3e4
push eax
call fcn.00477c38
pop ecx
test eax, eax
je 0x47c3d9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x47c3dd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47c3c8
mov eax, dword [0x48e5dc]
test eax, eax
je 0x47c3fa
push eax
call fcn.0047754c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48e5dc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2]
sar eax, 1
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
movzx ecx, word [esi + ecx*2]
sar ecx, 5
xor eax, ecx
and eax, 7
shl eax, 1
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
movzx ecx, word [esi + ecx*2]
sar ecx, 1
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx esi, word [edi + esi*2]
sar esi, 5
xor ecx, esi
and ecx, 7
shl ecx, 5
or eax, ecx
xor edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
not ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
jne 0x401012
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4011f0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 8], 1
push 0
push 0
push 0
push 0
push 0x409040
call fcn.00403a60
add esp, 0x14
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00403c50
add esp, 0x18
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call fcn.00402ed0
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401261
xor al, al
jmp 0x4012e1
mov byte [ebp - 1], 1
cmp dword [ebp - 8], 0
jbe 0x4012ba
lea eax, [ebp - 8]
push eax
push 0x400
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00403bc0
add esp, 0x10
test eax, eax
jne 0x401291
mov byte [ebp - 1], 0
jmp 0x4012ba
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00403670
add esp, 0x14
test eax, eax
jne 0x4012b8
mov byte [ebp - 1], 0
jmp 0x4012ba
jmp 0x401265
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00403c10
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00403c10
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00403260
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push 0
push 0
push 0
push 0
push 0x409080
call fcn.00403a60
add esp, 0x14
mov dword [ebp - 0x20], eax
xor eax, eax
mov byte [ebp - 2], al
push 0
push 0
push 3
push 0x409098
push 0x40909c
push 0x2328
lea ecx, [ebp - 2]
call fcn.00402480
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00403ab0
add esp, 0x20
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
push 0
push 0x4090a0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00403b10
add esp, 0x20
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401930
add esp, 0x10
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
add eax, 0xa
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004010b0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403b70
add esp, 0x14
mov edx, dword [ebp - 0x14]
push edx
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
mov byte [ebp - 1], 0
mov eax, 1
test eax, eax
je 0x402448
lea ecx, [ebp - 8]
push ecx
push 0x200
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00403bc0
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], 0
jne 0x4023ab
jmp 0x402448
cmp dword [ebp - 0x28], 1
jne 0x402443
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0x42c], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00401140
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408330
add esp, 0x10
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401a50
add esp, 0xc
mov word [ebp - 0x10], ax
mov edx, dword [ebp - 0xc]
push edx
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
movzx eax, word [ebp - 0x10]
test eax, eax
jle 0x40243f
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
mov byte [ebp - 1], 1
jmp 0x402374
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403c10
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00403c10
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00403c10
add esp, 4
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x402680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
sar eax, 1
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movsx edx, byte [edx]
sar edx, 5
xor eax, edx
and eax, 7
shl eax, 1
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movsx edx, byte [edx]
sar edx, 1
mov esi, dword [ebp - 8]
add esi, dword [ebp - 4]
movsx esi, byte [esi]
sar esi, 5
xor edx, esi
and edx, 7
shl edx, 5
or eax, edx
xor ecx, eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], cl
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
not edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx - 1]
test eax, eax
jne 0x402691
pop esi
mov esp, ebp
pop ebp
ret 4